]> mj.ucw.cz Git - bouncer.git/blobdiff - Makefile
bouncer.service: fix typo
[bouncer.git] / Makefile
index bfd62635db748bf1eaf674f9aa178202c53543c9..178d1a7bf5d8dc4297e2bdab6451a7c642140874 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 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
@@ -10,4 +10,9 @@ bouncer: bouncer.c
 
 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