net/mlx5: fix premature disabling of interrupt
[dpdk.git] / drivers / net / fm10k / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2013-2015 Intel Corporation
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 #
7 # library name
8 #
9 LIB = librte_pmd_fm10k.a
10
11 CFLAGS += -O3
12 CFLAGS += $(WERROR_FLAGS)
13
14 EXPORT_MAP := rte_pmd_fm10k_version.map
15
16 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
17 #
18 # CFLAGS for icc
19 #
20 CFLAGS_BASE_DRIVER  = -diag-disable 174 -diag-disable 593 -diag-disable 869
21 CFLAGS_BASE_DRIVER += -diag-disable 981 -diag-disable 2259
22
23 else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
24
25 #
26 ## CFLAGS for clang
27 #
28 CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
29 CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
30 CFLAGS_BASE_DRIVER += -Wno-unused-variable
31
32 else
33 #
34 # CFLAGS for gcc
35 #
36 CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
37 CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
38 CFLAGS_BASE_DRIVER += -Wno-unused-variable
39
40 ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1)
41 CFLAGS     += -Wno-deprecated
42 CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable
43 ifeq ($(shell test $(GCC_VERSION) -ge 70 && echo 1), 1)
44 CFLAGS_BASE_DRIVER += -Wno-implicit-fallthrough
45 endif
46 endif
47 endif
48 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
49 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_hash
50 LDLIBS += -lrte_bus_pci
51
52 #
53 # Add extra flags for base driver source files to disable warnings in them
54 #
55 BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
56 $(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
57
58 VPATH += $(SRCDIR)/base
59
60 #
61 # all source are stored in SRCS-y
62 # base driver is based on the package of cid-fm10k.2017.01.24.tar.gz
63 #
64 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_ethdev.c
65 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_rxtx.c
66
67 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_pf.c
68 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_tlv.c
69 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_common.c
70 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_mbx.c
71 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_vf.c
72 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_api.c
73 ifeq ($(CONFIG_RTE_ARCH_X86), y)
74 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_INC_VECTOR) += fm10k_rxtx_vec.c
75 endif
76
77 include $(RTE_SDK)/mk/rte.lib.mk