Blob
1 SRCS = \2 diff_atomize_text.c \3 diff_main.c \4 diff_myers.c \5 diff_patience.c \6 diff_output.c \7 diff_output_plain.c \8 diff_output_unidiff.c \9 $(END)11 # Compat sources12 VPATH= $(CURDIR)/../compat13 SRCS+= getprogname_linux.c reallocarray.c recallocarray.c14 CFLAGS+= -I$(CURDIR)/../compat/include16 OBJS = $(SRCS:.c=.o)18 libdiff.a: $(OBJS)19 ar rcs $@ $^21 CFLAGS += -fsanitize=address -fsanitize=undefined -g -O322 CFLAGS += -Wstrict-prototypes -Wunused-variable24 %.o: %.c ./*.h ../include/*.h25 gcc $(CFLAGS) -I../include -o $@ -c $<27 .PHONY: clean28 clean:29 -rm $(OBJS)30 -rm libdiff.a