1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2016-2017 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
7 LIB = librte_pmd_aesni_gcm.a
11 CFLAGS += -DALLOW_EXPERIMENTAL_API
12 CFLAGS += $(WERROR_FLAGS)
17 # versioning export map
18 EXPORT_MAP := rte_pmd_aesni_gcm_version.map
20 # external library dependencies
22 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
23 LDLIBS += -lrte_cryptodev
24 LDLIBS += -lrte_bus_vdev
26 IMB_HDR = $(shell echo '\#include <intel-ipsec-mb.h>' | \
27 $(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \
28 head -n1 | cut -d'"' -f2)
30 # Detect library version
31 IMB_VERSION = $(shell grep -e "IMB_VERSION_STR" $(IMB_HDR) | cut -d'"' -f2)
32 IMB_VERSION_NUM = $(shell grep -e "IMB_VERSION_NUM" $(IMB_HDR) | cut -d' ' -f3)
34 ifeq ($(IMB_VERSION),)
35 $(error "IPSec_MB version >= 0.52 is required")
38 ifeq ($(shell expr $(IMB_VERSION_NUM) \< 0x3400), 1)
39 $(error "IPSec_MB version >= 0.52 is required")
42 # library source files
43 SRCS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) += aesni_gcm_pmd.c
44 SRCS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) += aesni_gcm_pmd_ops.c
46 include $(RTE_SDK)/mk/rte.lib.mk