-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
70 lines (50 loc) · 1.75 KB
/
Copy pathMakefile
File metadata and controls
70 lines (50 loc) · 1.75 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# For intel compiler:
FC = ifx #ifort
# With intel, byterecl should match VASP compilation
# For OpenMP use -qopenmp
FLAGS = -O2 -xHost -fpp -qopenmp -assume byterecl
LINK = -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_sequential.a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,--end-group -lpthread -lm -ldl
## For gfortran:
#FC = gfortran
## For OpenMP use -fopenmp
#FLAGS = -O0 -g -cpp -fcheck=all -fbacktrace -fopenmp
#FLAGS = -O3 -march=native -cpp -fopenmp
#
## It must be linked with a fftw implementation, crutial for performance
#LINK = /usr/lib/x86_64-linux-gnu/libfftw3.so.3
OBJ = declaration.o declfft.o determinequantities.o \
volumen.o Fourier.o currentBardeen.o \
norm_name.o mappingscar_gen.o \
STMpw.o
STMpw.out: $(OBJ)
$(FC) $(FLAGS) $(OBJ) $(LINK) -o STMpw.out
utils: Imagen_Bardeen_gnu.out Cond_gnu.out
all: utils STMpw.out
Imagen_Bardeen_gnu.out:
$(FC) $(FLAGS) Utils/Imagen_Bardeen_gnu.f90 -o Utils/Imagen_Bardeen_gnu.out
Cond_gnu.out:
$(FC) $(FLAGS) Utils/Cond_gnu.f90 -o Utils/Cond_gnu.out
Fourier.o: Fourier.f90
$(FC) Fourier.f90 $(FLAGS) -c
declaration.o: declaration.f90
$(FC) declaration.f90 $(FLAGS) -c
declfft.o: declfft.f90
$(FC) declfft.f90 $(FLAGS) -c
determinequantities.o: determinequantities.f90
$(FC) determinequantities.f90 $(FLAGS) -c
currentBardeen.o: currentBardeen.f90
$(FC) currentBardeen.f90 $(FLAGS) -c
volumen.o: volumen.f90
$(FC) volumen.f90 $(FLAGS) -c
STMpw.o: STMpw.f90
$(FC) STMpw.f90 $(FLAGS) -c
mappingscar_gen.o: mappingscar_gen.f90
$(FC) mappingscar_gen.f90 $(FLAGS) -c
norm_name.o: norm_name.f90
$(FC) norm_name.f90 $(FLAGS) -c
clean:
@echo "Cleaning objects..."
rm -f *.o *.mod
cleanall:
@echo "Cleaning all..."
rm -f *.o *.mod *.out */*.out