net/enic: use dynamic log types
[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 LIBABIVER := 1
17
18 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
19 #
20 # CFLAGS for icc
21 #
22 CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259
23
24 else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
25
26 #
27 ## CFLAGS for clang
28 #
29 CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
30 CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
31 CFLAGS_BASE_DRIVER += -Wno-unused-variable
32 CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers
33
34 else
35 #
36 # CFLAGS for gcc
37 #
38 CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
39 CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
40 CFLAGS_BASE_DRIVER += -Wno-unused-variable
41 CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers
42
43 ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1)
44 CFLAGS     += -Wno-deprecated
45 CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable
46 ifeq ($(shell test $(GCC_VERSION) -ge 70 && echo 1), 1)
47 CFLAGS_BASE_DRIVER += -Wno-implicit-fallthrough
48 endif
49 endif
50 endif
51 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
52 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_hash
53 LDLIBS += -lrte_bus_pci
54
55 #
56 # Add extra flags for base driver source files to disable warnings in them
57 #
58 BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
59 $(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
60
61 VPATH += $(SRCDIR)/base
62
63 #
64 # all source are stored in SRCS-y
65 # base driver is based on the package of cid-fm10k.2017.01.24.tar.gz
66 #
67 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_ethdev.c
68 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_rxtx.c
69
70 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_pf.c
71 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_tlv.c
72 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_common.c
73 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_mbx.c
74 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_vf.c
75 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_api.c
76 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_INC_VECTOR) += fm10k_rxtx_vec.c
77
78 include $(RTE_SDK)/mk/rte.lib.mk