From f442d8f9b8eef59a9107f5234a7ef6f579cc7ab8 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 13 Feb 2021 22:38:33 +1300 Subject: Move test runner to build/native --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1213f92..3ff7856 100644 --- a/Makefile +++ b/Makefile @@ -77,9 +77,11 @@ SIM_OBJ = \ ALL_OBJ = $(TEST_OBJ) $(REAL_OBJ) $(SIM_OBJ) ALL_SOURCE = $(ALL_OBJ:.o=.c) -test: $(TEST_OBJ) +test: build/native/test_runner + ./$^ + +build/native/test_runner: $(TEST_OBJ) $(CC) $(LDFLAGS) -Wl,-T,linker_list.lds -o $@ $^ - ./$@ # ELF for real hardware. No mock/sim hardware included (except barometer, # haven't written that code yet) -- cgit v1.1