2017-02-12 06:20:23 +08:00
|
|
|
LIBDIR := ../../../lib
|
|
|
|
BPFOBJ := $(LIBDIR)/bpf/bpf.o
|
|
|
|
|
|
|
|
CFLAGS += -Wall -O2 -lcap -I../../../include/uapi -I$(LIBDIR)
|
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-02-12 06:20:23 +08:00
|
|
|
.PHONY: all clean force
|
|
|
|
|
|
|
|
# force a rebuild of BPFOBJ when its dependencies are updated
|
|
|
|
force:
|
|
|
|
|
|
|
|
$(BPFOBJ): force
|
|
|
|
$(MAKE) -C $(dir $(BPFOBJ))
|
|
|
|
|
|
|
|
$(test_objs): $(BPFOBJ)
|
2017-02-10 07:21:38 +08:00
|
|
|
|
2016-10-17 20:28:36 +08:00
|
|
|
include ../lib.mk
|