]>
Commit | Line | Data |
---|---|---|
bb272dd3 | 1 | |
8f119284 DM |
2 | export PREFIX=/usr |
3 | export BINDIR=${PREFIX}/bin | |
4 | export SBINDIR=${PREFIX}/sbin | |
5 | export MANDIR=${PREFIX}/share/man | |
6 | export DOCDIR=${PREFIX}/share/doc | |
7 | export MAN1DIR=${MANDIR}/man1/ | |
8 | export PERLDIR=${PREFIX}/share/perl5 | |
bb272dd3 | 9 | |
ba0b3a0a DM |
10 | all: pvefw-logger |
11 | ||
12 | CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) | |
13 | CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) | |
14 | LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) | |
15 | ||
16 | pvefw-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 | 22 | install: 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 | |
29 | clean: | |
8f119284 | 30 | make -C PVE clean |
3f665549 | 31 | rm -rf *~ pvefw-logger |
bb272dd3 DM |
32 | |
33 | .PHONY: distclean | |
34 | distclean: clean | |
35 |