Merge commit 'stark/master'
[adu.git] / Makefile
1 objects := osl.o fd.o rbtree.o string.o adu.o sha1.o
2 all: adu
3
4 DEBUG_CPPFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W
5 DEBUG_CPPFLAGS += -Wredundant-decls
6 #CPPFLAGS += -Os
7 CPPFLAGS += -Wall
8 #CPPFLAGS += -Wuninitialized
9 CPPFLAGS += -Wchar-subscripts
10 CPPFLAGS += -Wformat-security
11 CPPFLAGS += -Werror-implicit-function-declaration
12 CPPFLAGS += -Wmissing-format-attribute
13 CPPFLAGS += -Wunused-macros
14 CPPFLAGS += -Wbad-function-cast
15
16 Makefile.deps: $(wildcard *.c *.h)
17 gcc -MM -MG *.c > $@
18
19 -include Makefile.deps
20
21 adu: $(objects)
22 $(CC) -o $@ $(objects) -lcrypto
23
24 %.o: %.c Makefile
25 $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) $<
26
27 clean:
28 rm -f *.o adu