build: simple top level makefile

this is to make it easier to integrate with static analysis tools
This commit is contained in:
Andrew Tridgell 2015-06-03 06:32:10 +10:00
parent 47f4a5db10
commit e25948c1b5
1 changed files with 27 additions and 0 deletions

27
Makefile Normal file
View File

@ -0,0 +1,27 @@
# top level makefile to build SITL for primary vehicle targets.
# Useful for static analysis tools
all: sitl
sitl: TARGET=sitl
sitl: plane copter rover antennatracker
linux: TARGET=linux
linux: plane copter rover antennatracker
clean: TARGET=clean
clean: plane copter rover antennatracker
.PHONY: plane copter rover antennatracker
plane:
make -C ArduPlane $(TARGET)
copter:
make -C ArduCopter $(TARGET)
rover:
make -C APMrover2 $(TARGET)
antennatracker:
make -C AntennaTracker $(TARGET)