]>
Commit | Line | Data |
---|---|---|
de5ca402 AS |
1 | #!/usr/bin/make |
2 | ||
3 | PKG = wolfssl | |
19611b1d | 4 | SRC = https://github.com/wolfSSL/$(PKG).git |
e6943845 | 5 | REV = v5.2.0-stable |
de5ca402 AS |
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 \ | |
19611b1d | 14 | -DWOLFSSL_MIN_AUTH_TAG_SZ=8 |
de5ca402 AS |
15 | |
16 | CONFIG_OPTS = \ | |
17 | --disable-crypttests \ | |
18 | --disable-examples \ | |
19 | --enable-silent-rules \ | |
20 | --enable-aesccm \ | |
21 | --enable-aesctr \ | |
54d7e39d | 22 | --enable-aescfb \ |
19611b1d | 23 | --enable-camellia \ |
de5ca402 | 24 | --enable-curve25519 \ |
de5ca402 | 25 | --enable-curve448 \ |
19611b1d TB |
26 | --enable-des3 \ |
27 | --enable-ecccustcurves \ | |
28 | --enable-ed25519 \ | |
de5ca402 | 29 | --enable-ed448 \ |
19611b1d TB |
30 | --enable-keygen \ |
31 | --enable-md4 \ | |
de5ca402 | 32 | --enable-rsapss \ |
de5ca402 | 33 | --enable-sha3 \ |
19611b1d | 34 | --enable-shake256 |
de5ca402 AS |
35 | |
36 | all: install | |
37 | ||
19611b1d TB |
38 | .$(PKG)-cloned: |
39 | [ -d $(PKG) ] || git clone $(SRC) $(PKG) | |
de5ca402 AS |
40 | @touch $@ |
41 | ||
19611b1d | 42 | .$(PKG)-checkout-$(REV): .$(PKG)-cloned |
cd0c9919 | 43 | cd $(PKG) && git fetch --tags && git checkout $(REV) |
19611b1d TB |
44 | @rm -f .$(PKG)-checkout-* && touch $@ |
45 | ||
46 | .$(PKG)-built-$(REV): .$(PKG)-checkout-$(REV) | |
47 | cd $(PKG) && ./autogen.sh && ./configure C_FLAGS="$(CFLAGS)" $(CONFIG_OPTS) && make -j $(NUM_CPUS) | |
de5ca402 AS |
48 | @rm -f .$(PKG)-built-* && touch $@ |
49 | ||
50 | install: .$(PKG)-built-$(REV) | |
19611b1d | 51 | cd $(PKG) && make install && ldconfig |