[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14115] trunk/blender/source: Added a WITH_BF_OPENMP option

Kent Mein mein at cs.umn.edu
Fri Mar 14 21:11:44 CET 2008


Revision: 14115
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14115
Author:   sirdude
Date:     2008-03-14 21:11:43 +0100 (Fri, 14 Mar 2008)

Log Message:
-----------
Added a WITH_BF_OPENMP option
to add in proper flags for openmp support.

Kent

Modified Paths:
--------------
    trunk/blender/source/nan_compile.mk
    trunk/blender/source/nan_link.mk

Modified: trunk/blender/source/nan_compile.mk
===================================================================
--- trunk/blender/source/nan_compile.mk	2008-03-14 19:44:32 UTC (rev 14114)
+++ trunk/blender/source/nan_compile.mk	2008-03-14 20:11:43 UTC (rev 14115)
@@ -50,6 +50,11 @@
    CPPFLAGS += -DNO_KETSJI
 endif
 
+ifeq ($(WITH_BF_OPENMP), true)
+    CFLAGS += -fopenmp
+    CCFLAGS += -fopenmp
+endif
+
 ifdef NAN_DEBUG
     CFLAGS += $(NAN_DEBUG)
     CCFLAGS += $(NAN_DEBUG)

Modified: trunk/blender/source/nan_link.mk
===================================================================
--- trunk/blender/source/nan_link.mk	2008-03-14 19:44:32 UTC (rev 14114)
+++ trunk/blender/source/nan_link.mk	2008-03-14 20:11:43 UTC (rev 14115)
@@ -173,4 +173,8 @@
    LLIBS += $(NAN_GETTEXT_LIB)
 endif
 
+ifeq ($(WITH_BF_OPENMP),true)
+   LLIBS += -lgomp
+endif
+
 LLIBS += $(NAN_PYTHON_LIB)





More information about the Bf-blender-cvs mailing list