Pick up config file directory from autoconf sysconfdir variable setting.
DBTYPE = @DBTYPE@
#
LIBS = @LIBS@
+prefix ?= @prefix@
PROGS = add lookup gpgwww onak splitkeys
CORE_OBJS = armor.o charfuncs.o decodekey.o getcgi.o hash.o keydb_$(DBTYPE).o \
$(CC) $(LDFLAGS) -o onak onak.o merge.o cleankey.o \
$(CORE_OBJS) $(LIBS)
+onak-conf.o: onak-conf.c onak-conf.h
+ $(CC) $(CFLAGS) -DCONFIGFILE=\"@sysconfdir@/onak.conf\" -c onak-conf.c
+
clean:
$(RM) -f $(PROGS) $(OBJS) Makefile.bak testparse maxpath *.core core \
gpgwww.o add.o lookup.o main.o maxpath.o onak.o sixdegrees \
* Copyright 2002 Project Purple
*/
+#include "config.h"
+
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#define __ONAK_CONF_H_
#define VERSION "0.2.1"
-#define CONFIGFILE "/home/noodles/projects/onak/onak.conf"
/*
* struct onak_config - Runtime configuration for onak.