Files
HiSTBLinuxV100R005C00SPC060/sample/cipher/Makefile
T
2024-08-12 23:03:27 +08:00

43 lines
1.1 KiB
Makefile
Executable File

#===============================================================================
# export variable
#===============================================================================
ifeq ($(CFG_HI_EXPORT_FLAG),)
SDK_DIR := $(shell cd $(CURDIR)/../.. && /bin/pwd)
include $(SDK_DIR)/base.mak
endif
include $(SAMPLE_DIR)/base.mak
#===============================================================================
# local variable
#===============================================================================
SAMPLE_IMAGES := \
sample_cipher \
sample_rng \
sample_multicipher \
sample_hash \
sample_cbcmac \
sample_anticopy \
sample_rsa_enc \
sample_rsa_sign \
sample_dh \
sample_ecdh \
sample_ecdsa \
sample_sm2
ifeq ($(CFG_HI_SMMU_SUPPORT),y)
SAMPLE_IMAGES += sample_cenc
endif
DEPEND_LIBS := $(HI_LIBS)
ifeq ($(CFG_HI_OTP_KLAD_V100),y)
CFLAGS += -DCA_FRAMEWORK_V100_SUPPORT
else ifeq ($(CFG_HI_OTP_KLAD_V200),y)
CFLAGS += -DCA_FRAMEWORK_V200_SUPPORT
else
$(error otp_klad version is error)
endif
include $(SAMPLE_DIR)/hi_sample_rules.mak