Blob


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