From 2e841655cfa872d50b1e67f7d67f2fda5a725969 Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Thu, 17 Oct 2024 14:20:42 -0700 Subject: [PATCH] Add a tst_binaries target to the parser to build tst binaries This allows building the tst_* binaries in parallel independently of running the parser test suite Signed-off-by: Ryan Lee --- parser/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parser/Makefile b/parser/Makefile index 1037f4c7b..e61165d10 100644 --- a/parser/Makefile +++ b/parser/Makefile @@ -365,6 +365,9 @@ cap_names.h: generated_cap_names.h base_cap_names.h exit 1; \ fi +.PHONY: tst_binaries +tst_binaries: $(TESTS) + tst_lib: lib.c parser.h $(filter-out lib.o, ${TEST_OBJECTS}) $(CXX) $(TEST_CFLAGS) -o $@ $< $(filter-out $(<:.c=.o), ${TEST_OBJECTS}) $(TEST_LDFLAGS) $(TEST_LDLIBS) tst_%: parser_%.c parser.h $(filter-out parser_%.o, ${TEST_OBJECTS})