Makefile 489 B

1234567891011121314151617181920212223242526
  1. LIBDIR := ../../../lib
  2. BPFOBJ := $(LIBDIR)/bpf/bpf.o
  3. CFLAGS += -Wall -O2 -lcap -I../../../include/uapi -I$(LIBDIR)
  4. test_objs = test_verifier test_tag test_maps test_lru_map test_lpm_map
  5. TEST_PROGS := $(test_objs) test_kmod.sh
  6. TEST_FILES := $(test_objs)
  7. .PHONY: all clean force
  8. all: $(test_objs)
  9. # force a rebuild of BPFOBJ when its dependencies are updated
  10. force:
  11. $(BPFOBJ): force
  12. $(MAKE) -C $(dir $(BPFOBJ))
  13. $(test_objs): $(BPFOBJ)
  14. include ../lib.mk
  15. clean:
  16. $(RM) $(test_objs)