afe570817c5472d53df5c2a6ee1fccab377a9b23
[dpdk.git] / drivers / common / 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_common_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/bus/pci
16
17 ifneq ($(CONFIG_RTE_ARCH_64),y)
18 CFLAGS += -Wno-int-to-pointer-cast
19 CFLAGS += -Wno-pointer-to-int-cast
20 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
21 CFLAGS += -diag-disable 2259
22 endif
23 endif
24
25 EXPORT_MAP := rte_common_octeontx2_version.map
26
27 LIBABIVER := 1
28
29 #
30 # all source are stored in SRCS-y
31 #
32 SRCS-y += otx2_dev.c
33 SRCS-y += otx2_irq.c
34 SRCS-y += otx2_mbox.c
35 SRCS-y += otx2_common.c
36
37 LDLIBS += -lrte_eal
38 LDLIBS += -lrte_ethdev
39
40 include $(RTE_SDK)/mk/rte.lib.mk