From d6e2a72e603b449fcddd438d945b22b02c780fe8 Mon Sep 17 00:00:00 2001 From: osnwt Date: Sun, 6 Mar 2011 13:41:46 +0000 Subject: [PATCH] OP-305: Top Makefile: added GCS build configuration option GCS_BUILD_CONF=(debug|release). Use 'make gcs GCS_BUILD_CONF=release' to build release binaries. Default is to build debug version (was hard-coded). git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2990 ebee16cc-31ac-478f-84a7-5cbb03baadba --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 78e3aefd5..7fe136b31 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,8 @@ ifeq ($(UNAME), Darwin) UAVOBJGENERATOR="$(BUILD_DIR)/ground/uavobjgenerator/uavobjgenerator" endif +# OpenPilot GCS build configuration (debug | release) +GCS_BUILD_CONF ?= debug # Set up misc host tools RM=rm @@ -220,7 +222,7 @@ gcs: openpilotgcs openpilotgcs: uavobjects_gcs $(V1) mkdir -p $(BUILD_DIR)/ground/$@ $(V1) ( cd $(BUILD_DIR)/ground/$@ ; \ - $(QMAKE) $(ROOT_DIR)/ground/openpilotgcs/openpilotgcs.pro -spec $(QT_SPEC) -r CONFIG+=debug ; \ + $(QMAKE) $(ROOT_DIR)/ground/openpilotgcs/openpilotgcs.pro -spec $(QT_SPEC) -r CONFIG+=$(GCS_BUILD_CONF) ; \ $(MAKE) -w ; \ )