-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
108 lines (95 loc) · 2.18 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
include ../make.inc
SOURCES=GR1D_module.F90 \
grad_module.F90 \
timers.F90 \
GR1D.F90 \
atmosphere.F90 \
eos.F90 \
ppm.F90 \
ye_of_rho.F90 \
allocate_vars.F90 \
initialize_vars.F90 \
input_parser.F90 \
problem.F90 \
outinfo.F90 \
output.F90 \
output_control.F90 \
grid.F90 \
map_profile.F90 \
mass_interior.F90 \
shocktube.F90 \
sedov.F90 \
collapse.F90 \
OSC.F90 \
boundaries.F90 \
driver.F90 \
tools.F90 \
Step.F90 \
prim2con.F90 \
reconstruct.F90 \
flux_differences_HLLE.F90 \
gravity.F90 \
TVD_reconstruction.F90 \
con2prim.F90 \
press_sources.F90 \
restart_H5.F90 \
analysis.F90 \
neutrino_pressure.F90 \
start.F90 \
turbulence.F90 \
M1/M1_init.F90 \
M1/M1_reconstruct.F90 \
M1/M1_closure.F90 \
M1/M1_explicitterms.F90 \
M1/M1_implicitstep.F90 \
M1/M1_conservativeupdate.F90 \
M1/M1_control.F90 \
M1/M1_updateeas.F90 \
M1/M1_testcases.F90
MODULES=GR1D_module.mod
OBJECTS=$(SOURCES:.F90=.o )
EXTRAINCS += $(HDF5INCS)
EXTRAOBJECTS += $(HDF5LIBS)
ifeq ($(HAVE_NUC_EOS),1)
DEFS += -DHAVE_NUC_EOS
EXTRADEPS += nuc_eos/nuc_eos.a
EXTRAOBJECTS += nuc_eos/nuc_eos.a
endif
ifeq ($(HAVE_LEAK_ROS),1)
DEFS += -DHAVE_LEAK_ROS
EXTRAINCS += -Ileakage_rosswog
EXTRAOBJECTS += leakage_rosswog/leakage_rosswog.a
EXTRADEPS += leakage_rosswog/leakage_rosswog.a
endif
EXTRAINCS += -Inulibtable
EXTRAOBJECTS += nulibtable/nulibtable.a
EXTRADEPS += nulibtable/nulibtable.a
ifeq ($(HAVE_LAPACK),1)
EXTRAOBJECTS += $(LAPACKLIBS)
DEFS += -DHAVE_LAPACK
endif
GR1D: GR1D_module.o $(EXTRADEPS) $(OBJECTS)
$(F90) $(LDFLAGS) -o ../GR1D $(OBJECTS) $(EXTRAOBJECTS)
$(OBJECTS): %.o: %.F90
$(F90) $(F90FLAGS) $(DEFS) $(MODINC) $(EXTRAINCS) -c $< -o $@
GR1D.o: GR1D_module.o
nuc_eos/nuc_eos.a: nuc_eos/*.F90 nuc_eos/*.f
$(MAKE) -C nuc_eos
leakage_rosswog/leakage_rosswog.a: leakage_rosswog/leak_rosswog.F90
$(MAKE) -C leakage_rosswog
nulibtable/nulibtable.a: nulibtable/*.F90
$(MAKE) -C nulibtable
clean:
rm -rf ../GR1D
rm -rf *.o
rm -rf *.mod
rm -rf nuc_eos/*.o
rm -rf nuc_eos/*.mod
rm -rf nuc_eos/*.a
rm -rf leakage_rosswog/*.a
rm -rf leakage_rosswog/*.o
rm -rf leakage_rosswog/*.mod
rm -rf nulibtable/*.a
rm -rf nulibtable/*.o
rm -rf nulibtable/*.mod
rm -rf M1/*.o