PKG_CFLAGS := $(shell pkg-config --cflags libucw libipset)
PKG_LIBS := $(shell pkg-config --libs libucw libipset)
-CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 $(PKG_CFLAGS)
+CFLAGS=-O2 -Wall -Wextra -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -Wno-missing-field-initializers -std=gnu99 $(PKG_CFLAGS)
LDLIBS=$(PKG_LIBS)
all: bouncer
clean:
rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
+ rm -f bouncer
+install: bouncer
+ install -d $(DESTDIR)/usr/sbin $(DESTDIR)/etc
+ install -m755 bouncer $(DESTDIR)/usr/sbin/
+ install -m644 config $(DESTDIR)/etc/bouncer