-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmakefile
29 lines (22 loc) · 845 Bytes
/
makefile
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
# programming environment
COMPILER := mpic++
INCLUDE := # add the path to LATfield2 and other libraries (if necessary)
LIB := -lfftw3 -lm -lhdf5 -lgsl -lgslcblas
# target and source
EXEC := gevolution
SOURCE := main.cpp
HEADERS := $(wildcard *.hpp)
# mandatory compiler settings (LATfield2)
DLATFIELD2 := -DFFT3D -DHDF5
# optional compiler settings (LATfield2)
#DLATFIELD2 += -DH5_HAVE_PARALLEL
#DLATFIELD2 += -DEXTERNAL_IO
# optional compiler settings (gevolution)
DGEVOLUTION := -DPHINONLINEAR
DGEVOLUTION += -DBENCHMARK
#DGEVOLUTION += -DCHECK_B
#DGEVOLUTION += -DHAVE_CLASS # requires OPT -fopenmp and LIB -lclass
# further compiler options
OPT := -O3 -std=c++11
$(EXEC): $(SOURCE) $(HEADERS) makefile
$(COMPILER) $< -o $@ $(OPT) $(DLATFIELD2) $(DGEVOLUTION) $(INCLUDE) $(LIB)