summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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)