charon-systemd: Don't use atexit() to deinitialize the daemon
[strongswan.git] / testing / scripts / recipes / 002_tnc-fhh.mk
1 #!/usr/bin/make
2
3 PKG = fhhtnc
4 SRC = git://github.com/trustatfhh/tnc-fhh.git
5
6 NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
7
8 CONFIG_OPTS = \
9 -DCOMPONENT=all \
10 -DNAL=8021x
11
12 PATCHES = \
13 tnc-fhh-tncsim
14
15 all: install
16
17 .$(PKG)-cloned:
18 git clone $(SRC) $(PKG)
19 mkdir $(PKG)/build
20 @touch $@
21
22 .$(PKG)-patches-applied: .$(PKG)-cloned
23 cd $(PKG) && cat $(addprefix ../patches/, $(PATCHES)) | patch -p1
24 @touch $@
25
26 .$(PKG)-configured: .$(PKG)-patches-applied
27 cd $(PKG)/build && cmake $(CONFIG_OPTS) ../
28 @touch $@
29
30 .$(PKG)-built: .$(PKG)-configured
31 cd $(PKG)/build && make -j $(NUM_CPUS)
32 @touch $@
33
34 install: .$(PKG)-built
35 cd $(PKG)/build && make install