From: Toke Høiland-Jørgensen Date: Thu, 18 Sep 2025 11:16:42 +0000 (+0200) Subject: libxdp: Make sure to build the test files as part of the regular compile X-Git-Url: https://git.feebdaed.xyz/?a=commitdiff_plain;h=e41469a969178a12950503abe36e33625052489f;p=0xmirror%2Fxdp-tools.git libxdp: Make sure to build the test files as part of the regular compile Add a dependency to build the test helpers as part of the normal compile; otherwise they won't be built until the 'make test' target is run. Signed-off-by: Toke Høiland-Jørgensen --- diff --git a/lib/libxdp/Makefile b/lib/libxdp/Makefile index 4716fb0..0c02f06 100644 --- a/lib/libxdp/Makefile +++ b/lib/libxdp/Makefile @@ -39,7 +39,7 @@ VERSION_SCRIPT := libxdp.map CHECK_RULES := check_abi endif -all: $(STATIC_LIBS) $(SHARED_LIBS) $(XDP_OBJS) $(PC_FILE) check man +all: $(STATIC_LIBS) $(SHARED_LIBS) $(XDP_OBJS) $(PC_FILE) check man build_tests clean: $(Q)rm -f $(STATIC_LIBS) $(STATIC_OBJS) $(SHARED_LIBS) $(SHARED_OBJS) $(XDP_OBJS) $(PC_FILE) $(MAN_OBJ) $(TEMPLATED_SOURCES) *.ll @@ -153,6 +153,10 @@ $(MAN_PAGE): $(MAN_OBJ) $(LIBMK) endif +.PHONY: build_tests +build_tests: $(SHARED_LIBS) $(STATIC_LIBS) + $(Q)$(MAKE) -C $(TEST_DIR) + .PHONY: test test: all $(Q)$(MAKE) -C $(TEST_DIR) run