1CFLAGS = -fsanitize=address -fsanitize=undefined -g -O3 2CFLAGS += -Wstrict-prototypes -Wunused-variable -Wuninitialized 3 4SRCS= diff.c 5LIB= ../lib/libdiff.a 6 7# Compat sources 8CFLAGS+= -I$(CURDIR)/../compat/include 9 10diff: $(SRCS) $(LIB) 11 gcc $(CFLAGS) -I../include -o $@ $^ 12 13../lib/libdiff.a: ../lib/*.[hc] ../include/*.h 14 $(MAKE) -C ../lib 15 16.PHONY: clean 17clean: 18 rm diff 19 $(MAKE) -C ../lib clean 20