mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
Move parsing_helpers.h into new include directory
Adjust makefile construct to use the new include direcory. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
@@ -36,10 +36,10 @@ endif
|
|||||||
# BPF-prog kern and userspace shares struct via header file:
|
# BPF-prog kern and userspace shares struct via header file:
|
||||||
KERN_USER_H ?= $(wildcard common_kern_user.h)
|
KERN_USER_H ?= $(wildcard common_kern_user.h)
|
||||||
|
|
||||||
CFLAGS += -I$(HEADER_DIR) -I$(LIB_DIR)/util $(EXTRA_CFLAGS)
|
CFLAGS += -I$(INCLUDE_DIR) -I$(HEADER_DIR) -I$(LIB_DIR)/util $(EXTRA_CFLAGS)
|
||||||
BPF_CFLAGS += -I$(HEADER_DIR) $(EXTRA_CFLAGS)
|
BPF_CFLAGS += -I$(INCLUDE_DIR) -I$(HEADER_DIR) $(EXTRA_CFLAGS)
|
||||||
|
|
||||||
BPF_HEADERS := $(wildcard $(HEADER_DIR)/bpf/*.h) $(wildcard $(HEADER_DIR)/xdp/*.h)
|
BPF_HEADERS := $(wildcard $(HEADER_DIR)/bpf/*.h) $(wildcard $(INCLUDE_DIR)/xdp/*.h)
|
||||||
|
|
||||||
all: $(USER_TARGETS) $(BPF_OBJ) $(EXTRA_TARGETS)
|
all: $(USER_TARGETS) $(BPF_OBJ) $(EXTRA_TARGETS)
|
||||||
|
|
||||||
|
@@ -13,7 +13,10 @@ BPF_DIR_MNT ?=/sys/fs/bpf
|
|||||||
BPF_OBJECT_DIR ?=$(LIBDIR)/bpf
|
BPF_OBJECT_DIR ?=$(LIBDIR)/bpf
|
||||||
MAX_DISPATCHER_ACTIONS ?=10
|
MAX_DISPATCHER_ACTIONS ?=10
|
||||||
|
|
||||||
|
# headers/ dir contains include header files needed to compile BPF programs
|
||||||
HEADER_DIR = $(LIB_DIR)/../headers
|
HEADER_DIR = $(LIB_DIR)/../headers
|
||||||
|
# include/ dir contains the projects own include header files
|
||||||
|
INCLUDE_DIR = $(LIB_DIR)/../include
|
||||||
TEST_DIR = $(LIB_DIR)/testing
|
TEST_DIR = $(LIB_DIR)/testing
|
||||||
LIBBPF_DIR := $(LIB_DIR)/libbpf
|
LIBBPF_DIR := $(LIB_DIR)/libbpf
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user