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