Pixhawk Source Code Analyze(1)

Makefile

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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)

参考:Make 命令教程