test mbuf attach
[dpdk.git] / lib / librte_node / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2020 Marvell International Ltd.
3 #
4
5 include $(RTE_SDK)/mk/rte.vars.mk
6
7 # library name
8 LIB = librte_node.a
9
10 CFLAGS += -O3
11 CFLAGS += $(WERROR_FLAGS)
12 # Strict-aliasing rules are violated by uint8_t[] to context size casts.
13 CFLAGS += -fno-strict-aliasing
14 LDLIBS += -lrte_eal -lrte_graph -lrte_mbuf -lrte_lpm -lrte_ethdev -lrte_mempool
15
16 EXPORT_MAP := rte_node_version.map
17
18 # all source are stored in SRCS-y
19 SRCS-$(CONFIG_RTE_LIBRTE_NODE) += null.c
20 SRCS-$(CONFIG_RTE_LIBRTE_NODE) += log.c
21 SRCS-$(CONFIG_RTE_LIBRTE_NODE) += ethdev_rx.c
22 SRCS-$(CONFIG_RTE_LIBRTE_NODE) += ethdev_tx.c
23 SRCS-$(CONFIG_RTE_LIBRTE_NODE) += ethdev_ctrl.c
24 SRCS-$(CONFIG_RTE_LIBRTE_NODE) += ip4_lookup.c
25 SRCS-$(CONFIG_RTE_LIBRTE_NODE) += ip4_rewrite.c
26 SRCS-$(CONFIG_RTE_LIBRTE_NODE) += pkt_cls.c
27 SRCS-$(CONFIG_RTE_LIBRTE_NODE) += pkt_drop.c
28
29 # install header files
30 SYMLINK-$(CONFIG_RTE_LIBRTE_NODE)-include += rte_node_ip4_api.h
31 SYMLINK-$(CONFIG_RTE_LIBRTE_NODE)-include += rte_node_eth_api.h
32
33 include $(RTE_SDK)/mk/rte.lib.mk