-
Notifications
You must be signed in to change notification settings - Fork 1
/
make.inc.llvm
31 lines (24 loc) · 1010 Bytes
/
make.inc.llvm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
WARNFLAGS = -Wall -Wextra -Werror
# M1
#FORTRAN_DIR = /opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/current
# Linux x86_64
#FORTRAN_DIR = /usr/lib/gcc/x86_64-linux-gnu/11
#FORTRAN_LIBS = -L$(FORTRAN_DIR) -lgfortran
# M1
# symlink ISO_Fortran_binding.h from $(FORTRAN_DIR)/gcc/aarch64-apple-darwin21/11/include to . because reasons
#FORTRAN_INCLUDE = -I.
# Linux GCC-12
#FORTRAN_INCLUDE = -I/usr/lib/gcc/x86_64-linux-gnu/12/include/
MPI_LIBS = -g -Wl,-commons,use_dylibs -I/opt/homebrew/Cellar/mpich/4.0.2_1/include -L/opt/homebrew/Cellar/mpich/4.0.2_1/lib -lmpi -lpmpi
#MPI_LIBS = -g -L/opt/homebrew/Cellar/open-mpi/4.1.4_2/lib -L/opt/homebrew/opt/libevent/lib -lmpi
# M1
CC = /opt/mpich/llvm/bin/mpicc
CFLAGS = $(WARNFLAGS) -g -std=c11 $(FORTRAN_INCLUDE) -DHAVE_CFI
FC = /opt/llvm/latest/bin/flang-new
FCFLAGS = $(WARNFLAGS) -g -std=f2018 -DHAVE_CFI
#FCFLAGS += -fall-intrinsics # for when we use LOC()
# required on nuclear (x86_64)
CFLAGS += -fPIE
FCFLAGS += -fPIE
ABIFLAG = -DMPICH
#ABIFLAG = -DOPEN_MPI