Revision: 19389
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19389
Author:   sirdude
Date:     2009-03-23 20:52:49 +0100 (Mon, 23 Mar 2009)

Log Message:
-----------
Added BF_PROFILE  (same name as in scons files) option.
Set it to true to build with -pg

Also I added CCFLAGS to final link of targets.  Not sure why it wasn't there 
before.

Kent

Modified Paths:
--------------
    trunk/blender/source/Makefile
    trunk/blender/source/nan_compile.mk
    trunk/blender/source/nan_definitions.mk

Modified: trunk/blender/source/Makefile
===================================================================
--- trunk/blender/source/Makefile       2009-03-23 18:11:46 UTC (rev 19388)
+++ trunk/blender/source/Makefile       2009-03-23 19:52:49 UTC (rev 19389)
@@ -520,7 +520,7 @@
        $(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' 
-DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' 
-DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"static"' $(BUILDINFO_C) -c 
-o $(BUILDINFO_O) -DNAN_BUILDINFO
 endif
        mkdir -p $(DIR)/$(DEBUG_DIR)bin
-       $(CCC) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blenderstatic 
$(BUILDINFO_O) $(OBJS) $(GRPLIB) $(COMLIB) $(PULIB) $(LLIBS) $(SADD) $(LOPTS)
+       $(CCC) $(CCFLAGS) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blenderstatic 
$(BUILDINFO_O) $(OBJS) $(GRPLIB) $(COMLIB) $(PULIB) $(LLIBS) $(SADD) $(LOPTS)
 ifdef NAN_BUILDINFO
        /bin/rm $(BUILDINFO_O)
 endif
@@ -534,7 +534,7 @@
        $(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' 
-DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' 
-DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_C) -c 
-o $(BUILDINFO_O) -DNAN_BUILDINFO
 endif
        mkdir -p $(DIR)/$(DEBUG_DIR)bin
-       $(CCC) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blender$(EXT) 
$(BUILDINFO_O) $(OBJS) $(GRPLIB) $(COMLIB) $(PULIB) $(LLIBS) $(DADD) $(LOPTS)
+       $(CCC) $(CCFLAGS) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blender$(EXT) 
$(BUILDINFO_O) $(OBJS) $(GRPLIB) $(COMLIB) $(PULIB) $(LLIBS) $(DADD) $(LOPTS)
 ifdef NAN_BUILDINFO
        /bin/rm $(BUILDINFO_O)
 endif
@@ -548,7 +548,7 @@
        $(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' 
-DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' 
-DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_C) -c 
-o $(BUILDINFO_O) -DNAN_BUILDINFO
 endif
        mkdir -p $(DIR)/$(DEBUG_DIR)bin
-       $(CCC) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blenderplayer$(EXT) 
$(BUILDINFO_O) $(OBJS) $(SPLIB1) $(COMLIB) $(SPLIB) $(LLIBS) $(DADD) $(LOPTS)
+       $(CCC) $(CCFLAGS) $(LDFLAGS) -o 
$(DIR)/$(DEBUG_DIR)bin/blenderplayer$(EXT) $(BUILDINFO_O) $(OBJS) $(SPLIB1) 
$(COMLIB) $(SPLIB) $(LLIBS) $(DADD) $(LOPTS)
 ifdef NAN_BUILDINFO
        /bin/rm $(BUILDINFO_O)
 endif
@@ -562,7 +562,7 @@
        $(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' 
-DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' 
-DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_C) -c 
-o $(BUILDINFO_O) -DNAN_BUILDINFO
 endif
        mkdir -p $(DIR)/$(DEBUG_DIR)bin
-       $(CCC) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blenderdynplayer$(EXT) 
$(BUILDINFO_O) $(OBJS) $(SPLIB1) $(COMLIB) $(SPLIB) $(LLIBS) $(DADD) $(LOPTS)
+       $(CCC) $(CCFLAGS) $(LDFLAGS) -o 
$(DIR)/$(DEBUG_DIR)bin/blenderdynplayer$(EXT) $(BUILDINFO_O) $(OBJS) $(SPLIB1) 
$(COMLIB) $(SPLIB) $(LLIBS) $(DADD) $(LOPTS)
 ifdef NAN_BUILDINFO
        /bin/rm $(BUILDINFO_O)
 endif
@@ -576,7 +576,7 @@
        $(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' 
-DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' 
-DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_C) -c 
-o $(BUILDINFO_O) -DNAN_BUILDINFO
 endif
        mkdir -p $(DIR)/$(DEBUG_DIR)bin
-       $(CCC) $(DYNLDFLAGS) -o $@ $(PLUGAPPLIB_XPLINK) $(LOPTS)
+       $(CCC) $(CCFLAGS) $(DYNLDFLAGS) -o $@ $(PLUGAPPLIB_XPLINK) $(LOPTS)
 ifdef NAN_BUILDINFO
        /bin/rm $(BUILDINFO_O)
 endif

Modified: trunk/blender/source/nan_compile.mk
===================================================================
--- trunk/blender/source/nan_compile.mk 2009-03-23 18:11:46 UTC (rev 19388)
+++ trunk/blender/source/nan_compile.mk 2009-03-23 19:52:49 UTC (rev 19389)
@@ -47,6 +47,11 @@
    CPPFLAGS += -DNO_KETSJI
 endif
 
+ifeq ($(BF_PROFILE), true)
+    CFLAGS += -pg
+    CCFLAGS += -pg
+endif
+
 ifeq ($(WITH_BF_OPENMP), true)
     CFLAGS += -fopenmp
     CCFLAGS += -fopenmp

Modified: trunk/blender/source/nan_definitions.mk
===================================================================
--- trunk/blender/source/nan_definitions.mk     2009-03-23 18:11:46 UTC (rev 
19388)
+++ trunk/blender/source/nan_definitions.mk     2009-03-23 19:52:49 UTC (rev 
19389)
@@ -75,6 +75,7 @@
     export NAN_SOLID ?= $(LCGDIR)/solid
     export NAN_QHULL ?= $(LCGDIR)/qhull
 endif
+    export BF_PROFILE ?= false
     export NAN_USE_BULLET ?= true
     export NAN_BULLET2 ?= $(LCGDIR)/bullet2
     export NAN_SUMO ?= $(SRCHOME)/gameengine/Physics/Sumo


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to