-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile.foreseer
149 lines (129 loc) · 4.29 KB
/
makefile.foreseer
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#!/usr/bin/make
#defaults
LIB = foreseer
#main building variables
DOBJ = static/obj/
DMOD = static/mod/
DEXE = static/
MAKELIB = ar -rcs $(DEXE)lib$(LIB).a $(DOBJ)*.o ; ranlib $(DEXE)lib$(LIB).a
DSRC = src
FC = gfortran
OPTSC = -cpp -c -frealloc-lhs -O3 -J static/mod
OPTSL = -J static/mod
VPATH = $(DSRC) $(DOBJ) $(DMOD)
MKDIRS = $(DOBJ) $(DMOD) $(DEXE)
#auxiliary variables
COTEXT = "Compiling $(<F)"
LITEXT = "Assembling $@"
#building rule
$(LIB): $(MKDIRS) $(DOBJ)$(LIB).o
@echo $(LITEXT)
@$(MAKELIB)
#compiling rules
$(DOBJ)foreseer_riemann_solver_compressible_exact.o: src/FORESEER/foreseer_riemann_solver_compressible_exact.F90 \
$(DEXE)libflow.a \
$(DOBJ)foreseer_riemann_pattern_compressible_pvl.o \
$(DOBJ)foreseer_riemann_solver_object.o \
$(DEXE)libpenf.a \
$(DEXE)libvecfor.a
@echo $(COTEXT)
@$(FC) $(OPTSC) $< -o $@
$(DOBJ)foreseer_riemann_solver_compressible_llf.o: src/FORESEER/foreseer_riemann_solver_compressible_llf.F90 \
$(DEXE)libflow.a \
$(DOBJ)foreseer_riemann_pattern_compressible_pvl.o \
$(DOBJ)foreseer_riemann_solver_object.o \
$(DEXE)libpenf.a \
$(DEXE)libvecfor.a
@echo $(COTEXT)
@$(FC) $(OPTSC) $< -o $@
$(DOBJ)foreseer_riemann_solver_compressible_pvl.o: src/FORESEER/foreseer_riemann_solver_compressible_pvl.f90 \
$(DEXE)libflow.a \
$(DOBJ)foreseer_riemann_pattern_compressible_pvl.o \
$(DOBJ)foreseer_riemann_solver_object.o \
$(DEXE)libpenf.a \
$(DEXE)libvecfor.a
@echo $(COTEXT)
@$(FC) $(OPTSC) $< -o $@
$(DOBJ)foreseer_riemann_solver_compressible_roe.o: src/FORESEER/foreseer_riemann_solver_compressible_roe.F90 \
$(DEXE)libflow.a \
$(DOBJ)foreseer_riemann_pattern_compressible_pvl.o \
$(DOBJ)foreseer_riemann_pattern_compressible_roe.o \
$(DOBJ)foreseer_riemann_solver_object.o \
$(DEXE)libpenf.a \
$(DEXE)libvecfor.a
@echo $(COTEXT)
@$(FC) $(OPTSC) $< -o $@
$(DOBJ)foreseer_riemann_pattern_compressible_pvl.o: src/FORESEER/foreseer_riemann_pattern_compressible_pvl.f90 \
$(DEXE)libflow.a \
$(DOBJ)foreseer_riemann_pattern_compressible_object.o \
$(DEXE)libpenf.a \
$(DEXE)libvecfor.a
@echo $(COTEXT)
@$(FC) $(OPTSC) $< -o $@
$(DOBJ)foreseer_riemann_solver_object.o: src/FORESEER/foreseer_riemann_solver_object.f90 \
$(DEXE)libflow.a \
$(DEXE)libpenf.a \
$(DEXE)libvecfor.a
@echo $(COTEXT)
@$(FC) $(OPTSC) $< -o $@
$(DOBJ)foreseer_riemann_pattern_compressible_object.o: src/FORESEER/foreseer_riemann_pattern_compressible_object.f90 \
$(DEXE)libflow.a \
$(DOBJ)foreseer_riemann_pattern_object.o \
$(DEXE)libpenf.a \
$(DEXE)libvecfor.a
@echo $(COTEXT)
@$(FC) $(OPTSC) $< -o $@
$(DOBJ)foreseer_riemann_pattern_compressible_roe.o: src/FORESEER/foreseer_riemann_pattern_compressible_roe.f90 \
$(DEXE)libflow.a \
$(DOBJ)foreseer_riemann_pattern_compressible_object.o \
$(DEXE)libpenf.a \
$(DEXE)libvecfor.a
@echo $(COTEXT)
@$(FC) $(OPTSC) $< -o $@
$(DOBJ)foreseer_riemann_solver_compressible_hllc.o: src/FORESEER/foreseer_riemann_solver_compressible_hllc.F90 \
$(DEXE)libflow.a \
$(DOBJ)foreseer_riemann_pattern_compressible_pvl.o \
$(DOBJ)foreseer_riemann_solver_object.o \
$(DEXE)libpenf.a \
$(DEXE)libvecfor.a
@echo $(COTEXT)
@$(FC) $(OPTSC) $< -o $@
$(DOBJ)foreseer.o: src/FORESEER/foreseer.f90 \
$(DEXE)libflow.a \
$(DOBJ)foreseer_riemann_pattern_compressible_object.o \
$(DOBJ)foreseer_riemann_pattern_compressible_pvl.o \
$(DOBJ)foreseer_riemann_pattern_object.o \
$(DOBJ)foreseer_riemann_solver_compressible_exact.o \
$(DOBJ)foreseer_riemann_solver_compressible_hllc.o \
$(DOBJ)foreseer_riemann_solver_compressible_llf.o \
$(DOBJ)foreseer_riemann_solver_compressible_pvl.o \
$(DOBJ)foreseer_riemann_solver_compressible_roe.o \
$(DOBJ)foreseer_riemann_solver_object.o
@echo $(COTEXT)
@$(FC) $(OPTSC) $< -o $@
$(DOBJ)foreseer_riemann_pattern_object.o: src/FORESEER/foreseer_riemann_pattern_object.f90 \
$(DEXE)libflow.a \
$(DEXE)libvecfor.a
@echo $(COTEXT)
@$(FC) $(OPTSC) $< -o $@
.NOTPARALLEL: $(DEXE)libflow.a $(DEXE)libpenf.a $(DEXE)libvecfor.a
$(DEXE)libflow.a:
@$(MAKE) -f makefile.flow
$(DEXE)libpenf.a:
@$(MAKE) -f makefile.penf
$(DEXE)libvecfor.a:
@$(MAKE) -f makefile.vecfor
#phony auxiliary rules
.PHONY : $(MKDIRS)
$(MKDIRS):
@mkdir -p $@
.PHONY : cleanobj
cleanobj:
@echo deleting objects
@rm -fr $(DOBJ)
.PHONY : cleanmod
cleanmod:
@echo deleting mods
@rm -fr $(DMOD)
.PHONY : clean
clean: cleanobj cleanmod