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:
authorKent Mein <mein@cs.umn.edu>2008-03-14 23:11:43 +0300
committerKent Mein <mein@cs.umn.edu>2008-03-14 23:11:43 +0300
commit4f553a59f7637661ce41cfdabfdf97c37517ad73 (patch)
tree8c157fb4b7090aacfd19fad4f496f40542bcc6d9
parent8e126216b0f070660bd0c4eda688bc3383c11ac1 (diff)
Added a WITH_BF_OPENMP option
to add in proper flags for openmp support. Kent
-rw-r--r--source/nan_compile.mk5
-rw-r--r--source/nan_link.mk4
2 files changed, 9 insertions, 0 deletions
diff --git a/source/nan_compile.mk b/source/nan_compile.mk
index afea7a01239..665fdd3939b 100644
--- a/source/nan_compile.mk
+++ b/source/nan_compile.mk
@@ -50,6 +50,11 @@ else
CPPFLAGS += -DNO_KETSJI
endif
+ifeq ($(WITH_BF_OPENMP), true)
+ CFLAGS += -fopenmp
+ CCFLAGS += -fopenmp
+endif
+
ifdef NAN_DEBUG
CFLAGS += $(NAN_DEBUG)
CCFLAGS += $(NAN_DEBUG)
diff --git a/source/nan_link.mk b/source/nan_link.mk
index e0745e9c1d4..f4a90b0f927 100644
--- a/source/nan_link.mk
+++ b/source/nan_link.mk
@@ -173,4 +173,8 @@ ifeq ($(INTERNATIONAL),true)
LLIBS += $(NAN_GETTEXT_LIB)
endif
+ifeq ($(WITH_BF_OPENMP),true)
+ LLIBS += -lgomp
+endif
+
LLIBS += $(NAN_PYTHON_LIB)