f-stack/dpdk/drivers/net/ena/Makefile

33 lines
833 B
Makefile
Raw Normal View History

2020-06-18 16:55:50 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2015-2019 Amazon.com, Inc. or its affiliates.
2017-04-21 10:43:26 +00:00
# All rights reserved.
include $(RTE_SDK)/mk/rte.vars.mk
#
# library name
#
LIB = librte_pmd_ena.a
CFLAGS += $(WERROR_FLAGS) -O2
INCLUDES :=-I$(SRCDIR) -I$(SRCDIR)/base/ena_defs -I$(SRCDIR)/base
EXPORT_MAP := rte_pmd_ena_version.map
2019-06-25 11:12:58 +00:00
# rte_fbarray is not yet part of stable API
CFLAGS += -DALLOW_EXPERIMENTAL_API
2017-04-21 10:43:26 +00:00
VPATH += $(SRCDIR)/base
#
# all source are stored in SRCS-y
#
SRCS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += ena_ethdev.c
SRCS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += ena_com.c
SRCS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += ena_eth_com.c
CFLAGS += $(INCLUDES)
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
LDLIBS += -lrte_bus_pci
2019-06-25 11:12:58 +00:00
LDLIBS += -lrte_timer
2017-04-21 10:43:26 +00:00
include $(RTE_SDK)/mk/rte.lib.mk