-
Notifications
You must be signed in to change notification settings - Fork 1
/
make.inc.gcc-mac
35 lines (28 loc) · 1.21 KB
/
make.inc.gcc-mac
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
32
33
34
35
MAKE = make
F90 = mpif90
CXX = mpicxx
CC = mpicc
CPP_OPTS = -D_MPI_
# production
F90_OPTS = -O2 -Wall -cpp $(CPP_OPTS) -I/Users/anton/local/include
# debug
#F90_OPTS = -O0 -Wall -g -cpp -fbounds-check -fdump-core -fbacktrace $(CPP_OPTS) -I/Users/anton/local/include
F90_LINK_OPTS=
LAPACK_LIB = $(HOME)/local/lib/liblapack.a $(HOME)/local/lib/libblas.a
# === compile with HDF5 support ===
#CPP_OPTS := $(CPP_OPTS) -D_HDF5_
#HDF5_LIB = $(HOME)/local/lib/libhdf5hl_fortran.a $(HOME)/local/lib/libhdf5_hl.a \
# $(HOME)/local/lib/libhdf5_fortran.a $(HOME)/local/lib/libhdf5.a -lz -lm
# ==- compile with libXC support ===
#CPP_OPTS := $(CPP_OPTS) -D_LIBXC_
#XC_LIB = ../libxc.a
# ==- compile with NFFT support ===
#CPP_OPTS := $(CPP_OPTS) -D_NFFT_
#NFFT_INC = -I$(HOME)/local/include
#NFFT_LIB = $(HOME)/local/lib/libnfft3.a $(HOME)/local/lib/libfftw3.a
# === compile with Madness API ===
#CPP_OPTS := $(CPP_OPTS) -D_MAD_
#MADNESS_INC = -I$(HOME)/local/opt/madness/include
#MADNESS_LIB = -L$(HOME)/local/opt/madness/lib/ -lMADmra -lMADlinalg -lMADtensor -lMADmisc -lMADmuparser -lMADtinyxml -lMADworld -lmpi_cxx -lstdc++
# === collect all libraries under one name ===
LIBS = $(LAPACK_LIB) $(HDF5_LIB) $(XC_LIB) $(NFFT_LIB) $(MADNESS_LIB)