# Makefile - makefile for hash layer
#
# Copyright (c) 2014-2015, 2021, 2024 Wind River Systems, Inc.
#
# The right to copy, distribute, modify or otherwise make use
# of this software may be licensed only pursuant to the terms
# of an applicable Wind River license agreement.
#
# DESCRIPTION
# Makefile for hash layer
#
TGT_DIR=$(WIND_BASE)/target

LIB_BASE_NAME   = ip_crypto
LIB_FORMAT = both

include $(WIND_BASE)/target/h/make/defs.library

EXTRA_INCLUDE += -I$(VSB_DIR)/3pp/openssl-3.5.0/include
EXTRA_INCLUDE += -I$(TGT_DIR)/h/security

EXTRA_DEFINE += -D_WRS_CONFIG_OPENSSL
EXTRA_DEFINE += -DIP_PORT_VXWORKS

_WRS_CONFIG_SEC_HASH ?= y

ifeq ($(_WRS_CONFIG_SEC_HASH),y)
ifneq ($(SPACE),user)
OBJS = secHashMd5Openssl.o
OBJS += secHashRmdOpenssl.o
OBJS += secHashSha1Openssl.o
OBJS += secHashSha256Openssl.o
OBJS += secHashSha384Openssl.o
OBJS += secHashSha512Openssl.o
OBJS += secHashWhirlpoolOpenssl.o
endif
endif


include $(WIND_BASE)/target/h/make/rules.library





