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