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 charfuncs.o \
16 SRCS = armor.c parsekey.c merge.c keyid.c md5.c sha.c main.c getcgi.c stats.c \
17 keyindex.c mem.c lookup.c add.c keydb_$(DBTYPE).c ll.c hash.c \
18 gpgwww.c onak-conf.c charfuncs.c sendsync.c
20 all: $(PROGS) testparse maxpath
22 testparse: main.o $(OBJS)
23 $(CC) -o testparse main.o $(OBJS) $(LIBS)
25 maxpath: maxpath.o $(OBJS)
26 $(CC) -o maxpath maxpath.o $(OBJS) $(LIBS)
28 gpgwww: gpgwww.o $(OBJS)
29 $(CC) -o gpgwww gpgwww.o $(OBJS) $(LIBS)
31 lookup: lookup.o getcgi.o keyindex.o keydb_$(DBTYPE).o keyid.o sha.o \
32 parsekey.o mem.o armor.o ll.o hash.o onak-conf.o charfuncs.o
33 $(CC) -o lookup lookup.o getcgi.o keyindex.o keydb_$(DBTYPE).o keyid.o \
34 sha.o parsekey.o mem.o armor.o ll.o hash.o onak-conf.o \
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 charfuncs.o sendsync.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 \
41 charfuncs.o sendsync.o $(LIBS)
43 onak: onak.o merge.o keyid.o sha.o armor.o parsekey.o ll.o charfuncs.o \
44 keydb_$(DBTYPE).o mem.o keyindex.o hash.o getcgi.o onak-conf.o
45 $(CC) $(LDFLAGS) -o onak onak.o merge.o keyid.o sha.o armor.o \
46 parsekey.o keydb_$(DBTYPE).o mem.o keyindex.o ll.o hash.o \
47 getcgi.o charfuncs.o onak-conf.o $(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