8a3ec93a6043afb3e67bdb06cfd6fde44bbc394c
[dpdk.git] / drivers / net / mvpp2 / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Marvell International Ltd.
3 # Copyright(c) 2017 Semihalf.
4 # All rights reserved.
5
6 include $(RTE_SDK)/mk/rte.vars.mk
7
8 ifneq ($(MAKECMDGOALS),clean)
9 ifneq ($(MAKECMDGOALS),config)
10 ifeq ($(LIBMUSDK_PATH),)
11 $(error "Please define LIBMUSDK_PATH environment variable")
12 endif
13 endif
14 endif
15
16 # library name
17 LIB = librte_pmd_mvpp2.a
18
19 # versioning export map
20 EXPORT_MAP := rte_pmd_mvpp2_version.map
21
22 # external library dependencies
23 CFLAGS += -I$(RTE_SDK)/drivers/common/mvep
24 CFLAGS += -I$(LIBMUSDK_PATH)/include
25 CFLAGS += -DMVCONF_TYPES_PUBLIC
26 CFLAGS += -DMVCONF_DMA_PHYS_ADDR_T_PUBLIC
27 CFLAGS += $(WERROR_FLAGS)
28 CFLAGS += -O3
29 LDLIBS += -L$(LIBMUSDK_PATH)/lib
30 LDLIBS += -lmusdk
31 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
32 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_cfgfile
33 LDLIBS += -lrte_bus_vdev -lrte_common_mvep
34
35 # library source files
36 SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_ethdev.c
37 SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_qos.c
38 SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_flow.c
39 SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_mtr.c
40 SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_tm.c
41
42 include $(RTE_SDK)/mk/rte.lib.mk