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 bfdc637c 2020-09-20 stsp SRCS+= getprogname_linux.c reallocarray.c recallocarray.c
15 41d00e9f 2020-09-20 stsp CFLAGS+= -I$(CURDIR)/../compat/include
16 cc5f4ee8 2020-09-20 stsp
17 41d00e9f 2020-09-20 stsp OBJS = $(SRCS:.c=.o)
18 41d00e9f 2020-09-20 stsp
19 41d00e9f 2020-09-20 stsp libdiff.a: $(OBJS)
20 cc5f4ee8 2020-09-20 stsp ar rcs $@ $^
21 cc5f4ee8 2020-09-20 stsp
22 41d00e9f 2020-09-20 stsp CFLAGS += -fsanitize=address -fsanitize=undefined -g -O3
23 3ba0a2ed 2020-09-20 stsp CFLAGS += -Wstrict-prototypes -Wunused-variable
24 cc5f4ee8 2020-09-20 stsp
25 1dfba055 2020-10-07 stsp %.o: %.c ./*.h ../include/*.h
26 cc5f4ee8 2020-09-20 stsp gcc $(CFLAGS) -I../include -o $@ -c $<
27 cc5f4ee8 2020-09-20 stsp
28 cc5f4ee8 2020-09-20 stsp .PHONY: clean
29 cc5f4ee8 2020-09-20 stsp clean:
30 41d00e9f 2020-09-20 stsp -rm $(OBJS)
31 cc5f4ee8 2020-09-20 stsp -rm libdiff.a