fc12e6a53208804b3a2228b2ebc7ecdb93fbaa20
[dpdk.git] / drivers / net / atlantic / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Aquantia Corporation
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 #
7 # library name
8 #
9 LIB = librte_pmd_atlantic.a
10
11 CFLAGS += -O3
12 CFLAGS += $(WERROR_FLAGS)
13 CFLAGS += -DALLOW_EXPERIMENTAL_API
14
15 EXPORT_MAP := rte_pmd_atlantic_version.map
16
17 LIBABIVER := 1
18
19 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
20 LDLIBS += -lrte_ethdev -lrte_net
21 LDLIBS += -lrte_bus_pci
22
23 VPATH += $(SRCDIR)/hw_atl
24
25 #
26 # all source are stored in SRCS-y
27 #
28 SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += atl_rxtx.c
29 SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += atl_ethdev.c
30 SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += atl_hw_regs.c
31 SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += hw_atl_utils.c
32 SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += hw_atl_llh.c
33 SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += hw_atl_utils_fw2x.c
34 SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += hw_atl_b0.c
35 SRCS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += rte_pmd_atlantic.c
36
37 include $(RTE_SDK)/mk/rte.lib.mk