Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos] / src / Makefile
index 29ee4b128fb2c53c4a2b5c95823571146c0e9662..96049c65f11af939d736518695badd6554b4ec90 100644 (file)
@@ -4,7 +4,9 @@
 #
 CC=sdcc
 
+ifndef VERSION
 VERSION=$(shell git describe)
+endif
 
 CFLAGS=--model-small --debug --opt-code-speed
 
@@ -181,7 +183,7 @@ SYM=$(REL:.rel=.sym)
 PROGS= telemetrum.ihx tidongle.ihx \
        teleterra.ihx teledongle.ihx
 
-HOST_PROGS=ao_flight_test
+HOST_PROGS=ao_flight_test ao_gps_test
 
 PCDB=$(PROGS:.ihx=.cdb)
 PLNK=$(PROGS:.ihx=.lnk)
@@ -260,5 +262,8 @@ clean:
 
 install:
 
-ao_flight_test: ao_flight.c ao_flight_test.c
+ao_flight_test: ao_flight.c ao_flight_test.c ao_host.h
        cc -g -o $@ ao_flight_test.c
+
+ao_gps_test: ao_gps.c ao_gps_test.c ao_gps_print.c ao_host.h
+       cc -g -o $@ ao_gps_test.c