Makefile 444 字节
Newer Older
1
LIBDIR := ../../../lib
2
BPFDIR := $(LIBDIR)/bpf
3

4 5
CFLAGS += -Wall -O2 -I../../../include/uapi -I$(LIBDIR)
LDLIBS += -lcap
6

7
TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map
8

9
TEST_PROGS := test_kmod.sh
10

11 12 13 14 15
include ../lib.mk

BPFOBJ := $(OUTPUT)/bpf.o

$(TEST_GEN_PROGS): $(BPFOBJ)
16

17
.PHONY: force
18 19 20 21 22

# force a rebuild of BPFOBJ when its dependencies are updated
force:

$(BPFOBJ): force
23
	$(MAKE) -C $(BPFDIR) OUTPUT=$(OUTPUT)/