add support for building Debian package
[fw/altos] / src / Makefile
index 812b195549974be8e34e7772830d6592d2776068..5a8afe0b9a5859a55abd80e313973d307d06eefd 100644 (file)
@@ -4,7 +4,9 @@
 #
 CC=sdcc
 
+ifndef VERSION
 VERSION=$(shell git describe)
+endif
 
 CFLAGS=--model-small --debug --opt-code-speed
 
@@ -264,4 +266,4 @@ 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 -lpthread
+       cc -g -o $@ ao_gps_test.c