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 6303eedc 2020-10-24 stsp SRCS+= getprogname_linux.c reallocarray.c recallocarray.c merge.c \
16 41d00e9f 2020-09-20 stsp CFLAGS+= -I$(CURDIR)/../compat/include
18 41d00e9f 2020-09-20 stsp OBJS = $(SRCS:.c=.o)
20 41d00e9f 2020-09-20 stsp libdiff.a: $(OBJS)
21 cc5f4ee8 2020-09-20 stsp ar rcs $@ $^
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
26 1dfba055 2020-10-07 stsp %.o: %.c ./*.h ../include/*.h
27 cc5f4ee8 2020-09-20 stsp gcc $(CFLAGS) -I../include -o $@ -c $<
29 cc5f4ee8 2020-09-20 stsp .PHONY: clean
32 cc5f4ee8 2020-09-20 stsp -rm libdiff.a