2024-01-08 11:26:43 +01:00
|
|
|
ifeq ($(ENABLE_MPI),true)
|
2023-02-05 07:34:23 +01:00
|
|
|
CC = mpicc
|
2024-01-08 11:26:43 +01:00
|
|
|
DEFINES = -D_MPI
|
|
|
|
else
|
2024-01-31 17:40:36 +01:00
|
|
|
CC = cc
|
2024-01-08 11:26:43 +01:00
|
|
|
endif
|
|
|
|
|
2023-02-05 07:34:23 +01:00
|
|
|
GCC = cc
|
|
|
|
LINKER = $(CC)
|
|
|
|
|
|
|
|
ifeq ($(ENABLE_OPENMP),true)
|
|
|
|
OPENMP = -fopenmp
|
|
|
|
#OPENMP = -Xpreprocessor -fopenmp #required on Macos with homebrew libomp
|
|
|
|
LIBS = # -lomp
|
|
|
|
endif
|
|
|
|
|
|
|
|
VERSION = --version
|
|
|
|
CFLAGS = -Ofast -std=c17
|
|
|
|
LFLAGS = $(OPENMP) -lm
|
2024-01-08 11:26:43 +01:00
|
|
|
DEFINES += -D_GNU_SOURCE# -DDEBUG
|
2024-01-31 17:40:36 +01:00
|
|
|
INCLUDES = -I/opt/homebrew/include
|