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