1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2015 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
9 LIB = librte_pmd_e1000.a
12 CFLAGS += $(WERROR_FLAGS)
13 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
14 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
15 LDLIBS += -lrte_bus_pci
17 EXPORT_MAP := rte_pmd_e1000_version.map
21 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
25 CFLAGS_BASE_DRIVER = -diag-disable 177 -diag-disable 181
26 CFLAGS_BASE_DRIVER += -diag-disable 869 -diag-disable 2259
29 # CFLAGS for gcc/clang
31 CFLAGS_BASE_DRIVER = -Wno-uninitialized -Wno-unused-parameter
32 CFLAGS_BASE_DRIVER += -Wno-unused-variable
33 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
34 ifeq ($(shell test $(GCC_VERSION) -ge 60 && echo 1), 1)
35 CFLAGS_BASE_DRIVER += -Wno-misleading-indentation
36 ifeq ($(shell test $(GCC_VERSION) -ge 70 && echo 1), 1)
37 CFLAGS_BASE_DRIVER += -Wno-implicit-fallthrough
44 # Add extra flags for base driver files (also known as shared code)
45 # to disable warnings in them
47 BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
48 $(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
50 VPATH += $(SRCDIR)/base
53 # all source are stored in SRCS-y
55 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_80003es2lan.c
56 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_82540.c
57 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_82541.c
58 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_82542.c
59 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_82543.c
60 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_82571.c
61 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_82575.c
62 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_i210.c
63 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_api.c
64 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_ich8lan.c
65 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_logs.c
66 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_mac.c
67 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_manage.c
68 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_mbx.c
69 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_nvm.c
70 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_osdep.c
71 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_phy.c
72 SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_vf.c
73 SRCS-$(CONFIG_RTE_LIBRTE_IGB_PMD) += igb_ethdev.c
74 SRCS-$(CONFIG_RTE_LIBRTE_IGB_PMD) += igb_rxtx.c
75 SRCS-$(CONFIG_RTE_LIBRTE_IGB_PMD) += igb_pf.c
76 SRCS-$(CONFIG_RTE_LIBRTE_IGB_PMD) += igb_flow.c
77 SRCS-$(CONFIG_RTE_LIBRTE_EM_PMD) += em_ethdev.c
78 SRCS-$(CONFIG_RTE_LIBRTE_EM_PMD) += em_rxtx.c
80 include $(RTE_SDK)/mk/rte.lib.mk