4 CFLAGS += -Wall -pedantic -g -I/usr/local/include
6 # Can be "pg" for Postgresql, "file" for flat files or "db2" for pksd db2 style.
8 # If using DBTYPE of "file" then comment the following line out.
9 #LIBS = -L/usr/local/lib -lpq
10 LIBS = -L/usr/local/lib -ldb3
12 PROGS = add lookup gpgwww onak
13 OBJS = armor.o parsekey.o keydb_$(DBTYPE).o merge.o keyid.o md5.o sha.o \
14 getcgi.o keyindex.o mem.o stats.o ll.o hash.o onak-conf.o
15 SRCS = armor.c parsekey.c merge.c keyid.c md5.c sha.c main.c getcgi.c stats.c \
16 keyindex.c mem.c lookup.c add.c keydb_$(DBTYPE).c ll.c hash.c \
19 all: $(PROGS) testparse maxpath
21 testparse: main.o $(OBJS)
22 $(CC) -o testparse main.o $(OBJS) $(LIBS)
24 maxpath: maxpath.o $(OBJS)
25 $(CC) -o maxpath maxpath.o $(OBJS) $(LIBS)
27 gpgwww: gpgwww.o $(OBJS)
28 $(CC) -o gpgwww gpgwww.o $(OBJS) $(LIBS)
30 lookup: lookup.o getcgi.o keyindex.o keydb_$(DBTYPE).o keyid.o sha.o \
31 parsekey.o mem.o armor.o ll.o hash.o onak-conf.o
32 $(CC) -o lookup lookup.o getcgi.o keyindex.o keydb_$(DBTYPE).o keyid.o \
33 sha.o parsekey.o mem.o armor.o ll.o hash.o onak-conf.o $(LIBS)
35 add: add.o getcgi.o armor.o parsekey.o keydb_$(DBTYPE).o keyid.o sha.o mem.o \
36 keyindex.o ll.o hash.o merge.o onak-conf.o
37 $(CC) -o add add.o getcgi.o armor.o parsekey.o keydb_$(DBTYPE).o \
38 keyid.o sha.o mem.o keyindex.o ll.o hash.o merge.o onak-conf.o \
41 onak: onak.o merge.o keyid.o sha.o armor.o parsekey.o ll.o \
42 keydb_$(DBTYPE).o mem.o keyindex.o hash.o getcgi.o onak-conf.o
43 $(CC) $(LDFLAGS) -o onak onak.o merge.o keyid.o sha.o armor.o parsekey.o \
44 keydb_$(DBTYPE).o mem.o keyindex.o ll.o hash.o getcgi.o \
49 rm -f $(PROGS) $(OBJS) Makefile.bak testparse maxpath *.core core \
50 gpgwww.o add.o lookup.o main.o maxpath.o onak.o