-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
84 lines (62 loc) · 2.2 KB
/
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
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
execname = 2_Db
compiler = gfortran
objects = $(execname).o \
physical_data.o \
window_data.o \
global_data.o \
primary_variables.f95 \
vars.o \
init.o \
write_files_mod.o \
geom_update_mod.o \
h_update_mod.o \
muscl_mod.o \
riemann.o \
flow_update_mod.o \
physical_fluxes.o \
boundary_conditions_mod.o
o_compile = $(compiler) -O0 -fdefault-real-8 -c -fbounds-check -g3
all : $(execname)
$(execname) : $(objects)
$(compiler) -O3 -fdefault-real-8 -fbounds-check $(objects)
mv a.out 2_Db
boundary_conditions_mod.o : boundary_conditions_mod.f95 vars.o
$(o_compile) boundary_conditions_mod.f95
physical_data.o : physical_data.f95
$(o_compile) physical_data.f95
physical_fluxes.o : physical_fluxes.f95
$(o_compile) physical_fluxes.f95
window_data.o : window_data.f95
$(o_compile) window_data.f95
global_data.o : global_data.f95
$(o_compile) global_data.f95
primary_variables.o : primary_variables.f95
$(o_compile) primary_variables.f95
vars.o : vars.f95 physical_data.o
$(o_compile) vars.f95
init.o : init.f95 global_data.o primary_variables.o window_data.o boundary_conditions_mod.o
$(o_compile) init.f95
write_files_mod.o : write_files_mod.f95 vars.o
$(o_compile) write_files_mod.f95
geom_update_mod.o : geom_update_mod.f95 global_data.o primary_variables.o window_data.o boundary_conditions_mod.o
$(o_compile) geom_update_mod.f95
h_update_mod.o : h_update_mod.f95 #boundary_conditions_mod.o
$(o_compile) h_update_mod.f95
muscl_mod.o : muscl_mod.f95
$(o_compile) muscl_mod.f95
#riemann.o : riemann2.f95
# $(o_compile) riemann2.f95
# mv riemann2.o riemann.o
riemann.o : riemann.f95
$(o_compile) riemann.f95
#flow_update_mod.o : flow_update_mod.f95 vars.o riemann.o muscl_mod.o physical_fluxes.o boundary_conditions_mod.o
# $(o_compile) flow_update_mod.f95
flow_update_mod.o : flow_update_mod2.f95 vars.o riemann.o muscl_mod.o physical_fluxes.o boundary_conditions_mod.o
$(o_compile) flow_update_mod2.f95
mv flow_update_mod2.o flow_update_mod.o
$(execname).o : $(execname).f95 global_data.o primary_variables.o init.o write_files_mod.o geom_update_mod.o flow_update_mod.o h_update_mod.o vars.o physical_data.o #boundary_data.o
$(o_compile) 2_Db.f95
clean :
rm *.o
rm *.mod
rm $(execname)