2025-01-06 12:17:19 +01:00
|
|
|
ifeq ($(strip $(ENABLE_MPI)),true)
|
2025-01-03 14:23:28 +01:00
|
|
|
CC = mpicc
|
2025-01-06 12:17:19 +01:00
|
|
|
DEFINES = -D_MPI
|
|
|
|
else
|
|
|
|
CC = clang
|
|
|
|
endif
|
|
|
|
|
2025-01-03 14:23:28 +01:00
|
|
|
LD = $(CC)
|
|
|
|
|
2025-01-06 12:17:19 +01:00
|
|
|
ifeq ($(strip $(ENABLE_OPENMP)),true)
|
2025-01-03 14:23:28 +01:00
|
|
|
OPENMP = -fopenmp
|
|
|
|
#OPENMP = -Xpreprocessor -fopenmp #required on Macos with homebrew libomp
|
|
|
|
LIBS = # -lomp
|
|
|
|
endif
|
|
|
|
|
|
|
|
VERSION = --version
|
|
|
|
CFLAGS = -Ofast -std=c99 $(OPENMP)
|
|
|
|
#CFLAGS = -Ofast -fnt-store=aggressive -std=c99 $(OPENMP) #AMD CLANG
|
|
|
|
LFLAGS = $(OPENMP)
|
2025-01-06 12:17:19 +01:00
|
|
|
DEFINES += -D_GNU_SOURCE
|
|
|
|
INCLUDES = -I/Users/jan/.local/include
|