Blame


1 41d00e9f 2020-09-20 stsp SRCS = \
2 cc5f4ee8 2020-09-20 stsp diff_atomize_text.c \
3 cc5f4ee8 2020-09-20 stsp diff_main.c \
4 cc5f4ee8 2020-09-20 stsp diff_myers.c \
5 cc5f4ee8 2020-09-20 stsp diff_patience.c \
6 cc5f4ee8 2020-09-20 stsp diff_output.c \
7 cc5f4ee8 2020-09-20 stsp diff_output_plain.c \
8 cc5f4ee8 2020-09-20 stsp diff_output_unidiff.c \
9 b7ba71f0 2020-10-07 stsp diff_output_edscript.c \
10 cc5f4ee8 2020-09-20 stsp $(END)
11 cc5f4ee8 2020-09-20 stsp
12 41d00e9f 2020-09-20 stsp # Compat sources
13 41d00e9f 2020-09-20 stsp VPATH= $(CURDIR)/../compat
14 6303eedc 2020-10-24 stsp SRCS+= getprogname_linux.c reallocarray.c recallocarray.c merge.c \
15 6303eedc 2020-10-24 stsp strlcat.c
16 41d00e9f 2020-09-20 stsp CFLAGS+= -I$(CURDIR)/../compat/include
17 cc5f4ee8 2020-09-20 stsp
18 41d00e9f 2020-09-20 stsp OBJS = $(SRCS:.c=.o)
19 41d00e9f 2020-09-20 stsp
20 41d00e9f 2020-09-20 stsp libdiff.a: $(OBJS)
21 cc5f4ee8 2020-09-20 stsp ar rcs $@ $^
22 cc5f4ee8 2020-09-20 stsp
23 41d00e9f 2020-09-20 stsp CFLAGS += -fsanitize=address -fsanitize=undefined -g -O3
24 2c12b171 2020-10-15 stsp CFLAGS += -Wstrict-prototypes -Wunused-variable -Wuninitialized
25 cc5f4ee8 2020-09-20 stsp
26 1dfba055 2020-10-07 stsp %.o: %.c ./*.h ../include/*.h
27 cc5f4ee8 2020-09-20 stsp gcc $(CFLAGS) -I../include -o $@ -c $<
28 cc5f4ee8 2020-09-20 stsp
29 cc5f4ee8 2020-09-20 stsp .PHONY: clean
30 cc5f4ee8 2020-09-20 stsp clean:
31 41d00e9f 2020-09-20 stsp -rm $(OBJS)
32 cc5f4ee8 2020-09-20 stsp -rm libdiff.a