-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathosx-gfortran-markus
54 lines (43 loc) · 1.58 KB
/
osx-gfortran-markus
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# export USE_GPTL=1
export USE_OPENMP=1
# export USE_GMP=1
# export USE_LIBXC=1
# define HAS_BACKTRACE if glibc backtrace functionality is available
# export HAS_BACKTRACE=1
ifdef USE_GPTL
export GPTL_LIB=$(HOME)/Development/gptl-4.0/libgptl_pmpi.a
export GPTL_INC=-I $(HOME)/Development/gptl-4.0/
export GPTL_OPT=-finstrument-functions
else
export GPTL_LIB=
export GPTL_INC=
export GPTL_OPT=
endif
export LIBS += -L/usr/local/lib/gcc/8 -lhdf5 -lgfortran \
-framework Accelerate $(GPTL_LIB)
#export LIBS += -L/usr/local/lib -L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/4.9.1 -lhdf5 -framework Accelerate $(GPTL_LIB) \
# -lgfortran
#export LIBS += -lhdf5 -framework Accelerate $(GPTL_LIB) \
# -L/usr/local/lib/gcc/x86_64-apple-darwin12.5.0/4.9.1/ -lgfortran
export ADD_LIBS +=
export INC_PATH += -I /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/ \
$(GPTL_INC)
export BOOST_ROOT=$(TOP_DIR)
ifdef USE_GMP
export LIBS += -lgmp
export OPT_DEFINES += -DUSE_GMP
endif
# export CUDA_CXX=nvcc -arch=sm_20
ifdef USE_OPENMP
export CXX=mpicxx -g -std=c++11 -fopenmp -O3 -I$(BOOST_ROOT) $(GPTL_OPT) $(OPT_DEFINES)
export F77=gfortran -g -fopenmp -O3 $(GPTL_OPT)
# export F77=gfortran -g -fopenmp -O3 -fcheck=all $(GPTL_OPT)
else
export CXX=mpicxx -g -O3 -std=c++11 -I$(BOOST_ROOT) $(OPT_DEFINES)
export F77=gfortran -g -O3
# export F77=gfortran -g -O3 -fcheck=all
endif
# JSON++ requires flex and bison (version>=2.4)
export FLEX=flex
export BISON=/usr/local/opt/bison/bin/bison
export LUACXX = $(CXX)