2017-02-12 06:20:23 +08:00
|
|
|
LIBDIR := ../../../lib
|
2017-03-20 14:03:14 +08:00
|
|
|
BPFDIR := $(LIBDIR)/bpf
|
2017-02-12 06:20:23 +08:00
|
|
|
|
2017-03-20 14:03:14 +08:00
|
|
|
CFLAGS += -Wall -O2 -I../../../include/uapi -I$(LIBDIR)
|
|
|
|
LDLIBS += -lcap
|
2016-10-17 20:28:36 +08:00
|
|
|
|
2017-02-26 07:32:53 +08:00
|
|
|
TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map
|
2016-10-17 20:28:36 +08:00
|
|
|
|
2016-11-29 19:55:47 +08:00
|
|
|
TEST_PROGS := test_kmod.sh
|
2016-10-17 20:28:36 +08:00
|
|
|
|
2017-03-20 14:03:14 +08:00
|
|
|
include ../lib.mk
|
|
|
|
|
|
|
|
BPFOBJ := $(OUTPUT)/bpf.o
|
|
|
|
|
|
|
|
$(TEST_GEN_PROGS): $(BPFOBJ)
|
2017-03-11 14:05:55 +08:00
|
|
|
|
2017-03-20 14:03:14 +08:00
|
|
|
.PHONY: force
|
2017-02-12 06:20:23 +08:00
|
|
|
|
|
|
|
# force a rebuild of BPFOBJ when its dependencies are updated
|
|
|
|
force:
|
|
|
|
|
|
|
|
$(BPFOBJ): force
|
2017-03-20 14:03:14 +08:00
|
|
|
$(MAKE) -C $(BPFDIR) OUTPUT=$(OUTPUT)/
|