charon-systemd: Don't use atexit() to deinitialize the daemon
[strongswan.git] / testing / scripts / recipes / 001_libtnc.mk
1 #!/usr/bin/make
2
3 PV = 1.25
4 PKG = libtnc-$(PV)
5 TAR = $(PKG).tar.gz
6 SRC = http://downloads.sourceforge.net/project/libtnc/libtnc/$(PV)/$(TAR)
7
8 NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
9
10 CONFIG_OPTS = \
11 --sysconfdir=/etc
12
13 all: install
14
15 $(TAR):
16 wget $(SRC)
17
18 .$(PKG)-unpacked: $(TAR)
19 tar xfz $(TAR)
20 @touch $@
21
22 .$(PKG)-configured: .$(PKG)-unpacked
23 cd $(PKG) && ./configure $(CONFIG_OPTS)
24 @touch $@
25
26 .$(PKG)-built: .$(PKG)-configured
27 cd $(PKG) && make -j $(NUM_CPUS)
28 @touch $@
29
30 install: .$(PKG)-built
31 cd $(PKG) && make install