1 0c8f9ca8 2020-05-03 neels # diff-portable
4 0c8f9ca8 2020-05-03 neels SRCS= diff.c diff_atomize_text.c diff_main.c diff_myers.c \
5 0c8f9ca8 2020-05-03 neels diff_patience.c diff_output.c
7 0c8f9ca8 2020-05-03 neels CFLAGS+= -Wstrict-prototypes -Wunused-variable
10 0c8f9ca8 2020-05-03 neels # Compat sources
11 0c8f9ca8 2020-05-03 neels VPATH= $(CURDIR)/compat
12 0c8f9ca8 2020-05-03 neels SRCS+= getprogname_linux.c recallocarray.c
13 0c8f9ca8 2020-05-03 neels CFLAGS+= -I$(CURDIR)/compat/include
16 0c8f9ca8 2020-05-03 neels # Shouldn't need to change anything below
17 0c8f9ca8 2020-05-03 neels all: $(PROG)
19 0c8f9ca8 2020-05-03 neels $(PROG): $(SRCS:.c=.o)
22 0c8f9ca8 2020-05-03 neels $(CC) -c $(CFLAGS) $<
24 0c8f9ca8 2020-05-03 neels .PHONY: clean
26 0c8f9ca8 2020-05-03 neels rm -f $(PROG) *.o