Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-19 16:46:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-19 16:46:08 +0300
commite1575e5b58f51ff7788a772a340104ddc4100ce1 (patch)
tree41f9f66b821141d43567efcec2c6e7209a110292 /GNUmakefile
parent65ce537c6c797fac1b750c963e9563293c17d011 (diff)
add 'make debug' option for stub cmake makefile.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 703b8355a5e..9815477dd39 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -37,6 +37,15 @@ BLENDER_DIR:=$(shell pwd -P)
BUILD_DIR:=$(shell dirname $(BLENDER_DIR))/build/$(OS_NCASE)
+# support 'make debug'
+ifneq "$(findstring debug, $(MAKECMDGOALS))" ""
+ BUILD_DIR:=$(BUILD_DIR)_debug
+ BUILD_TYPE:=Debug
+else
+ BUILD_TYPE:=Release
+endif
+
+
# Get the number of cores for threaded build
NPROCS:=1
ifeq ($(OS), Linux)
@@ -61,7 +70,7 @@ all:
if test ! -f $(BUILD_DIR)/CMakeCache.txt ; then \
mkdir -p $(BUILD_DIR) ; \
cd $(BUILD_DIR) ; \
- cmake $(BLENDER_DIR) -DCMAKE_BUILD_TYPE:STRING=Release ; \
+ cmake $(BLENDER_DIR) -DCMAKE_BUILD_TYPE:STRING=$(BUILD_TYPE) ; \
fi
@echo
@@ -71,6 +80,9 @@ all:
@echo run blender from "$(BUILD_DIR)/bin/blender"
@echo
+debug: all
+ # pass
+
# package types
package_debian:
cd build_files/package_spec ; sh ./build_debian.sh