Blame


1 0c8f9ca8 2020-05-03 neels # diff-portable
2 0c8f9ca8 2020-05-03 neels
3 0c8f9ca8 2020-05-03 neels PROG= diff
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
6 0c8f9ca8 2020-05-03 neels
7 0c8f9ca8 2020-05-03 neels CFLAGS+= -Wstrict-prototypes -Wunused-variable
8 0c8f9ca8 2020-05-03 neels
9 0c8f9ca8 2020-05-03 neels
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
14 0c8f9ca8 2020-05-03 neels
15 0c8f9ca8 2020-05-03 neels
16 0c8f9ca8 2020-05-03 neels # Shouldn't need to change anything below
17 0c8f9ca8 2020-05-03 neels all: $(PROG)
18 0c8f9ca8 2020-05-03 neels
19 0c8f9ca8 2020-05-03 neels $(PROG): $(SRCS:.c=.o)
20 0c8f9ca8 2020-05-03 neels
21 0c8f9ca8 2020-05-03 neels .c.o:
22 0c8f9ca8 2020-05-03 neels $(CC) -c $(CFLAGS) $<
23 0c8f9ca8 2020-05-03 neels
24 0c8f9ca8 2020-05-03 neels .PHONY: clean
25 0c8f9ca8 2020-05-03 neels clean:
26 0c8f9ca8 2020-05-03 neels rm -f $(PROG) *.o