6 CFLAGS += @CFLAGS@ -Wall -pedantic
7 # Uncomment to enable profiling.
9 # Can be "pg" for Postgresql, "file" for flat files or "db2" for pksd db2 style.
14 PROGS = add lookup gpgwww onak splitkeys
15 CORE_OBJS = armor.o charfuncs.o decodekey.o getcgi.o hash.o keydb_$(DBTYPE).o \
16 keyid.o keyindex.o ll.o mem.o onak-conf.o parsekey.o sha1.o md5.o \
17 log.o photoid.o wordlist.o
18 OBJS = merge.o stats.o sendsync.o cleankey.o $(CORE_OBJS)
19 SRCS = armor.c parsekey.c merge.c keyid.c md5.c sha1.c main.c getcgi.c mem.c \
20 keyindex.c stats.c lookup.c add.c keydb_$(DBTYPE).c ll.c hash.c \
21 gpgwww.c onak-conf.c charfuncs.c sendsync.c log.c photoid.c \
24 all: .depend $(PROGS) testparse maxpath sixdegrees splitkeys
26 splitkeys: splitkeys.o $(CORE_OBJS)
27 $(CC) $(LDFLAGS) -o splitkeys splitkeys.o $(CORE_OBJS) $(LIBS)
29 testparse: main.o $(OBJS)
30 $(CC) $(LDFLAGS) -o testparse main.o $(OBJS) $(LIBS)
32 maxpath: maxpath.o $(OBJS)
33 $(CC) $(LDFLAGS) -o maxpath maxpath.o $(OBJS) $(LIBS)
35 sixdegrees: sixdegrees.o $(OBJS)
36 $(CC) $(LDFLAGS) -o sixdegrees sixdegrees.o $(OBJS) $(LIBS)
38 gpgwww: gpgwww.o $(OBJS)
39 $(CC) $(LDFLAGS) -o gpgwww gpgwww.o $(OBJS) $(LIBS)
41 lookup: lookup.o cleankey.o merge.o $(CORE_OBJS)
42 $(CC) $(LDFLAGS) -o lookup lookup.o cleankey.o merge.o $(CORE_OBJS) \
45 add: add.o cleankey.o merge.o sendsync.o $(CORE_OBJS)
46 $(CC) $(LDFLAGS) -o add add.o cleankey.o merge.o sendsync.o \
49 onak: onak.o merge.o cleankey.o $(CORE_OBJS)
50 $(CC) $(LDFLAGS) -o onak onak.o merge.o cleankey.o \
54 $(RM) -f $(PROGS) $(OBJS) Makefile.bak testparse maxpath *.core core \
55 gpgwww.o add.o lookup.o main.o maxpath.o onak.o sixdegrees \
56 sixdegrees.o splitkeys.o
59 $(RM) -f Makefile .depend config.{log,status,h}
60 $(RM) -r autom4te.cache
64 makedepend -f- -- $(CFLAGS) -- $(SRCS) > .depend