1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2016-2019 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
11 CFLAGS += $(WERROR_FLAGS)
12 CFLAGS += -DALLOW_EXPERIMENTAL_API
14 # versioning export map
15 EXPORT_MAP := rte_pmd_zuc_version.map
17 # external library dependencies
19 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
20 LDLIBS += -lrte_cryptodev
21 LDLIBS += -lrte_bus_vdev
24 IMB_HDR = $(shell echo '$Hinclude <intel-ipsec-mb.h>' | \
25 $(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \
26 head -n1 | cut -d'"' -f2)
28 # Detect library version
29 IMB_VERSION = $(shell grep -e "IMB_VERSION_STR" $(IMB_HDR) | cut -d'"' -f2)
30 IMB_VERSION_NUM = $(shell grep -e "IMB_VERSION_NUM" $(IMB_HDR) | cut -d' ' -f3)
32 ifeq ($(IMB_VERSION),)
33 $(error "IPSec_MB version >= 0.53 is required")
36 ifeq ($(shell expr $(IMB_VERSION_NUM) \< 0x3400), 1)
37 $(error "IPSec_MB version >= 0.53 is required")
39 # library source files
40 SRCS-$(CONFIG_RTE_LIBRTE_PMD_ZUC) += rte_zuc_pmd.c
41 SRCS-$(CONFIG_RTE_LIBRTE_PMD_ZUC) += rte_zuc_pmd_ops.c
43 include $(RTE_SDK)/mk/rte.lib.mk