-
Notifications
You must be signed in to change notification settings - Fork 10
/
makefile_nag
83 lines (54 loc) · 2.17 KB
/
makefile_nag
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
80
81
82
83
goal: duo.x
tarball:
tar cf duo.tar makefile *.f90
checkin:
ci -l Makefile *.f90
PLAT =
FOR = nagfor # NAG Fortran compiler
#FFLAGS = -f2003 -C=all -C=undefined -info -g -gline # debugging options for NAG compiler
FFLAGS = -f2003 -O2 -target=pentium4
LAPACK = -llapack -lblas -L./
LIB = $(LAPACK)
###############################################################################
OBJ = atomic_and_nuclear_data.o grids.o accuracy.o lapack.o timer.o input.o diatom.o refinement.o functions.o symmetry.o dipole.o quadrupole.o header_info.o RWF.o Lobatto.o
#compilation_details.o
duo.x: $(OBJ) duo.o
$(FOR) -o j-duo$(PLAT).x $(OBJ) $(FFLAGS) duo.o $(LIB)
duo.o: duo.f90 $(OBJ)
$(FOR) -c duo.f90 $(FFLAGS)
grids.o: grids.f90 accuracy.o input.o Lobatto.o
$(FOR) -c grids.f90 $(FFLAGS)
diatom.o: diatom.f90 accuracy.o input.o lapack.o functions.o symmetry.o atomic_and_nuclear_data.o Lobatto.o me_numer.o
$(FOR) -c diatom.f90 $(FFLAGS)
refinement.o: refinement.f90 accuracy.o input.o lapack.o diatom.o
$(FOR) -c refinement.f90 $(FFLAGS)
functions.o: functions.f90 accuracy.o input.o lapack.o
$(FOR) -c functions.f90 $(FFLAGS)
dipole.o: dipole.f90 accuracy.o input.o lapack.o diatom.o
$(FOR) -c dipole.f90 $(FFLAGS)
quadrupole.o: quadrupole.f90 accuracy.o input.o lapack.o diatom.o
$(FOR) -c quadrupole.f90 $(FFLAGS)
accuracy.o: accuracy.f90
$(FOR) -c accuracy.f90 $(FFLAGS)
symmetry.o: symmetry.f90
$(FOR) -c symmetry.f90 $(FFLAGS)
me_numer.o: me_numer.f90 accuracy.o lapack.o timer.o
$(FOR) -c me_numer.f90 $(FFLAGS)
lapack.o: lapack.f90 accuracy.o timer.o
$(FOR) -c lapack.f90 $(FFLAGS)
timer.o: timer.f90
$(FOR) -c timer.f90 $(FFLAGS)
input.o: input.f90
$(FOR) -c input.f90 $(FFLAGS)
#compilation_details.o: compilation_details.f90
# $(FOR) -c compilation_details.f90 $(FFLAGS)
header_info.o: accuracy.o
$(FOR) -c header_info.f90 $(FFLAGS)
atomic_and_nuclear_data.o: atomic_and_nuclear_data.f90
$(FOR) -c atomic_and_nuclear_data.f90 $(FFLAGS)
Lobatto.o: Lobatto.f90 timer.o
$(FOR) -c Lobatto.f90 $(FFLAGS)
RWF.o: RWF.f90 accuracy.o diatom.o timer.o symmetry.o lapack.o
$(FOR) -c RWF.f90 $(FFLAGS)
clean:
rm -f $(OBJ) *.mod *__genmod.f90 duo.o