-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
30 lines (21 loc) · 979 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
29
30
# programming environment
COMPILER := mpic++
INCLUDE := -I/media/vilasini/DATA/UNIGE/Thesis/code/LATfield2 -I/usr/local/include -I/usr/include/hdf5/serial # add the path to LATfield2 and other libraries (if necessary)
LIB := -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5 -lm -lgsl -lgslcblas -lfftw3f #-lm -lgsl -lgslcblas
# target and source
EXEC := global
SOURCE := main.cpp
HEADERS := $(wildcard *.hpp)
# mandatory compiler settings (LATfield2)
DLATFIELD2 := -DHDF5 -DFFT3D
# 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
#DLATFIELD2 += -DH5_HAVE_PIXIE
# further compiler options
OPT := -O3 -std=c++11
$(EXEC): $(SOURCE) $(HEADERS) makefile
$(COMPILER) $< -o $@ $(OPT) $(DLATFIELD2) $(INCLUDE) $(LIB)
clean:
-rm -f $(EXEC) lccat lcmap