net/ionic: register and initialize adapter
[dpdk.git] / drivers / net / ionic / Makefile
1 # SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
2 # Copyright(c) 2018-2019 Pensando Systems, Inc. All rights reserved.
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 #
7 # library name
8 #
9 LIB = librte_pmd_ionic.a
10
11 CFLAGS += -O3
12 CFLAGS += $(WERROR_FLAGS)
13
14 EXPORT_MAP := rte_pmd_ionic_version.map
15
16 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
17 LDLIBS += -lrte_ethdev -lrte_net
18 LDLIBS += -lrte_bus_pci
19
20 #
21 # all source are stored in SRCS-y
22 #
23 SRCS-$(CONFIG_RTE_LIBRTE_IONIC_PMD) += ionic_mac_api.c
24 SRCS-$(CONFIG_RTE_LIBRTE_IONIC_PMD) += ionic_dev.c
25 SRCS-$(CONFIG_RTE_LIBRTE_IONIC_PMD) += ionic_ethdev.c
26 SRCS-$(CONFIG_RTE_LIBRTE_IONIC_PMD) += ionic_main.c
27
28 include $(RTE_SDK)/mk/rte.lib.mk