-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
126 lines (85 loc) · 3.88 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Object files from the SCVH EOS library
SCVHEOS_OBJ = scvheos.o
OBJ = $(SCVHEOS_OBJ)
# Executables
EXE =
# Definitions
DEFS =
# GNU Science library (uncomment if not needed)
GSL_LIB = -lgsl -lgslcblas
CFLAGS ?= -O3 $(defs) -Wall -std=c99
LIBS ?= -lm $(GSL_LIB)
default:
@echo "Please specify which tool you want to make."
all:
default
#
# Test the SCVHEOS library.
#
testscvheos: testscvheos.o $(OBJ)
cc -o testscvheos testscvheos.o $(OBJ) $(LIBS)
testscvheosreadtable: testscvheosreadtable.o $(OBJ)
cc -o testscvheosreadtable testscvheosreadtable.o $(OBJ) $(LIBS)
testscvheosinterp: testscvheosinterp.o $(OBJ)
cc -o testscvheosinterp testscvheosinterp.o $(OBJ) $(LIBS)
testscvheospressure: testscvheospressure.o $(OBJ)
cc -o testscvheospressure testscvheospressure.o $(OBJ) $(LIBS)
testscvheosintenergy: testscvheosintenergy.o $(OBJ)
cc -o testscvheosintenergy testscvheosintenergy.o $(OBJ) $(LIBS)
testscvheosentropy: testscvheosentropy.o $(OBJ)
cc -o testscvheosentropy testscvheosentropy.o $(OBJ) $(LIBS)
testscvheoscv: testscvheoscv.o $(OBJ)
cc -o testscvheoscv testscvheoscv.o $(OBJ) $(LIBS)
testscvheosderivs: testscvheosderivs.o $(OBJ)
cc -o testscvheosderivs testscvheosderivs.o $(OBJ) $(LIBS)
testscvheosinv: testscvheosinv.o $(OBJ)
cc -o testscvheosinv testscvheosinv.o $(OBJ) $(LIBS)
testscvheossoundspeed: testscvheossoundspeed.o $(OBJ)
cc -o testscvheossoundspeed testscvheossoundspeed.o $(OBJ) $(LIBS)
testscvheosunits: testscvheosunits.o $(OBJ)
cc -o testscvheosunits testscvheosunits.o $(OBJ) $(LIBS)
scvheoscalcentropyonreos3grid: scvheoscalcentropyonreos3grid.o $(OBJ)
cc -o scvheoscalcentropyonreos3grid scvheoscalcentropyonreos3grid.o $(OBJ) $(LIBS)
scvheos_h_limitedtoreos3: scvheos_h_limitedtoreos3.o $(OBJ)
cc -o scvheos_h_limitedtoreos3 scvheos_h_limitedtoreos3.o $(OBJ) $(LIBS)
scvheos_he_limitedtoreos3: scvheos_he_limitedtoreos3.o $(OBJ)
cc -o scvheos_he_limitedtoreos3 scvheos_he_limitedtoreos3.o $(OBJ) $(LIBS)
scvheos_hhe_limitedtoreos3: scvheos_hhe_limitedtoreos3.o $(OBJ)
cc -o scvheos_hhe_limitedtoreos3 scvheos_hhe_limitedtoreos3.o $(OBJ) $(LIBS)
scvheoscalcentropy_gsl: scvheoscalcentropy_gsl.o $(OBJ)
cc -o scvheoscalcentropy_gsl scvheoscalcentropy_gsl.o $(OBJ) $(LIBS)
test_ravit_model: test_ravit_model.o $(OBJ)
cc -o test_ravit_model test_ravit_model.o $(OBJ) $(LIBS)
test_ravit_model_prhou: test_ravit_model_prhou.o $(OBJ)
cc -o test_ravit_model_prhou test_ravit_model_prhou.o $(OBJ) $(LIBS)
extrap_scvh_on_grid: extrap_scvh_on_grid.o $(OBJ)
cc -o extrap_scvh_on_grid extrap_scvh_on_grid.o $(OBJ) $(LIBS)
#
# Tools.
#
scvheoscalcentropy: scvheoscalcentropy.o $(OBJ)
cc -o scvheoscalcentropy scvheoscalcentropy.o $(OBJ) $(LIBS)
scvheoscalcintenergy: scvheoscalcintenergy.o $(OBJ)
cc -o scvheoscalcintenergy scvheoscalcintenergy.o $(OBJ) $(LIBS)
scvheosprintmat: scvheosprintmat.o $(OBJ)
cc -o scvheosprintmat scvheosprintmat.o $(OBJ) $(LIBS)
scvheoscalctemprhou: scvheoscalctemprhou.o $(OBJ)
cc -o scvheoscalctemprhou scvheoscalctemprhou.o $(OBJ) $(LIBS)
scvheoscalcurhotemp: scvheoscalcurhotemp.o $(OBJ)
cc -o scvheoscalcurhotemp scvheoscalcurhotemp.o $(OBJ) $(LIBS)
scvheos_calc_pofrhot: scvheos_calc_pofrhot.o $(OBJ)
cc -o scvheos_calc_pofrhot scvheos_calc_pofrhot.o $(OBJ) $(LIBS)
calc_model_entropy: calc_model_entropy.o $(OBJ)
cc -o calc_model_entropy calc_model_entropy.o $(OBJ) $(LIBS)
calc_ravit_model_entropy: calc_ravit_model_entropy.o $(OBJ)
cc -o calc_ravit_model_entropy calc_ravit_model_entropy.o $(OBJ) $(LIBS)
calc_ravit_model_codeunits: calc_ravit_model_codeunits.o $(OBJ)
cc -o calc_ravit_model_codeunits calc_ravit_model_codeunits.o $(OBJ) $(LIBS)
scvheos_calc_isentrope: scvheos_calc_isentrope.o $(OBJ)
cc -o scvheos_calc_isentrope scvheos_calc_isentrope.o $(OBJ) $(LIBS)
calc_isentrope_rhot: calc_isentrope_rhot.o $(OBJ)
cc -o calc_isentrope_rhot calc_isentrope_rhot.o $(OBJ) $(LIBS)
clean:
rm $(OBJ)
cleanall:
rm $(EXE) $(OBJ) *.o