replace alignment attributes
[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/cpt
14 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx2
15 CFLAGS += -I$(RTE_SDK)/drivers/crypto/octeontx2
16 CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx2
17 CFLAGS += -I$(RTE_SDK)/drivers/net/octeontx2
18 CFLAGS += -O3
19 ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
20 CFLAGS += -flax-vector-conversions
21 endif
22
23 ifneq ($(CONFIG_RTE_ARCH_64),y)
24 CFLAGS += -Wno-int-to-pointer-cast
25 CFLAGS += -Wno-pointer-to-int-cast
26 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
27 CFLAGS += -diag-disable 2259
28 endif
29 endif
30
31 EXPORT_MAP := rte_pmd_octeontx2_version.map
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_mcast.c    \
48         otx2_lookup.c   \
49         otx2_ethdev.c   \
50         otx2_flow_ctrl.c \
51         otx2_flow_parse.c \
52         otx2_flow_utils.c \
53         otx2_ethdev_irq.c \
54         otx2_ethdev_ops.c \
55         otx2_ethdev_sec.c \
56         otx2_ethdev_debug.c \
57         otx2_ethdev_devargs.c
58
59 LDLIBS += -lrte_common_octeontx2 -lrte_mempool_octeontx2 -lrte_eal -lrte_net
60 LDLIBS += -lrte_ethdev -lrte_bus_pci -lrte_kvargs -lrte_mbuf  -lrte_mempool -lm
61 LDLIBS += -lrte_cryptodev -lrte_eventdev -lrte_security
62
63 include $(RTE_SDK)/mk/rte.lib.mk