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 \
12 41d00e9f 2020-09-20 stsp # Compat sources
13 41d00e9f 2020-09-20 stsp VPATH= $(CURDIR)/../compat
14 12c5bde7 2020-10-16 stsp SRCS+= getprogname_linux.c reallocarray.c recallocarray.c merge.c
15 41d00e9f 2020-09-20 stsp CFLAGS+= -I$(CURDIR)/../compat/include
17 41d00e9f 2020-09-20 stsp OBJS = $(SRCS:.c=.o)
19 41d00e9f 2020-09-20 stsp libdiff.a: $(OBJS)
20 cc5f4ee8 2020-09-20 stsp ar rcs $@ $^
22 41d00e9f 2020-09-20 stsp CFLAGS += -fsanitize=address -fsanitize=undefined -g -O3
23 2c12b171 2020-10-15 stsp CFLAGS += -Wstrict-prototypes -Wunused-variable -Wuninitialized
25 1dfba055 2020-10-07 stsp %.o: %.c ./*.h ../include/*.h
26 cc5f4ee8 2020-09-20 stsp gcc $(CFLAGS) -I../include -o $@ -c $<
28 cc5f4ee8 2020-09-20 stsp .PHONY: clean
31 cc5f4ee8 2020-09-20 stsp -rm libdiff.a