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