Added a WITH_BF_OPENMP option
authorKent Mein <mein@cs.umn.edu>
Fri, 14 Mar 2008 20:11:43 +0000 (20:11 +0000)
committerKent Mein <mein@cs.umn.edu>
Fri, 14 Mar 2008 20:11:43 +0000 (20:11 +0000)
to add in proper flags for openmp support.

Kent

source/nan_compile.mk
source/nan_link.mk

index afea7a012390ff4c4a77ed13b0dba165b46724f8..665fdd3939b9b4e802e9da8bed08c8058e10e13f 100644 (file)
@@ -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)
index e0745e9c1d43035e3ae53be21357243540396bb5..f4a90b0f927cefd6f393f4294d456c44b04459b6 100644 (file)
@@ -173,4 +173,8 @@ ifeq ($(INTERNATIONAL),true)
    LLIBS += $(NAN_GETTEXT_LIB)
 endif
 
+ifeq ($(WITH_BF_OPENMP),true)
+   LLIBS += -lgomp
+endif
+
 LLIBS += $(NAN_PYTHON_LIB)