bd1ba229be
Replace install target by install-lib target to avoid building and installing cryptest.exe Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
31 lines
902 B
Makefile
31 lines
902 B
Makefile
################################################################################
|
|
#
|
|
# cryptopp
|
|
#
|
|
################################################################################
|
|
|
|
CRYPTOPP_VERSION = 8.1.0
|
|
CRYPTOPP_SOURCE = cryptopp$(subst .,,$(CRYPTOPP_VERSION)).zip
|
|
CRYPTOPP_SITE = https://cryptopp.com
|
|
CRYPTOPP_LICENSE = BSL-1.0, BSD-3-Clause (CRYPTOGAMS), Public domain (ChaCha SSE2 and AVX)
|
|
CRYPTOPP_LICENSE_FILES = License.txt
|
|
CRYPTOPP_INSTALL_STAGING = YES
|
|
|
|
define HOST_CRYPTOPP_EXTRACT_CMDS
|
|
$(UNZIP) $(HOST_CRYPTOPP_DL_DIR)/$(CRYPTOPP_SOURCE) -d $(@D)
|
|
endef
|
|
|
|
HOST_CRYPTOPP_MAKE_OPTS = \
|
|
$(HOST_CONFIGURE_OPTS) \
|
|
CXXFLAGS="$(HOST_CXXFLAGS) -fPIC"
|
|
|
|
define HOST_CRYPTOPP_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CRYPTOPP_MAKE_OPTS) shared
|
|
endef
|
|
|
|
define HOST_CRYPTOPP_INSTALL_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR) install-lib
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|