summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-10-01 09:17:09 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-10-01 09:17:09 +0000
commite2a6faf36d419d4d7404aa465763b6ab348fa863 (patch)
tree836eac71635d09c8baa699231b920cecaf0b11e5 /makefile
parent0eae106793b0f53e7f52a670d6605c9d5ad415eb (diff)
added makefile variable OPENMP to enable usage of OpenMP (includes vconv support of -fopenmp) [Oliver Stöneberg]
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/makefile b/makefile
index 02d824808fd..ce637da4c01 100644
--- a/makefile
+++ b/makefile
@@ -268,6 +268,9 @@ BUILD_MIDILIB = 1
# uncomment to enable SSE2 optimized code and SSE2 code generation (implicitly enabled by 64-bit compilers)
# SSE2 = 1
+# uncomment to enable OpenMP optimized code
+# OPENMP = 1
+
# specify optimization level or leave commented to use the default
# (default is OPTIMIZE = 3 normally, or OPTIMIZE = 0 with symbols)
# OPTIMIZE = 3
@@ -548,6 +551,13 @@ ifdef SSE2
CCOMFLAGS += -msse2
endif
+ifdef OPENMP
+DEFS += -DHAS_OPENMP
+CCOMFLAGS += -fopenmp
+else
+CCOMFLAGS += -Wno-unknown-pragmas
+endif
+
# add a basic set of warnings
CCOMFLAGS += \
-Wall \