forked from jautschbach/mcd-molcas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.ifort
82 lines (57 loc) · 2.08 KB
/
Makefile.ifort
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
71
72
73
74
75
76
77
78
79
#
# This program may need lapack and blas routines
#
# For MPI support, we obviously also need MPI libs and include files
#
# Note: we define two compiler variables: $FC for fixed format F77 or F90 and $FC90 for
# free format F90
### Fortran compiler
FC = ifx
FC90 = ifx
LINKER = ifx
### Disable/Enable OpenMP support
OMP = -qopenmp -I${MKLROOT}/include
### Compilation/Linking options
FOPT = -g -traceback -fpe0 -O2 -I"${MKLROOT}/include"
### Extra libraries
FLIB = -L${MKLROOT}/lib -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl
FFLAGS =
.SUFFIXES: .f .F .F90 .f90
BIN = mcd-c-molcas mchd-c-molcas mcd-a-molcas \
mcd-b-molcas transition-dip-rot transition-vel-rot plot-mcdspectrum
OBJ =
OBJ90 = definitions.o \
namelist-module.o \
constants-parameters.o \
shared-variables.o \
read-options.o \
read-data-files.o \
print-rec-matrix.o \
diagonalize-matrix.o \
diagonalize-magdip-gs.o \
print-constants.o \
vector-product.o \
process-energies.o
.F.o:
$(FC) $(FOPT) -c $< -o $@
.F90.o:
$(FC90) $(FOPT) -c $< -o $@
.f90.o:
$(FC90) $(FOPT) -c $< -o $@
all: $(BIN)
mcd-c-molcas: $(OBJ) $(OBJ90) mcd-c-molcas.o
$(LINKER) -o mcd-c-molcas mcd-c-molcas.o $(OBJ) $(OBJ90) $(FFLAGS) $(FLIB)
mcd-a-molcas: $(OBJ) $(OBJ90) mcd-a-molcas.o
$(LINKER) -o mcd-a-molcas mcd-a-molcas.o $(OBJ) $(OBJ90) $(FFLAGS) $(FLIB)
mcd-b-molcas: $(OBJ) $(OBJ90) mcd-b-molcas.o
$(LINKER) -o mcd-b-molcas mcd-b-molcas.o $(OBJ) $(OBJ90) $(FFLAGS) $(FLIB)
mchd-c-molcas: $(OBJ) $(OBJ90) mchd-c-molcas.o
$(LINKER) -o mchd-c-molcas mchd-c-molcas.o $(OBJ) $(OBJ90) $(FFLAGS) $(FLIB)
transition-dip-rot: $(OBJ) $(OBJ90) transition-dip-rot.o
$(LINKER) -o transition-dip-rot transition-dip-rot.o $(OBJ) $(OBJ90) $(FFLAGS) $(FLIB)
transition-vel-rot: $(OBJ) $(OBJ90) transition-vel-rot.o
$(LINKER) -o transition-vel-rot transition-vel-rot.o $(OBJ) $(OBJ90) $(FFLAGS) $(FLIB)
plot-mcdspectrum: plot-mcdspectrum.o
$(LINKER) -o plot-mcdspectrum plot-mcdspectrum.o $(FFLAGS) $(FLIB)
clean:
rm -f $(BIN) *.o *.mod