Make OpenMP support a config option

This commit is contained in:
Jan Eitzinger
2019-03-13 16:24:59 +01:00
parent d87d668dcd
commit cb45dd74d0
5 changed files with 22 additions and 10 deletions

View File

@@ -1,7 +1,10 @@
CC = clang
LINKER = $(CC)
OPENMP = #-fopenmp
ifeq ($(ENABLE_OPENMP),true)
OPENMP = -fopenmp
endif
CFLAGS = -Ofast -std=c99 -pthread $(OPENMP)
LFLAGS = -pthread $(OPENMP)
DEFINES = -D_GNU_SOURCE