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,9 +1,12 @@
CC = icc
LINKER = $(CC)
OPENMP = #-qopenmp
CFLAGS = -Ofast -xhost -std=c11 -pthread $(OPENMP)
ifeq ($(ENABLE_OPENMP),true)
OPENMP = -qopenmp
endif
CFLAGS = -Ofast -xhost -std=c99 -pthread $(OPENMP)
LFLAGS = -pthread $(OPENMP)
DEFINES = -D_GNU_SOURCE
INCLUDES =
LIBS = -lpthread
LIBS =