]>
Commit | Line | Data |
---|---|---|
de5ca402 AS |
1 | #!/usr/bin/make |
2 | ||
3 | PKG = wolfssl | |
4 | REV = 4.7.1r | |
5 | DIR = $(PKG)-$(REV) | |
6 | TAR = v$(REV).tar.gz | |
7 | SRC = https://github.com/wolfSSL/$(PKG)/archive/refs/tags/$(TAR) | |
8 | ||
9 | NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN) | |
10 | ||
11 | CFLAGS = \ | |
12 | -DWOLFSSL_PUBLIC_MP \ | |
13 | -DWOLFSSL_DES_ECB \ | |
14 | -DHAVE_AES_ECB \ | |
15 | -DHAVE_ECC_BRAINPOOL \ | |
16 | -DWOLFSSL_MIN_AUTH_TAG_SZ=8 \ | |
17 | -DHAVE_EX_DATA | |
18 | ||
19 | CONFIG_OPTS = \ | |
20 | --disable-crypttests \ | |
21 | --disable-examples \ | |
22 | --enable-silent-rules \ | |
23 | --enable-aesccm \ | |
24 | --enable-aesctr \ | |
25 | --enable-ecccustcurves \ | |
26 | --enable-curve25519 \ | |
27 | --enable-ed25519 \ | |
28 | --enable-curve448 \ | |
29 | --enable-ed448 \ | |
30 | --enable-rsapss \ | |
31 | --enable-des3 \ | |
32 | --enable-sha3 \ | |
33 | --enable-shake256 \ | |
34 | --enable-md4 \ | |
35 | --enable-camellia \ | |
36 | --enable-keygen \ | |
37 | --enable-certgen \ | |
38 | --enable-certreq \ | |
39 | --enable-certext \ | |
40 | --enable-sessioncerts | |
41 | ||
42 | all: install | |
43 | ||
44 | $(TAR): | |
45 | wget $(SRC) | |
46 | ||
47 | .$(PKG)-unpacked-$(REV): $(TAR) | |
48 | [ -d $(DIR) ] || tar xf $(TAR) | |
49 | @touch $@ | |
50 | ||
51 | .$(PKG)-built-$(REV): .$(PKG)-unpacked-$(REV) | |
52 | cd $(DIR) && ./autogen.sh && ./configure C_FLAGS="$(CFLAGS)" $(CONFIG_OPTS) && make -j $(NUM_CPUS) | |
53 | @rm -f .$(PKG)-built-* && touch $@ | |
54 | ||
55 | install: .$(PKG)-built-$(REV) | |
56 | cd $(DIR) && make install && ldconfig |