1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

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
This commit is contained in:
osnwt 2011-03-06 13:41:46 +00:00 committed by osnwt
parent 6a0a8f00c9
commit d6e2a72e60

View File

@ -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 ; \
)