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 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_config.o += -DSQUARK_VERSION=\"$(FULL_VERSION)\" \ -DCONFDIR=\"$(CONFDIR)\" \ -DLIBDIR=\"$(LIBDIR)\" LIBS += -lrt PKG_LUA ?= lua5.1 CFLAGS_lua-squarkdb.o += $(shell pkg-config --cflags $(PKG_LUA)) LIBS_squark-filter += $(shell pkg-config --libs cmph) LIBS_squark-auth-snmp += $(shell net-snmp-config --libs) LIBS_squarkdb.so += $(shell pkg-config --libs $(PKG_LUA) cmph) install: $(INSTALLDIR) $(DESTDIR)$(BINDIR) $(INSTALL) $(addprefix $(obj)/,$(progs-y) $(scripts-y)) $(DESTDIR)$(BINDIR) $(INSTALLDIR) $(DESTDIR)$(LUALIBDIR) $(INSTALL) $(addprefix $(obj)/,$(shlibs-y)) $(DESTDIR)$(LUALIBDIR)