5 CFLAGS += -Wall -pedantic -g -I/usr/local/include
7 # Can be "pg" for Postgresql, "file" for flat files or "db2" for pksd db2 style.
9 # If using DBTYPE of "file" then comment the following line out.
10 #LIBS = -L/usr/local/lib -lpq
11 LIBS = -L/usr/local/lib -ldb3
13 PROGS = add lookup gpgwww onak
14 CORE_OBJS = armor.o charfuncs.o decodekey.o getcgi.o hash.o keydb_$(DBTYPE).o \
15 keyid.o keyindex.o ll.o mem.o onak-conf.o parsekey.o sha.o md5.o
16 OBJS = merge.o stats.o sendsync.o $(CORE_OBJS)
17 SRCS = armor.c parsekey.c merge.c keyid.c md5.c sha.c main.c getcgi.c stats.c \
18 keyindex.c mem.c lookup.c add.c keydb_$(DBTYPE).c ll.c hash.c \
19 gpgwww.c onak-conf.c charfuncs.c sendsync.c
21 all: $(PROGS) testparse maxpath sixdegrees
23 testparse: main.o $(OBJS)
24 $(LINK) -o testparse main.o $(OBJS) $(LIBS)
26 maxpath: maxpath.o $(OBJS)
27 $(LINK) -o maxpath maxpath.o $(OBJS) $(LIBS)
29 sixdegrees: sixdegrees.o $(OBJS)
30 $(LINK) -o sixdegrees sixdegrees.o $(OBJS) $(LIBS)
32 gpgwww: gpgwww.o $(OBJS)
33 $(LINK) -o gpgwww gpgwww.o $(OBJS) $(LIBS)
35 lookup: lookup.o $(CORE_OBJS)
36 $(LINK) -o lookup lookup.o $(CORE_OBJS) $(LIBS)
38 add: add.o merge.o sendsync.o $(CORE_OBJS)
39 $(LINK) -o add add.o merge.o sendsync.o $(CORE_OBJS) $(LIBS)
41 onak: onak.o merge.o $(CORE_OBJS)
42 $(LINK) $(LDFLAGS) -o onak onak.o merge.o $(CORE_OBJS) $(LIBS)
45 rm -f $(PROGS) $(OBJS) Makefile.bak testparse maxpath *.core core \
46 gpgwww.o add.o lookup.o main.o maxpath.o onak.o