diff options
| author | 2014-10-01 09:17:09 +0000 | |
|---|---|---|
| committer | 2014-10-01 09:17:09 +0000 | |
| commit | e2a6faf36d419d4d7404aa465763b6ab348fa863 (patch) | |
| tree | 836eac71635d09c8baa699231b920cecaf0b11e5 /makefile | |
| parent | 0eae106793b0f53e7f52a670d6605c9d5ad415eb (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-- | makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 \ |
