4 # $Id: Makefile,v 1.16 2003/06/06 14:02:39 noodles Exp $
9 CFLAGS += -Wall -pedantic -g -I/usr/local/include
10 # Uncomment to enable profiling.
12 # Can be "pg" for Postgresql, "file" for flat files or "db2" for pksd db2 style.
14 # If using DBTYPE of "file" then comment the following line out.
15 #LIBS = -L/usr/local/lib -lpq
16 LIBS = -L/usr/local/lib -ldb3
18 PROGS = add lookup gpgwww onak
19 CORE_OBJS = armor.o charfuncs.o decodekey.o getcgi.o hash.o keydb_$(DBTYPE).o \
20 keyid.o keyindex.o ll.o mem.o onak-conf.o parsekey.o sha.o md5.o log.o
21 OBJS = merge.o stats.o sendsync.o $(CORE_OBJS)
22 SRCS = armor.c parsekey.c merge.c keyid.c md5.c sha.c main.c getcgi.c stats.c \
23 keyindex.c mem.c lookup.c add.c keydb_$(DBTYPE).c ll.c hash.c \
24 gpgwww.c onak-conf.c charfuncs.c sendsync.c log.c
26 all: .depend $(PROGS) testparse maxpath sixdegrees
28 testparse: main.o $(OBJS)
29 $(LINK) -o testparse main.o $(OBJS) $(LIBS)
31 maxpath: maxpath.o $(OBJS)
32 $(LINK) -o maxpath maxpath.o $(OBJS) $(LIBS)
34 sixdegrees: sixdegrees.o $(OBJS)
35 $(LINK) -o sixdegrees sixdegrees.o $(OBJS) $(LIBS)
37 gpgwww: gpgwww.o $(OBJS)
38 $(LINK) -o gpgwww gpgwww.o $(OBJS) $(LIBS)
40 lookup: lookup.o $(CORE_OBJS)
41 $(LINK) -o lookup lookup.o $(CORE_OBJS) $(LIBS)
43 add: add.o merge.o sendsync.o $(CORE_OBJS)
44 $(LINK) -o add add.o merge.o sendsync.o $(CORE_OBJS) $(LIBS)
46 onak: onak.o merge.o $(CORE_OBJS)
47 $(LINK) $(LDFLAGS) -o onak onak.o merge.o $(CORE_OBJS) $(LIBS)
50 rm -f $(PROGS) $(OBJS) Makefile.bak testparse maxpath *.core core \
51 gpgwww.o add.o lookup.o main.o maxpath.o onak.o sixdegrees \
56 makedepend -f- -- $(CFLAGS) -- $(SRCS) > .depend