From ed2bec75b9a7eeb080cfcfa3fec3889538bb55d9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 10 Oct 2011 07:18:38 +1100 Subject: [PATCH] added build makefiles --- ArduCopter/Makefile.desktop | 19 +++++++++++++++++++ ArduPlane/Makefile.desktop | 19 +++++++++++++++++++ libraries/{AP_Common => Desktop}/Desktop.mk | 0 3 files changed, 38 insertions(+) create mode 100644 ArduCopter/Makefile.desktop create mode 100644 ArduPlane/Makefile.desktop rename libraries/{AP_Common => Desktop}/Desktop.mk (100%) diff --git a/ArduCopter/Makefile.desktop b/ArduCopter/Makefile.desktop new file mode 100644 index 0000000000..1fcbe43bc2 --- /dev/null +++ b/ArduCopter/Makefile.desktop @@ -0,0 +1,19 @@ +include ../libraries/Desktop/Desktop.mk + +default: + make -f Makefile.desktop + +nologging: + make -f Makefile.desktop EXTRAFLAGS="-DLOGGING_ENABLED=DISABLED" + +nogps: + make -f Makefile.desktop EXTRAFLAGS="-DGPS_PROTOCOL=GPS_PROTOCOL_NONE -DLOGGING_ENABLED=DISABLED" + +hil: + make -f Makefile.desktop EXTRAFLAGS="-DHIL_MODE=HIL_MODE_ATTITUDE -DCLI_ENABLED=DISABLED -DLOGGING_ENABLED=DISABLED" + +hilnocli: + make -f Makefile.desktop EXTRAFLAGS="-DHIL_MODE=HIL_MODE_ATTITUDE -DCLI_ENABLED=DISABLED -DLOGGING_ENABLED=DISABLED" + +heli: + make -f Makefile.desktop EXTRAFLAGS="-DFRAME_CONFIG=HELI_FRAME" diff --git a/ArduPlane/Makefile.desktop b/ArduPlane/Makefile.desktop new file mode 100644 index 0000000000..1fcbe43bc2 --- /dev/null +++ b/ArduPlane/Makefile.desktop @@ -0,0 +1,19 @@ +include ../libraries/Desktop/Desktop.mk + +default: + make -f Makefile.desktop + +nologging: + make -f Makefile.desktop EXTRAFLAGS="-DLOGGING_ENABLED=DISABLED" + +nogps: + make -f Makefile.desktop EXTRAFLAGS="-DGPS_PROTOCOL=GPS_PROTOCOL_NONE -DLOGGING_ENABLED=DISABLED" + +hil: + make -f Makefile.desktop EXTRAFLAGS="-DHIL_MODE=HIL_MODE_ATTITUDE -DCLI_ENABLED=DISABLED -DLOGGING_ENABLED=DISABLED" + +hilnocli: + make -f Makefile.desktop EXTRAFLAGS="-DHIL_MODE=HIL_MODE_ATTITUDE -DCLI_ENABLED=DISABLED -DLOGGING_ENABLED=DISABLED" + +heli: + make -f Makefile.desktop EXTRAFLAGS="-DFRAME_CONFIG=HELI_FRAME" diff --git a/libraries/AP_Common/Desktop.mk b/libraries/Desktop/Desktop.mk similarity index 100% rename from libraries/AP_Common/Desktop.mk rename to libraries/Desktop/Desktop.mk