2023-02-05 07:34:23 +01:00
|
|
|
CC = clang
|
|
|
|
GCC = cc
|
|
|
|
LINKER = $(CC)
|
|
|
|
|
2024-03-05 10:16:03 +01:00
|
|
|
ifeq ($(strip $(ENABLE_OPENMP)),true)
|
2023-02-05 07:34:23 +01:00
|
|
|
OPENMP = -fopenmp
|
|
|
|
#OPENMP = -Xpreprocessor -fopenmp #required on Macos with homebrew libomp
|
|
|
|
LIBS = # -lomp
|
|
|
|
endif
|
2024-03-05 10:16:03 +01:00
|
|
|
ifeq ($(strip $(DEBUG)),true)
|
|
|
|
CFLAGS = -O0 -g -std=c17
|
|
|
|
else
|
|
|
|
CFLAGS = -O3 -std=c17 $(OPENMP)
|
|
|
|
endif
|
2023-02-05 07:34:23 +01:00
|
|
|
|
|
|
|
VERSION = --version
|
|
|
|
LFLAGS = $(OPENMP) -lm
|
2024-03-05 10:16:03 +01:00
|
|
|
DEFINES = -D_GNU_SOURCE
|
2023-02-05 07:34:23 +01:00
|
|
|
INCLUDES =
|