1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2016 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
6 ifneq ($(MAKECMDGOALS),clean)
7 ifeq ($(LIBSSO_SNOW3G_PATH),)
8 $(error "Please define LIBSSO_SNOW3G_PATH environment variable")
13 LIB = librte_pmd_snow3g.a
17 CFLAGS += $(WERROR_FLAGS)
18 CFLAGS += -DALLOW_EXPERIMENTAL_API
23 # versioning export map
24 EXPORT_MAP := rte_pmd_snow3g_version.map
26 # external library dependencies
27 CFLAGS += -I$(LIBSSO_SNOW3G_PATH)
28 CFLAGS += -I$(LIBSSO_SNOW3G_PATH)/include
29 CFLAGS += -I$(LIBSSO_SNOW3G_PATH)/build
30 LDLIBS += -L$(LIBSSO_SNOW3G_PATH)/build -lsso_snow3g
31 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
32 LDLIBS += -lrte_cryptodev
33 LDLIBS += -lrte_bus_vdev
35 # library source files
36 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SNOW3G) += rte_snow3g_pmd.c
37 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SNOW3G) += rte_snow3g_pmd_ops.c
39 include $(RTE_SDK)/mk/rte.lib.mk