Ubuntu
regis@lemaker:~$ sudo apt-get install gawk
regis@lemaker:~$ git clone https://github.com/diydrones/ardupilot
regis@lemaker:~$ ardupilot/Tools/scripts/install-prereqs-ubuntu.sh -y
regis@lemaker:~$ cd ardupilot/ArduCopter
regis@lemaker:~/ardupilot/ArduCopter$ make
Targets
-------
apm1 - the APM1 board
apm2 - the APM2 board
px4-v1 - the PX4v1 board
px4-v2 - the Pixhawk
pxf - the Beagle Bone Black (BBB) + PXF cape combination
navio - the RaspberryPi + NavIO cape combination
linux - a generic Linux build
flymaple - the FlyMaple board
vrbrain - the VRBrain boards
sitl - the SITL Software In The Loop simulation
bbbmini - the Beagle Bone Black mini
regis@lemaker:~/ardupilot/ArduCopter$ make linux