summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 5863414..eb24877 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -2,14 +2,16 @@ progs-y += squark-filter squark-auth-snmp squark-auth-ip
shlibs-y += squarkdb.so
scripts-y += sqdb-build.lua
-common-objs += filterdb.o authdb.o blob.o addr.o
+common-objs += filterdb.o authdb.o blob.o addr.o config.o
squark-filter-objs += squark-filter.o $(common-objs)
squark-auth-snmp-objs += squark-auth-snmp.o $(common-objs)
squark-auth-ip-objs += squark-auth-ip.o $(common-objs)
squarkdb.so-objs += lua-squarkdb.o filterdb.o blob.o
-CFLAGS += -DSQUARK_VERSION=\"$(FULL_VERSION)\"
+CFLAGS_config.o += -DSQUARK_VERSION=\"$(FULL_VERSION)\" \
+ -DCONFDIR=\"$(CONFDIR)\" \
+ -DLIBDIR=\"$(LIBDIR)\"
LIBS += -lrt
CFLAGS_lua-squarkdb.o += $(shell pkg-config --cflags lua5.1)
@@ -22,4 +24,4 @@ install:
$(INSTALL) $(addprefix $(obj)/,$(progs-y) $(scripts-y)) $(DESTDIR)$(BINDIR)
$(INSTALLDIR) $(DESTDIR)$(LUALIBDIR)
- $(INSTALL) $(addprefix $(obj)/,$(shlibs-y)) $(DESTDIR)$(LUALIBDIR) \ No newline at end of file
+ $(INSTALL) $(addprefix $(obj)/,$(shlibs-y)) $(DESTDIR)$(LUALIBDIR)