net/mlx5: add VLAN push/pop DR commands to glue
[dpdk.git] / drivers / net / octeontx2 / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2019 Marvell International Ltd.
3 #
4
5 include $(RTE_SDK)/mk/rte.vars.mk
6
7 #
8 # library name
9 #
10 LIB = librte_pmd_octeontx2.a
11
12 CFLAGS += $(WERROR_FLAGS)
13 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx2
14 CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx2
15 CFLAGS += -I$(RTE_SDK)/drivers/net/octeontx2
16 CFLAGS += -O3
17 ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
18 CFLAGS += -flax-vector-conversions
19 endif
20
21 ifneq ($(CONFIG_RTE_ARCH_64),y)
22 CFLAGS += -Wno-int-to-pointer-cast
23 CFLAGS += -Wno-pointer-to-int-cast
24 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
25 CFLAGS += -diag-disable 2259
26 endif
27 endif
28
29 EXPORT_MAP := rte_pmd_octeontx2_version.map
30
31 LIBABIVER := 1
32
33 #
34 # all source are stored in SRCS-y
35 #
36 SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX2_PMD) += \
37         otx2_rx.c       \
38         otx2_tx.c       \
39         otx2_tm.c       \
40         otx2_rss.c      \
41         otx2_mac.c      \
42         otx2_ptp.c      \
43         otx2_flow.c     \
44         otx2_link.c     \
45         otx2_vlan.c     \
46         otx2_stats.c    \
47         otx2_lookup.c   \
48         otx2_ethdev.c   \
49         otx2_flow_ctrl.c \
50         otx2_flow_parse.c \
51         otx2_flow_utils.c \
52         otx2_ethdev_irq.c \
53         otx2_ethdev_ops.c \
54         otx2_ethdev_debug.c \
55         otx2_ethdev_devargs.c
56
57 LDLIBS += -lrte_common_octeontx2 -lrte_mempool_octeontx2 -lrte_eal -lrte_net
58 LDLIBS += -lrte_ethdev -lrte_bus_pci -lrte_kvargs -lrte_mbuf  -lrte_mempool -lm
59
60 include $(RTE_SDK)/mk/rte.lib.mk