summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-02-20 20:22:16 -0800
committerKeith Packard <keithp@keithp.com>2010-02-20 20:30:27 -0800
commit84c93bb2fc4558a5e4654794ba90e730a84eaf67 (patch)
tree4d279672734ec5c3e50976917ccbf33a306a740d /src/test
parentfd0a42e0e96dcb8ecc9e999f70bcf70692692af9 (diff)
Change altos build process to support per-product compile-time changes
This creates per-product subdirectories and recompiles everything for each product, allowing per-product compile-time changes for things like peripheral pin assignments and attached serial devices. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/Makefile b/src/test/Makefile
new file mode 100644
index 00000000..f6e9b9f5
--- /dev/null
+++ b/src/test/Makefile
@@ -0,0 +1,24 @@
+vpath % ..
+
+PROGS=ao_flight_test ao_gps_test ao_gps_test_skytraq ao_convert_test
+
+CFLAGS=-I.. -I.
+
+all: $(PROGS)
+
+clean:
+ rm -f $(PROGS)
+
+install:
+
+ao_flight_test: ao_flight_test.c ao_flight_test.c ao_host.h
+ cc -g -o $@ $<
+
+ao_gps_test: ao_gps_test.c ao_gps_sirf.c ao_gps_print.c ao_host.h
+ cc -g -o $@ $<
+
+ao_gps_test_skytraq: ao_gps_test_skytraq.c ao_gps_skytraq.c ao_gps_print.c ao_host.h
+ cc -g -o $@ $<
+
+ao_convert_test: ao_convert_test.c ao_convert.c altitude.h
+ cc -g -o $@ $<