really save options
[pve-firewall.git] / src / Makefile
CommitLineData
bb272dd3 1
8f119284
DM
2export PREFIX=/usr
3export BINDIR=${PREFIX}/bin
4export SBINDIR=${PREFIX}/sbin
5export MANDIR=${PREFIX}/share/man
6export DOCDIR=${PREFIX}/share/doc
7export MAN1DIR=${MANDIR}/man1/
8export PERLDIR=${PREFIX}/share/perl5
bb272dd3 9
ba0b3a0a
DM
10all: pvefw-logger
11
12CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
13CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
14LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
15
16pvefw-logger: pvefw-logger.c
e134b263 17 gcc -Wall -Werror pvefw-logger.c -o pvefw-logger -std=gnu99 \
ba0b3a0a
DM
18 $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
19 $(shell pkg-config libnetfilter_log glib-2.0 gthread-2.0 --libs --cflags)
bb272dd3
DM
20
21.PHONY: install
ba0b3a0a 22install: pvefw pvefw-logger
8f119284 23 make -C PVE install
bb272dd3
DM
24 install -d -m 0755 ${DESTDIR}/${SBINDIR}
25 install -m 0755 pvefw ${DESTDIR}/${SBINDIR}
ba0b3a0a 26 install -m 0755 --strip pvefw-logger ${DESTDIR}/${SBINDIR}
bb272dd3
DM
27
28.PHONY: clean
29clean:
8f119284 30 make -C PVE clean
3f665549 31 rm -rf *~ pvefw-logger
bb272dd3
DM
32
33.PHONY: distclean
34distclean: clean
35