From 69b12ee121fe3fe6a8ea0275baaa399744f331f5 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Tue, 5 Nov 2024 14:45:50 +0000 Subject: [PATCH] Add tests/Makefile targets for moved test helpers Everything that has been moved to tests/src needs a Makefile target in order to be built. Signed-off-by: David Horstmann --- tests/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index c6d8e2ccc3..4824632a5f 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -185,12 +185,17 @@ TEST_OBJS_DEPS += include/test/instrument_record_status.h endif TEST_OBJS_DEPS += src/test_certs.h src/test_keys.h -# Rule to compile common test C files in src folder -src/%.o : src/%.c $(TEST_OBJS_DEPS) +# Rule to compile common test C files in framework +../framework/tests/src/%.o : ../framework/tests/src/%.c $(TEST_OBJS_DEPS) echo " CC $<" $(CC) $(LOCAL_CFLAGS) $(CFLAGS) -o $@ -c $< -src/drivers/%.o : src/drivers/%.c +../framework/tests/src/drivers/%.o : ../framework/tests/src/drivers/%.c + echo " CC $<" + $(CC) $(LOCAL_CFLAGS) $(CFLAGS) -o $@ -c $< + +# Rule to compile common test C files in src folder +src/%.o : src/%.c $(TEST_OBJS_DEPS) echo " CC $<" $(CC) $(LOCAL_CFLAGS) $(CFLAGS) -o $@ -c $<