4 # $Id: Makefile,v 1.23 2004/05/31 22:04:50 noodles Exp $
8 CFLAGS += @CFLAGS@ -Wall -pedantic
9 # Uncomment to enable profiling.
11 # Can be "pg" for Postgresql, "file" for flat files or "db2" for pksd db2 style.
16 PROGS = add lookup gpgwww onak splitkeys
17 CORE_OBJS = armor.o charfuncs.o decodekey.o getcgi.o hash.o keydb_$(DBTYPE).o \
18 keyid.o keyindex.o ll.o mem.o onak-conf.o parsekey.o sha1.o md5.o \
19 log.o photoid.o wordlist.o
20 OBJS = merge.o stats.o sendsync.o cleankey.o $(CORE_OBJS)
21 SRCS = armor.c parsekey.c merge.c keyid.c md5.c sha1.c main.c getcgi.c mem.c \
22 keyindex.c stats.c lookup.c add.c keydb_$(DBTYPE).c ll.c hash.c \
23 gpgwww.c onak-conf.c charfuncs.c sendsync.c log.c photoid.c \
26 all: .depend $(PROGS) testparse maxpath sixdegrees splitkeys
28 splitkeys: splitkeys.o $(CORE_OBJS)
29 $(CC) $(LDFLAGS) -o splitkeys splitkeys.o $(CORE_OBJS) $(LIBS)
31 testparse: main.o $(OBJS)
32 $(CC) $(LDFLAGS) -o testparse main.o $(OBJS) $(LIBS)
34 maxpath: maxpath.o $(OBJS)
35 $(CC) $(LDFLAGS) -o maxpath maxpath.o $(OBJS) $(LIBS)
37 sixdegrees: sixdegrees.o $(OBJS)
38 $(CC) $(LDFLAGS) -o sixdegrees sixdegrees.o $(OBJS) $(LIBS)
40 gpgwww: gpgwww.o $(OBJS)
41 $(CC) $(LDFLAGS) -o gpgwww gpgwww.o $(OBJS) $(LIBS)
43 lookup: lookup.o cleankey.o merge.o $(CORE_OBJS)
44 $(CC) $(LDFLAGS) -o lookup lookup.o cleankey.o merge.o $(CORE_OBJS) \
47 add: add.o cleankey.o merge.o sendsync.o $(CORE_OBJS)
48 $(CC) $(LDFLAGS) -o add add.o cleankey.o merge.o sendsync.o \
51 onak: onak.o merge.o cleankey.o $(CORE_OBJS)
52 $(CC) $(LDFLAGS) $(LDFLAGS) -o onak onak.o merge.o cleankey.o \
56 $(RM) -f $(PROGS) $(OBJS) Makefile.bak testparse maxpath *.core core \
57 gpgwww.o add.o lookup.o main.o maxpath.o onak.o sixdegrees \
58 sixdegrees.o splitkeys.o
61 $(RM) -f Makefile .depend config.{log,status,h}
62 $(RM) -r autom4te.cache
66 makedepend -f- -- $(CFLAGS) -- $(SRCS) > .depend