X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftest%2FMakefile;h=333850e4e9c15963678fe9c572d98e97ee1aa2ce;hb=4568bc796a6c362ebf7f72ee9a5fa4a9a3c4ba6a;hp=cd9cafc8bddc27a6abac2cb0da36c4d03a86ae24;hpb=d3bc27fabb6159ce58b14d0f7929b0f46f67c378;p=fw%2Faltos diff --git a/src/test/Makefile b/src/test/Makefile index cd9cafc8..333850e4 100644 --- a/src/test/Makefile +++ b/src/test/Makefile @@ -1,8 +1,8 @@ -vpath % .. +vpath % ..:../core:../drivers -PROGS=ao_flight_test ao_gps_test ao_gps_test_skytraq ao_convert_test +PROGS=ao_flight_test ao_flight_test_baro ao_flight_test_accel ao_gps_test ao_gps_test_skytraq ao_convert_test -CFLAGS=-I.. -I. +CFLAGS=-I.. -I. -I../core -I../drivers -O0 -g all: $(PROGS) @@ -11,14 +11,20 @@ clean: install: -ao_flight_test: ao_flight_test.c ao_flight_test.c ao_host.h ao_flight.c altitude.h - cc -g -o $@ $< +ao_flight_test: ao_flight_test.c ao_host.h ao_flight.c ao_sample.c ao_kalman.c altitude.h ao_kalman.h + cc $(CFLAGS) -o $@ $< + +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 + cc $(CFLAGS) -o $@ -DHAS_ACCEL=0 ao_flight_test.c + +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 + cc $(CFLAGS) -o $@ -DFORCE_ACCEL=1 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 $@ $< + cc $(CFLAGS) -o $@ $< ao_gps_test_skytraq: ao_gps_test_skytraq.c ao_gps_skytraq.c ao_gps_print.c ao_host.h - cc -g -o $@ $< + cc $(CFLAGS) -o $@ $< ao_convert_test: ao_convert_test.c ao_convert.c altitude.h - cc -g -o $@ $< + cc $(CFLAGS) -o $@ $<