mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
This USER_TARGETS_OBJS_DEPS allows makefiles to define dependencies for USER_TARGETS_OBJS targets. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
17 lines
395 B
Makefile
17 lines
395 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
|
|
|
|
# The USER_TARGETS_OBJS have a dependency of this header file
|
|
USER_TARGETS_OBJS_DEPS += common_defines.h
|
|
|
|
LDLIBS += -pthread
|
|
|
|
LIB_DIR = ../lib
|
|
|
|
include $(LIB_DIR)/common.mk
|