5b8e7f8da56f395ef4c98ac4d673e251756d3a79
[dpdk.git] / drivers / net / dpaa / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2017 NXP
3 #
4
5 include $(RTE_SDK)/mk/rte.vars.mk
6 RTE_SDK_DPAA=$(RTE_SDK)/drivers/net/dpaa
7
8 #
9 # library name
10 #
11 LIB = librte_pmd_dpaa.a
12
13 CFLAGS := -I$(SRCDIR) $(CFLAGS)
14 CFLAGS += -O3 $(WERROR_FLAGS)
15 CFLAGS += -Wno-pointer-arith
16 CFLAGS += -I$(RTE_SDK_DPAA)/
17 CFLAGS += -I$(RTE_SDK_DPAA)/include
18 CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa
19 CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa/include/
20 CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa/base/qbman
21 CFLAGS += -I$(RTE_SDK)/drivers/mempool/dpaa
22 CFLAGS += -I$(RTE_SDK)/drivers/event/dpaa
23 CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common/include
24 CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linux/eal/include
25
26 EXPORT_MAP := rte_pmd_dpaa_version.map
27
28 LIBABIVER := 1
29
30 # depends on dpaa bus which uses experimental API
31 CFLAGS += -DALLOW_EXPERIMENTAL_API
32
33 # Interfaces with DPDK
34 SRCS-$(CONFIG_RTE_LIBRTE_DPAA_PMD) += dpaa_ethdev.c
35 SRCS-$(CONFIG_RTE_LIBRTE_DPAA_PMD) += dpaa_rxtx.c
36
37 LDLIBS += -lrte_bus_dpaa
38 LDLIBS += -lrte_mempool_dpaa
39 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
40 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
41 LDLIBS += -lrte_common_dpaax
42
43 # install this header file
44 SYMLINK-$(CONFIG_RTE_LIBRTE_DPAA_PMD)-include := rte_pmd_dpaa.h
45
46 include $(RTE_SDK)/mk/rte.lib.mk