4 CFLAGS += -Wall -pedantic -g -I/usr/local/include
5 # Can be "pg" for Postgresql, "file" for flat files or "db2" for pksd db2 style.
7 # If using DBTYPE of "file" then comment the following line out.
8 LIBS = -L/usr/local/lib -lpq
9 #LIBS = -L/usr/local/lib -ldb2
11 PROGS = keymerge add lookup gpgwww
12 OBJS = armor.o parsekey.o keydb_$(DBTYPE).o merge.o keyid.o md5.o sha.o \
13 getcgi.o keyindex.o mem.o stats.o ll.o hash.o onak_conf.o
14 SRCS = armor.c parsekey.c merge.c keyid.c md5.c sha.c main.c getcgi.c stats.c \
15 keyindex.c mem.c lookup.c add.c keydb_$(DBTYPE).c ll.c hash.c \
16 pathtest.c gpgwww.c onak_conf.c
18 all: $(PROGS) testparse pathtest maxpath
20 testparse: main.o $(OBJS)
21 $(CC) -o testparse main.o $(OBJS) $(LIBS)
23 pathtest: pathtest.o $(OBJS)
24 $(CC) -o pathtest pathtest.o $(OBJS) $(LIBS)
26 maxpath: maxpath.o $(OBJS)
27 $(CC) -o maxpath maxpath.o $(OBJS) $(LIBS)
29 gpgwww: gpgwww.o $(OBJS)
30 $(CC) -o gpgwww gpgwww.o $(OBJS) $(LIBS)
32 lookup: lookup.o getcgi.o keyindex.o keydb_$(DBTYPE).o keyid.o sha.o \
33 parsekey.o mem.o armor.o ll.o hash.o onak_conf.o
34 $(CC) -o lookup lookup.o getcgi.o keyindex.o keydb_$(DBTYPE).o keyid.o \
35 sha.o parsekey.o mem.o armor.o ll.o hash.o onak_conf.o $(LIBS)
37 add: add.o getcgi.o armor.o parsekey.o keydb_$(DBTYPE).o keyid.o sha.o mem.o \
38 keyindex.o ll.o hash.o merge.o onak_conf.o
39 $(CC) -o add add.o getcgi.o armor.o parsekey.o keydb_$(DBTYPE).o \
40 keyid.o sha.o mem.o keyindex.o ll.o hash.o merge.o onak_conf.o \
43 keymerge: keymerge.o merge.o keyid.o sha.o armor.o parsekey.o ll.o \
44 keydb_$(DBTYPE).o mem.o keyindex.o hash.o getcgi.o onak_conf.o
45 $(CC) -o keymerge keymerge.o merge.o keyid.o sha.o armor.o parsekey.o \
46 keydb_$(DBTYPE).o mem.o keyindex.o ll.o hash.o getcgi.o \
49 onak: onak.o merge.o keyid.o sha.o armor.o parsekey.o ll.o \
50 keydb_$(DBTYPE).o mem.o keyindex.o hash.o getcgi.o onak_conf.o
51 $(CC) -o onak onak.o merge.o keyid.o sha.o armor.o parsekey.o \
52 keydb_$(DBTYPE).o mem.o keyindex.o ll.o hash.o getcgi.o \
57 rm -f $(PROGS) $(OBJS) Makefile.bak testparse pathtest maxpath \
59 keymerge.o pathtest.o gpgwww.o add.o lookup.o main.o maxpath.o