summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-09-01 15:11:57 +0300
committerTimo Teräs <timo.teras@iki.fi>2010-09-01 15:11:57 +0300
commit5bc7fd8f1e41365677eb6787cb7d2a6dea62ee0c (patch)
treea59724c3bd7026d82b622f954466d2df2113cce0 /Makefile
parentb8944ab71ccdc9951c6b74ef8ed8686d0329f99c (diff)
downloadsquark-5bc7fd8f1e41365677eb6787cb7d2a6dea62ee0c.tar.bz2
squark-5bc7fd8f1e41365677eb6787cb7d2a6dea62ee0c.tar.xz
auth-ip: introduce helper tool for authdb management
fix also some authdb bugs, and make it actually usable.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 09c58d4..7c69728 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-TARGETS=squark-auth-snmp squark-filter squarkdb.so
+TARGETS=squark-auth-snmp squark-auth-ip squark-filter squarkdb.so
NETSNMP_CFLAGS:=$(shell net-snmp-config --cflags)
NETSNMP_LIBS:=$(shell net-snmp-config --libs)
@@ -9,17 +9,21 @@ CMPH_LIBS:=$(shell pkg-config --libs cmph)
CC=gcc
CFLAGS=-g -I. $(NETSNMP_CFLAGS) $(LUA_CFLAGS) $(CMPH_CFLAGS) -std=gnu99 -D_GNU_SOURCE -Wall
+LIBS+=-lrt
all: $(TARGETS)
squark-auth-snmp: squark-auth-snmp.o blob.o addr.o
- $(CC) -o $@ $^ $(NETSNMP_LIBS)
+ $(CC) -o $@ $^ $(NETSNMP_LIBS) $(LIBS)
+
+squark-auth-ip: squark-auth-ip.o authdb.o blob.o addr.o
+ $(CC) -o $@ $^ $(LIBS)
squark-filter: squark-filter.o filterdb.o authdb.o blob.o addr.o
- $(CC) -o $@ $^ $(CMPH_LIBS) -lrt
+ $(CC) -o $@ $^ $(CMPH_LIBS) $(LIBS)
squarkdb.so: lua-squarkdb.o filterdb.o blob.o
- $(CC) -shared -o $@ $^ $(LUA_LIBS) $(CMPH_LIBS)
+ $(CC) -shared -o $@ $^ $(LUA_LIBS) $(CMPH_LIBS) $(LIBS)
clean:
rm $(OBJS1) $(TARGETS)