mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
20 lines
500 B
Makefile
20 lines
500 B
Makefile
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
|
|
USER_TARGETS := af_xdp_user
|
|
BPF_TARGETS := af_xdp_kern
|
|
|
|
# Define C-code objects USER_TARGETS needs
|
|
USER_TARGETS_OBJS := common_params.o common_user_bpf_xdp.o
|
|
USER_TARGETS_OBJS += hashmap.o lib_xsk_extend.o
|
|
USER_TARGETS_OBJS += ethtool_utils.o
|
|
|
|
# The USER_TARGETS_OBJS have a dependency of this header file
|
|
USER_TARGETS_OBJS_DEPS += common_defines.h
|
|
|
|
LDLIBS += -lpthread
|
|
LDLIBS += -lrt
|
|
|
|
LIB_DIR = ../lib
|
|
|
|
include $(LIB_DIR)/common.mk
|