forked from gevolution-code/gevolution-1.2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
40 lines (31 loc) · 1.22 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
# 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 # enables I/O server (use with care)
#DLATFIELD2 += -DSINGLE # switches to single precision, use LIB -lfftw3f
# optional compiler settings (gevolution)
DGEVOLUTION := -DPHINONLINEAR
DGEVOLUTION += -DBENCHMARK
DGEVOLUTION += -DEXACT_OUTPUT_REDSHIFTS
#DGEVOLUTION += -DVELOCITY # enables velocity field utilities
#DGEVOLUTION += -DCOLORTERMINAL
#DGEVOLUTION += -DCHECK_B
#DGEVOLUTION += -DHAVE_CLASS # requires LIB -lclass
#DGEVOLUTION += -DHAVE_HEALPIX # requires LIB -lchealpix
# further compiler options
OPT := -O3 -std=c++11
$(EXEC): $(SOURCE) $(HEADERS) makefile
$(COMPILER) $< -o $@ $(OPT) $(DLATFIELD2) $(DGEVOLUTION) $(INCLUDE) $(LIB)
lccat: lccat.cpp
$(COMPILER) $< -o $@ $(OPT) $(DGEVOLUTION) $(INCLUDE)
clean:
-rm -f $(EXEC) lccat