1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Marvell International Ltd.
5 include $(RTE_SDK)/mk/rte.vars.mk
7 ifneq ($(MAKECMDGOALS),clean)
8 ifneq ($(MAKECMDGOALS),config)
9 ifeq ($(LIBMUSDK_PATH),)
10 $(error "Please define LIBMUSDK_PATH environment variable")
16 LIB = librte_common_mvep.a
21 # versioning export map
22 EXPORT_MAP := rte_common_mvep_version.map
24 # external library dependencies
25 CFLAGS += -I$($RTE_SDK)/drivers/common/mvep
26 CFLAGS += -I$(LIBMUSDK_PATH)/include
27 CFLAGS += -DMVCONF_TYPES_PUBLIC
28 CFLAGS += -DMVCONF_DMA_PHYS_ADDR_T_PUBLIC
29 CFLAGS += $(WERROR_FLAGS)
31 LDLIBS += -L$(LIBMUSDK_PATH)/lib
33 LDLIBS += -lrte_eal -lrte_kvargs
35 # library source files
36 SRCS-y += mvep_common.c
38 include $(RTE_SDK)/mk/rte.lib.mk