Blame


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