altos/test: Add baro-only flight test program
[fw/altos] / src / test / Makefile
index cd9cafc8bddc27a6abac2cb0da36c4d03a86ae24..853713fa20b584343d7ca04f3da1b65ca03bb32e 100644 (file)
@@ -1,6 +1,6 @@
 vpath % ..
 
-PROGS=ao_flight_test ao_gps_test ao_gps_test_skytraq ao_convert_test
+PROGS=ao_flight_test ao_flight_test_baro ao_gps_test ao_gps_test_skytraq ao_convert_test
 
 CFLAGS=-I.. -I.
 
@@ -11,9 +11,12 @@ clean:
 
 install:
 
-ao_flight_test: ao_flight_test.c ao_flight_test.c ao_host.h ao_flight.c altitude.h
+ao_flight_test: ao_flight_test.c ao_host.h ao_flight.c altitude.h
        cc -g -o $@ $<
 
+ao_flight_test_baro: ao_flight_test.c ao_host.h ao_flight.c altitude.h
+       cc -g -o $@ -DHAS_ACCEL=0 ../ao_flight_test.c
+
 ao_gps_test: ao_gps_test.c ao_gps_sirf.c ao_gps_print.c ao_host.h
        cc -g -o $@ $<