2018-03-10 22:48:30 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2014-2018 Chelsio Communications.
|
|
|
|
# All rights reserved.
|
2015-06-29 23:28:35 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
#
|
|
|
|
# library name
|
|
|
|
#
|
|
|
|
LIB = librte_pmd_cxgbe.a
|
|
|
|
|
|
|
|
CFLAGS += -O3
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
|
|
|
|
|
|
|
EXPORT_MAP := rte_pmd_cxgbe_version.map
|
|
|
|
|
|
|
|
LIBABIVER := 1
|
|
|
|
|
|
|
|
#
|
2015-06-30 22:14:25 +00:00
|
|
|
# CFLAGS for gcc/clang
|
2015-06-29 23:28:35 +00:00
|
|
|
#
|
2016-05-26 11:20:14 +00:00
|
|
|
ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
|
|
|
|
ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1)
|
2015-06-29 23:28:35 +00:00
|
|
|
CFLAGS += -Wno-deprecated
|
|
|
|
endif
|
2016-05-26 11:20:14 +00:00
|
|
|
endif
|
2015-06-29 23:28:35 +00:00
|
|
|
|
2017-10-12 16:04:21 +00:00
|
|
|
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
|
|
|
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
|
2017-10-26 10:06:08 +00:00
|
|
|
LDLIBS += -lrte_bus_pci
|
2015-06-29 23:28:35 +00:00
|
|
|
|
2015-07-01 15:11:37 +00:00
|
|
|
#
|
|
|
|
# Add extra flags for base driver files (also known as shared code)
|
|
|
|
# to disable warnings in them
|
|
|
|
#
|
2017-10-12 13:15:52 +00:00
|
|
|
BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
|
2015-07-01 15:11:37 +00:00
|
|
|
$(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
|
|
|
|
|
|
|
|
VPATH += $(SRCDIR)/base
|
|
|
|
|
|
|
|
|
2015-06-29 23:28:35 +00:00
|
|
|
#
|
|
|
|
# all source are stored in SRCS-y
|
|
|
|
#
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += cxgbe_ethdev.c
|
2018-03-10 22:48:19 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += cxgbevf_ethdev.c
|
2015-06-29 23:28:35 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += cxgbe_main.c
|
2018-03-10 22:48:22 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += cxgbevf_main.c
|
2015-06-29 23:28:35 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += sge.c
|
2018-06-08 17:58:12 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += cxgbe_filter.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += cxgbe_flow.c
|
2015-07-01 15:11:37 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += t4_hw.c
|
2018-06-29 18:12:18 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += clip_tbl.c
|
2018-08-27 12:52:31 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += mps_tcam.c
|
2018-08-27 12:52:29 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += l2t.c
|
2018-03-10 22:48:20 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += t4vf_hw.c
|
2015-06-29 23:28:35 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|