From 45c83caf59e177abd45477c7e49ae8d5f20aaf72 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 a1f9b900ee..bfeb745041 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -174,12 +174,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 $<