aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-02-13 22:38:33 +1300
committerDavid Phillips <david@yeah.nah.nz>2021-02-13 22:38:33 +1300
commitf442d8f9b8eef59a9107f5234a7ef6f579cc7ab8 (patch)
treee713c153ef3074fb96e1185368ce635401889d17
parent801bbca9298a2059f60f34140c22a219435cd0ef (diff)
downloadaltimeter-f442d8f9b8eef59a9107f5234a7ef6f579cc7ab8.tar.xz
Move test runner to build/native
-rw-r--r--.gitignore4
-rw-r--r--Makefile6
2 files changed, 5 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index 4b523e3..378eac2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1 @@
-*.hex
-*.o
-*.elf
+build
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)