]> mj.ucw.cz Git - bouncer.git/blob - Makefile
Default config file is /etc/bouncer
[bouncer.git] / Makefile
1 PKG_CFLAGS := $(shell pkg-config --cflags libucw libipset)
2 PKG_LIBS := $(shell pkg-config --libs libucw libipset)
3
4 CFLAGS=-O2 -Wall -Wextra -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -Wno-missing-field-initializers -std=gnu99 $(PKG_CFLAGS)
5 LDLIBS=$(PKG_LIBS)
6
7 all: bouncer
8
9 bouncer: bouncer.c
10
11 clean:
12         rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
13         rm -f bouncer
14
15 install: bouncer
16         install -d $(DESTDIR)/usr/sbin $(DESTDIR)/etc
17         install -m755 bouncer $(DESTDIR)/usr/sbin/
18         install -m644 config $(DESTDIR)/etc/bouncer