mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
3d8211696c
By using $(MAKE) variable we allow to pass down to the called makefile the number of jobs we want to compile with. The flags are communicated to the next level via MAKEFLAGS variable. Reference: https://www.gnu.org/software/make/manual/html_node/Options_002fRecursion.html#Options_002fRecursion
28 lines
513 B
Makefile
28 lines
513 B
Makefile
# 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)
|