4 SRC
= https
://github.com
/randombit
/$(PKG
).git
7 NUM_CPUS
:= $(shell getconf _NPROCESSORS_ONLN
)
9 # the first two are necessary due to LD, the others to reduce the build time
11 --without-os-features
=threads \
12 --disable-modules
=locking_allocator \
13 --disable-modules
=pkcs11
,tls
,x509
,xmss \
18 [ -d
$(PKG
) ] || git clone
$(SRC
) $(PKG
)
21 .
$(PKG
)-checkout-
$(REV
): .
$(PKG
)-cloned
22 cd
$(PKG
) && git fetch
&& git checkout
$(REV
)
23 @
rm -f .
$(PKG
)-checkout-
* && touch
$@
25 .
$(PKG
)-built-
$(REV
): .
$(PKG
)-checkout-
$(REV
)
26 cd
$(PKG
) && python3 .
/configure.py
$(CONFIG_OPTS
) && make
-j
$(NUM_CPUS
)
27 @
rm -f .
$(PKG
)-built-
* && touch
$@
29 install: .
$(PKG
)-built-
$(REV
)
30 cd
$(PKG
) && make
install && ldconfig