]> git.ipfire.org Git - people/ms/strongswan.git/blob - testing/scripts/recipes/012_wolfssl.mk
Use wolfSSL 5.0.0 for tests
[people/ms/strongswan.git] / testing / scripts / recipes / 012_wolfssl.mk
1 #!/usr/bin/make
2
3 PKG = wolfssl
4 SRC = https://github.com/wolfSSL/$(PKG).git
5 REV = v5.0.0-stable
6
7 NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
8
9 CFLAGS = \
10 -DWOLFSSL_PUBLIC_MP \
11 -DWOLFSSL_DES_ECB \
12 -DHAVE_AES_ECB \
13 -DHAVE_ECC_BRAINPOOL \
14 -DWOLFSSL_MIN_AUTH_TAG_SZ=8
15
16 CONFIG_OPTS = \
17 --disable-crypttests \
18 --disable-examples \
19 --enable-silent-rules \
20 --enable-aesccm \
21 --enable-aesctr \
22 --enable-camellia \
23 --enable-curve25519 \
24 --enable-curve448 \
25 --enable-des3 \
26 --enable-ecccustcurves \
27 --enable-ed25519 \
28 --enable-ed448 \
29 --enable-keygen \
30 --enable-md4 \
31 --enable-rsapss \
32 --enable-sha3 \
33 --enable-shake256
34
35 all: install
36
37 .$(PKG)-cloned:
38 [ -d $(PKG) ] || git clone $(SRC) $(PKG)
39 @touch $@
40
41 .$(PKG)-checkout-$(REV): .$(PKG)-cloned
42 cd $(PKG) && git fetch && git checkout $(REV)
43 @rm -f .$(PKG)-checkout-* && touch $@
44
45 .$(PKG)-built-$(REV): .$(PKG)-checkout-$(REV)
46 cd $(PKG) && ./autogen.sh && ./configure C_FLAGS="$(CFLAGS)" $(CONFIG_OPTS) && make -j $(NUM_CPUS)
47 @rm -f .$(PKG)-built-* && touch $@
48
49 install: .$(PKG)-built-$(REV)
50 cd $(PKG) && make install && ldconfig