| LIBDIR := ../../../lib |
| BPFDIR := $(LIBDIR)/bpf |
| APIDIR := ../../../include/uapi |
| GENDIR := ../../../../include/generated |
| GENHDR := $(GENDIR)/autoconf.h |
| |
| ifneq ($(wildcard $(GENHDR)),) |
| GENFLAGS := -DHAVE_GENHDR |
| endif |
| |
| CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(GENDIR) $(GENFLAGS) |
| LDLIBS += -lcap |
| |
| TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map |
| |
| TEST_PROGS := test_kmod.sh |
| |
| include ../lib.mk |
| |
| BPFOBJ := $(OUTPUT)/bpf.o |
| |
| $(TEST_GEN_PROGS): $(BPFOBJ) |
| |
| .PHONY: force |
| |
| # force a rebuild of BPFOBJ when its dependencies are updated |
| force: |
| |
| $(BPFOBJ): force |
| $(MAKE) -C $(BPFDIR) OUTPUT=$(OUTPUT)/ |