333850e4e9c15963678fe9c572d98e97ee1aa2ce
[fw/altos] / src / test / Makefile
1 vpath % ..:../core:../drivers
2
3 PROGS=ao_flight_test ao_flight_test_baro ao_flight_test_accel ao_gps_test ao_gps_test_skytraq ao_convert_test
4
5 CFLAGS=-I.. -I. -I../core -I../drivers -O0 -g
6
7 all: $(PROGS)
8
9 clean:
10         rm -f $(PROGS)
11
12 install:
13
14 ao_flight_test: ao_flight_test.c ao_host.h ao_flight.c ao_sample.c ao_kalman.c altitude.h ao_kalman.h
15         cc $(CFLAGS) -o $@ $<
16
17 ao_flight_test_baro: ao_flight_test.c ao_host.h ao_flight.c  ao_sample.c ao_kalman.c altitude.h ao_kalman.h
18         cc $(CFLAGS) -o $@ -DHAS_ACCEL=0 ao_flight_test.c
19
20 ao_flight_test_accel: ao_flight_test.c ao_host.h ao_flight.c  ao_sample.c ao_kalman.c altitude.h ao_kalman.h
21         cc $(CFLAGS) -o $@ -DFORCE_ACCEL=1 ao_flight_test.c
22
23 ao_gps_test: ao_gps_test.c ao_gps_sirf.c ao_gps_print.c ao_host.h
24         cc $(CFLAGS) -o $@ $<
25
26 ao_gps_test_skytraq: ao_gps_test_skytraq.c ao_gps_skytraq.c ao_gps_print.c ao_host.h
27         cc $(CFLAGS) -o $@ $<
28
29 ao_convert_test: ao_convert_test.c ao_convert.c altitude.h
30         cc $(CFLAGS) -o $@ $<