Fossil SCM

make it possible to do both Linux and Win builds without doing clean first

ron 2010-02-21 10:45 trunk
Commit aff93fb6b8e316426781da70eb18195861a53c85
+1
--- Makefile
+++ Makefile
@@ -3,10 +3,11 @@
33
#### The toplevel directory of the source tree. Fossil can be built
44
# in a directory that is separate from the source tree. Just change
55
# the following to point from the build directory to the src/ folder.
66
#
77
SRCDIR = ./src
8
+OBJDIR = ./obj
89
910
#### C Compiler and options for use in building executables that
1011
# will run on the platform that is doing the build. This is used
1112
# to compile code-generator programs as part of the build process.
1213
# See TCC below for the C compiler for building the finished binary.
1314
--- Makefile
+++ Makefile
@@ -3,10 +3,11 @@
3 #### The toplevel directory of the source tree. Fossil can be built
4 # in a directory that is separate from the source tree. Just change
5 # the following to point from the build directory to the src/ folder.
6 #
7 SRCDIR = ./src
 
8
9 #### C Compiler and options for use in building executables that
10 # will run on the platform that is doing the build. This is used
11 # to compile code-generator programs as part of the build process.
12 # See TCC below for the C compiler for building the finished binary.
13
--- Makefile
+++ Makefile
@@ -3,10 +3,11 @@
3 #### The toplevel directory of the source tree. Fossil can be built
4 # in a directory that is separate from the source tree. Just change
5 # the following to point from the build directory to the src/ folder.
6 #
7 SRCDIR = ./src
8 OBJDIR = ./obj
9
10 #### C Compiler and options for use in building executables that
11 # will run on the platform that is doing the build. This is used
12 # to compile code-generator programs as part of the build process.
13 # See TCC below for the C compiler for building the finished binary.
14
--- Makefile.w32
+++ Makefile.w32
@@ -3,10 +3,11 @@
33
#### The toplevel directory of the source tree. Fossil can be built
44
# in a directory that is separate from the source tree. Just change
55
# the following to point from the build directory to the src/ folder.
66
#
77
SRCDIR = ./src
8
+OBJDIR = ./wobj
89
910
#### C Compiler and options for use in building executables that
1011
# will run on the platform that is doing the build. This is used
1112
# to compile code-generator programs as part of the build process.
1213
# See TCC below for the C compiler for building the finished binary.
1314
--- Makefile.w32
+++ Makefile.w32
@@ -3,10 +3,11 @@
3 #### The toplevel directory of the source tree. Fossil can be built
4 # in a directory that is separate from the source tree. Just change
5 # the following to point from the build directory to the src/ folder.
6 #
7 SRCDIR = ./src
 
8
9 #### C Compiler and options for use in building executables that
10 # will run on the platform that is doing the build. This is used
11 # to compile code-generator programs as part of the build process.
12 # See TCC below for the C compiler for building the finished binary.
13
--- Makefile.w32
+++ Makefile.w32
@@ -3,10 +3,11 @@
3 #### The toplevel directory of the source tree. Fossil can be built
4 # in a directory that is separate from the source tree. Just change
5 # the following to point from the build directory to the src/ folder.
6 #
7 SRCDIR = ./src
8 OBJDIR = ./wobj
9
10 #### C Compiler and options for use in building executables that
11 # will run on the platform that is doing the build. This is used
12 # to compile code-generator programs as part of the build process.
13 # See TCC below for the C compiler for building the finished binary.
14
+228 -225
--- src/main.mk
+++ src/main.mk
@@ -157,91 +157,94 @@
157157
winhttp_.c \
158158
xfer_.c \
159159
zip_.c
160160
161161
OBJ = \
162
- add.o \
163
- allrepo.o \
164
- bag.o \
165
- blob.o \
166
- branch.o \
167
- browse.o \
168
- captcha.o \
169
- cgi.o \
170
- checkin.o \
171
- checkout.o \
172
- clearsign.o \
173
- clone.o \
174
- comformat.o \
175
- configure.o \
176
- construct.o \
177
- content.o \
178
- db.o \
179
- delta.o \
180
- deltacmd.o \
181
- descendants.o \
182
- diff.o \
183
- diffcmd.o \
184
- doc.o \
185
- encode.o \
186
- file.o \
187
- finfo.o \
188
- graph.o \
189
- http.o \
190
- http_socket.o \
191
- http_ssl.o \
192
- http_transport.o \
193
- info.o \
194
- login.o \
195
- main.o \
196
- manifest.o \
197
- md5.o \
198
- merge.o \
199
- merge3.o \
200
- name.o \
201
- pivot.o \
202
- pqueue.o \
203
- printf.o \
204
- rebuild.o \
205
- report.o \
206
- rss.o \
207
- rstats.o \
208
- schema.o \
209
- search.o \
210
- setup.o \
211
- sha1.o \
212
- shun.o \
213
- skins.o \
214
- stat.o \
215
- style.o \
216
- sync.o \
217
- tag.o \
218
- th_main.o \
219
- timeline.o \
220
- tkt.o \
221
- tktsetup.o \
222
- undo.o \
223
- update.o \
224
- url.o \
225
- user.o \
226
- verify.o \
227
- vfile.o \
228
- wiki.o \
229
- wikiformat.o \
230
- winhttp.o \
231
- xfer.o \
232
- zip.o
162
+ $(OBJDIR)/add.o \
163
+ $(OBJDIR)/allrepo.o \
164
+ $(OBJDIR)/bag.o \
165
+ $(OBJDIR)/blob.o \
166
+ $(OBJDIR)/branch.o \
167
+ $(OBJDIR)/browse.o \
168
+ $(OBJDIR)/captcha.o \
169
+ $(OBJDIR)/cgi.o \
170
+ $(OBJDIR)/checkin.o \
171
+ $(OBJDIR)/checkout.o \
172
+ $(OBJDIR)/clearsign.o \
173
+ $(OBJDIR)/clone.o \
174
+ $(OBJDIR)/comformat.o \
175
+ $(OBJDIR)/configure.o \
176
+ $(OBJDIR)/construct.o \
177
+ $(OBJDIR)/content.o \
178
+ $(OBJDIR)/db.o \
179
+ $(OBJDIR)/delta.o \
180
+ $(OBJDIR)/deltacmd.o \
181
+ $(OBJDIR)/descendants.o \
182
+ $(OBJDIR)/diff.o \
183
+ $(OBJDIR)/diffcmd.o \
184
+ $(OBJDIR)/doc.o \
185
+ $(OBJDIR)/encode.o \
186
+ $(OBJDIR)/file.o \
187
+ $(OBJDIR)/finfo.o \
188
+ $(OBJDIR)/graph.o \
189
+ $(OBJDIR)/http.o \
190
+ $(OBJDIR)/http_socket.o \
191
+ $(OBJDIR)/http_ssl.o \
192
+ $(OBJDIR)/http_transport.o \
193
+ $(OBJDIR)/info.o \
194
+ $(OBJDIR)/login.o \
195
+ $(OBJDIR)/main.o \
196
+ $(OBJDIR)/manifest.o \
197
+ $(OBJDIR)/md5.o \
198
+ $(OBJDIR)/merge.o \
199
+ $(OBJDIR)/merge3.o \
200
+ $(OBJDIR)/name.o \
201
+ $(OBJDIR)/pivot.o \
202
+ $(OBJDIR)/pqueue.o \
203
+ $(OBJDIR)/printf.o \
204
+ $(OBJDIR)/rebuild.o \
205
+ $(OBJDIR)/report.o \
206
+ $(OBJDIR)/rss.o \
207
+ $(OBJDIR)/rstats.o \
208
+ $(OBJDIR)/schema.o \
209
+ $(OBJDIR)/search.o \
210
+ $(OBJDIR)/setup.o \
211
+ $(OBJDIR)/sha1.o \
212
+ $(OBJDIR)/shun.o \
213
+ $(OBJDIR)/skins.o \
214
+ $(OBJDIR)/stat.o \
215
+ $(OBJDIR)/style.o \
216
+ $(OBJDIR)/sync.o \
217
+ $(OBJDIR)/tag.o \
218
+ $(OBJDIR)/th_main.o \
219
+ $(OBJDIR)/timeline.o \
220
+ $(OBJDIR)/tkt.o \
221
+ $(OBJDIR)/tktsetup.o \
222
+ $(OBJDIR)/undo.o \
223
+ $(OBJDIR)/update.o \
224
+ $(OBJDIR)/url.o \
225
+ $(OBJDIR)/user.o \
226
+ $(OBJDIR)/verify.o \
227
+ $(OBJDIR)/vfile.o \
228
+ $(OBJDIR)/wiki.o \
229
+ $(OBJDIR)/wikiformat.o \
230
+ $(OBJDIR)/winhttp.o \
231
+ $(OBJDIR)/xfer.o \
232
+ $(OBJDIR)/zip.o
233233
234234
APPNAME = fossil$(E)
235235
236236
237237
238
-all: $(APPNAME)
238
+all: $(OBJDIR) $(APPNAME)
239239
240240
install: $(APPNAME)
241241
mv $(APPNAME) $(INSTALLDIR)
242242
243
+$(OBJDIR):
244
+ -mkdir $(OBJDIR)
245
+
243246
translate: $(SRCDIR)/translate.c
244247
$(BCC) -o translate $(SRCDIR)/translate.c
245248
246249
makeheaders: $(SRCDIR)/makeheaders.c
247250
$(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
@@ -258,21 +261,21 @@
258261
VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest
259262
awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' $(SRCDIR)/../manifest.uuid >VERSION.h
260263
awk '{ printf "#define MANIFEST_VERSION \"[%.10s]\"\n", $$1}' $(SRCDIR)/../manifest.uuid >>VERSION.h
261264
awk '$$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n", substr($$2,1,10),substr($$2,12)}' $(SRCDIR)/../manifest >>VERSION.h
262265
263
-$(APPNAME): headers $(OBJ) sqlite3.o th.o th_lang.o
264
- $(TCC) -o $(APPNAME) $(OBJ) sqlite3.o th.o th_lang.o $(LIB)
266
+$(APPNAME): headers $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o
267
+ $(TCC) -o $(APPNAME) $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(LIB)
265268
266269
# This rule prevents make from using its default rules to try build
267270
# an executable named "manifest" out of the file named "manifest.c"
268271
#
269272
$(SRCDIR)/../manifest:
270273
# noop
271274
272275
clean:
273
- rm -f *.o *_.c $(APPNAME) VERSION.h
276
+ rm -f $(OBJDIR)/*.o *_.c $(APPNAME) VERSION.h
274277
rm -f translate makeheaders mkindex page_index.h headers
275278
rm -f add.h allrepo.h bag.h blob.h branch.h browse.h captcha.h cgi.h checkin.h checkout.h clearsign.h clone.h comformat.h configure.h construct.h content.h db.h delta.h deltacmd.h descendants.h diff.h diffcmd.h doc.h encode.h file.h finfo.h graph.h http.h http_socket.h http_ssl.h http_transport.h info.h login.h main.h manifest.h md5.h merge.h merge3.h name.h pivot.h pqueue.h printf.h rebuild.h report.h rss.h rstats.h schema.h search.h setup.h sha1.h shun.h skins.h stat.h style.h sync.h tag.h th_main.h timeline.h tkt.h tktsetup.h undo.h update.h url.h user.h verify.h vfile.h wiki.h wikiformat.h winhttp.h xfer.h zip.h
276279
277280
page_index.h: $(TRANS_SRC) mkindex
278281
./mkindex $(TRANS_SRC) >$@
@@ -282,508 +285,508 @@
282285
headers: Makefile
283286
Makefile:
284287
add_.c: $(SRCDIR)/add.c translate
285288
./translate $(SRCDIR)/add.c >add_.c
286289
287
-add.o: add_.c add.h $(SRCDIR)/config.h
288
- $(XTCC) -o add.o -c add_.c
290
+$(OBJDIR)/add.o: add_.c add.h $(SRCDIR)/config.h
291
+ $(XTCC) -o $(OBJDIR)/add.o -c add_.c
289292
290293
add.h: headers
291294
allrepo_.c: $(SRCDIR)/allrepo.c translate
292295
./translate $(SRCDIR)/allrepo.c >allrepo_.c
293296
294
-allrepo.o: allrepo_.c allrepo.h $(SRCDIR)/config.h
295
- $(XTCC) -o allrepo.o -c allrepo_.c
297
+$(OBJDIR)/allrepo.o: allrepo_.c allrepo.h $(SRCDIR)/config.h
298
+ $(XTCC) -o $(OBJDIR)/allrepo.o -c allrepo_.c
296299
297300
allrepo.h: headers
298301
bag_.c: $(SRCDIR)/bag.c translate
299302
./translate $(SRCDIR)/bag.c >bag_.c
300303
301
-bag.o: bag_.c bag.h $(SRCDIR)/config.h
302
- $(XTCC) -o bag.o -c bag_.c
304
+$(OBJDIR)/bag.o: bag_.c bag.h $(SRCDIR)/config.h
305
+ $(XTCC) -o $(OBJDIR)/bag.o -c bag_.c
303306
304307
bag.h: headers
305308
blob_.c: $(SRCDIR)/blob.c translate
306309
./translate $(SRCDIR)/blob.c >blob_.c
307310
308
-blob.o: blob_.c blob.h $(SRCDIR)/config.h
309
- $(XTCC) -o blob.o -c blob_.c
311
+$(OBJDIR)/blob.o: blob_.c blob.h $(SRCDIR)/config.h
312
+ $(XTCC) -o $(OBJDIR)/blob.o -c blob_.c
310313
311314
blob.h: headers
312315
branch_.c: $(SRCDIR)/branch.c translate
313316
./translate $(SRCDIR)/branch.c >branch_.c
314317
315
-branch.o: branch_.c branch.h $(SRCDIR)/config.h
316
- $(XTCC) -o branch.o -c branch_.c
318
+$(OBJDIR)/branch.o: branch_.c branch.h $(SRCDIR)/config.h
319
+ $(XTCC) -o $(OBJDIR)/branch.o -c branch_.c
317320
318321
branch.h: headers
319322
browse_.c: $(SRCDIR)/browse.c translate
320323
./translate $(SRCDIR)/browse.c >browse_.c
321324
322
-browse.o: browse_.c browse.h $(SRCDIR)/config.h
323
- $(XTCC) -o browse.o -c browse_.c
325
+$(OBJDIR)/browse.o: browse_.c browse.h $(SRCDIR)/config.h
326
+ $(XTCC) -o $(OBJDIR)/browse.o -c browse_.c
324327
325328
browse.h: headers
326329
captcha_.c: $(SRCDIR)/captcha.c translate
327330
./translate $(SRCDIR)/captcha.c >captcha_.c
328331
329
-captcha.o: captcha_.c captcha.h $(SRCDIR)/config.h
330
- $(XTCC) -o captcha.o -c captcha_.c
332
+$(OBJDIR)/captcha.o: captcha_.c captcha.h $(SRCDIR)/config.h
333
+ $(XTCC) -o $(OBJDIR)/captcha.o -c captcha_.c
331334
332335
captcha.h: headers
333336
cgi_.c: $(SRCDIR)/cgi.c translate
334337
./translate $(SRCDIR)/cgi.c >cgi_.c
335338
336
-cgi.o: cgi_.c cgi.h $(SRCDIR)/config.h
337
- $(XTCC) -o cgi.o -c cgi_.c
339
+$(OBJDIR)/cgi.o: cgi_.c cgi.h $(SRCDIR)/config.h
340
+ $(XTCC) -o $(OBJDIR)/cgi.o -c cgi_.c
338341
339342
cgi.h: headers
340343
checkin_.c: $(SRCDIR)/checkin.c translate
341344
./translate $(SRCDIR)/checkin.c >checkin_.c
342345
343
-checkin.o: checkin_.c checkin.h $(SRCDIR)/config.h
344
- $(XTCC) -o checkin.o -c checkin_.c
346
+$(OBJDIR)/checkin.o: checkin_.c checkin.h $(SRCDIR)/config.h
347
+ $(XTCC) -o $(OBJDIR)/checkin.o -c checkin_.c
345348
346349
checkin.h: headers
347350
checkout_.c: $(SRCDIR)/checkout.c translate
348351
./translate $(SRCDIR)/checkout.c >checkout_.c
349352
350
-checkout.o: checkout_.c checkout.h $(SRCDIR)/config.h
351
- $(XTCC) -o checkout.o -c checkout_.c
353
+$(OBJDIR)/checkout.o: checkout_.c checkout.h $(SRCDIR)/config.h
354
+ $(XTCC) -o $(OBJDIR)/checkout.o -c checkout_.c
352355
353356
checkout.h: headers
354357
clearsign_.c: $(SRCDIR)/clearsign.c translate
355358
./translate $(SRCDIR)/clearsign.c >clearsign_.c
356359
357
-clearsign.o: clearsign_.c clearsign.h $(SRCDIR)/config.h
358
- $(XTCC) -o clearsign.o -c clearsign_.c
360
+$(OBJDIR)/clearsign.o: clearsign_.c clearsign.h $(SRCDIR)/config.h
361
+ $(XTCC) -o $(OBJDIR)/clearsign.o -c clearsign_.c
359362
360363
clearsign.h: headers
361364
clone_.c: $(SRCDIR)/clone.c translate
362365
./translate $(SRCDIR)/clone.c >clone_.c
363366
364
-clone.o: clone_.c clone.h $(SRCDIR)/config.h
365
- $(XTCC) -o clone.o -c clone_.c
367
+$(OBJDIR)/clone.o: clone_.c clone.h $(SRCDIR)/config.h
368
+ $(XTCC) -o $(OBJDIR)/clone.o -c clone_.c
366369
367370
clone.h: headers
368371
comformat_.c: $(SRCDIR)/comformat.c translate
369372
./translate $(SRCDIR)/comformat.c >comformat_.c
370373
371
-comformat.o: comformat_.c comformat.h $(SRCDIR)/config.h
372
- $(XTCC) -o comformat.o -c comformat_.c
374
+$(OBJDIR)/comformat.o: comformat_.c comformat.h $(SRCDIR)/config.h
375
+ $(XTCC) -o $(OBJDIR)/comformat.o -c comformat_.c
373376
374377
comformat.h: headers
375378
configure_.c: $(SRCDIR)/configure.c translate
376379
./translate $(SRCDIR)/configure.c >configure_.c
377380
378
-configure.o: configure_.c configure.h $(SRCDIR)/config.h
379
- $(XTCC) -o configure.o -c configure_.c
381
+$(OBJDIR)/configure.o: configure_.c configure.h $(SRCDIR)/config.h
382
+ $(XTCC) -o $(OBJDIR)/configure.o -c configure_.c
380383
381384
configure.h: headers
382385
construct_.c: $(SRCDIR)/construct.c translate
383386
./translate $(SRCDIR)/construct.c >construct_.c
384387
385
-construct.o: construct_.c construct.h $(SRCDIR)/config.h
386
- $(XTCC) -o construct.o -c construct_.c
388
+$(OBJDIR)/construct.o: construct_.c construct.h $(SRCDIR)/config.h
389
+ $(XTCC) -o $(OBJDIR)/construct.o -c construct_.c
387390
388391
construct.h: headers
389392
content_.c: $(SRCDIR)/content.c translate
390393
./translate $(SRCDIR)/content.c >content_.c
391394
392
-content.o: content_.c content.h $(SRCDIR)/config.h
393
- $(XTCC) -o content.o -c content_.c
395
+$(OBJDIR)/content.o: content_.c content.h $(SRCDIR)/config.h
396
+ $(XTCC) -o $(OBJDIR)/content.o -c content_.c
394397
395398
content.h: headers
396399
db_.c: $(SRCDIR)/db.c translate
397400
./translate $(SRCDIR)/db.c >db_.c
398401
399
-db.o: db_.c db.h $(SRCDIR)/config.h
400
- $(XTCC) -o db.o -c db_.c
402
+$(OBJDIR)/db.o: db_.c db.h $(SRCDIR)/config.h
403
+ $(XTCC) -o $(OBJDIR)/db.o -c db_.c
401404
402405
db.h: headers
403406
delta_.c: $(SRCDIR)/delta.c translate
404407
./translate $(SRCDIR)/delta.c >delta_.c
405408
406
-delta.o: delta_.c delta.h $(SRCDIR)/config.h
407
- $(XTCC) -o delta.o -c delta_.c
409
+$(OBJDIR)/delta.o: delta_.c delta.h $(SRCDIR)/config.h
410
+ $(XTCC) -o $(OBJDIR)/delta.o -c delta_.c
408411
409412
delta.h: headers
410413
deltacmd_.c: $(SRCDIR)/deltacmd.c translate
411414
./translate $(SRCDIR)/deltacmd.c >deltacmd_.c
412415
413
-deltacmd.o: deltacmd_.c deltacmd.h $(SRCDIR)/config.h
414
- $(XTCC) -o deltacmd.o -c deltacmd_.c
416
+$(OBJDIR)/deltacmd.o: deltacmd_.c deltacmd.h $(SRCDIR)/config.h
417
+ $(XTCC) -o $(OBJDIR)/deltacmd.o -c deltacmd_.c
415418
416419
deltacmd.h: headers
417420
descendants_.c: $(SRCDIR)/descendants.c translate
418421
./translate $(SRCDIR)/descendants.c >descendants_.c
419422
420
-descendants.o: descendants_.c descendants.h $(SRCDIR)/config.h
421
- $(XTCC) -o descendants.o -c descendants_.c
423
+$(OBJDIR)/descendants.o: descendants_.c descendants.h $(SRCDIR)/config.h
424
+ $(XTCC) -o $(OBJDIR)/descendants.o -c descendants_.c
422425
423426
descendants.h: headers
424427
diff_.c: $(SRCDIR)/diff.c translate
425428
./translate $(SRCDIR)/diff.c >diff_.c
426429
427
-diff.o: diff_.c diff.h $(SRCDIR)/config.h
428
- $(XTCC) -o diff.o -c diff_.c
430
+$(OBJDIR)/diff.o: diff_.c diff.h $(SRCDIR)/config.h
431
+ $(XTCC) -o $(OBJDIR)/diff.o -c diff_.c
429432
430433
diff.h: headers
431434
diffcmd_.c: $(SRCDIR)/diffcmd.c translate
432435
./translate $(SRCDIR)/diffcmd.c >diffcmd_.c
433436
434
-diffcmd.o: diffcmd_.c diffcmd.h $(SRCDIR)/config.h
435
- $(XTCC) -o diffcmd.o -c diffcmd_.c
437
+$(OBJDIR)/diffcmd.o: diffcmd_.c diffcmd.h $(SRCDIR)/config.h
438
+ $(XTCC) -o $(OBJDIR)/diffcmd.o -c diffcmd_.c
436439
437440
diffcmd.h: headers
438441
doc_.c: $(SRCDIR)/doc.c translate
439442
./translate $(SRCDIR)/doc.c >doc_.c
440443
441
-doc.o: doc_.c doc.h $(SRCDIR)/config.h
442
- $(XTCC) -o doc.o -c doc_.c
444
+$(OBJDIR)/doc.o: doc_.c doc.h $(SRCDIR)/config.h
445
+ $(XTCC) -o $(OBJDIR)/doc.o -c doc_.c
443446
444447
doc.h: headers
445448
encode_.c: $(SRCDIR)/encode.c translate
446449
./translate $(SRCDIR)/encode.c >encode_.c
447450
448
-encode.o: encode_.c encode.h $(SRCDIR)/config.h
449
- $(XTCC) -o encode.o -c encode_.c
451
+$(OBJDIR)/encode.o: encode_.c encode.h $(SRCDIR)/config.h
452
+ $(XTCC) -o $(OBJDIR)/encode.o -c encode_.c
450453
451454
encode.h: headers
452455
file_.c: $(SRCDIR)/file.c translate
453456
./translate $(SRCDIR)/file.c >file_.c
454457
455
-file.o: file_.c file.h $(SRCDIR)/config.h
456
- $(XTCC) -o file.o -c file_.c
458
+$(OBJDIR)/file.o: file_.c file.h $(SRCDIR)/config.h
459
+ $(XTCC) -o $(OBJDIR)/file.o -c file_.c
457460
458461
file.h: headers
459462
finfo_.c: $(SRCDIR)/finfo.c translate
460463
./translate $(SRCDIR)/finfo.c >finfo_.c
461464
462
-finfo.o: finfo_.c finfo.h $(SRCDIR)/config.h
463
- $(XTCC) -o finfo.o -c finfo_.c
465
+$(OBJDIR)/finfo.o: finfo_.c finfo.h $(SRCDIR)/config.h
466
+ $(XTCC) -o $(OBJDIR)/finfo.o -c finfo_.c
464467
465468
finfo.h: headers
466469
graph_.c: $(SRCDIR)/graph.c translate
467470
./translate $(SRCDIR)/graph.c >graph_.c
468471
469
-graph.o: graph_.c graph.h $(SRCDIR)/config.h
470
- $(XTCC) -o graph.o -c graph_.c
472
+$(OBJDIR)/graph.o: graph_.c graph.h $(SRCDIR)/config.h
473
+ $(XTCC) -o $(OBJDIR)/graph.o -c graph_.c
471474
472475
graph.h: headers
473476
http_.c: $(SRCDIR)/http.c translate
474477
./translate $(SRCDIR)/http.c >http_.c
475478
476
-http.o: http_.c http.h $(SRCDIR)/config.h
477
- $(XTCC) -o http.o -c http_.c
479
+$(OBJDIR)/http.o: http_.c http.h $(SRCDIR)/config.h
480
+ $(XTCC) -o $(OBJDIR)/http.o -c http_.c
478481
479482
http.h: headers
480483
http_socket_.c: $(SRCDIR)/http_socket.c translate
481484
./translate $(SRCDIR)/http_socket.c >http_socket_.c
482485
483
-http_socket.o: http_socket_.c http_socket.h $(SRCDIR)/config.h
484
- $(XTCC) -o http_socket.o -c http_socket_.c
486
+$(OBJDIR)/http_socket.o: http_socket_.c http_socket.h $(SRCDIR)/config.h
487
+ $(XTCC) -o $(OBJDIR)/http_socket.o -c http_socket_.c
485488
486489
http_socket.h: headers
487490
http_ssl_.c: $(SRCDIR)/http_ssl.c translate
488491
./translate $(SRCDIR)/http_ssl.c >http_ssl_.c
489492
490
-http_ssl.o: http_ssl_.c http_ssl.h $(SRCDIR)/config.h
491
- $(XTCC) -o http_ssl.o -c http_ssl_.c
493
+$(OBJDIR)/http_ssl.o: http_ssl_.c http_ssl.h $(SRCDIR)/config.h
494
+ $(XTCC) -o $(OBJDIR)/http_ssl.o -c http_ssl_.c
492495
493496
http_ssl.h: headers
494497
http_transport_.c: $(SRCDIR)/http_transport.c translate
495498
./translate $(SRCDIR)/http_transport.c >http_transport_.c
496499
497
-http_transport.o: http_transport_.c http_transport.h $(SRCDIR)/config.h
498
- $(XTCC) -o http_transport.o -c http_transport_.c
500
+$(OBJDIR)/http_transport.o: http_transport_.c http_transport.h $(SRCDIR)/config.h
501
+ $(XTCC) -o $(OBJDIR)/http_transport.o -c http_transport_.c
499502
500503
http_transport.h: headers
501504
info_.c: $(SRCDIR)/info.c translate
502505
./translate $(SRCDIR)/info.c >info_.c
503506
504
-info.o: info_.c info.h $(SRCDIR)/config.h
505
- $(XTCC) -o info.o -c info_.c
507
+$(OBJDIR)/info.o: info_.c info.h $(SRCDIR)/config.h
508
+ $(XTCC) -o $(OBJDIR)/info.o -c info_.c
506509
507510
info.h: headers
508511
login_.c: $(SRCDIR)/login.c translate
509512
./translate $(SRCDIR)/login.c >login_.c
510513
511
-login.o: login_.c login.h $(SRCDIR)/config.h
512
- $(XTCC) -o login.o -c login_.c
514
+$(OBJDIR)/login.o: login_.c login.h $(SRCDIR)/config.h
515
+ $(XTCC) -o $(OBJDIR)/login.o -c login_.c
513516
514517
login.h: headers
515518
main_.c: $(SRCDIR)/main.c translate
516519
./translate $(SRCDIR)/main.c >main_.c
517520
518
-main.o: main_.c main.h page_index.h $(SRCDIR)/config.h
519
- $(XTCC) -o main.o -c main_.c
521
+$(OBJDIR)/main.o: main_.c main.h page_index.h $(SRCDIR)/config.h
522
+ $(XTCC) -o $(OBJDIR)/main.o -c main_.c
520523
521524
main.h: headers
522525
manifest_.c: $(SRCDIR)/manifest.c translate
523526
./translate $(SRCDIR)/manifest.c >manifest_.c
524527
525
-manifest.o: manifest_.c manifest.h $(SRCDIR)/config.h
526
- $(XTCC) -o manifest.o -c manifest_.c
528
+$(OBJDIR)/manifest.o: manifest_.c manifest.h $(SRCDIR)/config.h
529
+ $(XTCC) -o $(OBJDIR)/manifest.o -c manifest_.c
527530
528531
manifest.h: headers
529532
md5_.c: $(SRCDIR)/md5.c translate
530533
./translate $(SRCDIR)/md5.c >md5_.c
531534
532
-md5.o: md5_.c md5.h $(SRCDIR)/config.h
533
- $(XTCC) -o md5.o -c md5_.c
535
+$(OBJDIR)/md5.o: md5_.c md5.h $(SRCDIR)/config.h
536
+ $(XTCC) -o $(OBJDIR)/md5.o -c md5_.c
534537
535538
md5.h: headers
536539
merge_.c: $(SRCDIR)/merge.c translate
537540
./translate $(SRCDIR)/merge.c >merge_.c
538541
539
-merge.o: merge_.c merge.h $(SRCDIR)/config.h
540
- $(XTCC) -o merge.o -c merge_.c
542
+$(OBJDIR)/merge.o: merge_.c merge.h $(SRCDIR)/config.h
543
+ $(XTCC) -o $(OBJDIR)/merge.o -c merge_.c
541544
542545
merge.h: headers
543546
merge3_.c: $(SRCDIR)/merge3.c translate
544547
./translate $(SRCDIR)/merge3.c >merge3_.c
545548
546
-merge3.o: merge3_.c merge3.h $(SRCDIR)/config.h
547
- $(XTCC) -o merge3.o -c merge3_.c
549
+$(OBJDIR)/merge3.o: merge3_.c merge3.h $(SRCDIR)/config.h
550
+ $(XTCC) -o $(OBJDIR)/merge3.o -c merge3_.c
548551
549552
merge3.h: headers
550553
name_.c: $(SRCDIR)/name.c translate
551554
./translate $(SRCDIR)/name.c >name_.c
552555
553
-name.o: name_.c name.h $(SRCDIR)/config.h
554
- $(XTCC) -o name.o -c name_.c
556
+$(OBJDIR)/name.o: name_.c name.h $(SRCDIR)/config.h
557
+ $(XTCC) -o $(OBJDIR)/name.o -c name_.c
555558
556559
name.h: headers
557560
pivot_.c: $(SRCDIR)/pivot.c translate
558561
./translate $(SRCDIR)/pivot.c >pivot_.c
559562
560
-pivot.o: pivot_.c pivot.h $(SRCDIR)/config.h
561
- $(XTCC) -o pivot.o -c pivot_.c
563
+$(OBJDIR)/pivot.o: pivot_.c pivot.h $(SRCDIR)/config.h
564
+ $(XTCC) -o $(OBJDIR)/pivot.o -c pivot_.c
562565
563566
pivot.h: headers
564567
pqueue_.c: $(SRCDIR)/pqueue.c translate
565568
./translate $(SRCDIR)/pqueue.c >pqueue_.c
566569
567
-pqueue.o: pqueue_.c pqueue.h $(SRCDIR)/config.h
568
- $(XTCC) -o pqueue.o -c pqueue_.c
570
+$(OBJDIR)/pqueue.o: pqueue_.c pqueue.h $(SRCDIR)/config.h
571
+ $(XTCC) -o $(OBJDIR)/pqueue.o -c pqueue_.c
569572
570573
pqueue.h: headers
571574
printf_.c: $(SRCDIR)/printf.c translate
572575
./translate $(SRCDIR)/printf.c >printf_.c
573576
574
-printf.o: printf_.c printf.h $(SRCDIR)/config.h
575
- $(XTCC) -o printf.o -c printf_.c
577
+$(OBJDIR)/printf.o: printf_.c printf.h $(SRCDIR)/config.h
578
+ $(XTCC) -o $(OBJDIR)/printf.o -c printf_.c
576579
577580
printf.h: headers
578581
rebuild_.c: $(SRCDIR)/rebuild.c translate
579582
./translate $(SRCDIR)/rebuild.c >rebuild_.c
580583
581
-rebuild.o: rebuild_.c rebuild.h $(SRCDIR)/config.h
582
- $(XTCC) -o rebuild.o -c rebuild_.c
584
+$(OBJDIR)/rebuild.o: rebuild_.c rebuild.h $(SRCDIR)/config.h
585
+ $(XTCC) -o $(OBJDIR)/rebuild.o -c rebuild_.c
583586
584587
rebuild.h: headers
585588
report_.c: $(SRCDIR)/report.c translate
586589
./translate $(SRCDIR)/report.c >report_.c
587590
588
-report.o: report_.c report.h $(SRCDIR)/config.h
589
- $(XTCC) -o report.o -c report_.c
591
+$(OBJDIR)/report.o: report_.c report.h $(SRCDIR)/config.h
592
+ $(XTCC) -o $(OBJDIR)/report.o -c report_.c
590593
591594
report.h: headers
592595
rss_.c: $(SRCDIR)/rss.c translate
593596
./translate $(SRCDIR)/rss.c >rss_.c
594597
595
-rss.o: rss_.c rss.h $(SRCDIR)/config.h
596
- $(XTCC) -o rss.o -c rss_.c
598
+$(OBJDIR)/rss.o: rss_.c rss.h $(SRCDIR)/config.h
599
+ $(XTCC) -o $(OBJDIR)/rss.o -c rss_.c
597600
598601
rss.h: headers
599602
rstats_.c: $(SRCDIR)/rstats.c translate
600603
./translate $(SRCDIR)/rstats.c >rstats_.c
601604
602
-rstats.o: rstats_.c rstats.h $(SRCDIR)/config.h
603
- $(XTCC) -o rstats.o -c rstats_.c
605
+$(OBJDIR)/rstats.o: rstats_.c rstats.h $(SRCDIR)/config.h
606
+ $(XTCC) -o $(OBJDIR)/rstats.o -c rstats_.c
604607
605608
rstats.h: headers
606609
schema_.c: $(SRCDIR)/schema.c translate
607610
./translate $(SRCDIR)/schema.c >schema_.c
608611
609
-schema.o: schema_.c schema.h $(SRCDIR)/config.h
610
- $(XTCC) -o schema.o -c schema_.c
612
+$(OBJDIR)/schema.o: schema_.c schema.h $(SRCDIR)/config.h
613
+ $(XTCC) -o $(OBJDIR)/schema.o -c schema_.c
611614
612615
schema.h: headers
613616
search_.c: $(SRCDIR)/search.c translate
614617
./translate $(SRCDIR)/search.c >search_.c
615618
616
-search.o: search_.c search.h $(SRCDIR)/config.h
617
- $(XTCC) -o search.o -c search_.c
619
+$(OBJDIR)/search.o: search_.c search.h $(SRCDIR)/config.h
620
+ $(XTCC) -o $(OBJDIR)/search.o -c search_.c
618621
619622
search.h: headers
620623
setup_.c: $(SRCDIR)/setup.c translate
621624
./translate $(SRCDIR)/setup.c >setup_.c
622625
623
-setup.o: setup_.c setup.h $(SRCDIR)/config.h
624
- $(XTCC) -o setup.o -c setup_.c
626
+$(OBJDIR)/setup.o: setup_.c setup.h $(SRCDIR)/config.h
627
+ $(XTCC) -o $(OBJDIR)/setup.o -c setup_.c
625628
626629
setup.h: headers
627630
sha1_.c: $(SRCDIR)/sha1.c translate
628631
./translate $(SRCDIR)/sha1.c >sha1_.c
629632
630
-sha1.o: sha1_.c sha1.h $(SRCDIR)/config.h
631
- $(XTCC) -o sha1.o -c sha1_.c
633
+$(OBJDIR)/sha1.o: sha1_.c sha1.h $(SRCDIR)/config.h
634
+ $(XTCC) -o $(OBJDIR)/sha1.o -c sha1_.c
632635
633636
sha1.h: headers
634637
shun_.c: $(SRCDIR)/shun.c translate
635638
./translate $(SRCDIR)/shun.c >shun_.c
636639
637
-shun.o: shun_.c shun.h $(SRCDIR)/config.h
638
- $(XTCC) -o shun.o -c shun_.c
640
+$(OBJDIR)/shun.o: shun_.c shun.h $(SRCDIR)/config.h
641
+ $(XTCC) -o $(OBJDIR)/shun.o -c shun_.c
639642
640643
shun.h: headers
641644
skins_.c: $(SRCDIR)/skins.c translate
642645
./translate $(SRCDIR)/skins.c >skins_.c
643646
644
-skins.o: skins_.c skins.h $(SRCDIR)/config.h
645
- $(XTCC) -o skins.o -c skins_.c
647
+$(OBJDIR)/skins.o: skins_.c skins.h $(SRCDIR)/config.h
648
+ $(XTCC) -o $(OBJDIR)/skins.o -c skins_.c
646649
647650
skins.h: headers
648651
stat_.c: $(SRCDIR)/stat.c translate
649652
./translate $(SRCDIR)/stat.c >stat_.c
650653
651
-stat.o: stat_.c stat.h $(SRCDIR)/config.h
652
- $(XTCC) -o stat.o -c stat_.c
654
+$(OBJDIR)/stat.o: stat_.c stat.h $(SRCDIR)/config.h
655
+ $(XTCC) -o $(OBJDIR)/stat.o -c stat_.c
653656
654657
stat.h: headers
655658
style_.c: $(SRCDIR)/style.c translate
656659
./translate $(SRCDIR)/style.c >style_.c
657660
658
-style.o: style_.c style.h $(SRCDIR)/config.h
659
- $(XTCC) -o style.o -c style_.c
661
+$(OBJDIR)/style.o: style_.c style.h $(SRCDIR)/config.h
662
+ $(XTCC) -o $(OBJDIR)/style.o -c style_.c
660663
661664
style.h: headers
662665
sync_.c: $(SRCDIR)/sync.c translate
663666
./translate $(SRCDIR)/sync.c >sync_.c
664667
665
-sync.o: sync_.c sync.h $(SRCDIR)/config.h
666
- $(XTCC) -o sync.o -c sync_.c
668
+$(OBJDIR)/sync.o: sync_.c sync.h $(SRCDIR)/config.h
669
+ $(XTCC) -o $(OBJDIR)/sync.o -c sync_.c
667670
668671
sync.h: headers
669672
tag_.c: $(SRCDIR)/tag.c translate
670673
./translate $(SRCDIR)/tag.c >tag_.c
671674
672
-tag.o: tag_.c tag.h $(SRCDIR)/config.h
673
- $(XTCC) -o tag.o -c tag_.c
675
+$(OBJDIR)/tag.o: tag_.c tag.h $(SRCDIR)/config.h
676
+ $(XTCC) -o $(OBJDIR)/tag.o -c tag_.c
674677
675678
tag.h: headers
676679
th_main_.c: $(SRCDIR)/th_main.c translate
677680
./translate $(SRCDIR)/th_main.c >th_main_.c
678681
679
-th_main.o: th_main_.c th_main.h $(SRCDIR)/config.h
680
- $(XTCC) -o th_main.o -c th_main_.c
682
+$(OBJDIR)/th_main.o: th_main_.c th_main.h $(SRCDIR)/config.h
683
+ $(XTCC) -o $(OBJDIR)/th_main.o -c th_main_.c
681684
682685
th_main.h: headers
683686
timeline_.c: $(SRCDIR)/timeline.c translate
684687
./translate $(SRCDIR)/timeline.c >timeline_.c
685688
686
-timeline.o: timeline_.c timeline.h $(SRCDIR)/config.h
687
- $(XTCC) -o timeline.o -c timeline_.c
689
+$(OBJDIR)/timeline.o: timeline_.c timeline.h $(SRCDIR)/config.h
690
+ $(XTCC) -o $(OBJDIR)/timeline.o -c timeline_.c
688691
689692
timeline.h: headers
690693
tkt_.c: $(SRCDIR)/tkt.c translate
691694
./translate $(SRCDIR)/tkt.c >tkt_.c
692695
693
-tkt.o: tkt_.c tkt.h $(SRCDIR)/config.h
694
- $(XTCC) -o tkt.o -c tkt_.c
696
+$(OBJDIR)/tkt.o: tkt_.c tkt.h $(SRCDIR)/config.h
697
+ $(XTCC) -o $(OBJDIR)/tkt.o -c tkt_.c
695698
696699
tkt.h: headers
697700
tktsetup_.c: $(SRCDIR)/tktsetup.c translate
698701
./translate $(SRCDIR)/tktsetup.c >tktsetup_.c
699702
700
-tktsetup.o: tktsetup_.c tktsetup.h $(SRCDIR)/config.h
701
- $(XTCC) -o tktsetup.o -c tktsetup_.c
703
+$(OBJDIR)/tktsetup.o: tktsetup_.c tktsetup.h $(SRCDIR)/config.h
704
+ $(XTCC) -o $(OBJDIR)/tktsetup.o -c tktsetup_.c
702705
703706
tktsetup.h: headers
704707
undo_.c: $(SRCDIR)/undo.c translate
705708
./translate $(SRCDIR)/undo.c >undo_.c
706709
707
-undo.o: undo_.c undo.h $(SRCDIR)/config.h
708
- $(XTCC) -o undo.o -c undo_.c
710
+$(OBJDIR)/undo.o: undo_.c undo.h $(SRCDIR)/config.h
711
+ $(XTCC) -o $(OBJDIR)/undo.o -c undo_.c
709712
710713
undo.h: headers
711714
update_.c: $(SRCDIR)/update.c translate
712715
./translate $(SRCDIR)/update.c >update_.c
713716
714
-update.o: update_.c update.h $(SRCDIR)/config.h
715
- $(XTCC) -o update.o -c update_.c
717
+$(OBJDIR)/update.o: update_.c update.h $(SRCDIR)/config.h
718
+ $(XTCC) -o $(OBJDIR)/update.o -c update_.c
716719
717720
update.h: headers
718721
url_.c: $(SRCDIR)/url.c translate
719722
./translate $(SRCDIR)/url.c >url_.c
720723
721
-url.o: url_.c url.h $(SRCDIR)/config.h
722
- $(XTCC) -o url.o -c url_.c
724
+$(OBJDIR)/url.o: url_.c url.h $(SRCDIR)/config.h
725
+ $(XTCC) -o $(OBJDIR)/url.o -c url_.c
723726
724727
url.h: headers
725728
user_.c: $(SRCDIR)/user.c translate
726729
./translate $(SRCDIR)/user.c >user_.c
727730
728
-user.o: user_.c user.h $(SRCDIR)/config.h
729
- $(XTCC) -o user.o -c user_.c
731
+$(OBJDIR)/user.o: user_.c user.h $(SRCDIR)/config.h
732
+ $(XTCC) -o $(OBJDIR)/user.o -c user_.c
730733
731734
user.h: headers
732735
verify_.c: $(SRCDIR)/verify.c translate
733736
./translate $(SRCDIR)/verify.c >verify_.c
734737
735
-verify.o: verify_.c verify.h $(SRCDIR)/config.h
736
- $(XTCC) -o verify.o -c verify_.c
738
+$(OBJDIR)/verify.o: verify_.c verify.h $(SRCDIR)/config.h
739
+ $(XTCC) -o $(OBJDIR)/verify.o -c verify_.c
737740
738741
verify.h: headers
739742
vfile_.c: $(SRCDIR)/vfile.c translate
740743
./translate $(SRCDIR)/vfile.c >vfile_.c
741744
742
-vfile.o: vfile_.c vfile.h $(SRCDIR)/config.h
743
- $(XTCC) -o vfile.o -c vfile_.c
745
+$(OBJDIR)/vfile.o: vfile_.c vfile.h $(SRCDIR)/config.h
746
+ $(XTCC) -o $(OBJDIR)/vfile.o -c vfile_.c
744747
745748
vfile.h: headers
746749
wiki_.c: $(SRCDIR)/wiki.c translate
747750
./translate $(SRCDIR)/wiki.c >wiki_.c
748751
749
-wiki.o: wiki_.c wiki.h $(SRCDIR)/config.h
750
- $(XTCC) -o wiki.o -c wiki_.c
752
+$(OBJDIR)/wiki.o: wiki_.c wiki.h $(SRCDIR)/config.h
753
+ $(XTCC) -o $(OBJDIR)/wiki.o -c wiki_.c
751754
752755
wiki.h: headers
753756
wikiformat_.c: $(SRCDIR)/wikiformat.c translate
754757
./translate $(SRCDIR)/wikiformat.c >wikiformat_.c
755758
756
-wikiformat.o: wikiformat_.c wikiformat.h $(SRCDIR)/config.h
757
- $(XTCC) -o wikiformat.o -c wikiformat_.c
759
+$(OBJDIR)/wikiformat.o: wikiformat_.c wikiformat.h $(SRCDIR)/config.h
760
+ $(XTCC) -o $(OBJDIR)/wikiformat.o -c wikiformat_.c
758761
759762
wikiformat.h: headers
760763
winhttp_.c: $(SRCDIR)/winhttp.c translate
761764
./translate $(SRCDIR)/winhttp.c >winhttp_.c
762765
763
-winhttp.o: winhttp_.c winhttp.h $(SRCDIR)/config.h
764
- $(XTCC) -o winhttp.o -c winhttp_.c
766
+$(OBJDIR)/winhttp.o: winhttp_.c winhttp.h $(SRCDIR)/config.h
767
+ $(XTCC) -o $(OBJDIR)/winhttp.o -c winhttp_.c
765768
766769
winhttp.h: headers
767770
xfer_.c: $(SRCDIR)/xfer.c translate
768771
./translate $(SRCDIR)/xfer.c >xfer_.c
769772
770
-xfer.o: xfer_.c xfer.h $(SRCDIR)/config.h
771
- $(XTCC) -o xfer.o -c xfer_.c
773
+$(OBJDIR)/xfer.o: xfer_.c xfer.h $(SRCDIR)/config.h
774
+ $(XTCC) -o $(OBJDIR)/xfer.o -c xfer_.c
772775
773776
xfer.h: headers
774777
zip_.c: $(SRCDIR)/zip.c translate
775778
./translate $(SRCDIR)/zip.c >zip_.c
776779
777
-zip.o: zip_.c zip.h $(SRCDIR)/config.h
778
- $(XTCC) -o zip.o -c zip_.c
780
+$(OBJDIR)/zip.o: zip_.c zip.h $(SRCDIR)/config.h
781
+ $(XTCC) -o $(OBJDIR)/zip.o -c zip_.c
779782
780783
zip.h: headers
781
-sqlite3.o: $(SRCDIR)/sqlite3.c
782
- $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -Dlocaltime=fossil_localtime -c $(SRCDIR)/sqlite3.c -o sqlite3.o
783
-
784
-th.o: $(SRCDIR)/th.c
785
- $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th.c -o th.o
786
-
787
-th_lang.o: $(SRCDIR)/th_lang.c
788
- $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th_lang.c -o th_lang.o
784
+$(OBJDIR)/sqlite3.o: $(SRCDIR)/sqlite3.c
785
+ $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -Dlocaltime=fossil_localtime -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
786
+
787
+$(OBJDIR)/th.o: $(SRCDIR)/th.c
788
+ $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th.c -o $(OBJDIR)/th.o
789
+
790
+$(OBJDIR)/th_lang.o: $(SRCDIR)/th_lang.c
791
+ $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th_lang.c -o $(OBJDIR)/th_lang.o
789792
790793
--- src/main.mk
+++ src/main.mk
@@ -157,91 +157,94 @@
157 winhttp_.c \
158 xfer_.c \
159 zip_.c
160
161 OBJ = \
162 add.o \
163 allrepo.o \
164 bag.o \
165 blob.o \
166 branch.o \
167 browse.o \
168 captcha.o \
169 cgi.o \
170 checkin.o \
171 checkout.o \
172 clearsign.o \
173 clone.o \
174 comformat.o \
175 configure.o \
176 construct.o \
177 content.o \
178 db.o \
179 delta.o \
180 deltacmd.o \
181 descendants.o \
182 diff.o \
183 diffcmd.o \
184 doc.o \
185 encode.o \
186 file.o \
187 finfo.o \
188 graph.o \
189 http.o \
190 http_socket.o \
191 http_ssl.o \
192 http_transport.o \
193 info.o \
194 login.o \
195 main.o \
196 manifest.o \
197 md5.o \
198 merge.o \
199 merge3.o \
200 name.o \
201 pivot.o \
202 pqueue.o \
203 printf.o \
204 rebuild.o \
205 report.o \
206 rss.o \
207 rstats.o \
208 schema.o \
209 search.o \
210 setup.o \
211 sha1.o \
212 shun.o \
213 skins.o \
214 stat.o \
215 style.o \
216 sync.o \
217 tag.o \
218 th_main.o \
219 timeline.o \
220 tkt.o \
221 tktsetup.o \
222 undo.o \
223 update.o \
224 url.o \
225 user.o \
226 verify.o \
227 vfile.o \
228 wiki.o \
229 wikiformat.o \
230 winhttp.o \
231 xfer.o \
232 zip.o
233
234 APPNAME = fossil$(E)
235
236
237
238 all: $(APPNAME)
239
240 install: $(APPNAME)
241 mv $(APPNAME) $(INSTALLDIR)
242
 
 
 
243 translate: $(SRCDIR)/translate.c
244 $(BCC) -o translate $(SRCDIR)/translate.c
245
246 makeheaders: $(SRCDIR)/makeheaders.c
247 $(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
@@ -258,21 +261,21 @@
258 VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest
259 awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' $(SRCDIR)/../manifest.uuid >VERSION.h
260 awk '{ printf "#define MANIFEST_VERSION \"[%.10s]\"\n", $$1}' $(SRCDIR)/../manifest.uuid >>VERSION.h
261 awk '$$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n", substr($$2,1,10),substr($$2,12)}' $(SRCDIR)/../manifest >>VERSION.h
262
263 $(APPNAME): headers $(OBJ) sqlite3.o th.o th_lang.o
264 $(TCC) -o $(APPNAME) $(OBJ) sqlite3.o th.o th_lang.o $(LIB)
265
266 # This rule prevents make from using its default rules to try build
267 # an executable named "manifest" out of the file named "manifest.c"
268 #
269 $(SRCDIR)/../manifest:
270 # noop
271
272 clean:
273 rm -f *.o *_.c $(APPNAME) VERSION.h
274 rm -f translate makeheaders mkindex page_index.h headers
275 rm -f add.h allrepo.h bag.h blob.h branch.h browse.h captcha.h cgi.h checkin.h checkout.h clearsign.h clone.h comformat.h configure.h construct.h content.h db.h delta.h deltacmd.h descendants.h diff.h diffcmd.h doc.h encode.h file.h finfo.h graph.h http.h http_socket.h http_ssl.h http_transport.h info.h login.h main.h manifest.h md5.h merge.h merge3.h name.h pivot.h pqueue.h printf.h rebuild.h report.h rss.h rstats.h schema.h search.h setup.h sha1.h shun.h skins.h stat.h style.h sync.h tag.h th_main.h timeline.h tkt.h tktsetup.h undo.h update.h url.h user.h verify.h vfile.h wiki.h wikiformat.h winhttp.h xfer.h zip.h
276
277 page_index.h: $(TRANS_SRC) mkindex
278 ./mkindex $(TRANS_SRC) >$@
@@ -282,508 +285,508 @@
282 headers: Makefile
283 Makefile:
284 add_.c: $(SRCDIR)/add.c translate
285 ./translate $(SRCDIR)/add.c >add_.c
286
287 add.o: add_.c add.h $(SRCDIR)/config.h
288 $(XTCC) -o add.o -c add_.c
289
290 add.h: headers
291 allrepo_.c: $(SRCDIR)/allrepo.c translate
292 ./translate $(SRCDIR)/allrepo.c >allrepo_.c
293
294 allrepo.o: allrepo_.c allrepo.h $(SRCDIR)/config.h
295 $(XTCC) -o allrepo.o -c allrepo_.c
296
297 allrepo.h: headers
298 bag_.c: $(SRCDIR)/bag.c translate
299 ./translate $(SRCDIR)/bag.c >bag_.c
300
301 bag.o: bag_.c bag.h $(SRCDIR)/config.h
302 $(XTCC) -o bag.o -c bag_.c
303
304 bag.h: headers
305 blob_.c: $(SRCDIR)/blob.c translate
306 ./translate $(SRCDIR)/blob.c >blob_.c
307
308 blob.o: blob_.c blob.h $(SRCDIR)/config.h
309 $(XTCC) -o blob.o -c blob_.c
310
311 blob.h: headers
312 branch_.c: $(SRCDIR)/branch.c translate
313 ./translate $(SRCDIR)/branch.c >branch_.c
314
315 branch.o: branch_.c branch.h $(SRCDIR)/config.h
316 $(XTCC) -o branch.o -c branch_.c
317
318 branch.h: headers
319 browse_.c: $(SRCDIR)/browse.c translate
320 ./translate $(SRCDIR)/browse.c >browse_.c
321
322 browse.o: browse_.c browse.h $(SRCDIR)/config.h
323 $(XTCC) -o browse.o -c browse_.c
324
325 browse.h: headers
326 captcha_.c: $(SRCDIR)/captcha.c translate
327 ./translate $(SRCDIR)/captcha.c >captcha_.c
328
329 captcha.o: captcha_.c captcha.h $(SRCDIR)/config.h
330 $(XTCC) -o captcha.o -c captcha_.c
331
332 captcha.h: headers
333 cgi_.c: $(SRCDIR)/cgi.c translate
334 ./translate $(SRCDIR)/cgi.c >cgi_.c
335
336 cgi.o: cgi_.c cgi.h $(SRCDIR)/config.h
337 $(XTCC) -o cgi.o -c cgi_.c
338
339 cgi.h: headers
340 checkin_.c: $(SRCDIR)/checkin.c translate
341 ./translate $(SRCDIR)/checkin.c >checkin_.c
342
343 checkin.o: checkin_.c checkin.h $(SRCDIR)/config.h
344 $(XTCC) -o checkin.o -c checkin_.c
345
346 checkin.h: headers
347 checkout_.c: $(SRCDIR)/checkout.c translate
348 ./translate $(SRCDIR)/checkout.c >checkout_.c
349
350 checkout.o: checkout_.c checkout.h $(SRCDIR)/config.h
351 $(XTCC) -o checkout.o -c checkout_.c
352
353 checkout.h: headers
354 clearsign_.c: $(SRCDIR)/clearsign.c translate
355 ./translate $(SRCDIR)/clearsign.c >clearsign_.c
356
357 clearsign.o: clearsign_.c clearsign.h $(SRCDIR)/config.h
358 $(XTCC) -o clearsign.o -c clearsign_.c
359
360 clearsign.h: headers
361 clone_.c: $(SRCDIR)/clone.c translate
362 ./translate $(SRCDIR)/clone.c >clone_.c
363
364 clone.o: clone_.c clone.h $(SRCDIR)/config.h
365 $(XTCC) -o clone.o -c clone_.c
366
367 clone.h: headers
368 comformat_.c: $(SRCDIR)/comformat.c translate
369 ./translate $(SRCDIR)/comformat.c >comformat_.c
370
371 comformat.o: comformat_.c comformat.h $(SRCDIR)/config.h
372 $(XTCC) -o comformat.o -c comformat_.c
373
374 comformat.h: headers
375 configure_.c: $(SRCDIR)/configure.c translate
376 ./translate $(SRCDIR)/configure.c >configure_.c
377
378 configure.o: configure_.c configure.h $(SRCDIR)/config.h
379 $(XTCC) -o configure.o -c configure_.c
380
381 configure.h: headers
382 construct_.c: $(SRCDIR)/construct.c translate
383 ./translate $(SRCDIR)/construct.c >construct_.c
384
385 construct.o: construct_.c construct.h $(SRCDIR)/config.h
386 $(XTCC) -o construct.o -c construct_.c
387
388 construct.h: headers
389 content_.c: $(SRCDIR)/content.c translate
390 ./translate $(SRCDIR)/content.c >content_.c
391
392 content.o: content_.c content.h $(SRCDIR)/config.h
393 $(XTCC) -o content.o -c content_.c
394
395 content.h: headers
396 db_.c: $(SRCDIR)/db.c translate
397 ./translate $(SRCDIR)/db.c >db_.c
398
399 db.o: db_.c db.h $(SRCDIR)/config.h
400 $(XTCC) -o db.o -c db_.c
401
402 db.h: headers
403 delta_.c: $(SRCDIR)/delta.c translate
404 ./translate $(SRCDIR)/delta.c >delta_.c
405
406 delta.o: delta_.c delta.h $(SRCDIR)/config.h
407 $(XTCC) -o delta.o -c delta_.c
408
409 delta.h: headers
410 deltacmd_.c: $(SRCDIR)/deltacmd.c translate
411 ./translate $(SRCDIR)/deltacmd.c >deltacmd_.c
412
413 deltacmd.o: deltacmd_.c deltacmd.h $(SRCDIR)/config.h
414 $(XTCC) -o deltacmd.o -c deltacmd_.c
415
416 deltacmd.h: headers
417 descendants_.c: $(SRCDIR)/descendants.c translate
418 ./translate $(SRCDIR)/descendants.c >descendants_.c
419
420 descendants.o: descendants_.c descendants.h $(SRCDIR)/config.h
421 $(XTCC) -o descendants.o -c descendants_.c
422
423 descendants.h: headers
424 diff_.c: $(SRCDIR)/diff.c translate
425 ./translate $(SRCDIR)/diff.c >diff_.c
426
427 diff.o: diff_.c diff.h $(SRCDIR)/config.h
428 $(XTCC) -o diff.o -c diff_.c
429
430 diff.h: headers
431 diffcmd_.c: $(SRCDIR)/diffcmd.c translate
432 ./translate $(SRCDIR)/diffcmd.c >diffcmd_.c
433
434 diffcmd.o: diffcmd_.c diffcmd.h $(SRCDIR)/config.h
435 $(XTCC) -o diffcmd.o -c diffcmd_.c
436
437 diffcmd.h: headers
438 doc_.c: $(SRCDIR)/doc.c translate
439 ./translate $(SRCDIR)/doc.c >doc_.c
440
441 doc.o: doc_.c doc.h $(SRCDIR)/config.h
442 $(XTCC) -o doc.o -c doc_.c
443
444 doc.h: headers
445 encode_.c: $(SRCDIR)/encode.c translate
446 ./translate $(SRCDIR)/encode.c >encode_.c
447
448 encode.o: encode_.c encode.h $(SRCDIR)/config.h
449 $(XTCC) -o encode.o -c encode_.c
450
451 encode.h: headers
452 file_.c: $(SRCDIR)/file.c translate
453 ./translate $(SRCDIR)/file.c >file_.c
454
455 file.o: file_.c file.h $(SRCDIR)/config.h
456 $(XTCC) -o file.o -c file_.c
457
458 file.h: headers
459 finfo_.c: $(SRCDIR)/finfo.c translate
460 ./translate $(SRCDIR)/finfo.c >finfo_.c
461
462 finfo.o: finfo_.c finfo.h $(SRCDIR)/config.h
463 $(XTCC) -o finfo.o -c finfo_.c
464
465 finfo.h: headers
466 graph_.c: $(SRCDIR)/graph.c translate
467 ./translate $(SRCDIR)/graph.c >graph_.c
468
469 graph.o: graph_.c graph.h $(SRCDIR)/config.h
470 $(XTCC) -o graph.o -c graph_.c
471
472 graph.h: headers
473 http_.c: $(SRCDIR)/http.c translate
474 ./translate $(SRCDIR)/http.c >http_.c
475
476 http.o: http_.c http.h $(SRCDIR)/config.h
477 $(XTCC) -o http.o -c http_.c
478
479 http.h: headers
480 http_socket_.c: $(SRCDIR)/http_socket.c translate
481 ./translate $(SRCDIR)/http_socket.c >http_socket_.c
482
483 http_socket.o: http_socket_.c http_socket.h $(SRCDIR)/config.h
484 $(XTCC) -o http_socket.o -c http_socket_.c
485
486 http_socket.h: headers
487 http_ssl_.c: $(SRCDIR)/http_ssl.c translate
488 ./translate $(SRCDIR)/http_ssl.c >http_ssl_.c
489
490 http_ssl.o: http_ssl_.c http_ssl.h $(SRCDIR)/config.h
491 $(XTCC) -o http_ssl.o -c http_ssl_.c
492
493 http_ssl.h: headers
494 http_transport_.c: $(SRCDIR)/http_transport.c translate
495 ./translate $(SRCDIR)/http_transport.c >http_transport_.c
496
497 http_transport.o: http_transport_.c http_transport.h $(SRCDIR)/config.h
498 $(XTCC) -o http_transport.o -c http_transport_.c
499
500 http_transport.h: headers
501 info_.c: $(SRCDIR)/info.c translate
502 ./translate $(SRCDIR)/info.c >info_.c
503
504 info.o: info_.c info.h $(SRCDIR)/config.h
505 $(XTCC) -o info.o -c info_.c
506
507 info.h: headers
508 login_.c: $(SRCDIR)/login.c translate
509 ./translate $(SRCDIR)/login.c >login_.c
510
511 login.o: login_.c login.h $(SRCDIR)/config.h
512 $(XTCC) -o login.o -c login_.c
513
514 login.h: headers
515 main_.c: $(SRCDIR)/main.c translate
516 ./translate $(SRCDIR)/main.c >main_.c
517
518 main.o: main_.c main.h page_index.h $(SRCDIR)/config.h
519 $(XTCC) -o main.o -c main_.c
520
521 main.h: headers
522 manifest_.c: $(SRCDIR)/manifest.c translate
523 ./translate $(SRCDIR)/manifest.c >manifest_.c
524
525 manifest.o: manifest_.c manifest.h $(SRCDIR)/config.h
526 $(XTCC) -o manifest.o -c manifest_.c
527
528 manifest.h: headers
529 md5_.c: $(SRCDIR)/md5.c translate
530 ./translate $(SRCDIR)/md5.c >md5_.c
531
532 md5.o: md5_.c md5.h $(SRCDIR)/config.h
533 $(XTCC) -o md5.o -c md5_.c
534
535 md5.h: headers
536 merge_.c: $(SRCDIR)/merge.c translate
537 ./translate $(SRCDIR)/merge.c >merge_.c
538
539 merge.o: merge_.c merge.h $(SRCDIR)/config.h
540 $(XTCC) -o merge.o -c merge_.c
541
542 merge.h: headers
543 merge3_.c: $(SRCDIR)/merge3.c translate
544 ./translate $(SRCDIR)/merge3.c >merge3_.c
545
546 merge3.o: merge3_.c merge3.h $(SRCDIR)/config.h
547 $(XTCC) -o merge3.o -c merge3_.c
548
549 merge3.h: headers
550 name_.c: $(SRCDIR)/name.c translate
551 ./translate $(SRCDIR)/name.c >name_.c
552
553 name.o: name_.c name.h $(SRCDIR)/config.h
554 $(XTCC) -o name.o -c name_.c
555
556 name.h: headers
557 pivot_.c: $(SRCDIR)/pivot.c translate
558 ./translate $(SRCDIR)/pivot.c >pivot_.c
559
560 pivot.o: pivot_.c pivot.h $(SRCDIR)/config.h
561 $(XTCC) -o pivot.o -c pivot_.c
562
563 pivot.h: headers
564 pqueue_.c: $(SRCDIR)/pqueue.c translate
565 ./translate $(SRCDIR)/pqueue.c >pqueue_.c
566
567 pqueue.o: pqueue_.c pqueue.h $(SRCDIR)/config.h
568 $(XTCC) -o pqueue.o -c pqueue_.c
569
570 pqueue.h: headers
571 printf_.c: $(SRCDIR)/printf.c translate
572 ./translate $(SRCDIR)/printf.c >printf_.c
573
574 printf.o: printf_.c printf.h $(SRCDIR)/config.h
575 $(XTCC) -o printf.o -c printf_.c
576
577 printf.h: headers
578 rebuild_.c: $(SRCDIR)/rebuild.c translate
579 ./translate $(SRCDIR)/rebuild.c >rebuild_.c
580
581 rebuild.o: rebuild_.c rebuild.h $(SRCDIR)/config.h
582 $(XTCC) -o rebuild.o -c rebuild_.c
583
584 rebuild.h: headers
585 report_.c: $(SRCDIR)/report.c translate
586 ./translate $(SRCDIR)/report.c >report_.c
587
588 report.o: report_.c report.h $(SRCDIR)/config.h
589 $(XTCC) -o report.o -c report_.c
590
591 report.h: headers
592 rss_.c: $(SRCDIR)/rss.c translate
593 ./translate $(SRCDIR)/rss.c >rss_.c
594
595 rss.o: rss_.c rss.h $(SRCDIR)/config.h
596 $(XTCC) -o rss.o -c rss_.c
597
598 rss.h: headers
599 rstats_.c: $(SRCDIR)/rstats.c translate
600 ./translate $(SRCDIR)/rstats.c >rstats_.c
601
602 rstats.o: rstats_.c rstats.h $(SRCDIR)/config.h
603 $(XTCC) -o rstats.o -c rstats_.c
604
605 rstats.h: headers
606 schema_.c: $(SRCDIR)/schema.c translate
607 ./translate $(SRCDIR)/schema.c >schema_.c
608
609 schema.o: schema_.c schema.h $(SRCDIR)/config.h
610 $(XTCC) -o schema.o -c schema_.c
611
612 schema.h: headers
613 search_.c: $(SRCDIR)/search.c translate
614 ./translate $(SRCDIR)/search.c >search_.c
615
616 search.o: search_.c search.h $(SRCDIR)/config.h
617 $(XTCC) -o search.o -c search_.c
618
619 search.h: headers
620 setup_.c: $(SRCDIR)/setup.c translate
621 ./translate $(SRCDIR)/setup.c >setup_.c
622
623 setup.o: setup_.c setup.h $(SRCDIR)/config.h
624 $(XTCC) -o setup.o -c setup_.c
625
626 setup.h: headers
627 sha1_.c: $(SRCDIR)/sha1.c translate
628 ./translate $(SRCDIR)/sha1.c >sha1_.c
629
630 sha1.o: sha1_.c sha1.h $(SRCDIR)/config.h
631 $(XTCC) -o sha1.o -c sha1_.c
632
633 sha1.h: headers
634 shun_.c: $(SRCDIR)/shun.c translate
635 ./translate $(SRCDIR)/shun.c >shun_.c
636
637 shun.o: shun_.c shun.h $(SRCDIR)/config.h
638 $(XTCC) -o shun.o -c shun_.c
639
640 shun.h: headers
641 skins_.c: $(SRCDIR)/skins.c translate
642 ./translate $(SRCDIR)/skins.c >skins_.c
643
644 skins.o: skins_.c skins.h $(SRCDIR)/config.h
645 $(XTCC) -o skins.o -c skins_.c
646
647 skins.h: headers
648 stat_.c: $(SRCDIR)/stat.c translate
649 ./translate $(SRCDIR)/stat.c >stat_.c
650
651 stat.o: stat_.c stat.h $(SRCDIR)/config.h
652 $(XTCC) -o stat.o -c stat_.c
653
654 stat.h: headers
655 style_.c: $(SRCDIR)/style.c translate
656 ./translate $(SRCDIR)/style.c >style_.c
657
658 style.o: style_.c style.h $(SRCDIR)/config.h
659 $(XTCC) -o style.o -c style_.c
660
661 style.h: headers
662 sync_.c: $(SRCDIR)/sync.c translate
663 ./translate $(SRCDIR)/sync.c >sync_.c
664
665 sync.o: sync_.c sync.h $(SRCDIR)/config.h
666 $(XTCC) -o sync.o -c sync_.c
667
668 sync.h: headers
669 tag_.c: $(SRCDIR)/tag.c translate
670 ./translate $(SRCDIR)/tag.c >tag_.c
671
672 tag.o: tag_.c tag.h $(SRCDIR)/config.h
673 $(XTCC) -o tag.o -c tag_.c
674
675 tag.h: headers
676 th_main_.c: $(SRCDIR)/th_main.c translate
677 ./translate $(SRCDIR)/th_main.c >th_main_.c
678
679 th_main.o: th_main_.c th_main.h $(SRCDIR)/config.h
680 $(XTCC) -o th_main.o -c th_main_.c
681
682 th_main.h: headers
683 timeline_.c: $(SRCDIR)/timeline.c translate
684 ./translate $(SRCDIR)/timeline.c >timeline_.c
685
686 timeline.o: timeline_.c timeline.h $(SRCDIR)/config.h
687 $(XTCC) -o timeline.o -c timeline_.c
688
689 timeline.h: headers
690 tkt_.c: $(SRCDIR)/tkt.c translate
691 ./translate $(SRCDIR)/tkt.c >tkt_.c
692
693 tkt.o: tkt_.c tkt.h $(SRCDIR)/config.h
694 $(XTCC) -o tkt.o -c tkt_.c
695
696 tkt.h: headers
697 tktsetup_.c: $(SRCDIR)/tktsetup.c translate
698 ./translate $(SRCDIR)/tktsetup.c >tktsetup_.c
699
700 tktsetup.o: tktsetup_.c tktsetup.h $(SRCDIR)/config.h
701 $(XTCC) -o tktsetup.o -c tktsetup_.c
702
703 tktsetup.h: headers
704 undo_.c: $(SRCDIR)/undo.c translate
705 ./translate $(SRCDIR)/undo.c >undo_.c
706
707 undo.o: undo_.c undo.h $(SRCDIR)/config.h
708 $(XTCC) -o undo.o -c undo_.c
709
710 undo.h: headers
711 update_.c: $(SRCDIR)/update.c translate
712 ./translate $(SRCDIR)/update.c >update_.c
713
714 update.o: update_.c update.h $(SRCDIR)/config.h
715 $(XTCC) -o update.o -c update_.c
716
717 update.h: headers
718 url_.c: $(SRCDIR)/url.c translate
719 ./translate $(SRCDIR)/url.c >url_.c
720
721 url.o: url_.c url.h $(SRCDIR)/config.h
722 $(XTCC) -o url.o -c url_.c
723
724 url.h: headers
725 user_.c: $(SRCDIR)/user.c translate
726 ./translate $(SRCDIR)/user.c >user_.c
727
728 user.o: user_.c user.h $(SRCDIR)/config.h
729 $(XTCC) -o user.o -c user_.c
730
731 user.h: headers
732 verify_.c: $(SRCDIR)/verify.c translate
733 ./translate $(SRCDIR)/verify.c >verify_.c
734
735 verify.o: verify_.c verify.h $(SRCDIR)/config.h
736 $(XTCC) -o verify.o -c verify_.c
737
738 verify.h: headers
739 vfile_.c: $(SRCDIR)/vfile.c translate
740 ./translate $(SRCDIR)/vfile.c >vfile_.c
741
742 vfile.o: vfile_.c vfile.h $(SRCDIR)/config.h
743 $(XTCC) -o vfile.o -c vfile_.c
744
745 vfile.h: headers
746 wiki_.c: $(SRCDIR)/wiki.c translate
747 ./translate $(SRCDIR)/wiki.c >wiki_.c
748
749 wiki.o: wiki_.c wiki.h $(SRCDIR)/config.h
750 $(XTCC) -o wiki.o -c wiki_.c
751
752 wiki.h: headers
753 wikiformat_.c: $(SRCDIR)/wikiformat.c translate
754 ./translate $(SRCDIR)/wikiformat.c >wikiformat_.c
755
756 wikiformat.o: wikiformat_.c wikiformat.h $(SRCDIR)/config.h
757 $(XTCC) -o wikiformat.o -c wikiformat_.c
758
759 wikiformat.h: headers
760 winhttp_.c: $(SRCDIR)/winhttp.c translate
761 ./translate $(SRCDIR)/winhttp.c >winhttp_.c
762
763 winhttp.o: winhttp_.c winhttp.h $(SRCDIR)/config.h
764 $(XTCC) -o winhttp.o -c winhttp_.c
765
766 winhttp.h: headers
767 xfer_.c: $(SRCDIR)/xfer.c translate
768 ./translate $(SRCDIR)/xfer.c >xfer_.c
769
770 xfer.o: xfer_.c xfer.h $(SRCDIR)/config.h
771 $(XTCC) -o xfer.o -c xfer_.c
772
773 xfer.h: headers
774 zip_.c: $(SRCDIR)/zip.c translate
775 ./translate $(SRCDIR)/zip.c >zip_.c
776
777 zip.o: zip_.c zip.h $(SRCDIR)/config.h
778 $(XTCC) -o zip.o -c zip_.c
779
780 zip.h: headers
781 sqlite3.o: $(SRCDIR)/sqlite3.c
782 $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -Dlocaltime=fossil_localtime -c $(SRCDIR)/sqlite3.c -o sqlite3.o
783
784 th.o: $(SRCDIR)/th.c
785 $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th.c -o th.o
786
787 th_lang.o: $(SRCDIR)/th_lang.c
788 $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th_lang.c -o th_lang.o
789
790
--- src/main.mk
+++ src/main.mk
@@ -157,91 +157,94 @@
157 winhttp_.c \
158 xfer_.c \
159 zip_.c
160
161 OBJ = \
162 $(OBJDIR)/add.o \
163 $(OBJDIR)/allrepo.o \
164 $(OBJDIR)/bag.o \
165 $(OBJDIR)/blob.o \
166 $(OBJDIR)/branch.o \
167 $(OBJDIR)/browse.o \
168 $(OBJDIR)/captcha.o \
169 $(OBJDIR)/cgi.o \
170 $(OBJDIR)/checkin.o \
171 $(OBJDIR)/checkout.o \
172 $(OBJDIR)/clearsign.o \
173 $(OBJDIR)/clone.o \
174 $(OBJDIR)/comformat.o \
175 $(OBJDIR)/configure.o \
176 $(OBJDIR)/construct.o \
177 $(OBJDIR)/content.o \
178 $(OBJDIR)/db.o \
179 $(OBJDIR)/delta.o \
180 $(OBJDIR)/deltacmd.o \
181 $(OBJDIR)/descendants.o \
182 $(OBJDIR)/diff.o \
183 $(OBJDIR)/diffcmd.o \
184 $(OBJDIR)/doc.o \
185 $(OBJDIR)/encode.o \
186 $(OBJDIR)/file.o \
187 $(OBJDIR)/finfo.o \
188 $(OBJDIR)/graph.o \
189 $(OBJDIR)/http.o \
190 $(OBJDIR)/http_socket.o \
191 $(OBJDIR)/http_ssl.o \
192 $(OBJDIR)/http_transport.o \
193 $(OBJDIR)/info.o \
194 $(OBJDIR)/login.o \
195 $(OBJDIR)/main.o \
196 $(OBJDIR)/manifest.o \
197 $(OBJDIR)/md5.o \
198 $(OBJDIR)/merge.o \
199 $(OBJDIR)/merge3.o \
200 $(OBJDIR)/name.o \
201 $(OBJDIR)/pivot.o \
202 $(OBJDIR)/pqueue.o \
203 $(OBJDIR)/printf.o \
204 $(OBJDIR)/rebuild.o \
205 $(OBJDIR)/report.o \
206 $(OBJDIR)/rss.o \
207 $(OBJDIR)/rstats.o \
208 $(OBJDIR)/schema.o \
209 $(OBJDIR)/search.o \
210 $(OBJDIR)/setup.o \
211 $(OBJDIR)/sha1.o \
212 $(OBJDIR)/shun.o \
213 $(OBJDIR)/skins.o \
214 $(OBJDIR)/stat.o \
215 $(OBJDIR)/style.o \
216 $(OBJDIR)/sync.o \
217 $(OBJDIR)/tag.o \
218 $(OBJDIR)/th_main.o \
219 $(OBJDIR)/timeline.o \
220 $(OBJDIR)/tkt.o \
221 $(OBJDIR)/tktsetup.o \
222 $(OBJDIR)/undo.o \
223 $(OBJDIR)/update.o \
224 $(OBJDIR)/url.o \
225 $(OBJDIR)/user.o \
226 $(OBJDIR)/verify.o \
227 $(OBJDIR)/vfile.o \
228 $(OBJDIR)/wiki.o \
229 $(OBJDIR)/wikiformat.o \
230 $(OBJDIR)/winhttp.o \
231 $(OBJDIR)/xfer.o \
232 $(OBJDIR)/zip.o
233
234 APPNAME = fossil$(E)
235
236
237
238 all: $(OBJDIR) $(APPNAME)
239
240 install: $(APPNAME)
241 mv $(APPNAME) $(INSTALLDIR)
242
243 $(OBJDIR):
244 -mkdir $(OBJDIR)
245
246 translate: $(SRCDIR)/translate.c
247 $(BCC) -o translate $(SRCDIR)/translate.c
248
249 makeheaders: $(SRCDIR)/makeheaders.c
250 $(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
@@ -258,21 +261,21 @@
261 VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest
262 awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' $(SRCDIR)/../manifest.uuid >VERSION.h
263 awk '{ printf "#define MANIFEST_VERSION \"[%.10s]\"\n", $$1}' $(SRCDIR)/../manifest.uuid >>VERSION.h
264 awk '$$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n", substr($$2,1,10),substr($$2,12)}' $(SRCDIR)/../manifest >>VERSION.h
265
266 $(APPNAME): headers $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o
267 $(TCC) -o $(APPNAME) $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(LIB)
268
269 # This rule prevents make from using its default rules to try build
270 # an executable named "manifest" out of the file named "manifest.c"
271 #
272 $(SRCDIR)/../manifest:
273 # noop
274
275 clean:
276 rm -f $(OBJDIR)/*.o *_.c $(APPNAME) VERSION.h
277 rm -f translate makeheaders mkindex page_index.h headers
278 rm -f add.h allrepo.h bag.h blob.h branch.h browse.h captcha.h cgi.h checkin.h checkout.h clearsign.h clone.h comformat.h configure.h construct.h content.h db.h delta.h deltacmd.h descendants.h diff.h diffcmd.h doc.h encode.h file.h finfo.h graph.h http.h http_socket.h http_ssl.h http_transport.h info.h login.h main.h manifest.h md5.h merge.h merge3.h name.h pivot.h pqueue.h printf.h rebuild.h report.h rss.h rstats.h schema.h search.h setup.h sha1.h shun.h skins.h stat.h style.h sync.h tag.h th_main.h timeline.h tkt.h tktsetup.h undo.h update.h url.h user.h verify.h vfile.h wiki.h wikiformat.h winhttp.h xfer.h zip.h
279
280 page_index.h: $(TRANS_SRC) mkindex
281 ./mkindex $(TRANS_SRC) >$@
@@ -282,508 +285,508 @@
285 headers: Makefile
286 Makefile:
287 add_.c: $(SRCDIR)/add.c translate
288 ./translate $(SRCDIR)/add.c >add_.c
289
290 $(OBJDIR)/add.o: add_.c add.h $(SRCDIR)/config.h
291 $(XTCC) -o $(OBJDIR)/add.o -c add_.c
292
293 add.h: headers
294 allrepo_.c: $(SRCDIR)/allrepo.c translate
295 ./translate $(SRCDIR)/allrepo.c >allrepo_.c
296
297 $(OBJDIR)/allrepo.o: allrepo_.c allrepo.h $(SRCDIR)/config.h
298 $(XTCC) -o $(OBJDIR)/allrepo.o -c allrepo_.c
299
300 allrepo.h: headers
301 bag_.c: $(SRCDIR)/bag.c translate
302 ./translate $(SRCDIR)/bag.c >bag_.c
303
304 $(OBJDIR)/bag.o: bag_.c bag.h $(SRCDIR)/config.h
305 $(XTCC) -o $(OBJDIR)/bag.o -c bag_.c
306
307 bag.h: headers
308 blob_.c: $(SRCDIR)/blob.c translate
309 ./translate $(SRCDIR)/blob.c >blob_.c
310
311 $(OBJDIR)/blob.o: blob_.c blob.h $(SRCDIR)/config.h
312 $(XTCC) -o $(OBJDIR)/blob.o -c blob_.c
313
314 blob.h: headers
315 branch_.c: $(SRCDIR)/branch.c translate
316 ./translate $(SRCDIR)/branch.c >branch_.c
317
318 $(OBJDIR)/branch.o: branch_.c branch.h $(SRCDIR)/config.h
319 $(XTCC) -o $(OBJDIR)/branch.o -c branch_.c
320
321 branch.h: headers
322 browse_.c: $(SRCDIR)/browse.c translate
323 ./translate $(SRCDIR)/browse.c >browse_.c
324
325 $(OBJDIR)/browse.o: browse_.c browse.h $(SRCDIR)/config.h
326 $(XTCC) -o $(OBJDIR)/browse.o -c browse_.c
327
328 browse.h: headers
329 captcha_.c: $(SRCDIR)/captcha.c translate
330 ./translate $(SRCDIR)/captcha.c >captcha_.c
331
332 $(OBJDIR)/captcha.o: captcha_.c captcha.h $(SRCDIR)/config.h
333 $(XTCC) -o $(OBJDIR)/captcha.o -c captcha_.c
334
335 captcha.h: headers
336 cgi_.c: $(SRCDIR)/cgi.c translate
337 ./translate $(SRCDIR)/cgi.c >cgi_.c
338
339 $(OBJDIR)/cgi.o: cgi_.c cgi.h $(SRCDIR)/config.h
340 $(XTCC) -o $(OBJDIR)/cgi.o -c cgi_.c
341
342 cgi.h: headers
343 checkin_.c: $(SRCDIR)/checkin.c translate
344 ./translate $(SRCDIR)/checkin.c >checkin_.c
345
346 $(OBJDIR)/checkin.o: checkin_.c checkin.h $(SRCDIR)/config.h
347 $(XTCC) -o $(OBJDIR)/checkin.o -c checkin_.c
348
349 checkin.h: headers
350 checkout_.c: $(SRCDIR)/checkout.c translate
351 ./translate $(SRCDIR)/checkout.c >checkout_.c
352
353 $(OBJDIR)/checkout.o: checkout_.c checkout.h $(SRCDIR)/config.h
354 $(XTCC) -o $(OBJDIR)/checkout.o -c checkout_.c
355
356 checkout.h: headers
357 clearsign_.c: $(SRCDIR)/clearsign.c translate
358 ./translate $(SRCDIR)/clearsign.c >clearsign_.c
359
360 $(OBJDIR)/clearsign.o: clearsign_.c clearsign.h $(SRCDIR)/config.h
361 $(XTCC) -o $(OBJDIR)/clearsign.o -c clearsign_.c
362
363 clearsign.h: headers
364 clone_.c: $(SRCDIR)/clone.c translate
365 ./translate $(SRCDIR)/clone.c >clone_.c
366
367 $(OBJDIR)/clone.o: clone_.c clone.h $(SRCDIR)/config.h
368 $(XTCC) -o $(OBJDIR)/clone.o -c clone_.c
369
370 clone.h: headers
371 comformat_.c: $(SRCDIR)/comformat.c translate
372 ./translate $(SRCDIR)/comformat.c >comformat_.c
373
374 $(OBJDIR)/comformat.o: comformat_.c comformat.h $(SRCDIR)/config.h
375 $(XTCC) -o $(OBJDIR)/comformat.o -c comformat_.c
376
377 comformat.h: headers
378 configure_.c: $(SRCDIR)/configure.c translate
379 ./translate $(SRCDIR)/configure.c >configure_.c
380
381 $(OBJDIR)/configure.o: configure_.c configure.h $(SRCDIR)/config.h
382 $(XTCC) -o $(OBJDIR)/configure.o -c configure_.c
383
384 configure.h: headers
385 construct_.c: $(SRCDIR)/construct.c translate
386 ./translate $(SRCDIR)/construct.c >construct_.c
387
388 $(OBJDIR)/construct.o: construct_.c construct.h $(SRCDIR)/config.h
389 $(XTCC) -o $(OBJDIR)/construct.o -c construct_.c
390
391 construct.h: headers
392 content_.c: $(SRCDIR)/content.c translate
393 ./translate $(SRCDIR)/content.c >content_.c
394
395 $(OBJDIR)/content.o: content_.c content.h $(SRCDIR)/config.h
396 $(XTCC) -o $(OBJDIR)/content.o -c content_.c
397
398 content.h: headers
399 db_.c: $(SRCDIR)/db.c translate
400 ./translate $(SRCDIR)/db.c >db_.c
401
402 $(OBJDIR)/db.o: db_.c db.h $(SRCDIR)/config.h
403 $(XTCC) -o $(OBJDIR)/db.o -c db_.c
404
405 db.h: headers
406 delta_.c: $(SRCDIR)/delta.c translate
407 ./translate $(SRCDIR)/delta.c >delta_.c
408
409 $(OBJDIR)/delta.o: delta_.c delta.h $(SRCDIR)/config.h
410 $(XTCC) -o $(OBJDIR)/delta.o -c delta_.c
411
412 delta.h: headers
413 deltacmd_.c: $(SRCDIR)/deltacmd.c translate
414 ./translate $(SRCDIR)/deltacmd.c >deltacmd_.c
415
416 $(OBJDIR)/deltacmd.o: deltacmd_.c deltacmd.h $(SRCDIR)/config.h
417 $(XTCC) -o $(OBJDIR)/deltacmd.o -c deltacmd_.c
418
419 deltacmd.h: headers
420 descendants_.c: $(SRCDIR)/descendants.c translate
421 ./translate $(SRCDIR)/descendants.c >descendants_.c
422
423 $(OBJDIR)/descendants.o: descendants_.c descendants.h $(SRCDIR)/config.h
424 $(XTCC) -o $(OBJDIR)/descendants.o -c descendants_.c
425
426 descendants.h: headers
427 diff_.c: $(SRCDIR)/diff.c translate
428 ./translate $(SRCDIR)/diff.c >diff_.c
429
430 $(OBJDIR)/diff.o: diff_.c diff.h $(SRCDIR)/config.h
431 $(XTCC) -o $(OBJDIR)/diff.o -c diff_.c
432
433 diff.h: headers
434 diffcmd_.c: $(SRCDIR)/diffcmd.c translate
435 ./translate $(SRCDIR)/diffcmd.c >diffcmd_.c
436
437 $(OBJDIR)/diffcmd.o: diffcmd_.c diffcmd.h $(SRCDIR)/config.h
438 $(XTCC) -o $(OBJDIR)/diffcmd.o -c diffcmd_.c
439
440 diffcmd.h: headers
441 doc_.c: $(SRCDIR)/doc.c translate
442 ./translate $(SRCDIR)/doc.c >doc_.c
443
444 $(OBJDIR)/doc.o: doc_.c doc.h $(SRCDIR)/config.h
445 $(XTCC) -o $(OBJDIR)/doc.o -c doc_.c
446
447 doc.h: headers
448 encode_.c: $(SRCDIR)/encode.c translate
449 ./translate $(SRCDIR)/encode.c >encode_.c
450
451 $(OBJDIR)/encode.o: encode_.c encode.h $(SRCDIR)/config.h
452 $(XTCC) -o $(OBJDIR)/encode.o -c encode_.c
453
454 encode.h: headers
455 file_.c: $(SRCDIR)/file.c translate
456 ./translate $(SRCDIR)/file.c >file_.c
457
458 $(OBJDIR)/file.o: file_.c file.h $(SRCDIR)/config.h
459 $(XTCC) -o $(OBJDIR)/file.o -c file_.c
460
461 file.h: headers
462 finfo_.c: $(SRCDIR)/finfo.c translate
463 ./translate $(SRCDIR)/finfo.c >finfo_.c
464
465 $(OBJDIR)/finfo.o: finfo_.c finfo.h $(SRCDIR)/config.h
466 $(XTCC) -o $(OBJDIR)/finfo.o -c finfo_.c
467
468 finfo.h: headers
469 graph_.c: $(SRCDIR)/graph.c translate
470 ./translate $(SRCDIR)/graph.c >graph_.c
471
472 $(OBJDIR)/graph.o: graph_.c graph.h $(SRCDIR)/config.h
473 $(XTCC) -o $(OBJDIR)/graph.o -c graph_.c
474
475 graph.h: headers
476 http_.c: $(SRCDIR)/http.c translate
477 ./translate $(SRCDIR)/http.c >http_.c
478
479 $(OBJDIR)/http.o: http_.c http.h $(SRCDIR)/config.h
480 $(XTCC) -o $(OBJDIR)/http.o -c http_.c
481
482 http.h: headers
483 http_socket_.c: $(SRCDIR)/http_socket.c translate
484 ./translate $(SRCDIR)/http_socket.c >http_socket_.c
485
486 $(OBJDIR)/http_socket.o: http_socket_.c http_socket.h $(SRCDIR)/config.h
487 $(XTCC) -o $(OBJDIR)/http_socket.o -c http_socket_.c
488
489 http_socket.h: headers
490 http_ssl_.c: $(SRCDIR)/http_ssl.c translate
491 ./translate $(SRCDIR)/http_ssl.c >http_ssl_.c
492
493 $(OBJDIR)/http_ssl.o: http_ssl_.c http_ssl.h $(SRCDIR)/config.h
494 $(XTCC) -o $(OBJDIR)/http_ssl.o -c http_ssl_.c
495
496 http_ssl.h: headers
497 http_transport_.c: $(SRCDIR)/http_transport.c translate
498 ./translate $(SRCDIR)/http_transport.c >http_transport_.c
499
500 $(OBJDIR)/http_transport.o: http_transport_.c http_transport.h $(SRCDIR)/config.h
501 $(XTCC) -o $(OBJDIR)/http_transport.o -c http_transport_.c
502
503 http_transport.h: headers
504 info_.c: $(SRCDIR)/info.c translate
505 ./translate $(SRCDIR)/info.c >info_.c
506
507 $(OBJDIR)/info.o: info_.c info.h $(SRCDIR)/config.h
508 $(XTCC) -o $(OBJDIR)/info.o -c info_.c
509
510 info.h: headers
511 login_.c: $(SRCDIR)/login.c translate
512 ./translate $(SRCDIR)/login.c >login_.c
513
514 $(OBJDIR)/login.o: login_.c login.h $(SRCDIR)/config.h
515 $(XTCC) -o $(OBJDIR)/login.o -c login_.c
516
517 login.h: headers
518 main_.c: $(SRCDIR)/main.c translate
519 ./translate $(SRCDIR)/main.c >main_.c
520
521 $(OBJDIR)/main.o: main_.c main.h page_index.h $(SRCDIR)/config.h
522 $(XTCC) -o $(OBJDIR)/main.o -c main_.c
523
524 main.h: headers
525 manifest_.c: $(SRCDIR)/manifest.c translate
526 ./translate $(SRCDIR)/manifest.c >manifest_.c
527
528 $(OBJDIR)/manifest.o: manifest_.c manifest.h $(SRCDIR)/config.h
529 $(XTCC) -o $(OBJDIR)/manifest.o -c manifest_.c
530
531 manifest.h: headers
532 md5_.c: $(SRCDIR)/md5.c translate
533 ./translate $(SRCDIR)/md5.c >md5_.c
534
535 $(OBJDIR)/md5.o: md5_.c md5.h $(SRCDIR)/config.h
536 $(XTCC) -o $(OBJDIR)/md5.o -c md5_.c
537
538 md5.h: headers
539 merge_.c: $(SRCDIR)/merge.c translate
540 ./translate $(SRCDIR)/merge.c >merge_.c
541
542 $(OBJDIR)/merge.o: merge_.c merge.h $(SRCDIR)/config.h
543 $(XTCC) -o $(OBJDIR)/merge.o -c merge_.c
544
545 merge.h: headers
546 merge3_.c: $(SRCDIR)/merge3.c translate
547 ./translate $(SRCDIR)/merge3.c >merge3_.c
548
549 $(OBJDIR)/merge3.o: merge3_.c merge3.h $(SRCDIR)/config.h
550 $(XTCC) -o $(OBJDIR)/merge3.o -c merge3_.c
551
552 merge3.h: headers
553 name_.c: $(SRCDIR)/name.c translate
554 ./translate $(SRCDIR)/name.c >name_.c
555
556 $(OBJDIR)/name.o: name_.c name.h $(SRCDIR)/config.h
557 $(XTCC) -o $(OBJDIR)/name.o -c name_.c
558
559 name.h: headers
560 pivot_.c: $(SRCDIR)/pivot.c translate
561 ./translate $(SRCDIR)/pivot.c >pivot_.c
562
563 $(OBJDIR)/pivot.o: pivot_.c pivot.h $(SRCDIR)/config.h
564 $(XTCC) -o $(OBJDIR)/pivot.o -c pivot_.c
565
566 pivot.h: headers
567 pqueue_.c: $(SRCDIR)/pqueue.c translate
568 ./translate $(SRCDIR)/pqueue.c >pqueue_.c
569
570 $(OBJDIR)/pqueue.o: pqueue_.c pqueue.h $(SRCDIR)/config.h
571 $(XTCC) -o $(OBJDIR)/pqueue.o -c pqueue_.c
572
573 pqueue.h: headers
574 printf_.c: $(SRCDIR)/printf.c translate
575 ./translate $(SRCDIR)/printf.c >printf_.c
576
577 $(OBJDIR)/printf.o: printf_.c printf.h $(SRCDIR)/config.h
578 $(XTCC) -o $(OBJDIR)/printf.o -c printf_.c
579
580 printf.h: headers
581 rebuild_.c: $(SRCDIR)/rebuild.c translate
582 ./translate $(SRCDIR)/rebuild.c >rebuild_.c
583
584 $(OBJDIR)/rebuild.o: rebuild_.c rebuild.h $(SRCDIR)/config.h
585 $(XTCC) -o $(OBJDIR)/rebuild.o -c rebuild_.c
586
587 rebuild.h: headers
588 report_.c: $(SRCDIR)/report.c translate
589 ./translate $(SRCDIR)/report.c >report_.c
590
591 $(OBJDIR)/report.o: report_.c report.h $(SRCDIR)/config.h
592 $(XTCC) -o $(OBJDIR)/report.o -c report_.c
593
594 report.h: headers
595 rss_.c: $(SRCDIR)/rss.c translate
596 ./translate $(SRCDIR)/rss.c >rss_.c
597
598 $(OBJDIR)/rss.o: rss_.c rss.h $(SRCDIR)/config.h
599 $(XTCC) -o $(OBJDIR)/rss.o -c rss_.c
600
601 rss.h: headers
602 rstats_.c: $(SRCDIR)/rstats.c translate
603 ./translate $(SRCDIR)/rstats.c >rstats_.c
604
605 $(OBJDIR)/rstats.o: rstats_.c rstats.h $(SRCDIR)/config.h
606 $(XTCC) -o $(OBJDIR)/rstats.o -c rstats_.c
607
608 rstats.h: headers
609 schema_.c: $(SRCDIR)/schema.c translate
610 ./translate $(SRCDIR)/schema.c >schema_.c
611
612 $(OBJDIR)/schema.o: schema_.c schema.h $(SRCDIR)/config.h
613 $(XTCC) -o $(OBJDIR)/schema.o -c schema_.c
614
615 schema.h: headers
616 search_.c: $(SRCDIR)/search.c translate
617 ./translate $(SRCDIR)/search.c >search_.c
618
619 $(OBJDIR)/search.o: search_.c search.h $(SRCDIR)/config.h
620 $(XTCC) -o $(OBJDIR)/search.o -c search_.c
621
622 search.h: headers
623 setup_.c: $(SRCDIR)/setup.c translate
624 ./translate $(SRCDIR)/setup.c >setup_.c
625
626 $(OBJDIR)/setup.o: setup_.c setup.h $(SRCDIR)/config.h
627 $(XTCC) -o $(OBJDIR)/setup.o -c setup_.c
628
629 setup.h: headers
630 sha1_.c: $(SRCDIR)/sha1.c translate
631 ./translate $(SRCDIR)/sha1.c >sha1_.c
632
633 $(OBJDIR)/sha1.o: sha1_.c sha1.h $(SRCDIR)/config.h
634 $(XTCC) -o $(OBJDIR)/sha1.o -c sha1_.c
635
636 sha1.h: headers
637 shun_.c: $(SRCDIR)/shun.c translate
638 ./translate $(SRCDIR)/shun.c >shun_.c
639
640 $(OBJDIR)/shun.o: shun_.c shun.h $(SRCDIR)/config.h
641 $(XTCC) -o $(OBJDIR)/shun.o -c shun_.c
642
643 shun.h: headers
644 skins_.c: $(SRCDIR)/skins.c translate
645 ./translate $(SRCDIR)/skins.c >skins_.c
646
647 $(OBJDIR)/skins.o: skins_.c skins.h $(SRCDIR)/config.h
648 $(XTCC) -o $(OBJDIR)/skins.o -c skins_.c
649
650 skins.h: headers
651 stat_.c: $(SRCDIR)/stat.c translate
652 ./translate $(SRCDIR)/stat.c >stat_.c
653
654 $(OBJDIR)/stat.o: stat_.c stat.h $(SRCDIR)/config.h
655 $(XTCC) -o $(OBJDIR)/stat.o -c stat_.c
656
657 stat.h: headers
658 style_.c: $(SRCDIR)/style.c translate
659 ./translate $(SRCDIR)/style.c >style_.c
660
661 $(OBJDIR)/style.o: style_.c style.h $(SRCDIR)/config.h
662 $(XTCC) -o $(OBJDIR)/style.o -c style_.c
663
664 style.h: headers
665 sync_.c: $(SRCDIR)/sync.c translate
666 ./translate $(SRCDIR)/sync.c >sync_.c
667
668 $(OBJDIR)/sync.o: sync_.c sync.h $(SRCDIR)/config.h
669 $(XTCC) -o $(OBJDIR)/sync.o -c sync_.c
670
671 sync.h: headers
672 tag_.c: $(SRCDIR)/tag.c translate
673 ./translate $(SRCDIR)/tag.c >tag_.c
674
675 $(OBJDIR)/tag.o: tag_.c tag.h $(SRCDIR)/config.h
676 $(XTCC) -o $(OBJDIR)/tag.o -c tag_.c
677
678 tag.h: headers
679 th_main_.c: $(SRCDIR)/th_main.c translate
680 ./translate $(SRCDIR)/th_main.c >th_main_.c
681
682 $(OBJDIR)/th_main.o: th_main_.c th_main.h $(SRCDIR)/config.h
683 $(XTCC) -o $(OBJDIR)/th_main.o -c th_main_.c
684
685 th_main.h: headers
686 timeline_.c: $(SRCDIR)/timeline.c translate
687 ./translate $(SRCDIR)/timeline.c >timeline_.c
688
689 $(OBJDIR)/timeline.o: timeline_.c timeline.h $(SRCDIR)/config.h
690 $(XTCC) -o $(OBJDIR)/timeline.o -c timeline_.c
691
692 timeline.h: headers
693 tkt_.c: $(SRCDIR)/tkt.c translate
694 ./translate $(SRCDIR)/tkt.c >tkt_.c
695
696 $(OBJDIR)/tkt.o: tkt_.c tkt.h $(SRCDIR)/config.h
697 $(XTCC) -o $(OBJDIR)/tkt.o -c tkt_.c
698
699 tkt.h: headers
700 tktsetup_.c: $(SRCDIR)/tktsetup.c translate
701 ./translate $(SRCDIR)/tktsetup.c >tktsetup_.c
702
703 $(OBJDIR)/tktsetup.o: tktsetup_.c tktsetup.h $(SRCDIR)/config.h
704 $(XTCC) -o $(OBJDIR)/tktsetup.o -c tktsetup_.c
705
706 tktsetup.h: headers
707 undo_.c: $(SRCDIR)/undo.c translate
708 ./translate $(SRCDIR)/undo.c >undo_.c
709
710 $(OBJDIR)/undo.o: undo_.c undo.h $(SRCDIR)/config.h
711 $(XTCC) -o $(OBJDIR)/undo.o -c undo_.c
712
713 undo.h: headers
714 update_.c: $(SRCDIR)/update.c translate
715 ./translate $(SRCDIR)/update.c >update_.c
716
717 $(OBJDIR)/update.o: update_.c update.h $(SRCDIR)/config.h
718 $(XTCC) -o $(OBJDIR)/update.o -c update_.c
719
720 update.h: headers
721 url_.c: $(SRCDIR)/url.c translate
722 ./translate $(SRCDIR)/url.c >url_.c
723
724 $(OBJDIR)/url.o: url_.c url.h $(SRCDIR)/config.h
725 $(XTCC) -o $(OBJDIR)/url.o -c url_.c
726
727 url.h: headers
728 user_.c: $(SRCDIR)/user.c translate
729 ./translate $(SRCDIR)/user.c >user_.c
730
731 $(OBJDIR)/user.o: user_.c user.h $(SRCDIR)/config.h
732 $(XTCC) -o $(OBJDIR)/user.o -c user_.c
733
734 user.h: headers
735 verify_.c: $(SRCDIR)/verify.c translate
736 ./translate $(SRCDIR)/verify.c >verify_.c
737
738 $(OBJDIR)/verify.o: verify_.c verify.h $(SRCDIR)/config.h
739 $(XTCC) -o $(OBJDIR)/verify.o -c verify_.c
740
741 verify.h: headers
742 vfile_.c: $(SRCDIR)/vfile.c translate
743 ./translate $(SRCDIR)/vfile.c >vfile_.c
744
745 $(OBJDIR)/vfile.o: vfile_.c vfile.h $(SRCDIR)/config.h
746 $(XTCC) -o $(OBJDIR)/vfile.o -c vfile_.c
747
748 vfile.h: headers
749 wiki_.c: $(SRCDIR)/wiki.c translate
750 ./translate $(SRCDIR)/wiki.c >wiki_.c
751
752 $(OBJDIR)/wiki.o: wiki_.c wiki.h $(SRCDIR)/config.h
753 $(XTCC) -o $(OBJDIR)/wiki.o -c wiki_.c
754
755 wiki.h: headers
756 wikiformat_.c: $(SRCDIR)/wikiformat.c translate
757 ./translate $(SRCDIR)/wikiformat.c >wikiformat_.c
758
759 $(OBJDIR)/wikiformat.o: wikiformat_.c wikiformat.h $(SRCDIR)/config.h
760 $(XTCC) -o $(OBJDIR)/wikiformat.o -c wikiformat_.c
761
762 wikiformat.h: headers
763 winhttp_.c: $(SRCDIR)/winhttp.c translate
764 ./translate $(SRCDIR)/winhttp.c >winhttp_.c
765
766 $(OBJDIR)/winhttp.o: winhttp_.c winhttp.h $(SRCDIR)/config.h
767 $(XTCC) -o $(OBJDIR)/winhttp.o -c winhttp_.c
768
769 winhttp.h: headers
770 xfer_.c: $(SRCDIR)/xfer.c translate
771 ./translate $(SRCDIR)/xfer.c >xfer_.c
772
773 $(OBJDIR)/xfer.o: xfer_.c xfer.h $(SRCDIR)/config.h
774 $(XTCC) -o $(OBJDIR)/xfer.o -c xfer_.c
775
776 xfer.h: headers
777 zip_.c: $(SRCDIR)/zip.c translate
778 ./translate $(SRCDIR)/zip.c >zip_.c
779
780 $(OBJDIR)/zip.o: zip_.c zip.h $(SRCDIR)/config.h
781 $(XTCC) -o $(OBJDIR)/zip.o -c zip_.c
782
783 zip.h: headers
784 $(OBJDIR)/sqlite3.o: $(SRCDIR)/sqlite3.c
785 $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -Dlocaltime=fossil_localtime -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
786
787 $(OBJDIR)/th.o: $(SRCDIR)/th.c
788 $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th.c -o $(OBJDIR)/th.o
789
790 $(OBJDIR)/th_lang.o: $(SRCDIR)/th_lang.c
791 $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th_lang.c -o $(OBJDIR)/th_lang.o
792
793
+16 -13
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -108,22 +108,25 @@
108108
puts -nonewline " \\\n ${s}_.c"
109109
}
110110
puts "\n"
111111
puts -nonewline "OBJ ="
112112
foreach s [lsort $src] {
113
- puts -nonewline " \\\n $s.o"
113
+ puts -nonewline " \\\n \$(OBJDIR)/$s.o"
114114
}
115115
puts "\n"
116116
puts "APPNAME = $name\$(E)"
117117
puts "\n"
118118
119119
puts {
120
-all: $(APPNAME)
120
+all: $(OBJDIR) $(APPNAME)
121121
122122
install: $(APPNAME)
123123
mv $(APPNAME) $(INSTALLDIR)
124124
125
+$(OBJDIR):
126
+ -mkdir $(OBJDIR)
127
+
125128
translate: $(SRCDIR)/translate.c
126129
$(BCC) -o translate $(SRCDIR)/translate.c
127130
128131
makeheaders: $(SRCDIR)/makeheaders.c
129132
$(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
@@ -144,21 +147,21 @@
144147
$(SRCDIR)/../manifest.uuid >>VERSION.h
145148
awk '$$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n",\
146149
substr($$2,1,10),substr($$2,12)}' \
147150
$(SRCDIR)/../manifest >>VERSION.h
148151
149
-$(APPNAME): headers $(OBJ) sqlite3.o th.o th_lang.o
150
- $(TCC) -o $(APPNAME) $(OBJ) sqlite3.o th.o th_lang.o $(LIB)
152
+$(APPNAME): headers $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o
153
+ $(TCC) -o $(APPNAME) $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(LIB)
151154
152155
# This rule prevents make from using its default rules to try build
153156
# an executable named "manifest" out of the file named "manifest.c"
154157
#
155158
$(SRCDIR)/../manifest:
156159
# noop
157160
158161
clean:
159
- rm -f *.o *_.c $(APPNAME) VERSION.h
162
+ rm -f $(OBJDIR)/*.o *_.c $(APPNAME) VERSION.h
160163
rm -f translate makeheaders mkindex page_index.h headers}
161164
162165
set hfiles {}
163166
foreach s [lsort $src] {lappend hfiles $s.h}
164167
puts "\trm -f $hfiles\n"
@@ -181,25 +184,25 @@
181184
set extra_h(main) page_index.h
182185
183186
foreach s [lsort $src] {
184187
puts "${s}_.c:\t\$(SRCDIR)/$s.c translate"
185188
puts "\t./translate \$(SRCDIR)/$s.c >${s}_.c\n"
186
- puts "$s.o:\t${s}_.c $s.h $extra_h($s) \$(SRCDIR)/config.h"
187
- puts "\t\$(XTCC) -o $s.o -c ${s}_.c\n"
189
+ puts "\$(OBJDIR)/$s.o:\t${s}_.c $s.h $extra_h($s) \$(SRCDIR)/config.h"
190
+ puts "\t\$(XTCC) -o \$(OBJDIR)/$s.o -c ${s}_.c\n"
188191
puts "$s.h:\theaders"
189192
# puts "\t./makeheaders $mhargs\n\ttouch headers\n"
190193
# puts "\t./makeheaders ${s}_.c:${s}.h\n"
191194
}
192195
193196
194
-puts "sqlite3.o:\t\$(SRCDIR)/sqlite3.c"
197
+puts "\$(OBJDIR)/sqlite3.o:\t\$(SRCDIR)/sqlite3.c"
195198
set opt {-DSQLITE_OMIT_LOAD_EXTENSION=1}
196199
append opt " -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4"
197200
#append opt " -DSQLITE_ENABLE_FTS3=1"
198201
append opt " -Dlocaltime=fossil_localtime"
199
-puts "\t\$(XTCC) $opt -c \$(SRCDIR)/sqlite3.c -o sqlite3.o\n"
202
+puts "\t\$(XTCC) $opt -c \$(SRCDIR)/sqlite3.c -o \$(OBJDIR)/sqlite3.o\n"
200203
201
-puts "th.o:\t\$(SRCDIR)/th.c"
202
-puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th.c -o th.o\n"
204
+puts "\$(OBJDIR)/th.o:\t\$(SRCDIR)/th.c"
205
+puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th.c -o \$(OBJDIR)/th.o\n"
203206
204
-puts "th_lang.o:\t\$(SRCDIR)/th_lang.c"
205
-puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th_lang.c -o th_lang.o\n"
207
+puts "\$(OBJDIR)/th_lang.o:\t\$(SRCDIR)/th_lang.c"
208
+puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th_lang.c -o \$(OBJDIR)/th_lang.o\n"
206209
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -108,22 +108,25 @@
108 puts -nonewline " \\\n ${s}_.c"
109 }
110 puts "\n"
111 puts -nonewline "OBJ ="
112 foreach s [lsort $src] {
113 puts -nonewline " \\\n $s.o"
114 }
115 puts "\n"
116 puts "APPNAME = $name\$(E)"
117 puts "\n"
118
119 puts {
120 all: $(APPNAME)
121
122 install: $(APPNAME)
123 mv $(APPNAME) $(INSTALLDIR)
124
 
 
 
125 translate: $(SRCDIR)/translate.c
126 $(BCC) -o translate $(SRCDIR)/translate.c
127
128 makeheaders: $(SRCDIR)/makeheaders.c
129 $(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
@@ -144,21 +147,21 @@
144 $(SRCDIR)/../manifest.uuid >>VERSION.h
145 awk '$$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n",\
146 substr($$2,1,10),substr($$2,12)}' \
147 $(SRCDIR)/../manifest >>VERSION.h
148
149 $(APPNAME): headers $(OBJ) sqlite3.o th.o th_lang.o
150 $(TCC) -o $(APPNAME) $(OBJ) sqlite3.o th.o th_lang.o $(LIB)
151
152 # This rule prevents make from using its default rules to try build
153 # an executable named "manifest" out of the file named "manifest.c"
154 #
155 $(SRCDIR)/../manifest:
156 # noop
157
158 clean:
159 rm -f *.o *_.c $(APPNAME) VERSION.h
160 rm -f translate makeheaders mkindex page_index.h headers}
161
162 set hfiles {}
163 foreach s [lsort $src] {lappend hfiles $s.h}
164 puts "\trm -f $hfiles\n"
@@ -181,25 +184,25 @@
181 set extra_h(main) page_index.h
182
183 foreach s [lsort $src] {
184 puts "${s}_.c:\t\$(SRCDIR)/$s.c translate"
185 puts "\t./translate \$(SRCDIR)/$s.c >${s}_.c\n"
186 puts "$s.o:\t${s}_.c $s.h $extra_h($s) \$(SRCDIR)/config.h"
187 puts "\t\$(XTCC) -o $s.o -c ${s}_.c\n"
188 puts "$s.h:\theaders"
189 # puts "\t./makeheaders $mhargs\n\ttouch headers\n"
190 # puts "\t./makeheaders ${s}_.c:${s}.h\n"
191 }
192
193
194 puts "sqlite3.o:\t\$(SRCDIR)/sqlite3.c"
195 set opt {-DSQLITE_OMIT_LOAD_EXTENSION=1}
196 append opt " -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4"
197 #append opt " -DSQLITE_ENABLE_FTS3=1"
198 append opt " -Dlocaltime=fossil_localtime"
199 puts "\t\$(XTCC) $opt -c \$(SRCDIR)/sqlite3.c -o sqlite3.o\n"
200
201 puts "th.o:\t\$(SRCDIR)/th.c"
202 puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th.c -o th.o\n"
203
204 puts "th_lang.o:\t\$(SRCDIR)/th_lang.c"
205 puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th_lang.c -o th_lang.o\n"
206
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -108,22 +108,25 @@
108 puts -nonewline " \\\n ${s}_.c"
109 }
110 puts "\n"
111 puts -nonewline "OBJ ="
112 foreach s [lsort $src] {
113 puts -nonewline " \\\n \$(OBJDIR)/$s.o"
114 }
115 puts "\n"
116 puts "APPNAME = $name\$(E)"
117 puts "\n"
118
119 puts {
120 all: $(OBJDIR) $(APPNAME)
121
122 install: $(APPNAME)
123 mv $(APPNAME) $(INSTALLDIR)
124
125 $(OBJDIR):
126 -mkdir $(OBJDIR)
127
128 translate: $(SRCDIR)/translate.c
129 $(BCC) -o translate $(SRCDIR)/translate.c
130
131 makeheaders: $(SRCDIR)/makeheaders.c
132 $(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
@@ -144,21 +147,21 @@
147 $(SRCDIR)/../manifest.uuid >>VERSION.h
148 awk '$$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n",\
149 substr($$2,1,10),substr($$2,12)}' \
150 $(SRCDIR)/../manifest >>VERSION.h
151
152 $(APPNAME): headers $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o
153 $(TCC) -o $(APPNAME) $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(LIB)
154
155 # This rule prevents make from using its default rules to try build
156 # an executable named "manifest" out of the file named "manifest.c"
157 #
158 $(SRCDIR)/../manifest:
159 # noop
160
161 clean:
162 rm -f $(OBJDIR)/*.o *_.c $(APPNAME) VERSION.h
163 rm -f translate makeheaders mkindex page_index.h headers}
164
165 set hfiles {}
166 foreach s [lsort $src] {lappend hfiles $s.h}
167 puts "\trm -f $hfiles\n"
@@ -181,25 +184,25 @@
184 set extra_h(main) page_index.h
185
186 foreach s [lsort $src] {
187 puts "${s}_.c:\t\$(SRCDIR)/$s.c translate"
188 puts "\t./translate \$(SRCDIR)/$s.c >${s}_.c\n"
189 puts "\$(OBJDIR)/$s.o:\t${s}_.c $s.h $extra_h($s) \$(SRCDIR)/config.h"
190 puts "\t\$(XTCC) -o \$(OBJDIR)/$s.o -c ${s}_.c\n"
191 puts "$s.h:\theaders"
192 # puts "\t./makeheaders $mhargs\n\ttouch headers\n"
193 # puts "\t./makeheaders ${s}_.c:${s}.h\n"
194 }
195
196
197 puts "\$(OBJDIR)/sqlite3.o:\t\$(SRCDIR)/sqlite3.c"
198 set opt {-DSQLITE_OMIT_LOAD_EXTENSION=1}
199 append opt " -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4"
200 #append opt " -DSQLITE_ENABLE_FTS3=1"
201 append opt " -Dlocaltime=fossil_localtime"
202 puts "\t\$(XTCC) $opt -c \$(SRCDIR)/sqlite3.c -o \$(OBJDIR)/sqlite3.o\n"
203
204 puts "\$(OBJDIR)/th.o:\t\$(SRCDIR)/th.c"
205 puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th.c -o \$(OBJDIR)/th.o\n"
206
207 puts "\$(OBJDIR)/th_lang.o:\t\$(SRCDIR)/th_lang.c"
208 puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th_lang.c -o \$(OBJDIR)/th_lang.o\n"
209

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button