blob: 8eadb951d82ccdd9087442e6846e4578304ecfd1 (
plain)
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
|
#
# Automagically generated by Approximatrix Simply Fortran 3.37
#
FC?="gfortran"
CC?="gcc"
AR?="ar"
WRC?="windres"
RM=rm -f
IDIR=
LDIR=
OPTFLAGS= -g -gdwarf-4
SPECIALFLAGS=
RCFLAGS=-O coff --use-temp-file
PRJ_FFLAGS=-DGNU -fcheck=all
PRJ_CFLAGS=
PRJ_LFLAGS=-lsqlite3 -lssl -lcrypt
FFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(IDIR) $(PRJ_FFLAGS) -Jmodules
CFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(IDIR) $(PRJ_CFLAGS)
build:
mkdir -p $@
modules:
mkdir -p $@
.PHONY: all clean
build/api.o: api.f90 modules/captain_db.mod modules/utilities.mod modules/server_response.mod modules/logging.mod modules/special_filenames.mod modules/security.mod modules/gemini_codes.mod | modules build
@echo Compiling api.f90
@$(FC) -c -o "build/api.o" $(FFLAGS) "api.f90"
modules/api_handling.mod : | modules build/api.o
build/auth_level.o: auth_level.f90 | modules build
@echo Compiling auth_level.f90
@$(FC) -c -o "build/auth_level.o" $(FFLAGS) "auth_level.f90"
modules/auth_levels.mod : | modules build/auth_level.o
build/captain.o: captain.f90 modules/captain_db.mod modules/config.mod modules/logging.mod modules/gemini.mod modules/web.mod modules/m_crypt.mod modules/m_uuid.mod | modules build
@echo Compiling captain.f90
@$(FC) -c -o "build/captain.o" $(FFLAGS) "captain.f90"
build/codes.o: codes.f90 | modules build
@echo Compiling codes.f90
@$(FC) -c -o "build/codes.o" $(FFLAGS) "codes.f90"
modules/http_codes.mod : | modules build/codes.o
modules/gemini_codes.mod : | modules build/codes.o
build/config.o: config.f90 modules/utilities.mod modules/auth_levels.mod | modules build
@echo Compiling config.f90
@$(FC) -c -o "build/config.o" $(FFLAGS) "config.f90"
modules/config.mod : | modules build/config.o
build/crypt.o: crypt.F90 | modules build
@echo Compiling crypt.F90
@$(FC) -c -o "build/crypt.o" $(FFLAGS) "crypt.F90"
modules/m_crypt.mod : | modules build/crypt.o
build/db.o: db.f90 modules/sqlite.mod modules/logging.mod modules/config.mod modules/utilities.mod modules/m_crypt.mod modules/auth_levels.mod modules/m_uuid.mod | modules build
@echo Compiling db.f90
@$(FC) -c -o "build/db.o" $(FFLAGS) "db.f90"
modules/captain_db.mod : | modules build/db.o
build/external.o: external.f90 modules/captain_db.mod modules/server_response.mod modules/request_utils.mod modules/logging.mod modules/config.mod modules/special_filenames.mod modules/utilities.mod modules/gemini_codes.mod modules/m_uuid.mod modules/page_template.mod modules/query_utilities.mod modules/security.mod | modules build
@echo Compiling external.f90
@$(FC) -c -o "build/external.o" $(FFLAGS) "external.f90"
modules/external_handling.mod : | modules build/external.o
build/gemini.o: gemini.f90 modules/jessl.mod modules/logging.mod modules/gemini_codes.mod modules/config.mod modules/external_handling.mod modules/api_handling.mod modules/m_uuid.mod modules/server_response.mod | modules build
@echo Compiling gemini.f90
@$(FC) -c -o "build/gemini.o" $(FFLAGS) "gemini.f90"
modules/gemini.mod : | modules build/gemini.o
build/http.o: http.f90 modules/logging.mod | modules build
@echo Compiling http.f90
@$(FC) -c -o "build/http.o" $(FFLAGS) "http.f90"
modules/http.mod : | modules build/http.o
build/jessl.o: ../common/jessl.f90 modules/utilities.mod | modules build
@echo Compiling ../common/jessl.f90
@$(FC) -c -o "build/jessl.o" $(FFLAGS) "../common/jessl.f90"
modules/jessl.mod : | modules build/jessl.o
build/launch.o: launch.f90 modules/captain_db.mod | modules build
@echo Compiling launch.f90
@$(FC) -c -o "build/launch.o" $(FFLAGS) "launch.f90"
modules/remote_launch.mod : | modules build/launch.o
build/log.o: log.f90 | modules build
@echo Compiling log.f90
@$(FC) -c -o "build/log.o" $(FFLAGS) "log.f90"
modules/logging.mod : | modules build/log.o
build/network.o: ../common/network.F90 | modules build
@echo Compiling ../common/network.F90
@$(FC) -c -o "build/network.o" $(FFLAGS) "../common/network.F90"
modules/network.mod : | modules build/network.o
build/postutils.o: postutils.f90 modules/query_utilities.mod modules/logging.mod | modules build
@echo Compiling postutils.f90
@$(FC) -c -o "build/postutils.o" $(FFLAGS) "postutils.f90"
modules/http_post_utilities.mod : | modules build/postutils.o
build/protocol.o: ../common/protocol.f90 modules/request.mod modules/utilities.mod modules/jessl.mod | modules build
@echo Compiling ../common/protocol.f90
@$(FC) -c -o "build/protocol.o" $(FFLAGS) "../common/protocol.f90"
modules/gemini_protocol.mod : | modules build/protocol.o
build/queryutils.o: queryutils.f90 modules/logging.mod | modules build
@echo Compiling queryutils.f90
@$(FC) -c -o "build/queryutils.o" $(FFLAGS) "queryutils.f90"
modules/query_utilities.mod : | modules build/queryutils.o
build/request.o: ../common/request.f90 modules/network.mod modules/jessl.mod | modules build
@echo Compiling ../common/request.f90
@$(FC) -c -o "build/request.o" $(FFLAGS) "../common/request.f90"
modules/request.mod : | modules build/request.o
build/requtils.o: requtils.f90 modules/http_codes.mod modules/gemini_codes.mod modules/server_response.mod modules/utilities.mod modules/captain_db.mod modules/logging.mod modules/config.mod modules/special_filenames.mod modules/remote_launch.mod | modules build
@echo Compiling requtils.f90
@$(FC) -c -o "build/requtils.o" $(FFLAGS) "requtils.f90"
modules/request_utils.mod : | modules build/requtils.o
build/response.o: response.f90 modules/query_utilities.mod modules/logging.mod modules/utilities.mod modules/captain_db.mod modules/auth_levels.mod modules/jessl.mod | modules build
@echo Compiling response.f90
@$(FC) -c -o "build/response.o" $(FFLAGS) "response.f90"
modules/server_response.mod : | modules build/response.o
build/security.o: security.f90 modules/captain_db.mod modules/logging.mod | modules build
@echo Compiling security.f90
@$(FC) -c -o "build/security.o" $(FFLAGS) "security.f90"
modules/security.mod : | modules build/security.o
build/special.o: special.f90 modules/utilities.mod modules/config.mod modules/logging.mod modules/captain_db.mod modules/server_response.mod | modules build
@echo Compiling special.f90
@$(FC) -c -o "build/special.o" $(FFLAGS) "special.f90"
modules/special_filenames.mod : | modules build/special.o
build/sqlite.o: sqlite.f90 | modules build
@echo Compiling sqlite.f90
@$(FC) -c -o "build/sqlite.o" $(FFLAGS) "sqlite.f90"
modules/sqlite.mod : | modules build/sqlite.o
build/template.o: template.f90 modules/logging.mod modules/utilities.mod modules/config.mod | modules build
@echo Compiling template.f90
@$(FC) -c -o "build/template.o" $(FFLAGS) "template.f90"
modules/page_template.mod : | modules build/template.o
build/utilities.o: ../common/utilities.F90 | modules build
@echo Compiling ../common/utilities.F90
@$(FC) -c -o "build/utilities.o" $(FFLAGS) "../common/utilities.F90"
modules/utilities.mod : | modules build/utilities.o
build/uuid.o: uuid.f90 modules/utilities.mod | modules build
@echo Compiling uuid.f90
@$(FC) -c -o "build/uuid.o" $(FFLAGS) "uuid.f90"
modules/m_uuid.mod : | modules build/uuid.o
build/web.o: web.f90 modules/utilities.mod modules/server_response.mod modules/page_template.mod modules/captain_db.mod modules/config.mod modules/logging.mod modules/request_utils.mod modules/query_utilities.mod modules/remote_launch.mod modules/special_filenames.mod modules/http_codes.mod modules/http_post_utilities.mod modules/http.mod | modules build
@echo Compiling web.f90
@$(FC) -c -o "build/web.o" $(FFLAGS) "web.f90"
modules/web.mod : | modules build/web.o
clean:
@echo Deleting build/api.o and related files
@$(RM) "build/api.o" "modules/api_handling.mod" "modules/api_handling.smod"
@echo Deleting build/auth_level.o and related files
@$(RM) "build/auth_level.o" "modules/auth_levels.mod" "modules/auth_levels.smod"
@echo Deleting build/captain.o and related files
@$(RM) "build/captain.o"
@echo Deleting build/codes.o and related files
@$(RM) "build/codes.o" "modules/http_codes.mod" "modules/http_codes.smod" "modules/gemini_codes.mod" "modules/gemini_codes.smod"
@echo Deleting build/config.o and related files
@$(RM) "build/config.o" "modules/config.mod" "modules/config.smod"
@echo Deleting build/crypt.o and related files
@$(RM) "build/crypt.o" "modules/m_crypt.mod" "modules/m_crypt.smod"
@echo Deleting build/db.o and related files
@$(RM) "build/db.o" "modules/captain_db.mod" "modules/captain_db.smod"
@echo Deleting build/external.o and related files
@$(RM) "build/external.o" "modules/external_handling.mod" "modules/external_handling.smod"
@echo Deleting build/gemini.o and related files
@$(RM) "build/gemini.o" "modules/gemini.mod" "modules/gemini.smod"
@echo Deleting build/http.o and related files
@$(RM) "build/http.o" "modules/http.mod" "modules/http.smod"
@echo Deleting build/jessl.o and related files
@$(RM) "build/jessl.o" "modules/jessl.mod" "modules/jessl.smod"
@echo Deleting build/launch.o and related files
@$(RM) "build/launch.o" "modules/remote_launch.mod" "modules/remote_launch.smod"
@echo Deleting build/log.o and related files
@$(RM) "build/log.o" "modules/logging.mod" "modules/logging.smod"
@echo Deleting build/network.o and related files
@$(RM) "build/network.o" "modules/network.mod" "modules/network.smod"
@echo Deleting build/postutils.o and related files
@$(RM) "build/postutils.o" "modules/http_post_utilities.mod" "modules/http_post_utilities.smod"
@echo Deleting build/protocol.o and related files
@$(RM) "build/protocol.o" "modules/gemini_protocol.mod" "modules/gemini_protocol.smod"
@echo Deleting build/queryutils.o and related files
@$(RM) "build/queryutils.o" "modules/query_utilities.mod" "modules/query_utilities.smod"
@echo Deleting build/request.o and related files
@$(RM) "build/request.o" "modules/request.mod" "modules/request.smod"
@echo Deleting build/requtils.o and related files
@$(RM) "build/requtils.o" "modules/request_utils.mod" "modules/request_utils.smod"
@echo Deleting build/response.o and related files
@$(RM) "build/response.o" "modules/server_response.mod" "modules/server_response.smod"
@echo Deleting build/security.o and related files
@$(RM) "build/security.o" "modules/security.mod" "modules/security.smod"
@echo Deleting build/special.o and related files
@$(RM) "build/special.o" "modules/special_filenames.mod" "modules/special_filenames.smod"
@echo Deleting build/sqlite.o and related files
@$(RM) "build/sqlite.o" "modules/sqlite.mod" "modules/sqlite.smod"
@echo Deleting build/template.o and related files
@$(RM) "build/template.o" "modules/page_template.mod" "modules/page_template.smod"
@echo Deleting build/utilities.o and related files
@$(RM) "build/utilities.o" "modules/utilities.mod" "modules/utilities.smod"
@echo Deleting build/uuid.o and related files
@$(RM) "build/uuid.o" "modules/m_uuid.mod" "modules/m_uuid.smod"
@echo Deleting build/web.o and related files
@$(RM) "build/web.o" "modules/web.mod" "modules/web.smod"
@echo Deleting build/wsa.o and related files
@$(RM) "build/wsa.o"
@echo Deleting directory modules
@rmdir modules
@echo Deleting directory build
@rmdir build
@echo Deleting levitating-captain
@$(RM) "levitating-captain"
levitating-captain: build/api.o build/auth_level.o build/captain.o build/codes.o build/config.o build/crypt.o build/db.o build/external.o build/gemini.o build/http.o build/jessl.o build/launch.o build/log.o build/network.o build/postutils.o build/protocol.o build/queryutils.o build/request.o build/requtils.o build/response.o build/security.o build/special.o build/sqlite.o build/template.o build/utilities.o build/uuid.o build/web.o
@echo Generating levitating-captain
@$(FC) -o "levitating-captain" $(SPECIALFLAGS) build/api.o build/auth_level.o build/captain.o build/codes.o build/config.o build/crypt.o build/db.o build/external.o build/gemini.o build/http.o build/jessl.o build/launch.o build/log.o build/network.o build/postutils.o build/protocol.o build/queryutils.o build/request.o build/requtils.o build/response.o build/security.o build/special.o build/sqlite.o build/template.o build/utilities.o build/uuid.o build/web.o $(LDIR) $(PRJ_LFLAGS)
all: levitating-captain
|