add support for building Debian package
[fw/altos] / src / Makefile
index 29ee4b128fb2c53c4a2b5c95823571146c0e9662..5a8afe0b9a5859a55abd80e313973d307d06eefd 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)
@@ -262,3 +264,6 @@ install:
 
 ao_flight_test: ao_flight.c ao_flight_test.c
        cc -g -o $@ ao_flight_test.c
+
+ao_gps_test: ao_gps.c ao_gps_test.c ao_host.h
+       cc -g -o $@ ao_gps_test.c