]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | # SPDX-License-Identifier: BSD-3-Clause |
2 | # Copyright(c) 2019 Intel Corporation | |
3 | ||
4 | include $(RTE_SDK)/mk/rte.vars.mk | |
5 | ||
6 | # | |
7 | # library name | |
8 | # | |
9 | LIB = librte_pmd_af_xdp.a | |
10 | ||
11 | EXPORT_MAP := rte_pmd_af_xdp_version.map | |
12 | ||
9f95a23c TL |
13 | CFLAGS += -O3 |
14 | ||
15 | CFLAGS += $(WERROR_FLAGS) | |
16 | LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring | |
17 | LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs | |
18 | LDLIBS += -lrte_bus_vdev | |
19 | LDLIBS += $(shell command -v pkg-config > /dev/null 2>&1 && pkg-config --libs libbpf || echo "-lbpf") | |
20 | ||
21 | # | |
22 | # all source are stored in SRCS-y | |
23 | # | |
24 | SRCS-$(CONFIG_RTE_LIBRTE_PMD_AF_XDP) += rte_eth_af_xdp.c | |
25 | ||
26 | include $(RTE_SDK)/mk/rte.lib.mk |