Reload strlist and iplist resource-files only when needed.
[apps/pfixtools.git] / common / Makefile
index 8c5c1f4..f0d9904 100644 (file)
 #  THE POSSIBILITY OF SUCH DAMAGE.                                           #
 ##############################################################################
 
-LIBS = lib
+LIBS  = lib
+TESTS = tst-trie
 
-lib_SOURCES = str.c buffer.c common.c epoll.c server.c trie.c
+lib_SOURCES = str.c buffer.c common.c server.c trie.c file.c rbl.c
+tst-trie_SOURCES = tst-trie.c lib.a
+
+all:
+
+.server.o: CFLAGS=$(if $(DARWIN),$(filter-out -Wredundant-decls,$(filter-out -Wshadow,$(CFLAGSBASE))),$(CFLAGSBASE))
 
 include ../mk/common.mk