Fossil SCM

Merge trunk changes into the retro-sbsdiff branch.

drh 2012-01-18 13:22 UTC retro-sbsdiff merge
Commit 6daee94fac51d294944fa3095bde87be9715d099
+5 -1
--- src/configure.c
+++ src/configure.c
@@ -33,10 +33,11 @@
3333
#define CONFIGSET_TKT 0x000002 /* Ticket configuration */
3434
#define CONFIGSET_PROJ 0x000004 /* Project name */
3535
#define CONFIGSET_SHUN 0x000008 /* Shun settings */
3636
#define CONFIGSET_USER 0x000010 /* The USER table */
3737
#define CONFIGSET_ADDR 0x000020 /* The CONCEALED table */
38
+#define CONFIGSET_XFER 0x000040 /* Transfer configuration */
3839
3940
#define CONFIGSET_ALL 0x0000ff /* Everything */
4041
4142
#define CONFIGSET_OVERWRITE 0x100000 /* Causes overwrite instead of merge */
4243
#define CONFIGSET_OLDFORMAT 0x200000 /* Use the legacy format */
@@ -55,10 +56,11 @@
5556
{ "/project", CONFIGSET_PROJ, "Project name and description" },
5657
{ "/skin", CONFIGSET_SKIN, "Web interface apparance settings" },
5758
{ "/shun", CONFIGSET_SHUN, "List of shunned artifacts" },
5859
{ "/ticket", CONFIGSET_TKT, "Ticket setup", },
5960
{ "/user", CONFIGSET_USER, "Users and privilege settings" },
61
+ { "/xfer", CONFIGSET_XFER, "Transfer setup", },
6062
{ "/all", CONFIGSET_ALL, "All of the above" },
6163
};
6264
6365
6466
/*
@@ -85,11 +87,11 @@
8587
{ "crnl-glob", CONFIGSET_PROJ },
8688
{ "empty-dirs", CONFIGSET_PROJ },
8789
{ "allow-symlinks", CONFIGSET_PROJ },
8890
{ "index-page", CONFIGSET_SKIN },
8991
#ifdef FOSSIL_ENABLE_TCL
90
- { "tcl", CONFIGSET_SKIN|CONFIGSET_TKT },
92
+ { "tcl", CONFIGSET_SKIN|CONFIGSET_TKT|CONFIGSET_XFER },
9193
#endif
9294
{ "timeline-block-markup", CONFIGSET_SKIN },
9395
{ "timeline-max-comment", CONFIGSET_SKIN },
9496
{ "ticket-table", CONFIGSET_TKT },
9597
{ "ticket-common", CONFIGSET_TKT },
@@ -103,10 +105,12 @@
103105
{ "ticket-closed-expr", CONFIGSET_TKT },
104106
{ "@reportfmt", CONFIGSET_TKT },
105107
{ "@user", CONFIGSET_USER },
106108
{ "@concealed", CONFIGSET_ADDR },
107109
{ "@shun", CONFIGSET_SHUN },
110
+ { "xfer-common-script", CONFIGSET_XFER },
111
+ { "xfer-push-script", CONFIGSET_XFER },
108112
};
109113
static int iConfig = 0;
110114
111115
/*
112116
** Return name of first configuration property matching the given mask.
113117
--- src/configure.c
+++ src/configure.c
@@ -33,10 +33,11 @@
33 #define CONFIGSET_TKT 0x000002 /* Ticket configuration */
34 #define CONFIGSET_PROJ 0x000004 /* Project name */
35 #define CONFIGSET_SHUN 0x000008 /* Shun settings */
36 #define CONFIGSET_USER 0x000010 /* The USER table */
37 #define CONFIGSET_ADDR 0x000020 /* The CONCEALED table */
 
38
39 #define CONFIGSET_ALL 0x0000ff /* Everything */
40
41 #define CONFIGSET_OVERWRITE 0x100000 /* Causes overwrite instead of merge */
42 #define CONFIGSET_OLDFORMAT 0x200000 /* Use the legacy format */
@@ -55,10 +56,11 @@
55 { "/project", CONFIGSET_PROJ, "Project name and description" },
56 { "/skin", CONFIGSET_SKIN, "Web interface apparance settings" },
57 { "/shun", CONFIGSET_SHUN, "List of shunned artifacts" },
58 { "/ticket", CONFIGSET_TKT, "Ticket setup", },
59 { "/user", CONFIGSET_USER, "Users and privilege settings" },
 
60 { "/all", CONFIGSET_ALL, "All of the above" },
61 };
62
63
64 /*
@@ -85,11 +87,11 @@
85 { "crnl-glob", CONFIGSET_PROJ },
86 { "empty-dirs", CONFIGSET_PROJ },
87 { "allow-symlinks", CONFIGSET_PROJ },
88 { "index-page", CONFIGSET_SKIN },
89 #ifdef FOSSIL_ENABLE_TCL
90 { "tcl", CONFIGSET_SKIN|CONFIGSET_TKT },
91 #endif
92 { "timeline-block-markup", CONFIGSET_SKIN },
93 { "timeline-max-comment", CONFIGSET_SKIN },
94 { "ticket-table", CONFIGSET_TKT },
95 { "ticket-common", CONFIGSET_TKT },
@@ -103,10 +105,12 @@
103 { "ticket-closed-expr", CONFIGSET_TKT },
104 { "@reportfmt", CONFIGSET_TKT },
105 { "@user", CONFIGSET_USER },
106 { "@concealed", CONFIGSET_ADDR },
107 { "@shun", CONFIGSET_SHUN },
 
 
108 };
109 static int iConfig = 0;
110
111 /*
112 ** Return name of first configuration property matching the given mask.
113
--- src/configure.c
+++ src/configure.c
@@ -33,10 +33,11 @@
33 #define CONFIGSET_TKT 0x000002 /* Ticket configuration */
34 #define CONFIGSET_PROJ 0x000004 /* Project name */
35 #define CONFIGSET_SHUN 0x000008 /* Shun settings */
36 #define CONFIGSET_USER 0x000010 /* The USER table */
37 #define CONFIGSET_ADDR 0x000020 /* The CONCEALED table */
38 #define CONFIGSET_XFER 0x000040 /* Transfer configuration */
39
40 #define CONFIGSET_ALL 0x0000ff /* Everything */
41
42 #define CONFIGSET_OVERWRITE 0x100000 /* Causes overwrite instead of merge */
43 #define CONFIGSET_OLDFORMAT 0x200000 /* Use the legacy format */
@@ -55,10 +56,11 @@
56 { "/project", CONFIGSET_PROJ, "Project name and description" },
57 { "/skin", CONFIGSET_SKIN, "Web interface apparance settings" },
58 { "/shun", CONFIGSET_SHUN, "List of shunned artifacts" },
59 { "/ticket", CONFIGSET_TKT, "Ticket setup", },
60 { "/user", CONFIGSET_USER, "Users and privilege settings" },
61 { "/xfer", CONFIGSET_XFER, "Transfer setup", },
62 { "/all", CONFIGSET_ALL, "All of the above" },
63 };
64
65
66 /*
@@ -85,11 +87,11 @@
87 { "crnl-glob", CONFIGSET_PROJ },
88 { "empty-dirs", CONFIGSET_PROJ },
89 { "allow-symlinks", CONFIGSET_PROJ },
90 { "index-page", CONFIGSET_SKIN },
91 #ifdef FOSSIL_ENABLE_TCL
92 { "tcl", CONFIGSET_SKIN|CONFIGSET_TKT|CONFIGSET_XFER },
93 #endif
94 { "timeline-block-markup", CONFIGSET_SKIN },
95 { "timeline-max-comment", CONFIGSET_SKIN },
96 { "ticket-table", CONFIGSET_TKT },
97 { "ticket-common", CONFIGSET_TKT },
@@ -103,10 +105,12 @@
105 { "ticket-closed-expr", CONFIGSET_TKT },
106 { "@reportfmt", CONFIGSET_TKT },
107 { "@user", CONFIGSET_USER },
108 { "@concealed", CONFIGSET_ADDR },
109 { "@shun", CONFIGSET_SHUN },
110 { "xfer-common-script", CONFIGSET_XFER },
111 { "xfer-push-script", CONFIGSET_XFER },
112 };
113 static int iConfig = 0;
114
115 /*
116 ** Return name of first configuration property matching the given mask.
117
+21 -5
--- src/main.mk
+++ src/main.mk
@@ -1,6 +1,9 @@
1
-# DO NOT EDIT
1
+#
2
+##############################################################################
3
+# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
4
+##############################################################################
25
#
36
# This file is automatically generated. Instead of editing this
47
# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
58
# to regenerate this file.
69
#
@@ -101,10 +104,11 @@
101104
$(SRCDIR)/vfile.c \
102105
$(SRCDIR)/wiki.c \
103106
$(SRCDIR)/wikiformat.c \
104107
$(SRCDIR)/winhttp.c \
105108
$(SRCDIR)/xfer.c \
109
+ $(SRCDIR)/xfersetup.c \
106110
$(SRCDIR)/zip.c
107111
108112
TRANS_SRC = \
109113
$(OBJDIR)/add_.c \
110114
$(OBJDIR)/allrepo_.c \
@@ -196,10 +200,11 @@
196200
$(OBJDIR)/vfile_.c \
197201
$(OBJDIR)/wiki_.c \
198202
$(OBJDIR)/wikiformat_.c \
199203
$(OBJDIR)/winhttp_.c \
200204
$(OBJDIR)/xfer_.c \
205
+ $(OBJDIR)/xfersetup_.c \
201206
$(OBJDIR)/zip_.c
202207
203208
OBJ = \
204209
$(OBJDIR)/add.o \
205210
$(OBJDIR)/allrepo.o \
@@ -291,10 +296,11 @@
291296
$(OBJDIR)/vfile.o \
292297
$(OBJDIR)/wiki.o \
293298
$(OBJDIR)/wikiformat.o \
294299
$(OBJDIR)/winhttp.o \
295300
$(OBJDIR)/xfer.o \
301
+ $(OBJDIR)/xfersetup.o \
296302
$(OBJDIR)/zip.o
297303
298304
APPNAME = fossil$(E)
299305
300306
@@ -317,11 +323,11 @@
317323
$(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
318324
319325
$(OBJDIR)/mkversion: $(SRCDIR)/mkversion.c
320326
$(BCC) -o $(OBJDIR)/mkversion $(SRCDIR)/mkversion.c
321327
322
-# WARNING. DANGER. Running the testsuite modifies the repository the
328
+# WARNING. DANGER. Running the test suite modifies the repository the
323329
# build is done from, i.e. the checkout belongs to. Do not sync/push
324330
# the repository after running the tests.
325331
test: $(OBJDIR) $(APPNAME)
326332
$(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
327333
@@ -334,12 +340,15 @@
334340
# using -lsqlite3.
335341
SQLITE3_OBJ.1 =
336342
SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o
337343
SQLITE3_OBJ. = $(SQLITE3_OBJ.0)
338344
339
-TCL_OBJ.1 =
340
-TCL_OBJ.0 = $(OBJDIR)/th_tcl.o
345
+# The FOSSIL_ENABLE_TCL variable may be undefined, set to 0, or set to 1.
346
+# If it is set to 1, then we need to build the Tcl integration code and
347
+# link to the Tcl library.
348
+TCL_OBJ.0 =
349
+TCL_OBJ.1 = $(OBJDIR)/th_tcl.o
341350
TCL_OBJ. = $(TCL_OBJ.0)
342351
343352
EXTRAOBJ = $(SQLITE3_OBJ.$(USE_SYSTEM_SQLITE)) $(OBJDIR)/shell.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(TCL_OBJ.$(FOSSIL_ENABLE_TCL)) $(OBJDIR)/cson_amalgamation.o
344353
345354
$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ)
@@ -356,11 +365,11 @@
356365
357366
358367
$(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
359368
$(OBJDIR)/mkindex $(TRANS_SRC) >$@
360369
$(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
361
- $(OBJDIR)/makeheaders $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/glob_.c:$(OBJDIR)/glob.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/gzip_.c:$(OBJDIR)/gzip.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/json_.c:$(OBJDIR)/json.h $(OBJDIR)/json_artifact_.c:$(OBJDIR)/json_artifact.h $(OBJDIR)/json_branch_.c:$(OBJDIR)/json_branch.h $(OBJDIR)/json_diff_.c:$(OBJDIR)/json_diff.h $(OBJDIR)/json_login_.c:$(OBJDIR)/json_login.h $(OBJDIR)/json_query_.c:$(OBJDIR)/json_query.h $(OBJDIR)/json_report_.c:$(OBJDIR)/json_report.h $(OBJDIR)/json_tag_.c:$(OBJDIR)/json_tag.h $(OBJDIR)/json_timeline_.c:$(OBJDIR)/json_timeline.h $(OBJDIR)/json_user_.c:$(OBJDIR)/json_user.h $(OBJDIR)/json_wiki_.c:$(OBJDIR)/json_wiki.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/path_.c:$(OBJDIR)/path.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/tar_.c:$(OBJDIR)/tar.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
370
+ $(OBJDIR)/makeheaders $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/glob_.c:$(OBJDIR)/glob.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/gzip_.c:$(OBJDIR)/gzip.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/json_.c:$(OBJDIR)/json.h $(OBJDIR)/json_artifact_.c:$(OBJDIR)/json_artifact.h $(OBJDIR)/json_branch_.c:$(OBJDIR)/json_branch.h $(OBJDIR)/json_diff_.c:$(OBJDIR)/json_diff.h $(OBJDIR)/json_login_.c:$(OBJDIR)/json_login.h $(OBJDIR)/json_query_.c:$(OBJDIR)/json_query.h $(OBJDIR)/json_report_.c:$(OBJDIR)/json_report.h $(OBJDIR)/json_tag_.c:$(OBJDIR)/json_tag.h $(OBJDIR)/json_timeline_.c:$(OBJDIR)/json_timeline.h $(OBJDIR)/json_user_.c:$(OBJDIR)/json_user.h $(OBJDIR)/json_wiki_.c:$(OBJDIR)/json_wiki.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/path_.c:$(OBJDIR)/path.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/tar_.c:$(OBJDIR)/tar.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/xfersetup_.c:$(OBJDIR)/xfersetup.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
362371
touch $(OBJDIR)/headers
363372
$(OBJDIR)/headers: Makefile
364373
$(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
365374
Makefile:
366375
$(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
@@ -1005,10 +1014,17 @@
10051014
10061015
$(OBJDIR)/xfer.o: $(OBJDIR)/xfer_.c $(OBJDIR)/xfer.h $(SRCDIR)/config.h
10071016
$(XTCC) -o $(OBJDIR)/xfer.o -c $(OBJDIR)/xfer_.c
10081017
10091018
$(OBJDIR)/xfer.h: $(OBJDIR)/headers
1019
+$(OBJDIR)/xfersetup_.c: $(SRCDIR)/xfersetup.c $(OBJDIR)/translate
1020
+ $(OBJDIR)/translate $(SRCDIR)/xfersetup.c >$(OBJDIR)/xfersetup_.c
1021
+
1022
+$(OBJDIR)/xfersetup.o: $(OBJDIR)/xfersetup_.c $(OBJDIR)/xfersetup.h $(SRCDIR)/config.h
1023
+ $(XTCC) -o $(OBJDIR)/xfersetup.o -c $(OBJDIR)/xfersetup_.c
1024
+
1025
+$(OBJDIR)/xfersetup.h: $(OBJDIR)/headers
10101026
$(OBJDIR)/zip_.c: $(SRCDIR)/zip.c $(OBJDIR)/translate
10111027
$(OBJDIR)/translate $(SRCDIR)/zip.c >$(OBJDIR)/zip_.c
10121028
10131029
$(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h
10141030
$(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
10151031
--- src/main.mk
+++ src/main.mk
@@ -1,6 +1,9 @@
1 # DO NOT EDIT
 
 
 
2 #
3 # This file is automatically generated. Instead of editing this
4 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
5 # to regenerate this file.
6 #
@@ -101,10 +104,11 @@
101 $(SRCDIR)/vfile.c \
102 $(SRCDIR)/wiki.c \
103 $(SRCDIR)/wikiformat.c \
104 $(SRCDIR)/winhttp.c \
105 $(SRCDIR)/xfer.c \
 
106 $(SRCDIR)/zip.c
107
108 TRANS_SRC = \
109 $(OBJDIR)/add_.c \
110 $(OBJDIR)/allrepo_.c \
@@ -196,10 +200,11 @@
196 $(OBJDIR)/vfile_.c \
197 $(OBJDIR)/wiki_.c \
198 $(OBJDIR)/wikiformat_.c \
199 $(OBJDIR)/winhttp_.c \
200 $(OBJDIR)/xfer_.c \
 
201 $(OBJDIR)/zip_.c
202
203 OBJ = \
204 $(OBJDIR)/add.o \
205 $(OBJDIR)/allrepo.o \
@@ -291,10 +296,11 @@
291 $(OBJDIR)/vfile.o \
292 $(OBJDIR)/wiki.o \
293 $(OBJDIR)/wikiformat.o \
294 $(OBJDIR)/winhttp.o \
295 $(OBJDIR)/xfer.o \
 
296 $(OBJDIR)/zip.o
297
298 APPNAME = fossil$(E)
299
300
@@ -317,11 +323,11 @@
317 $(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
318
319 $(OBJDIR)/mkversion: $(SRCDIR)/mkversion.c
320 $(BCC) -o $(OBJDIR)/mkversion $(SRCDIR)/mkversion.c
321
322 # WARNING. DANGER. Running the testsuite modifies the repository the
323 # build is done from, i.e. the checkout belongs to. Do not sync/push
324 # the repository after running the tests.
325 test: $(OBJDIR) $(APPNAME)
326 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
327
@@ -334,12 +340,15 @@
334 # using -lsqlite3.
335 SQLITE3_OBJ.1 =
336 SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o
337 SQLITE3_OBJ. = $(SQLITE3_OBJ.0)
338
339 TCL_OBJ.1 =
340 TCL_OBJ.0 = $(OBJDIR)/th_tcl.o
 
 
 
341 TCL_OBJ. = $(TCL_OBJ.0)
342
343 EXTRAOBJ = $(SQLITE3_OBJ.$(USE_SYSTEM_SQLITE)) $(OBJDIR)/shell.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(TCL_OBJ.$(FOSSIL_ENABLE_TCL)) $(OBJDIR)/cson_amalgamation.o
344
345 $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ)
@@ -356,11 +365,11 @@
356
357
358 $(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
359 $(OBJDIR)/mkindex $(TRANS_SRC) >$@
360 $(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
361 $(OBJDIR)/makeheaders $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/glob_.c:$(OBJDIR)/glob.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/gzip_.c:$(OBJDIR)/gzip.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/json_.c:$(OBJDIR)/json.h $(OBJDIR)/json_artifact_.c:$(OBJDIR)/json_artifact.h $(OBJDIR)/json_branch_.c:$(OBJDIR)/json_branch.h $(OBJDIR)/json_diff_.c:$(OBJDIR)/json_diff.h $(OBJDIR)/json_login_.c:$(OBJDIR)/json_login.h $(OBJDIR)/json_query_.c:$(OBJDIR)/json_query.h $(OBJDIR)/json_report_.c:$(OBJDIR)/json_report.h $(OBJDIR)/json_tag_.c:$(OBJDIR)/json_tag.h $(OBJDIR)/json_timeline_.c:$(OBJDIR)/json_timeline.h $(OBJDIR)/json_user_.c:$(OBJDIR)/json_user.h $(OBJDIR)/json_wiki_.c:$(OBJDIR)/json_wiki.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/path_.c:$(OBJDIR)/path.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/tar_.c:$(OBJDIR)/tar.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
362 touch $(OBJDIR)/headers
363 $(OBJDIR)/headers: Makefile
364 $(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
365 Makefile:
366 $(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
@@ -1005,10 +1014,17 @@
1005
1006 $(OBJDIR)/xfer.o: $(OBJDIR)/xfer_.c $(OBJDIR)/xfer.h $(SRCDIR)/config.h
1007 $(XTCC) -o $(OBJDIR)/xfer.o -c $(OBJDIR)/xfer_.c
1008
1009 $(OBJDIR)/xfer.h: $(OBJDIR)/headers
 
 
 
 
 
 
 
1010 $(OBJDIR)/zip_.c: $(SRCDIR)/zip.c $(OBJDIR)/translate
1011 $(OBJDIR)/translate $(SRCDIR)/zip.c >$(OBJDIR)/zip_.c
1012
1013 $(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h
1014 $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
1015
--- src/main.mk
+++ src/main.mk
@@ -1,6 +1,9 @@
1 #
2 ##############################################################################
3 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
4 ##############################################################################
5 #
6 # This file is automatically generated. Instead of editing this
7 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
8 # to regenerate this file.
9 #
@@ -101,10 +104,11 @@
104 $(SRCDIR)/vfile.c \
105 $(SRCDIR)/wiki.c \
106 $(SRCDIR)/wikiformat.c \
107 $(SRCDIR)/winhttp.c \
108 $(SRCDIR)/xfer.c \
109 $(SRCDIR)/xfersetup.c \
110 $(SRCDIR)/zip.c
111
112 TRANS_SRC = \
113 $(OBJDIR)/add_.c \
114 $(OBJDIR)/allrepo_.c \
@@ -196,10 +200,11 @@
200 $(OBJDIR)/vfile_.c \
201 $(OBJDIR)/wiki_.c \
202 $(OBJDIR)/wikiformat_.c \
203 $(OBJDIR)/winhttp_.c \
204 $(OBJDIR)/xfer_.c \
205 $(OBJDIR)/xfersetup_.c \
206 $(OBJDIR)/zip_.c
207
208 OBJ = \
209 $(OBJDIR)/add.o \
210 $(OBJDIR)/allrepo.o \
@@ -291,10 +296,11 @@
296 $(OBJDIR)/vfile.o \
297 $(OBJDIR)/wiki.o \
298 $(OBJDIR)/wikiformat.o \
299 $(OBJDIR)/winhttp.o \
300 $(OBJDIR)/xfer.o \
301 $(OBJDIR)/xfersetup.o \
302 $(OBJDIR)/zip.o
303
304 APPNAME = fossil$(E)
305
306
@@ -317,11 +323,11 @@
323 $(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
324
325 $(OBJDIR)/mkversion: $(SRCDIR)/mkversion.c
326 $(BCC) -o $(OBJDIR)/mkversion $(SRCDIR)/mkversion.c
327
328 # WARNING. DANGER. Running the test suite modifies the repository the
329 # build is done from, i.e. the checkout belongs to. Do not sync/push
330 # the repository after running the tests.
331 test: $(OBJDIR) $(APPNAME)
332 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
333
@@ -334,12 +340,15 @@
340 # using -lsqlite3.
341 SQLITE3_OBJ.1 =
342 SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o
343 SQLITE3_OBJ. = $(SQLITE3_OBJ.0)
344
345 # The FOSSIL_ENABLE_TCL variable may be undefined, set to 0, or set to 1.
346 # If it is set to 1, then we need to build the Tcl integration code and
347 # link to the Tcl library.
348 TCL_OBJ.0 =
349 TCL_OBJ.1 = $(OBJDIR)/th_tcl.o
350 TCL_OBJ. = $(TCL_OBJ.0)
351
352 EXTRAOBJ = $(SQLITE3_OBJ.$(USE_SYSTEM_SQLITE)) $(OBJDIR)/shell.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(TCL_OBJ.$(FOSSIL_ENABLE_TCL)) $(OBJDIR)/cson_amalgamation.o
353
354 $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ)
@@ -356,11 +365,11 @@
365
366
367 $(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
368 $(OBJDIR)/mkindex $(TRANS_SRC) >$@
369 $(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
370 $(OBJDIR)/makeheaders $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/glob_.c:$(OBJDIR)/glob.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/gzip_.c:$(OBJDIR)/gzip.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/json_.c:$(OBJDIR)/json.h $(OBJDIR)/json_artifact_.c:$(OBJDIR)/json_artifact.h $(OBJDIR)/json_branch_.c:$(OBJDIR)/json_branch.h $(OBJDIR)/json_diff_.c:$(OBJDIR)/json_diff.h $(OBJDIR)/json_login_.c:$(OBJDIR)/json_login.h $(OBJDIR)/json_query_.c:$(OBJDIR)/json_query.h $(OBJDIR)/json_report_.c:$(OBJDIR)/json_report.h $(OBJDIR)/json_tag_.c:$(OBJDIR)/json_tag.h $(OBJDIR)/json_timeline_.c:$(OBJDIR)/json_timeline.h $(OBJDIR)/json_user_.c:$(OBJDIR)/json_user.h $(OBJDIR)/json_wiki_.c:$(OBJDIR)/json_wiki.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/path_.c:$(OBJDIR)/path.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/tar_.c:$(OBJDIR)/tar.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/xfersetup_.c:$(OBJDIR)/xfersetup.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
371 touch $(OBJDIR)/headers
372 $(OBJDIR)/headers: Makefile
373 $(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
374 Makefile:
375 $(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
@@ -1005,10 +1014,17 @@
1014
1015 $(OBJDIR)/xfer.o: $(OBJDIR)/xfer_.c $(OBJDIR)/xfer.h $(SRCDIR)/config.h
1016 $(XTCC) -o $(OBJDIR)/xfer.o -c $(OBJDIR)/xfer_.c
1017
1018 $(OBJDIR)/xfer.h: $(OBJDIR)/headers
1019 $(OBJDIR)/xfersetup_.c: $(SRCDIR)/xfersetup.c $(OBJDIR)/translate
1020 $(OBJDIR)/translate $(SRCDIR)/xfersetup.c >$(OBJDIR)/xfersetup_.c
1021
1022 $(OBJDIR)/xfersetup.o: $(OBJDIR)/xfersetup_.c $(OBJDIR)/xfersetup.h $(SRCDIR)/config.h
1023 $(XTCC) -o $(OBJDIR)/xfersetup.o -c $(OBJDIR)/xfersetup_.c
1024
1025 $(OBJDIR)/xfersetup.h: $(OBJDIR)/headers
1026 $(OBJDIR)/zip_.c: $(SRCDIR)/zip.c $(OBJDIR)/translate
1027 $(OBJDIR)/translate $(SRCDIR)/zip.c >$(OBJDIR)/zip_.c
1028
1029 $(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h
1030 $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
1031
+154 -37
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -107,10 +107,11 @@
107107
vfile
108108
wiki
109109
wikiformat
110110
winhttp
111111
xfer
112
+ xfersetup
112113
zip
113114
http_ssl
114115
}
115116
116117
# Name of the final application
@@ -139,11 +140,14 @@
139140
#
140141
puts "building main.mk"
141142
set output_file [open main.mk w]
142143
fconfigure $output_file -translation binary
143144
144
-writeln {# DO NOT EDIT
145
+writeln {#
146
+##############################################################################
147
+# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
148
+##############################################################################
145149
#
146150
# This file is automatically generated. Instead of editing this
147151
# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
148152
# to regenerate this file.
149153
#
@@ -190,11 +194,11 @@
190194
$(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
191195
192196
$(OBJDIR)/mkversion: $(SRCDIR)/mkversion.c
193197
$(BCC) -o $(OBJDIR)/mkversion $(SRCDIR)/mkversion.c
194198
195
-# WARNING. DANGER. Running the testsuite modifies the repository the
199
+# WARNING. DANGER. Running the test suite modifies the repository the
196200
# build is done from, i.e. the checkout belongs to. Do not sync/push
197201
# the repository after running the tests.
198202
test: $(OBJDIR) $(APPNAME)
199203
$(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
200204
@@ -209,12 +213,15 @@
209213
# using -lsqlite3.
210214
SQLITE3_OBJ.1 =
211215
SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o
212216
SQLITE3_OBJ. = $(SQLITE3_OBJ.0)
213217
214
-TCL_OBJ.1 =
215
-TCL_OBJ.0 = $(OBJDIR)/th_tcl.o
218
+# The FOSSIL_ENABLE_TCL variable may be undefined, set to 0, or set to 1.
219
+# If it is set to 1, then we need to build the Tcl integration code and
220
+# link to the Tcl library.
221
+TCL_OBJ.0 =
222
+TCL_OBJ.1 = $(OBJDIR)/th_tcl.o
216223
TCL_OBJ. = $(TCL_OBJ.0)
217224
218225
EXTRAOBJ = \
219226
$(SQLITE3_OBJ.$(USE_SYSTEM_SQLITE)) \
220227
$(OBJDIR)/shell.o \
@@ -307,20 +314,27 @@
307314
set output_file [open ../win/Makefile.mingw w]
308315
fconfigure $output_file -translation binary
309316
310317
writeln {#!/usr/bin/make
311318
#
312
-# This is a makefile for us on windows using mingw.
319
+##############################################################################
320
+# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
321
+##############################################################################
322
+#
323
+# This file is automatically generated. Instead of editing this
324
+# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
325
+# to regenerate this file.
326
+#
327
+# This is a makefile for us on windows using MinGW.
313328
#
314329
#### The toplevel directory of the source tree. Fossil can be built
315330
# in a directory that is separate from the source tree. Just change
316331
# the following to point from the build directory to the src/ folder.
317332
#
318333
SRCDIR = src
319334
320335
#### The directory into which object code files should be written.
321
-#
322336
#
323337
OBJDIR = wbld
324338
325339
#### C Compiler and options for use in building executables that
326340
# will run on the platform that is doing the build. This is used
@@ -329,51 +343,134 @@
329343
#
330344
BCC = gcc
331345
332346
#### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
333347
#
334
-# FOSSIL_ENABLE_SSL=1
335
-
336
-#### The directory in which the zlib compression library is installed.
337
-#
338
-#
339
-ZLIBDIR = /programs/gnuwin32
340
-
341
-#### C Compile and options for use in building executables that
348
+# FOSSIL_ENABLE_SSL = 1
349
+
350
+#### Enable scripting support via Tcl/Tk
351
+#
352
+# FOSSIL_ENABLE_TCL = 1
353
+
354
+#### Use the Tcl source directory instead of the install directory?
355
+# This is useful when Tcl has been compiled statically with MinGW.
356
+#
357
+FOSSIL_TCL_SOURCE = 1
358
+
359
+#### The directories where the zlib include and library files are located.
360
+# The recommended usage here is to use the Sysinternals junction tool
361
+# to create a hard link between an "zlib-1.x.y" sub-directory of the
362
+# Fossil source code directory and the target zlib source directory.
363
+#
364
+ZINCDIR = $(SRCDIR)/../zlib-1.2.5
365
+ZLIBDIR = $(SRCDIR)/../zlib-1.2.5
366
+
367
+#### The directories where the OpenSSL include and library files are located.
368
+# The recommended usage here is to use the Sysinternals junction tool
369
+# to create a hard link between an "openssl-1.x" sub-directory of the
370
+# Fossil source code directory and the target OpenSSL source directory.
371
+#
372
+OPENSSLINCDIR = $(SRCDIR)/../openssl-1.0.0e/include
373
+OPENSSLLIBDIR = $(SRCDIR)/../openssl-1.0.0e
374
+
375
+#### Either the directory where the Tcl library is installed or the Tcl
376
+# source code directory resides (depending on the value of the macro
377
+# FOSSIL_TCL_SOURCE). If this points to the Tcl install directory,
378
+# this directory must have "include" and "lib" sub-directories. If
379
+# this points to the Tcl source code directory, this directory must
380
+# have "generic" and "win" sub-directories. The recommended usage
381
+# here is to use the Sysinternals junction tool to create a hard
382
+# link between a "tcl-8.x" sub-directory of the Fossil source code
383
+# directory and the target Tcl directory. This removes the need to
384
+# hard-code the necessary paths in this Makefile.
385
+#
386
+TCLDIR = $(SRCDIR)/../tcl-8.6
387
+
388
+#### The Tcl source code directory. This defaults to the same value as
389
+# TCLDIR macro (above), which may not be correct. This value will
390
+# only be used if the FOSSIL_TCL_SOURCE macro is defined.
391
+#
392
+TCLSRCDIR = $(TCLDIR)
393
+
394
+#### The Tcl include and library directories. These values will only be
395
+# used if the FOSSIL_TCL_SOURCE macro is not defined.
396
+#
397
+TCLINCDIR = $(TCLDIR)/include
398
+TCLLIBDIR = $(TCLDIR)/lib
399
+
400
+#### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)?
401
+#
402
+LIBTCL = -ltcl86
403
+
404
+#### C Compile and options for use in building executables that
342405
# will run on the target platform. This is usually the same
343406
# as BCC, unless you are cross-compiling. This C compiler builds
344407
# the finished binary for fossil. The BCC compiler above is used
345408
# for building intermediate code-generator tools.
346409
#
347
-TCC = gcc -Os -Wall -L$(ZLIBDIR)/lib -I$(ZLIBDIR)/include
410
+TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
411
+
412
+# With HTTPS support
413
+ifdef FOSSIL_ENABLE_SSL
414
+TCC += -L$(OPENSSLLIBDIR) -I$(OPENSSLINCDIR)
415
+endif
416
+
417
+# With Tcl support
418
+ifdef FOSSIL_ENABLE_TCL
419
+ifdef FOSSIL_TCL_SOURCE
420
+TCC += -L$(TCLSRCDIR)/win -I$(TCLSRCDIR)/generic -I$(TCLSRCDIR)/win
421
+else
422
+TCC += -L$(TCLLIBDIR) -I$(TCLINCDIR)
423
+endif
424
+endif
348425
349426
# With HTTPS support
350427
ifdef FOSSIL_ENABLE_SSL
351
-TCC += -static -DFOSSIL_ENABLE_SSL=1
428
+TCC += -DFOSSIL_ENABLE_SSL=1
429
+endif
430
+
431
+# With Tcl support (statically linked)
432
+ifdef FOSSIL_ENABLE_TCL
433
+TCC += -DFOSSIL_ENABLE_TCL=1 -DSTATIC_BUILD
352434
endif
353435
354436
#### Extra arguments for linking the finished binary. Fossil needs
355437
# to link against the Z-Lib compression library. There are no
356
-# other dependencies. We sometimes add the -static option here
438
+# other mandatory dependencies. We add the -static option here
357439
# so that we can build a static executable that will run in a
358440
# chroot jail.
359441
#
360
-#LIB = -lz -lws2_32
361
-# OpenSSL:
442
+LIB = -static
443
+LIB += -lmingwex -lz
444
+
445
+# OpenSSL: Add the necessary libaries required, if enabled.
362446
ifdef FOSSIL_ENABLE_SSL
363447
LIB += -lssl -lcrypto -lgdi32
364448
endif
365
-LIB += -lmingwex -lz -lws2_32
366449
367
-#### Tcl shell for use in running the fossil testsuite. This is only
368
-# used for testing. If you do not run
450
+# Tcl: Add the necessary libaries required, if enabled.
451
+ifdef FOSSIL_ENABLE_TCL
452
+LIB += $(LIBTCL)
453
+endif
454
+
455
+#### These libraries MUST appear in the same order as they do for Tcl
456
+# or linking with it will not work (exact reason unknown).
457
+#
458
+ifdef FOSSIL_ENABLE_TCL
459
+LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32
460
+else
461
+LIB += -lws2_32
462
+endif
463
+
464
+#### Tcl shell for use in running the fossil test suite. This is only
465
+# used for testing.
369466
#
370467
TCLSH = tclsh
371468
372
-#### Nullsoft installer makensis location
469
+#### Nullsoft installer MakeNSIS location
373470
#
374
-MAKENSIS = "c:\Program Files\NSIS\makensis.exe"
471
+MAKENSIS = "$(ProgramFiles)\NSIS\MakeNSIS.exe"
375472
376473
#### Include a configuration file that can override any one of these settings.
377474
#
378475
-include config.w32
379476
@@ -427,15 +524,15 @@
427524
$(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
428525
429526
$(VERSION): $(SRCDIR)/mkversion.c
430527
$(BCC) -o $(OBJDIR)/version $(SRCDIR)/mkversion.c
431528
432
-# WARNING. DANGER. Running the testsuite modifies the repository the
529
+# WARNING. DANGER. Running the test suite modifies the repository the
433530
# build is done from, i.e. the checkout belongs to. Do not sync/push
434531
# the repository after running the tests.
435
-test: $(APPNAME)
436
- $(TCLSH) test/tester.tcl $(APPNAME)
532
+test: $(OBJDIR) $(APPNAME)
533
+ $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
437534
438535
$(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
439536
$(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
440537
441538
EXTRAOBJ = \
@@ -442,25 +539,29 @@
442539
$(OBJDIR)/sqlite3.o \
443540
$(OBJDIR)/shell.o \
444541
$(OBJDIR)/th.o \
445542
$(OBJDIR)/th_lang.o \
446543
$(OBJDIR)/cson_amalgamation.o
544
+
545
+ifdef FOSSIL_ENABLE_TCL
546
+EXTRAOBJ += $(OBJDIR)/th_tcl.o
547
+endif
447548
448549
$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/icon.o
449550
$(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/icon.o
450551
451552
# This rule prevents make from using its default rules to try build
452553
# an executable named "manifest" out of the file named "manifest.c"
453554
#
454
-$(SRCDIR)/../manifest:
555
+$(SRCDIR)/../manifest:
455556
# noop
456557
457
-# Requires msys to be installed in addition to the mingw, for the "rm"
558
+# Requires MSYS to be installed in addition to the MinGW, for the "rm"
458559
# command. "del" will not work here because it is not a separate command
459560
# but a MSDOS-shell builtin.
460561
#
461
-clean:
562
+clean:
462563
rm -rf $(OBJDIR) $(APPNAME)
463564
464565
setup: $(OBJDIR) $(APPNAME)
465566
$(MAKENSIS) ./fossil.nsi
466567
@@ -498,11 +599,11 @@
498599
writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/sqlite3.c -o \$(OBJDIR)/sqlite3.o\n"
499600
500601
set opt {}
501602
writeln "\$(OBJDIR)/cson_amalgamation.o:\t\$(SRCDIR)/cson_amalgamation.c"
502603
writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/cson_amalgamation.c -o \$(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE\n"
503
-writeln "\$(OBJDIR)/json.o \$(OBJDIR)/json_artifact.o \$(OBJDIR)/json_branch.o \$(OBJDIR)/json_diff.o \$(OBJDIR)/json_login.o \$(OBJDIR)/json_query.o \$(OBJDIR)/json_report.o \$(OBJDIR)/json_tag.o \$(OBJDIR)/json_timeline.o \$(OBJDIR)/json_user.o \$(OBJDIR)/json_wiki.o : \$(SRCDIR)/json_detail.h"
604
+writeln "\$(OBJDIR)/json.o \$(OBJDIR)/json_artifact.o \$(OBJDIR)/json_branch.o \$(OBJDIR)/json_diff.o \$(OBJDIR)/json_login.o \$(OBJDIR)/json_query.o \$(OBJDIR)/json_report.o \$(OBJDIR)/json_tag.o \$(OBJDIR)/json_timeline.o \$(OBJDIR)/json_user.o \$(OBJDIR)/json_wiki.o : \$(SRCDIR)/json_detail.h\n"
504605
505606
writeln "\$(OBJDIR)/shell.o:\t\$(SRCDIR)/shell.c \$(SRCDIR)/sqlite3.h"
506607
set opt {-Dmain=sqlite3_shell}
507608
append opt " -DSQLITE_OMIT_LOAD_EXTENSION=1"
508609
writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/shell.c -o \$(OBJDIR)/shell.o\n"
@@ -511,10 +612,15 @@
511612
writeln "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th.c -o \$(OBJDIR)/th.o\n"
512613
513614
writeln "\$(OBJDIR)/th_lang.o:\t\$(SRCDIR)/th_lang.c"
514615
writeln "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th_lang.c -o \$(OBJDIR)/th_lang.o\n"
515616
617
+writeln {ifdef FOSSIL_ENABLE_TCL
618
+$(OBJDIR)/th_tcl.o: $(SRCDIR)/th_tcl.c
619
+ $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th_tcl.c -o $(OBJDIR)/th_tcl.o
620
+endif
621
+}
516622
517623
close $output_file
518624
#
519625
# End of the main.mk output
520626
##############################################################################
@@ -524,15 +630,19 @@
524630
#
525631
puts "building ../win/Makefile.dmc"
526632
set output_file [open ../win/Makefile.dmc w]
527633
fconfigure $output_file -translation binary
528634
529
-writeln {# DO NOT EDIT
635
+writeln {#
636
+##############################################################################
637
+# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
638
+##############################################################################
530639
#
531640
# This file is automatically generated. Instead of editing this
532
-# file, edit "makemake.tcl" then run "tclsh src/makemake.tcl"
641
+# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
533642
# to regenerate this file.
643
+#
534644
B = ..
535645
SRCDIR = $B\src
536646
OBJDIR = .
537647
O = .obj
538648
E = .exe
@@ -668,15 +778,19 @@
668778
#
669779
puts "building ../win/Makefile.msc"
670780
set output_file [open ../win/Makefile.msc w]
671781
fconfigure $output_file -translation binary
672782
673
-writeln {# DO NOT EDIT
783
+writeln {#
784
+##############################################################################
785
+# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
786
+##############################################################################
674787
#
675788
# This file is automatically generated. Instead of editing this
676
-# file, edit "makemake.tcl" then run "tclsh src/makemake.tcl"
789
+# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
677790
# to regenerate this file.
791
+#
678792
B = ..
679793
SRCDIR = $B\src
680794
OBJDIR = .
681795
OX = .
682796
O = .obj
@@ -821,14 +935,17 @@
821935
#
822936
puts "building ../win/Makefile.PellesCGMake"
823937
set output_file [open ../win/Makefile.PellesCGMake w]
824938
fconfigure $output_file -translation binary
825939
826
-writeln {# DO NOT EDIT
940
+writeln {#
941
+##############################################################################
942
+# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
943
+##############################################################################
827944
#
828945
# This file is automatically generated. Instead of editing this
829
-# file, edit "makemake.tcl" then run "tclsh src/makemake.tcl"
946
+# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
830947
# to regenerate this file.
831948
#
832949
# HowTo
833950
# -----
834951
#
835952
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -107,10 +107,11 @@
107 vfile
108 wiki
109 wikiformat
110 winhttp
111 xfer
 
112 zip
113 http_ssl
114 }
115
116 # Name of the final application
@@ -139,11 +140,14 @@
139 #
140 puts "building main.mk"
141 set output_file [open main.mk w]
142 fconfigure $output_file -translation binary
143
144 writeln {# DO NOT EDIT
 
 
 
145 #
146 # This file is automatically generated. Instead of editing this
147 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
148 # to regenerate this file.
149 #
@@ -190,11 +194,11 @@
190 $(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
191
192 $(OBJDIR)/mkversion: $(SRCDIR)/mkversion.c
193 $(BCC) -o $(OBJDIR)/mkversion $(SRCDIR)/mkversion.c
194
195 # WARNING. DANGER. Running the testsuite modifies the repository the
196 # build is done from, i.e. the checkout belongs to. Do not sync/push
197 # the repository after running the tests.
198 test: $(OBJDIR) $(APPNAME)
199 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
200
@@ -209,12 +213,15 @@
209 # using -lsqlite3.
210 SQLITE3_OBJ.1 =
211 SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o
212 SQLITE3_OBJ. = $(SQLITE3_OBJ.0)
213
214 TCL_OBJ.1 =
215 TCL_OBJ.0 = $(OBJDIR)/th_tcl.o
 
 
 
216 TCL_OBJ. = $(TCL_OBJ.0)
217
218 EXTRAOBJ = \
219 $(SQLITE3_OBJ.$(USE_SYSTEM_SQLITE)) \
220 $(OBJDIR)/shell.o \
@@ -307,20 +314,27 @@
307 set output_file [open ../win/Makefile.mingw w]
308 fconfigure $output_file -translation binary
309
310 writeln {#!/usr/bin/make
311 #
312 # This is a makefile for us on windows using mingw.
 
 
 
 
 
 
 
 
313 #
314 #### The toplevel directory of the source tree. Fossil can be built
315 # in a directory that is separate from the source tree. Just change
316 # the following to point from the build directory to the src/ folder.
317 #
318 SRCDIR = src
319
320 #### The directory into which object code files should be written.
321 #
322 #
323 OBJDIR = wbld
324
325 #### C Compiler and options for use in building executables that
326 # will run on the platform that is doing the build. This is used
@@ -329,51 +343,134 @@
329 #
330 BCC = gcc
331
332 #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
333 #
334 # FOSSIL_ENABLE_SSL=1
335
336 #### The directory in which the zlib compression library is installed.
337 #
338 #
339 ZLIBDIR = /programs/gnuwin32
340
341 #### C Compile and options for use in building executables that
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
342 # will run on the target platform. This is usually the same
343 # as BCC, unless you are cross-compiling. This C compiler builds
344 # the finished binary for fossil. The BCC compiler above is used
345 # for building intermediate code-generator tools.
346 #
347 TCC = gcc -Os -Wall -L$(ZLIBDIR)/lib -I$(ZLIBDIR)/include
 
 
 
 
 
 
 
 
 
 
 
 
 
 
348
349 # With HTTPS support
350 ifdef FOSSIL_ENABLE_SSL
351 TCC += -static -DFOSSIL_ENABLE_SSL=1
 
 
 
 
 
352 endif
353
354 #### Extra arguments for linking the finished binary. Fossil needs
355 # to link against the Z-Lib compression library. There are no
356 # other dependencies. We sometimes add the -static option here
357 # so that we can build a static executable that will run in a
358 # chroot jail.
359 #
360 #LIB = -lz -lws2_32
361 # OpenSSL:
 
 
362 ifdef FOSSIL_ENABLE_SSL
363 LIB += -lssl -lcrypto -lgdi32
364 endif
365 LIB += -lmingwex -lz -lws2_32
366
367 #### Tcl shell for use in running the fossil testsuite. This is only
368 # used for testing. If you do not run
 
 
 
 
 
 
 
 
 
 
 
 
 
 
369 #
370 TCLSH = tclsh
371
372 #### Nullsoft installer makensis location
373 #
374 MAKENSIS = "c:\Program Files\NSIS\makensis.exe"
375
376 #### Include a configuration file that can override any one of these settings.
377 #
378 -include config.w32
379
@@ -427,15 +524,15 @@
427 $(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
428
429 $(VERSION): $(SRCDIR)/mkversion.c
430 $(BCC) -o $(OBJDIR)/version $(SRCDIR)/mkversion.c
431
432 # WARNING. DANGER. Running the testsuite modifies the repository the
433 # build is done from, i.e. the checkout belongs to. Do not sync/push
434 # the repository after running the tests.
435 test: $(APPNAME)
436 $(TCLSH) test/tester.tcl $(APPNAME)
437
438 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
439 $(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
440
441 EXTRAOBJ = \
@@ -442,25 +539,29 @@
442 $(OBJDIR)/sqlite3.o \
443 $(OBJDIR)/shell.o \
444 $(OBJDIR)/th.o \
445 $(OBJDIR)/th_lang.o \
446 $(OBJDIR)/cson_amalgamation.o
 
 
 
 
447
448 $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/icon.o
449 $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/icon.o
450
451 # This rule prevents make from using its default rules to try build
452 # an executable named "manifest" out of the file named "manifest.c"
453 #
454 $(SRCDIR)/../manifest:
455 # noop
456
457 # Requires msys to be installed in addition to the mingw, for the "rm"
458 # command. "del" will not work here because it is not a separate command
459 # but a MSDOS-shell builtin.
460 #
461 clean:
462 rm -rf $(OBJDIR) $(APPNAME)
463
464 setup: $(OBJDIR) $(APPNAME)
465 $(MAKENSIS) ./fossil.nsi
466
@@ -498,11 +599,11 @@
498 writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/sqlite3.c -o \$(OBJDIR)/sqlite3.o\n"
499
500 set opt {}
501 writeln "\$(OBJDIR)/cson_amalgamation.o:\t\$(SRCDIR)/cson_amalgamation.c"
502 writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/cson_amalgamation.c -o \$(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE\n"
503 writeln "\$(OBJDIR)/json.o \$(OBJDIR)/json_artifact.o \$(OBJDIR)/json_branch.o \$(OBJDIR)/json_diff.o \$(OBJDIR)/json_login.o \$(OBJDIR)/json_query.o \$(OBJDIR)/json_report.o \$(OBJDIR)/json_tag.o \$(OBJDIR)/json_timeline.o \$(OBJDIR)/json_user.o \$(OBJDIR)/json_wiki.o : \$(SRCDIR)/json_detail.h"
504
505 writeln "\$(OBJDIR)/shell.o:\t\$(SRCDIR)/shell.c \$(SRCDIR)/sqlite3.h"
506 set opt {-Dmain=sqlite3_shell}
507 append opt " -DSQLITE_OMIT_LOAD_EXTENSION=1"
508 writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/shell.c -o \$(OBJDIR)/shell.o\n"
@@ -511,10 +612,15 @@
511 writeln "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th.c -o \$(OBJDIR)/th.o\n"
512
513 writeln "\$(OBJDIR)/th_lang.o:\t\$(SRCDIR)/th_lang.c"
514 writeln "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th_lang.c -o \$(OBJDIR)/th_lang.o\n"
515
 
 
 
 
 
516
517 close $output_file
518 #
519 # End of the main.mk output
520 ##############################################################################
@@ -524,15 +630,19 @@
524 #
525 puts "building ../win/Makefile.dmc"
526 set output_file [open ../win/Makefile.dmc w]
527 fconfigure $output_file -translation binary
528
529 writeln {# DO NOT EDIT
 
 
 
530 #
531 # This file is automatically generated. Instead of editing this
532 # file, edit "makemake.tcl" then run "tclsh src/makemake.tcl"
533 # to regenerate this file.
 
534 B = ..
535 SRCDIR = $B\src
536 OBJDIR = .
537 O = .obj
538 E = .exe
@@ -668,15 +778,19 @@
668 #
669 puts "building ../win/Makefile.msc"
670 set output_file [open ../win/Makefile.msc w]
671 fconfigure $output_file -translation binary
672
673 writeln {# DO NOT EDIT
 
 
 
674 #
675 # This file is automatically generated. Instead of editing this
676 # file, edit "makemake.tcl" then run "tclsh src/makemake.tcl"
677 # to regenerate this file.
 
678 B = ..
679 SRCDIR = $B\src
680 OBJDIR = .
681 OX = .
682 O = .obj
@@ -821,14 +935,17 @@
821 #
822 puts "building ../win/Makefile.PellesCGMake"
823 set output_file [open ../win/Makefile.PellesCGMake w]
824 fconfigure $output_file -translation binary
825
826 writeln {# DO NOT EDIT
 
 
 
827 #
828 # This file is automatically generated. Instead of editing this
829 # file, edit "makemake.tcl" then run "tclsh src/makemake.tcl"
830 # to regenerate this file.
831 #
832 # HowTo
833 # -----
834 #
835
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -107,10 +107,11 @@
107 vfile
108 wiki
109 wikiformat
110 winhttp
111 xfer
112 xfersetup
113 zip
114 http_ssl
115 }
116
117 # Name of the final application
@@ -139,11 +140,14 @@
140 #
141 puts "building main.mk"
142 set output_file [open main.mk w]
143 fconfigure $output_file -translation binary
144
145 writeln {#
146 ##############################################################################
147 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
148 ##############################################################################
149 #
150 # This file is automatically generated. Instead of editing this
151 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
152 # to regenerate this file.
153 #
@@ -190,11 +194,11 @@
194 $(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
195
196 $(OBJDIR)/mkversion: $(SRCDIR)/mkversion.c
197 $(BCC) -o $(OBJDIR)/mkversion $(SRCDIR)/mkversion.c
198
199 # WARNING. DANGER. Running the test suite modifies the repository the
200 # build is done from, i.e. the checkout belongs to. Do not sync/push
201 # the repository after running the tests.
202 test: $(OBJDIR) $(APPNAME)
203 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
204
@@ -209,12 +213,15 @@
213 # using -lsqlite3.
214 SQLITE3_OBJ.1 =
215 SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o
216 SQLITE3_OBJ. = $(SQLITE3_OBJ.0)
217
218 # The FOSSIL_ENABLE_TCL variable may be undefined, set to 0, or set to 1.
219 # If it is set to 1, then we need to build the Tcl integration code and
220 # link to the Tcl library.
221 TCL_OBJ.0 =
222 TCL_OBJ.1 = $(OBJDIR)/th_tcl.o
223 TCL_OBJ. = $(TCL_OBJ.0)
224
225 EXTRAOBJ = \
226 $(SQLITE3_OBJ.$(USE_SYSTEM_SQLITE)) \
227 $(OBJDIR)/shell.o \
@@ -307,20 +314,27 @@
314 set output_file [open ../win/Makefile.mingw w]
315 fconfigure $output_file -translation binary
316
317 writeln {#!/usr/bin/make
318 #
319 ##############################################################################
320 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
321 ##############################################################################
322 #
323 # This file is automatically generated. Instead of editing this
324 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
325 # to regenerate this file.
326 #
327 # This is a makefile for us on windows using MinGW.
328 #
329 #### The toplevel directory of the source tree. Fossil can be built
330 # in a directory that is separate from the source tree. Just change
331 # the following to point from the build directory to the src/ folder.
332 #
333 SRCDIR = src
334
335 #### The directory into which object code files should be written.
 
336 #
337 OBJDIR = wbld
338
339 #### C Compiler and options for use in building executables that
340 # will run on the platform that is doing the build. This is used
@@ -329,51 +343,134 @@
343 #
344 BCC = gcc
345
346 #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
347 #
348 # FOSSIL_ENABLE_SSL = 1
349
350 #### Enable scripting support via Tcl/Tk
351 #
352 # FOSSIL_ENABLE_TCL = 1
353
354 #### Use the Tcl source directory instead of the install directory?
355 # This is useful when Tcl has been compiled statically with MinGW.
356 #
357 FOSSIL_TCL_SOURCE = 1
358
359 #### The directories where the zlib include and library files are located.
360 # The recommended usage here is to use the Sysinternals junction tool
361 # to create a hard link between an "zlib-1.x.y" sub-directory of the
362 # Fossil source code directory and the target zlib source directory.
363 #
364 ZINCDIR = $(SRCDIR)/../zlib-1.2.5
365 ZLIBDIR = $(SRCDIR)/../zlib-1.2.5
366
367 #### The directories where the OpenSSL include and library files are located.
368 # The recommended usage here is to use the Sysinternals junction tool
369 # to create a hard link between an "openssl-1.x" sub-directory of the
370 # Fossil source code directory and the target OpenSSL source directory.
371 #
372 OPENSSLINCDIR = $(SRCDIR)/../openssl-1.0.0e/include
373 OPENSSLLIBDIR = $(SRCDIR)/../openssl-1.0.0e
374
375 #### Either the directory where the Tcl library is installed or the Tcl
376 # source code directory resides (depending on the value of the macro
377 # FOSSIL_TCL_SOURCE). If this points to the Tcl install directory,
378 # this directory must have "include" and "lib" sub-directories. If
379 # this points to the Tcl source code directory, this directory must
380 # have "generic" and "win" sub-directories. The recommended usage
381 # here is to use the Sysinternals junction tool to create a hard
382 # link between a "tcl-8.x" sub-directory of the Fossil source code
383 # directory and the target Tcl directory. This removes the need to
384 # hard-code the necessary paths in this Makefile.
385 #
386 TCLDIR = $(SRCDIR)/../tcl-8.6
387
388 #### The Tcl source code directory. This defaults to the same value as
389 # TCLDIR macro (above), which may not be correct. This value will
390 # only be used if the FOSSIL_TCL_SOURCE macro is defined.
391 #
392 TCLSRCDIR = $(TCLDIR)
393
394 #### The Tcl include and library directories. These values will only be
395 # used if the FOSSIL_TCL_SOURCE macro is not defined.
396 #
397 TCLINCDIR = $(TCLDIR)/include
398 TCLLIBDIR = $(TCLDIR)/lib
399
400 #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)?
401 #
402 LIBTCL = -ltcl86
403
404 #### C Compile and options for use in building executables that
405 # will run on the target platform. This is usually the same
406 # as BCC, unless you are cross-compiling. This C compiler builds
407 # the finished binary for fossil. The BCC compiler above is used
408 # for building intermediate code-generator tools.
409 #
410 TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
411
412 # With HTTPS support
413 ifdef FOSSIL_ENABLE_SSL
414 TCC += -L$(OPENSSLLIBDIR) -I$(OPENSSLINCDIR)
415 endif
416
417 # With Tcl support
418 ifdef FOSSIL_ENABLE_TCL
419 ifdef FOSSIL_TCL_SOURCE
420 TCC += -L$(TCLSRCDIR)/win -I$(TCLSRCDIR)/generic -I$(TCLSRCDIR)/win
421 else
422 TCC += -L$(TCLLIBDIR) -I$(TCLINCDIR)
423 endif
424 endif
425
426 # With HTTPS support
427 ifdef FOSSIL_ENABLE_SSL
428 TCC += -DFOSSIL_ENABLE_SSL=1
429 endif
430
431 # With Tcl support (statically linked)
432 ifdef FOSSIL_ENABLE_TCL
433 TCC += -DFOSSIL_ENABLE_TCL=1 -DSTATIC_BUILD
434 endif
435
436 #### Extra arguments for linking the finished binary. Fossil needs
437 # to link against the Z-Lib compression library. There are no
438 # other mandatory dependencies. We add the -static option here
439 # so that we can build a static executable that will run in a
440 # chroot jail.
441 #
442 LIB = -static
443 LIB += -lmingwex -lz
444
445 # OpenSSL: Add the necessary libaries required, if enabled.
446 ifdef FOSSIL_ENABLE_SSL
447 LIB += -lssl -lcrypto -lgdi32
448 endif
 
449
450 # Tcl: Add the necessary libaries required, if enabled.
451 ifdef FOSSIL_ENABLE_TCL
452 LIB += $(LIBTCL)
453 endif
454
455 #### These libraries MUST appear in the same order as they do for Tcl
456 # or linking with it will not work (exact reason unknown).
457 #
458 ifdef FOSSIL_ENABLE_TCL
459 LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32
460 else
461 LIB += -lws2_32
462 endif
463
464 #### Tcl shell for use in running the fossil test suite. This is only
465 # used for testing.
466 #
467 TCLSH = tclsh
468
469 #### Nullsoft installer MakeNSIS location
470 #
471 MAKENSIS = "$(ProgramFiles)\NSIS\MakeNSIS.exe"
472
473 #### Include a configuration file that can override any one of these settings.
474 #
475 -include config.w32
476
@@ -427,15 +524,15 @@
524 $(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
525
526 $(VERSION): $(SRCDIR)/mkversion.c
527 $(BCC) -o $(OBJDIR)/version $(SRCDIR)/mkversion.c
528
529 # WARNING. DANGER. Running the test suite modifies the repository the
530 # build is done from, i.e. the checkout belongs to. Do not sync/push
531 # the repository after running the tests.
532 test: $(OBJDIR) $(APPNAME)
533 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
534
535 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
536 $(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
537
538 EXTRAOBJ = \
@@ -442,25 +539,29 @@
539 $(OBJDIR)/sqlite3.o \
540 $(OBJDIR)/shell.o \
541 $(OBJDIR)/th.o \
542 $(OBJDIR)/th_lang.o \
543 $(OBJDIR)/cson_amalgamation.o
544
545 ifdef FOSSIL_ENABLE_TCL
546 EXTRAOBJ += $(OBJDIR)/th_tcl.o
547 endif
548
549 $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/icon.o
550 $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/icon.o
551
552 # This rule prevents make from using its default rules to try build
553 # an executable named "manifest" out of the file named "manifest.c"
554 #
555 $(SRCDIR)/../manifest:
556 # noop
557
558 # Requires MSYS to be installed in addition to the MinGW, for the "rm"
559 # command. "del" will not work here because it is not a separate command
560 # but a MSDOS-shell builtin.
561 #
562 clean:
563 rm -rf $(OBJDIR) $(APPNAME)
564
565 setup: $(OBJDIR) $(APPNAME)
566 $(MAKENSIS) ./fossil.nsi
567
@@ -498,11 +599,11 @@
599 writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/sqlite3.c -o \$(OBJDIR)/sqlite3.o\n"
600
601 set opt {}
602 writeln "\$(OBJDIR)/cson_amalgamation.o:\t\$(SRCDIR)/cson_amalgamation.c"
603 writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/cson_amalgamation.c -o \$(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE\n"
604 writeln "\$(OBJDIR)/json.o \$(OBJDIR)/json_artifact.o \$(OBJDIR)/json_branch.o \$(OBJDIR)/json_diff.o \$(OBJDIR)/json_login.o \$(OBJDIR)/json_query.o \$(OBJDIR)/json_report.o \$(OBJDIR)/json_tag.o \$(OBJDIR)/json_timeline.o \$(OBJDIR)/json_user.o \$(OBJDIR)/json_wiki.o : \$(SRCDIR)/json_detail.h\n"
605
606 writeln "\$(OBJDIR)/shell.o:\t\$(SRCDIR)/shell.c \$(SRCDIR)/sqlite3.h"
607 set opt {-Dmain=sqlite3_shell}
608 append opt " -DSQLITE_OMIT_LOAD_EXTENSION=1"
609 writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/shell.c -o \$(OBJDIR)/shell.o\n"
@@ -511,10 +612,15 @@
612 writeln "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th.c -o \$(OBJDIR)/th.o\n"
613
614 writeln "\$(OBJDIR)/th_lang.o:\t\$(SRCDIR)/th_lang.c"
615 writeln "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th_lang.c -o \$(OBJDIR)/th_lang.o\n"
616
617 writeln {ifdef FOSSIL_ENABLE_TCL
618 $(OBJDIR)/th_tcl.o: $(SRCDIR)/th_tcl.c
619 $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th_tcl.c -o $(OBJDIR)/th_tcl.o
620 endif
621 }
622
623 close $output_file
624 #
625 # End of the main.mk output
626 ##############################################################################
@@ -524,15 +630,19 @@
630 #
631 puts "building ../win/Makefile.dmc"
632 set output_file [open ../win/Makefile.dmc w]
633 fconfigure $output_file -translation binary
634
635 writeln {#
636 ##############################################################################
637 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
638 ##############################################################################
639 #
640 # This file is automatically generated. Instead of editing this
641 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
642 # to regenerate this file.
643 #
644 B = ..
645 SRCDIR = $B\src
646 OBJDIR = .
647 O = .obj
648 E = .exe
@@ -668,15 +778,19 @@
778 #
779 puts "building ../win/Makefile.msc"
780 set output_file [open ../win/Makefile.msc w]
781 fconfigure $output_file -translation binary
782
783 writeln {#
784 ##############################################################################
785 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
786 ##############################################################################
787 #
788 # This file is automatically generated. Instead of editing this
789 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
790 # to regenerate this file.
791 #
792 B = ..
793 SRCDIR = $B\src
794 OBJDIR = .
795 OX = .
796 O = .obj
@@ -821,14 +935,17 @@
935 #
936 puts "building ../win/Makefile.PellesCGMake"
937 set output_file [open ../win/Makefile.PellesCGMake w]
938 fconfigure $output_file -translation binary
939
940 writeln {#
941 ##############################################################################
942 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
943 ##############################################################################
944 #
945 # This file is automatically generated. Instead of editing this
946 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
947 # to regenerate this file.
948 #
949 # HowTo
950 # -----
951 #
952
--- src/setup.c
+++ src/setup.c
@@ -73,10 +73,12 @@
7373
setup_menu_entry("Login-Group", "setup_login_group",
7474
"Manage single sign-on between this repository and others"
7575
" on the same server");
7676
setup_menu_entry("Tickets", "tktsetup",
7777
"Configure the trouble-ticketing system for this repository");
78
+ setup_menu_entry("Transfers", "xfersetup",
79
+ "Configure the transfer system for this repository");
7880
setup_menu_entry("Skins", "setup_skin",
7981
"Select from a menu of prepackaged \"skins\" for the web interface");
8082
setup_menu_entry("CSS", "setup_editcss",
8183
"Edit the Cascading Style Sheet used by all pages of this repository");
8284
setup_menu_entry("Header", "setup_header",
8385
--- src/setup.c
+++ src/setup.c
@@ -73,10 +73,12 @@
73 setup_menu_entry("Login-Group", "setup_login_group",
74 "Manage single sign-on between this repository and others"
75 " on the same server");
76 setup_menu_entry("Tickets", "tktsetup",
77 "Configure the trouble-ticketing system for this repository");
 
 
78 setup_menu_entry("Skins", "setup_skin",
79 "Select from a menu of prepackaged \"skins\" for the web interface");
80 setup_menu_entry("CSS", "setup_editcss",
81 "Edit the Cascading Style Sheet used by all pages of this repository");
82 setup_menu_entry("Header", "setup_header",
83
--- src/setup.c
+++ src/setup.c
@@ -73,10 +73,12 @@
73 setup_menu_entry("Login-Group", "setup_login_group",
74 "Manage single sign-on between this repository and others"
75 " on the same server");
76 setup_menu_entry("Tickets", "tktsetup",
77 "Configure the trouble-ticketing system for this repository");
78 setup_menu_entry("Transfers", "xfersetup",
79 "Configure the transfer system for this repository");
80 setup_menu_entry("Skins", "setup_skin",
81 "Select from a menu of prepackaged \"skins\" for the web interface");
82 setup_menu_entry("CSS", "setup_editcss",
83 "Edit the Cascading Style Sheet used by all pages of this repository");
84 setup_menu_entry("Header", "setup_header",
85
--- src/style.c
+++ src/style.c
@@ -710,10 +710,15 @@
710710
{ "p.tktsetupError",
711711
"format for tktsetup errors",
712712
@ color: red;
713713
@ font-weight: bold;
714714
},
715
+ { "p.xfersetupError",
716
+ "format for xfersetup errors",
717
+ @ color: red;
718
+ @ font-weight: bold;
719
+ },
715720
{ "p.thmainError",
716721
"format for th script errors",
717722
@ color: red;
718723
@ font-weight: bold;
719724
},
720725
--- src/style.c
+++ src/style.c
@@ -710,10 +710,15 @@
710 { "p.tktsetupError",
711 "format for tktsetup errors",
712 @ color: red;
713 @ font-weight: bold;
714 },
 
 
 
 
 
715 { "p.thmainError",
716 "format for th script errors",
717 @ color: red;
718 @ font-weight: bold;
719 },
720
--- src/style.c
+++ src/style.c
@@ -710,10 +710,15 @@
710 { "p.tktsetupError",
711 "format for tktsetup errors",
712 @ color: red;
713 @ font-weight: bold;
714 },
715 { "p.xfersetupError",
716 "format for xfersetup errors",
717 @ color: red;
718 @ font-weight: bold;
719 },
720 { "p.thmainError",
721 "format for th script errors",
722 @ color: red;
723 @ font-weight: bold;
724 },
725
--- src/style.c
+++ src/style.c
@@ -710,10 +710,15 @@
710710
{ "p.tktsetupError",
711711
"format for tktsetup errors",
712712
@ color: red;
713713
@ font-weight: bold;
714714
},
715
+ { "p.xfersetupError",
716
+ "format for xfersetup errors",
717
+ @ color: red;
718
+ @ font-weight: bold;
719
+ },
715720
{ "p.thmainError",
716721
"format for th script errors",
717722
@ color: red;
718723
@ font-weight: bold;
719724
},
720725
--- src/style.c
+++ src/style.c
@@ -710,10 +710,15 @@
710 { "p.tktsetupError",
711 "format for tktsetup errors",
712 @ color: red;
713 @ font-weight: bold;
714 },
 
 
 
 
 
715 { "p.thmainError",
716 "format for th script errors",
717 @ color: red;
718 @ font-weight: bold;
719 },
720
--- src/style.c
+++ src/style.c
@@ -710,10 +710,15 @@
710 { "p.tktsetupError",
711 "format for tktsetup errors",
712 @ color: red;
713 @ font-weight: bold;
714 },
715 { "p.xfersetupError",
716 "format for xfersetup errors",
717 @ color: red;
718 @ font-weight: bold;
719 },
720 { "p.thmainError",
721 "format for th script errors",
722 @ color: red;
723 @ font-weight: bold;
724 },
725
+1 -1
--- src/th_main.c
+++ src/th_main.c
@@ -569,10 +569,10 @@
569569
void test_th_render(void){
570570
Blob in;
571571
if( g.argc<3 ){
572572
usage("FILE");
573573
}
574
- db_open_config(0); /* Needed for "tcl" setting. */
574
+ db_open_config(0); /* Needed for global "tcl" setting. */
575575
blob_zero(&in);
576576
blob_read_from_file(&in, g.argv[2]);
577577
Th_Render(blob_str(&in));
578578
}
579579
--- src/th_main.c
+++ src/th_main.c
@@ -569,10 +569,10 @@
569 void test_th_render(void){
570 Blob in;
571 if( g.argc<3 ){
572 usage("FILE");
573 }
574 db_open_config(0); /* Needed for "tcl" setting. */
575 blob_zero(&in);
576 blob_read_from_file(&in, g.argv[2]);
577 Th_Render(blob_str(&in));
578 }
579
--- src/th_main.c
+++ src/th_main.c
@@ -569,10 +569,10 @@
569 void test_th_render(void){
570 Blob in;
571 if( g.argc<3 ){
572 usage("FILE");
573 }
574 db_open_config(0); /* Needed for global "tcl" setting. */
575 blob_zero(&in);
576 blob_read_from_file(&in, g.argv[2]);
577 Th_Render(blob_str(&in));
578 }
579
+35
--- src/xfer.c
+++ src/xfer.c
@@ -790,10 +790,35 @@
790790
*/
791791
static void server_private_xfer_not_authorized(void){
792792
@ error not\sauthorized\sto\ssync\sprivate\scontent
793793
}
794794
795
+/*
796
+** Run the specified TH1 script, if any, and returns the return code or TH_OK
797
+** when there is no script.
798
+*/
799
+static int run_script(const char *zScript){
800
+ if( !zScript ){
801
+ return TH_OK; /* No script, return success. */
802
+ }
803
+ Th_FossilInit(); /* Make sure TH1 is ready. */
804
+ return Th_Eval(g.interp, 0, zScript, -1);
805
+}
806
+
807
+/*
808
+** Run the pre-transfer TH1 script, if any, and returns the return code.
809
+*/
810
+static int run_common_script(void){
811
+ return run_script(db_get("xfer-common-script", 0));
812
+}
813
+
814
+/*
815
+** Run the post-push TH1 script, if any, and returns the return code.
816
+*/
817
+static int run_push_script(void){
818
+ return run_script(db_get("xfer-push-script", 0));
819
+}
795820
796821
/*
797822
** If this variable is set, disable login checks. Used for debugging
798823
** only.
799824
*/
@@ -847,10 +872,15 @@
847872
db_begin_transaction();
848873
db_multi_exec(
849874
"CREATE TEMP TABLE onremote(rid INTEGER PRIMARY KEY);"
850875
);
851876
manifest_crosslink_begin();
877
+ if( run_common_script()==TH_ERROR ){
878
+ cgi_reset_content();
879
+ @ error common\sscript\sfailed:\s%F(Th_GetResult(g.interp, 0))
880
+ nErr++;
881
+ }
852882
while( blob_line(xfer.pIn, &xfer.line) ){
853883
if( blob_buffer(&xfer.line)[0]=='#' ) continue;
854884
if( blob_size(&xfer.line)==0 ) continue;
855885
xfer.nToken = blob_tokenize(&xfer.line, xfer.aToken, count(xfer.aToken));
856886
@@ -1160,10 +1190,15 @@
11601190
@ error bad\scommand:\s%F(blob_str(&xfer.line))
11611191
}
11621192
blobarray_reset(xfer.aToken, xfer.nToken);
11631193
}
11641194
if( isPush ){
1195
+ if( run_push_script()==TH_ERROR ){
1196
+ cgi_reset_content();
1197
+ @ error push\sscript\sfailed:\s%F(Th_GetResult(g.interp, 0))
1198
+ nErr++;
1199
+ }
11651200
request_phantoms(&xfer, 500);
11661201
}
11671202
if( isClone && nGimme==0 ){
11681203
/* The initial "clone" message from client to server contains no
11691204
** "gimme" cards. On that initial message, send the client an "igot"
11701205
11711206
ADDED src/xfersetup.c
--- src/xfer.c
+++ src/xfer.c
@@ -790,10 +790,35 @@
790 */
791 static void server_private_xfer_not_authorized(void){
792 @ error not\sauthorized\sto\ssync\sprivate\scontent
793 }
794
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
795
796 /*
797 ** If this variable is set, disable login checks. Used for debugging
798 ** only.
799 */
@@ -847,10 +872,15 @@
847 db_begin_transaction();
848 db_multi_exec(
849 "CREATE TEMP TABLE onremote(rid INTEGER PRIMARY KEY);"
850 );
851 manifest_crosslink_begin();
 
 
 
 
 
852 while( blob_line(xfer.pIn, &xfer.line) ){
853 if( blob_buffer(&xfer.line)[0]=='#' ) continue;
854 if( blob_size(&xfer.line)==0 ) continue;
855 xfer.nToken = blob_tokenize(&xfer.line, xfer.aToken, count(xfer.aToken));
856
@@ -1160,10 +1190,15 @@
1160 @ error bad\scommand:\s%F(blob_str(&xfer.line))
1161 }
1162 blobarray_reset(xfer.aToken, xfer.nToken);
1163 }
1164 if( isPush ){
 
 
 
 
 
1165 request_phantoms(&xfer, 500);
1166 }
1167 if( isClone && nGimme==0 ){
1168 /* The initial "clone" message from client to server contains no
1169 ** "gimme" cards. On that initial message, send the client an "igot"
1170
1171 DDED src/xfersetup.c
--- src/xfer.c
+++ src/xfer.c
@@ -790,10 +790,35 @@
790 */
791 static void server_private_xfer_not_authorized(void){
792 @ error not\sauthorized\sto\ssync\sprivate\scontent
793 }
794
795 /*
796 ** Run the specified TH1 script, if any, and returns the return code or TH_OK
797 ** when there is no script.
798 */
799 static int run_script(const char *zScript){
800 if( !zScript ){
801 return TH_OK; /* No script, return success. */
802 }
803 Th_FossilInit(); /* Make sure TH1 is ready. */
804 return Th_Eval(g.interp, 0, zScript, -1);
805 }
806
807 /*
808 ** Run the pre-transfer TH1 script, if any, and returns the return code.
809 */
810 static int run_common_script(void){
811 return run_script(db_get("xfer-common-script", 0));
812 }
813
814 /*
815 ** Run the post-push TH1 script, if any, and returns the return code.
816 */
817 static int run_push_script(void){
818 return run_script(db_get("xfer-push-script", 0));
819 }
820
821 /*
822 ** If this variable is set, disable login checks. Used for debugging
823 ** only.
824 */
@@ -847,10 +872,15 @@
872 db_begin_transaction();
873 db_multi_exec(
874 "CREATE TEMP TABLE onremote(rid INTEGER PRIMARY KEY);"
875 );
876 manifest_crosslink_begin();
877 if( run_common_script()==TH_ERROR ){
878 cgi_reset_content();
879 @ error common\sscript\sfailed:\s%F(Th_GetResult(g.interp, 0))
880 nErr++;
881 }
882 while( blob_line(xfer.pIn, &xfer.line) ){
883 if( blob_buffer(&xfer.line)[0]=='#' ) continue;
884 if( blob_size(&xfer.line)==0 ) continue;
885 xfer.nToken = blob_tokenize(&xfer.line, xfer.aToken, count(xfer.aToken));
886
@@ -1160,10 +1190,15 @@
1190 @ error bad\scommand:\s%F(blob_str(&xfer.line))
1191 }
1192 blobarray_reset(xfer.aToken, xfer.nToken);
1193 }
1194 if( isPush ){
1195 if( run_push_script()==TH_ERROR ){
1196 cgi_reset_content();
1197 @ error push\sscript\sfailed:\s%F(Th_GetResult(g.interp, 0))
1198 nErr++;
1199 }
1200 request_phantoms(&xfer, 500);
1201 }
1202 if( isClone && nGimme==0 ){
1203 /* The initial "clone" message from client to server contains no
1204 ** "gimme" cards. On that initial message, send the client an "igot"
1205
1206 DDED src/xfersetup.c
--- a/src/xfersetup.c
+++ b/src/xfersetup.c
@@ -0,0 +1,8 @@
1
+/body_and_footer(c)y_and_footerfooter(footer(on/body_and_footerbody_and_footers(g.zTop)footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footer/body_and(char*) synchronize with the
2
+ @footer(footer(on/body_a/body_border="0" cellspacing="20}p>Press the %h(zButton)"%h(g.url.ca"http -async""th1-uri-regexp"blockquote>/body_and_footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footers(g.zTop)footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footer/bter(footer(on/body_ablockquote></blockquote>
3
+@ <hr /"push"))PCC/body_and_footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footers(g.zTop)footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footer/body_and(char*) synchronize with the
4
+ @footer(footer(on/body_a/body_border="0" cellspacing="20}p>Press the %h(zButton)"%h(g.url.ca"http -async""th1-uri-regexp"blockquote>/body_and_footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footers(g.zTop(furl.ca"http -async""th1-uri-regexp"blockquote>/body_and_footerbody_and_footerfooteronize with the
5
+ @footer(footer(on/body_a/body_border="0" cellspacing="20}p>Press the %h(zButton)"%h(g.url.ca"http -async""th1-uri-regexp"blockquote>/body_and_footerbody_and_footerfooterbody_and_footers(g.zTop)footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footer/body_and(char*) synchronize with the
6
+ @footer(footer(on/body_a/body_border="0" cellspacing="20}p>Press the %h(zButton)"%h(g.url.ca"http -async""th1-uri-regexp"blockquote>/body_and_footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footers(g.zTop)footerbody_and_footerfooter(footer(on/body_and_footerbod(footer(on/body_and_footerbody_anSyncer/bter(footer(on/body_ablockquote>ulflockquote>
7
+@ <hr /"push"))PCCfor eacSyncket" change in aSyncSyncthe local repository
8
+ @ooter(footer(on/body_and_foote/body_and_footerbody@Syncticket-change
--- a/src/xfersetup.c
+++ b/src/xfersetup.c
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
--- a/src/xfersetup.c
+++ b/src/xfersetup.c
@@ -0,0 +1,8 @@
1 /body_and_footer(c)y_and_footerfooter(footer(on/body_and_footerbody_and_footers(g.zTop)footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footer/body_and(char*) synchronize with the
2 @footer(footer(on/body_a/body_border="0" cellspacing="20}p>Press the %h(zButton)"%h(g.url.ca"http -async""th1-uri-regexp"blockquote>/body_and_footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footers(g.zTop)footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footer/bter(footer(on/body_ablockquote></blockquote>
3 @ <hr /"push"))PCC/body_and_footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footers(g.zTop)footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footer/body_and(char*) synchronize with the
4 @footer(footer(on/body_a/body_border="0" cellspacing="20}p>Press the %h(zButton)"%h(g.url.ca"http -async""th1-uri-regexp"blockquote>/body_and_footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footers(g.zTop(furl.ca"http -async""th1-uri-regexp"blockquote>/body_and_footerbody_and_footerfooteronize with the
5 @footer(footer(on/body_a/body_border="0" cellspacing="20}p>Press the %h(zButton)"%h(g.url.ca"http -async""th1-uri-regexp"blockquote>/body_and_footerbody_and_footerfooterbody_and_footers(g.zTop)footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footer/body_and(char*) synchronize with the
6 @footer(footer(on/body_a/body_border="0" cellspacing="20}p>Press the %h(zButton)"%h(g.url.ca"http -async""th1-uri-regexp"blockquote>/body_and_footerbody_and_footerfooter(footer(on/body_and_footerbody_and_footers(g.zTop)footerbody_and_footerfooter(footer(on/body_and_footerbod(footer(on/body_and_footerbody_anSyncer/bter(footer(on/body_ablockquote>ulflockquote>
7 @ <hr /"push"))PCCfor eacSyncket" change in aSyncSyncthe local repository
8 @ooter(footer(on/body_and_foote/body_and_footerbody@Syncticket-change
--- win/Makefile.PellesCGMake
+++ win/Makefile.PellesCGMake
@@ -1,9 +1,12 @@
1
-# DO NOT EDIT
1
+#
2
+##############################################################################
3
+# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
4
+##############################################################################
25
#
36
# This file is automatically generated. Instead of editing this
4
-# file, edit "makemake.tcl" then run "tclsh src/makemake.tcl"
7
+# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
58
# to regenerate this file.
69
#
710
# HowTo
811
# -----
912
#
1013
--- win/Makefile.PellesCGMake
+++ win/Makefile.PellesCGMake
@@ -1,9 +1,12 @@
1 # DO NOT EDIT
 
 
 
2 #
3 # This file is automatically generated. Instead of editing this
4 # file, edit "makemake.tcl" then run "tclsh src/makemake.tcl"
5 # to regenerate this file.
6 #
7 # HowTo
8 # -----
9 #
10
--- win/Makefile.PellesCGMake
+++ win/Makefile.PellesCGMake
@@ -1,9 +1,12 @@
1 #
2 ##############################################################################
3 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
4 ##############################################################################
5 #
6 # This file is automatically generated. Instead of editing this
7 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
8 # to regenerate this file.
9 #
10 # HowTo
11 # -----
12 #
13
+16 -6
--- win/Makefile.dmc
+++ win/Makefile.dmc
@@ -1,10 +1,14 @@
1
-# DO NOT EDIT
1
+#
2
+##############################################################################
3
+# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
4
+##############################################################################
25
#
36
# This file is automatically generated. Instead of editing this
4
-# file, edit "makemake.tcl" then run "tclsh src/makemake.tcl"
7
+# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
58
# to regenerate this file.
9
+#
610
B = ..
711
SRCDIR = $B\src
812
OBJDIR = .
913
O = .obj
1014
E = .exe
@@ -22,13 +26,13 @@
2226
TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(SSL) $(INCL)
2327
LIBS = $(DMDIR)\extra\lib\ zlib wsock32
2428
2529
SQLITE_OPTIONS = -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0
2630
27
-SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c glob_.c graph_.c gzip_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c json_.c json_artifact_.c json_branch_.c json_diff_.c json_login_.c json_query_.c json_report_.c json_tag_.c json_timeline_.c json_user_.c json_wiki_.c leaf_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c path_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c tar_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
31
+SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c glob_.c graph_.c gzip_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c json_.c json_artifact_.c json_branch_.c json_diff_.c json_login_.c json_query_.c json_report_.c json_tag_.c json_timeline_.c json_user_.c json_wiki_.c leaf_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c path_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c tar_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c xfersetup_.c zip_.c
2832
29
-OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\glob$O $(OBJDIR)\graph$O $(OBJDIR)\gzip$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\json$O $(OBJDIR)\json_artifact$O $(OBJDIR)\json_branch$O $(OBJDIR)\json_diff$O $(OBJDIR)\json_login$O $(OBJDIR)\json_query$O $(OBJDIR)\json_report$O $(OBJDIR)\json_tag$O $(OBJDIR)\json_timeline$O $(OBJDIR)\json_user$O $(OBJDIR)\json_wiki$O $(OBJDIR)\leaf$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\path$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\tar$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\shell$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
33
+OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\glob$O $(OBJDIR)\graph$O $(OBJDIR)\gzip$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\json$O $(OBJDIR)\json_artifact$O $(OBJDIR)\json_branch$O $(OBJDIR)\json_diff$O $(OBJDIR)\json_login$O $(OBJDIR)\json_query$O $(OBJDIR)\json_report$O $(OBJDIR)\json_tag$O $(OBJDIR)\json_timeline$O $(OBJDIR)\json_user$O $(OBJDIR)\json_wiki$O $(OBJDIR)\leaf$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\path$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\tar$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\xfersetup$O $(OBJDIR)\zip$O $(OBJDIR)\shell$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
3034
3135
3236
RC=$(DMDIR)\bin\rcc
3337
RCFLAGS=-32 -w1 -I$(SRCDIR) /D__DMC__
3438
@@ -42,11 +46,11 @@
4246
4347
$(OBJDIR)\fossil.res: $B\win\fossil.rc
4448
$(RC) $(RCFLAGS) -o$@ $**
4549
4650
$(OBJDIR)\link: $B\win\Makefile.dmc $(OBJDIR)\fossil.res
47
- +echo add allrepo attach bag bisect blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event export file finfo glob graph gzip http http_socket http_ssl http_transport import info json json_artifact json_branch json_diff json_login json_query json_report json_tag json_timeline json_user json_wiki leaf login main manifest md5 merge merge3 name path pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins sqlcmd stash stat style sync tag tar th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip shell sqlite3 th th_lang > $@
51
+ +echo add allrepo attach bag bisect blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event export file finfo glob graph gzip http http_socket http_ssl http_transport import info json json_artifact json_branch json_diff json_login json_query json_report json_tag json_timeline json_user json_wiki leaf login main manifest md5 merge merge3 name path pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins sqlcmd stash stat style sync tag tar th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer xfersetup zip shell sqlite3 th th_lang > $@
4852
+echo fossil >> $@
4953
+echo fossil >> $@
5054
+echo $(LIBS) >> $@
5155
+echo. >> $@
5256
+echo fossil >> $@
@@ -654,15 +658,21 @@
654658
$(OBJDIR)\xfer$O : xfer_.c xfer.h
655659
$(TCC) -o$@ -c xfer_.c
656660
657661
xfer_.c : $(SRCDIR)\xfer.c
658662
+translate$E $** > $@
663
+
664
+$(OBJDIR)\xfersetup$O : xfersetup_.c xfersetup.h
665
+ $(TCC) -o$@ -c xfersetup_.c
666
+
667
+xfersetup_.c : $(SRCDIR)\xfersetup.c
668
+ +translate$E $** > $@
659669
660670
$(OBJDIR)\zip$O : zip_.c zip.h
661671
$(TCC) -o$@ -c zip_.c
662672
663673
zip_.c : $(SRCDIR)\zip.c
664674
+translate$E $** > $@
665675
666676
headers: makeheaders$E page_index.h VERSION.h
667
- +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h glob_.c:glob.h graph_.c:graph.h gzip_.c:gzip.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h json_.c:json.h json_artifact_.c:json_artifact.h json_branch_.c:json_branch.h json_diff_.c:json_diff.h json_login_.c:json_login.h json_query_.c:json_query.h json_report_.c:json_report.h json_tag_.c:json_tag.h json_timeline_.c:json_timeline.h json_user_.c:json_user.h json_wiki_.c:json_wiki.h leaf_.c:leaf.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h path_.c:path.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h tar_.c:tar.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h $(SRCDIR)\cson_amalgamation.h
677
+ +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h glob_.c:glob.h graph_.c:graph.h gzip_.c:gzip.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h json_.c:json.h json_artifact_.c:json_artifact.h json_branch_.c:json_branch.h json_diff_.c:json_diff.h json_login_.c:json_login.h json_query_.c:json_query.h json_report_.c:json_report.h json_tag_.c:json_tag.h json_timeline_.c:json_timeline.h json_user_.c:json_user.h json_wiki_.c:json_wiki.h leaf_.c:leaf.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h path_.c:path.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h tar_.c:tar.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h xfersetup_.c:xfersetup.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h $(SRCDIR)\cson_amalgamation.h
668678
@copy /Y nul: headers
669679
--- win/Makefile.dmc
+++ win/Makefile.dmc
@@ -1,10 +1,14 @@
1 # DO NOT EDIT
 
 
 
2 #
3 # This file is automatically generated. Instead of editing this
4 # file, edit "makemake.tcl" then run "tclsh src/makemake.tcl"
5 # to regenerate this file.
 
6 B = ..
7 SRCDIR = $B\src
8 OBJDIR = .
9 O = .obj
10 E = .exe
@@ -22,13 +26,13 @@
22 TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(SSL) $(INCL)
23 LIBS = $(DMDIR)\extra\lib\ zlib wsock32
24
25 SQLITE_OPTIONS = -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0
26
27 SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c glob_.c graph_.c gzip_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c json_.c json_artifact_.c json_branch_.c json_diff_.c json_login_.c json_query_.c json_report_.c json_tag_.c json_timeline_.c json_user_.c json_wiki_.c leaf_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c path_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c tar_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
28
29 OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\glob$O $(OBJDIR)\graph$O $(OBJDIR)\gzip$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\json$O $(OBJDIR)\json_artifact$O $(OBJDIR)\json_branch$O $(OBJDIR)\json_diff$O $(OBJDIR)\json_login$O $(OBJDIR)\json_query$O $(OBJDIR)\json_report$O $(OBJDIR)\json_tag$O $(OBJDIR)\json_timeline$O $(OBJDIR)\json_user$O $(OBJDIR)\json_wiki$O $(OBJDIR)\leaf$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\path$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\tar$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\shell$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
30
31
32 RC=$(DMDIR)\bin\rcc
33 RCFLAGS=-32 -w1 -I$(SRCDIR) /D__DMC__
34
@@ -42,11 +46,11 @@
42
43 $(OBJDIR)\fossil.res: $B\win\fossil.rc
44 $(RC) $(RCFLAGS) -o$@ $**
45
46 $(OBJDIR)\link: $B\win\Makefile.dmc $(OBJDIR)\fossil.res
47 +echo add allrepo attach bag bisect blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event export file finfo glob graph gzip http http_socket http_ssl http_transport import info json json_artifact json_branch json_diff json_login json_query json_report json_tag json_timeline json_user json_wiki leaf login main manifest md5 merge merge3 name path pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins sqlcmd stash stat style sync tag tar th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip shell sqlite3 th th_lang > $@
48 +echo fossil >> $@
49 +echo fossil >> $@
50 +echo $(LIBS) >> $@
51 +echo. >> $@
52 +echo fossil >> $@
@@ -654,15 +658,21 @@
654 $(OBJDIR)\xfer$O : xfer_.c xfer.h
655 $(TCC) -o$@ -c xfer_.c
656
657 xfer_.c : $(SRCDIR)\xfer.c
658 +translate$E $** > $@
 
 
 
 
 
 
659
660 $(OBJDIR)\zip$O : zip_.c zip.h
661 $(TCC) -o$@ -c zip_.c
662
663 zip_.c : $(SRCDIR)\zip.c
664 +translate$E $** > $@
665
666 headers: makeheaders$E page_index.h VERSION.h
667 +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h glob_.c:glob.h graph_.c:graph.h gzip_.c:gzip.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h json_.c:json.h json_artifact_.c:json_artifact.h json_branch_.c:json_branch.h json_diff_.c:json_diff.h json_login_.c:json_login.h json_query_.c:json_query.h json_report_.c:json_report.h json_tag_.c:json_tag.h json_timeline_.c:json_timeline.h json_user_.c:json_user.h json_wiki_.c:json_wiki.h leaf_.c:leaf.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h path_.c:path.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h tar_.c:tar.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h $(SRCDIR)\cson_amalgamation.h
668 @copy /Y nul: headers
669
--- win/Makefile.dmc
+++ win/Makefile.dmc
@@ -1,10 +1,14 @@
1 #
2 ##############################################################################
3 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
4 ##############################################################################
5 #
6 # This file is automatically generated. Instead of editing this
7 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
8 # to regenerate this file.
9 #
10 B = ..
11 SRCDIR = $B\src
12 OBJDIR = .
13 O = .obj
14 E = .exe
@@ -22,13 +26,13 @@
26 TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(SSL) $(INCL)
27 LIBS = $(DMDIR)\extra\lib\ zlib wsock32
28
29 SQLITE_OPTIONS = -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0
30
31 SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c glob_.c graph_.c gzip_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c json_.c json_artifact_.c json_branch_.c json_diff_.c json_login_.c json_query_.c json_report_.c json_tag_.c json_timeline_.c json_user_.c json_wiki_.c leaf_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c path_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c tar_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c xfersetup_.c zip_.c
32
33 OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\glob$O $(OBJDIR)\graph$O $(OBJDIR)\gzip$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\json$O $(OBJDIR)\json_artifact$O $(OBJDIR)\json_branch$O $(OBJDIR)\json_diff$O $(OBJDIR)\json_login$O $(OBJDIR)\json_query$O $(OBJDIR)\json_report$O $(OBJDIR)\json_tag$O $(OBJDIR)\json_timeline$O $(OBJDIR)\json_user$O $(OBJDIR)\json_wiki$O $(OBJDIR)\leaf$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\path$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\tar$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\xfersetup$O $(OBJDIR)\zip$O $(OBJDIR)\shell$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
34
35
36 RC=$(DMDIR)\bin\rcc
37 RCFLAGS=-32 -w1 -I$(SRCDIR) /D__DMC__
38
@@ -42,11 +46,11 @@
46
47 $(OBJDIR)\fossil.res: $B\win\fossil.rc
48 $(RC) $(RCFLAGS) -o$@ $**
49
50 $(OBJDIR)\link: $B\win\Makefile.dmc $(OBJDIR)\fossil.res
51 +echo add allrepo attach bag bisect blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event export file finfo glob graph gzip http http_socket http_ssl http_transport import info json json_artifact json_branch json_diff json_login json_query json_report json_tag json_timeline json_user json_wiki leaf login main manifest md5 merge merge3 name path pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins sqlcmd stash stat style sync tag tar th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer xfersetup zip shell sqlite3 th th_lang > $@
52 +echo fossil >> $@
53 +echo fossil >> $@
54 +echo $(LIBS) >> $@
55 +echo. >> $@
56 +echo fossil >> $@
@@ -654,15 +658,21 @@
658 $(OBJDIR)\xfer$O : xfer_.c xfer.h
659 $(TCC) -o$@ -c xfer_.c
660
661 xfer_.c : $(SRCDIR)\xfer.c
662 +translate$E $** > $@
663
664 $(OBJDIR)\xfersetup$O : xfersetup_.c xfersetup.h
665 $(TCC) -o$@ -c xfersetup_.c
666
667 xfersetup_.c : $(SRCDIR)\xfersetup.c
668 +translate$E $** > $@
669
670 $(OBJDIR)\zip$O : zip_.c zip.h
671 $(TCC) -o$@ -c zip_.c
672
673 zip_.c : $(SRCDIR)\zip.c
674 +translate$E $** > $@
675
676 headers: makeheaders$E page_index.h VERSION.h
677 +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h glob_.c:glob.h graph_.c:graph.h gzip_.c:gzip.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h json_.c:json.h json_artifact_.c:json_artifact.h json_branch_.c:json_branch.h json_diff_.c:json_diff.h json_login_.c:json_login.h json_query_.c:json_query.h json_report_.c:json_report.h json_tag_.c:json_tag.h json_timeline_.c:json_timeline.h json_user_.c:json_user.h json_wiki_.c:json_wiki.h leaf_.c:leaf.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h path_.c:path.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h tar_.c:tar.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h xfersetup_.c:xfersetup.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h $(SRCDIR)\cson_amalgamation.h
678 @copy /Y nul: headers
679
+137 -27
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -1,17 +1,24 @@
11
#!/usr/bin/make
22
#
3
-# This is a makefile for us on windows using mingw.
3
+##############################################################################
4
+# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
5
+##############################################################################
6
+#
7
+# This file is automatically generated. Instead of editing this
8
+# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
9
+# to regenerate this file.
10
+#
11
+# This is a makefile for us on windows using MinGW.
412
#
513
#### The toplevel directory of the source tree. Fossil can be built
614
# in a directory that is separate from the source tree. Just change
715
# the following to point from the build directory to the src/ folder.
816
#
917
SRCDIR = src
1018
1119
#### The directory into which object code files should be written.
12
-#
1320
#
1421
OBJDIR = wbld
1522
1623
#### C Compiler and options for use in building executables that
1724
# will run on the platform that is doing the build. This is used
@@ -20,51 +27,134 @@
2027
#
2128
BCC = gcc
2229
2330
#### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
2431
#
25
-# FOSSIL_ENABLE_SSL=1
26
-
27
-#### The directory in which the zlib compression library is installed.
28
-#
29
-#
30
-ZLIBDIR = /programs/gnuwin32
31
-
32
-#### C Compile and options for use in building executables that
32
+# FOSSIL_ENABLE_SSL = 1
33
+
34
+#### Enable scripting support via Tcl/Tk
35
+#
36
+# FOSSIL_ENABLE_TCL = 1
37
+
38
+#### Use the Tcl source directory instead of the install directory?
39
+# This is useful when Tcl has been compiled statically with MinGW.
40
+#
41
+FOSSIL_TCL_SOURCE = 1
42
+
43
+#### The directories where the zlib include and library files are located.
44
+# The recommended usage here is to use the Sysinternals junction tool
45
+# to create a hard link between an "zlib-1.x.y" sub-directory of the
46
+# Fossil source code directory and the target zlib source directory.
47
+#
48
+ZINCDIR = $(SRCDIR)/../zlib-1.2.5
49
+ZLIBDIR = $(SRCDIR)/../zlib-1.2.5
50
+
51
+#### The directories where the OpenSSL include and library files are located.
52
+# The recommended usage here is to use the Sysinternals junction tool
53
+# to create a hard link between an "openssl-1.x" sub-directory of the
54
+# Fossil source code directory and the target OpenSSL source directory.
55
+#
56
+OPENSSLINCDIR = $(SRCDIR)/../openssl-1.0.0e/include
57
+OPENSSLLIBDIR = $(SRCDIR)/../openssl-1.0.0e
58
+
59
+#### Either the directory where the Tcl library is installed or the Tcl
60
+# source code directory resides (depending on the value of the macro
61
+# FOSSIL_TCL_SOURCE). If this points to the Tcl install directory,
62
+# this directory must have "include" and "lib" sub-directories. If
63
+# this points to the Tcl source code directory, this directory must
64
+# have "generic" and "win" sub-directories. The recommended usage
65
+# here is to use the Sysinternals junction tool to create a hard
66
+# link between a "tcl-8.x" sub-directory of the Fossil source code
67
+# directory and the target Tcl directory. This removes the need to
68
+# hard-code the necessary paths in this Makefile.
69
+#
70
+TCLDIR = $(SRCDIR)/../tcl-8.6
71
+
72
+#### The Tcl source code directory. This defaults to the same value as
73
+# TCLDIR macro (above), which may not be correct. This value will
74
+# only be used if the FOSSIL_TCL_SOURCE macro is defined.
75
+#
76
+TCLSRCDIR = $(TCLDIR)
77
+
78
+#### The Tcl include and library directories. These values will only be
79
+# used if the FOSSIL_TCL_SOURCE macro is not defined.
80
+#
81
+TCLINCDIR = $(TCLDIR)/include
82
+TCLLIBDIR = $(TCLDIR)/lib
83
+
84
+#### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)?
85
+#
86
+LIBTCL = -ltcl86
87
+
88
+#### C Compile and options for use in building executables that
3389
# will run on the target platform. This is usually the same
3490
# as BCC, unless you are cross-compiling. This C compiler builds
3591
# the finished binary for fossil. The BCC compiler above is used
3692
# for building intermediate code-generator tools.
3793
#
38
-TCC = gcc -Os -Wall -L$(ZLIBDIR)/lib -I$(ZLIBDIR)/include
94
+TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
95
+
96
+# With HTTPS support
97
+ifdef FOSSIL_ENABLE_SSL
98
+TCC += -L$(OPENSSLLIBDIR) -I$(OPENSSLINCDIR)
99
+endif
100
+
101
+# With Tcl support
102
+ifdef FOSSIL_ENABLE_TCL
103
+ifdef FOSSIL_TCL_SOURCE
104
+TCC += -L$(TCLSRCDIR)/win -I$(TCLSRCDIR)/generic -I$(TCLSRCDIR)/win
105
+else
106
+TCC += -L$(TCLLIBDIR) -I$(TCLINCDIR)
107
+endif
108
+endif
39109
40110
# With HTTPS support
41111
ifdef FOSSIL_ENABLE_SSL
42
-TCC += -static -DFOSSIL_ENABLE_SSL=1
112
+TCC += -DFOSSIL_ENABLE_SSL=1
113
+endif
114
+
115
+# With Tcl support (statically linked)
116
+ifdef FOSSIL_ENABLE_TCL
117
+TCC += -DFOSSIL_ENABLE_TCL=1 -DSTATIC_BUILD
43118
endif
44119
45120
#### Extra arguments for linking the finished binary. Fossil needs
46121
# to link against the Z-Lib compression library. There are no
47
-# other dependencies. We sometimes add the -static option here
122
+# other mandatory dependencies. We add the -static option here
48123
# so that we can build a static executable that will run in a
49124
# chroot jail.
50125
#
51
-#LIB = -lz -lws2_32
52
-# OpenSSL:
126
+LIB = -static
127
+LIB += -lmingwex -lz
128
+
129
+# OpenSSL: Add the necessary libaries required, if enabled.
53130
ifdef FOSSIL_ENABLE_SSL
54131
LIB += -lssl -lcrypto -lgdi32
55132
endif
56
-LIB += -lmingwex -lz -lws2_32
57133
58
-#### Tcl shell for use in running the fossil testsuite. This is only
59
-# used for testing. If you do not run
134
+# Tcl: Add the necessary libaries required, if enabled.
135
+ifdef FOSSIL_ENABLE_TCL
136
+LIB += $(LIBTCL)
137
+endif
138
+
139
+#### These libraries MUST appear in the same order as they do for Tcl
140
+# or linking with it will not work (exact reason unknown).
141
+#
142
+ifdef FOSSIL_ENABLE_TCL
143
+LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32
144
+else
145
+LIB += -lws2_32
146
+endif
147
+
148
+#### Tcl shell for use in running the fossil test suite. This is only
149
+# used for testing.
60150
#
61151
TCLSH = tclsh
62152
63
-#### Nullsoft installer makensis location
153
+#### Nullsoft installer MakeNSIS location
64154
#
65
-MAKENSIS = "c:\Program Files\NSIS\makensis.exe"
155
+MAKENSIS = "$(ProgramFiles)\NSIS\MakeNSIS.exe"
66156
67157
#### Include a configuration file that can override any one of these settings.
68158
#
69159
-include config.w32
70160
@@ -164,10 +254,11 @@
164254
$(SRCDIR)/vfile.c \
165255
$(SRCDIR)/wiki.c \
166256
$(SRCDIR)/wikiformat.c \
167257
$(SRCDIR)/winhttp.c \
168258
$(SRCDIR)/xfer.c \
259
+ $(SRCDIR)/xfersetup.c \
169260
$(SRCDIR)/zip.c
170261
171262
TRANS_SRC = \
172263
$(OBJDIR)/add_.c \
173264
$(OBJDIR)/allrepo_.c \
@@ -259,10 +350,11 @@
259350
$(OBJDIR)/vfile_.c \
260351
$(OBJDIR)/wiki_.c \
261352
$(OBJDIR)/wikiformat_.c \
262353
$(OBJDIR)/winhttp_.c \
263354
$(OBJDIR)/xfer_.c \
355
+ $(OBJDIR)/xfersetup_.c \
264356
$(OBJDIR)/zip_.c
265357
266358
OBJ = \
267359
$(OBJDIR)/add.o \
268360
$(OBJDIR)/allrepo.o \
@@ -354,10 +446,11 @@
354446
$(OBJDIR)/vfile.o \
355447
$(OBJDIR)/wiki.o \
356448
$(OBJDIR)/wikiformat.o \
357449
$(OBJDIR)/winhttp.o \
358450
$(OBJDIR)/xfer.o \
451
+ $(OBJDIR)/xfersetup.o \
359452
$(OBJDIR)/zip.o
360453
361454
APPNAME = fossil.exe
362455
TRANSLATE = $(subst /,\\,$(OBJDIR)/translate.exe)
363456
MAKEHEADERS = $(subst /,\\,$(OBJDIR)/makeheaders.exe)
@@ -387,45 +480,49 @@
387480
$(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
388481
389482
$(VERSION): $(SRCDIR)/mkversion.c
390483
$(BCC) -o $(OBJDIR)/version $(SRCDIR)/mkversion.c
391484
392
-# WARNING. DANGER. Running the testsuite modifies the repository the
485
+# WARNING. DANGER. Running the test suite modifies the repository the
393486
# build is done from, i.e. the checkout belongs to. Do not sync/push
394487
# the repository after running the tests.
395
-test: $(APPNAME)
396
- $(TCLSH) test/tester.tcl $(APPNAME)
488
+test: $(OBJDIR) $(APPNAME)
489
+ $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
397490
398491
$(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
399492
$(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
400493
401494
EXTRAOBJ = $(OBJDIR)/sqlite3.o $(OBJDIR)/shell.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(OBJDIR)/cson_amalgamation.o
495
+
496
+ifdef FOSSIL_ENABLE_TCL
497
+EXTRAOBJ += $(OBJDIR)/th_tcl.o
498
+endif
402499
403500
$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/icon.o
404501
$(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/icon.o
405502
406503
# This rule prevents make from using its default rules to try build
407504
# an executable named "manifest" out of the file named "manifest.c"
408505
#
409
-$(SRCDIR)/../manifest:
506
+$(SRCDIR)/../manifest:
410507
# noop
411508
412
-# Requires msys to be installed in addition to the mingw, for the "rm"
509
+# Requires MSYS to be installed in addition to the MinGW, for the "rm"
413510
# command. "del" will not work here because it is not a separate command
414511
# but a MSDOS-shell builtin.
415512
#
416
-clean:
513
+clean:
417514
rm -rf $(OBJDIR) $(APPNAME)
418515
419516
setup: $(OBJDIR) $(APPNAME)
420517
$(MAKENSIS) ./fossil.nsi
421518
422519
423520
$(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
424521
$(MKINDEX) $(TRANS_SRC) >$@
425522
$(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
426
- $(MAKEHEADERS) $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/glob_.c:$(OBJDIR)/glob.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/gzip_.c:$(OBJDIR)/gzip.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/json_.c:$(OBJDIR)/json.h $(OBJDIR)/json_artifact_.c:$(OBJDIR)/json_artifact.h $(OBJDIR)/json_branch_.c:$(OBJDIR)/json_branch.h $(OBJDIR)/json_diff_.c:$(OBJDIR)/json_diff.h $(OBJDIR)/json_login_.c:$(OBJDIR)/json_login.h $(OBJDIR)/json_query_.c:$(OBJDIR)/json_query.h $(OBJDIR)/json_report_.c:$(OBJDIR)/json_report.h $(OBJDIR)/json_tag_.c:$(OBJDIR)/json_tag.h $(OBJDIR)/json_timeline_.c:$(OBJDIR)/json_timeline.h $(OBJDIR)/json_user_.c:$(OBJDIR)/json_user.h $(OBJDIR)/json_wiki_.c:$(OBJDIR)/json_wiki.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/path_.c:$(OBJDIR)/path.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/tar_.c:$(OBJDIR)/tar.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
523
+ $(MAKEHEADERS) $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/glob_.c:$(OBJDIR)/glob.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/gzip_.c:$(OBJDIR)/gzip.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/json_.c:$(OBJDIR)/json.h $(OBJDIR)/json_artifact_.c:$(OBJDIR)/json_artifact.h $(OBJDIR)/json_branch_.c:$(OBJDIR)/json_branch.h $(OBJDIR)/json_diff_.c:$(OBJDIR)/json_diff.h $(OBJDIR)/json_login_.c:$(OBJDIR)/json_login.h $(OBJDIR)/json_query_.c:$(OBJDIR)/json_query.h $(OBJDIR)/json_report_.c:$(OBJDIR)/json_report.h $(OBJDIR)/json_tag_.c:$(OBJDIR)/json_tag.h $(OBJDIR)/json_timeline_.c:$(OBJDIR)/json_timeline.h $(OBJDIR)/json_user_.c:$(OBJDIR)/json_user.h $(OBJDIR)/json_wiki_.c:$(OBJDIR)/json_wiki.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/path_.c:$(OBJDIR)/path.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/tar_.c:$(OBJDIR)/tar.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/xfersetup_.c:$(OBJDIR)/xfersetup.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
427524
echo Done >$(OBJDIR)/headers
428525
429526
$(OBJDIR)/headers: Makefile
430527
Makefile:
431528
$(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
@@ -1070,10 +1167,17 @@
10701167
10711168
$(OBJDIR)/xfer.o: $(OBJDIR)/xfer_.c $(OBJDIR)/xfer.h $(SRCDIR)/config.h
10721169
$(XTCC) -o $(OBJDIR)/xfer.o -c $(OBJDIR)/xfer_.c
10731170
10741171
xfer.h: $(OBJDIR)/headers
1172
+$(OBJDIR)/xfersetup_.c: $(SRCDIR)/xfersetup.c $(OBJDIR)/translate
1173
+ $(TRANSLATE) $(SRCDIR)/xfersetup.c >$(OBJDIR)/xfersetup_.c
1174
+
1175
+$(OBJDIR)/xfersetup.o: $(OBJDIR)/xfersetup_.c $(OBJDIR)/xfersetup.h $(SRCDIR)/config.h
1176
+ $(XTCC) -o $(OBJDIR)/xfersetup.o -c $(OBJDIR)/xfersetup_.c
1177
+
1178
+xfersetup.h: $(OBJDIR)/headers
10751179
$(OBJDIR)/zip_.c: $(SRCDIR)/zip.c $(OBJDIR)/translate
10761180
$(TRANSLATE) $(SRCDIR)/zip.c >$(OBJDIR)/zip_.c
10771181
10781182
$(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h
10791183
$(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
@@ -1084,14 +1188,20 @@
10841188
10851189
$(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
10861190
$(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE
10871191
10881192
$(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
1193
+
10891194
$(OBJDIR)/shell.o: $(SRCDIR)/shell.c $(SRCDIR)/sqlite3.h
10901195
$(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
10911196
10921197
$(OBJDIR)/th.o: $(SRCDIR)/th.c
10931198
$(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th.c -o $(OBJDIR)/th.o
10941199
10951200
$(OBJDIR)/th_lang.o: $(SRCDIR)/th_lang.c
10961201
$(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th_lang.c -o $(OBJDIR)/th_lang.o
1202
+
1203
+ifdef FOSSIL_ENABLE_TCL
1204
+$(OBJDIR)/th_tcl.o: $(SRCDIR)/th_tcl.c
1205
+ $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th_tcl.c -o $(OBJDIR)/th_tcl.o
1206
+endif
10971207
10981208
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -1,17 +1,24 @@
1 #!/usr/bin/make
2 #
3 # This is a makefile for us on windows using mingw.
 
 
 
 
 
 
 
 
4 #
5 #### The toplevel directory of the source tree. Fossil can be built
6 # in a directory that is separate from the source tree. Just change
7 # the following to point from the build directory to the src/ folder.
8 #
9 SRCDIR = src
10
11 #### The directory into which object code files should be written.
12 #
13 #
14 OBJDIR = wbld
15
16 #### C Compiler and options for use in building executables that
17 # will run on the platform that is doing the build. This is used
@@ -20,51 +27,134 @@
20 #
21 BCC = gcc
22
23 #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
24 #
25 # FOSSIL_ENABLE_SSL=1
26
27 #### The directory in which the zlib compression library is installed.
28 #
29 #
30 ZLIBDIR = /programs/gnuwin32
31
32 #### C Compile and options for use in building executables that
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33 # will run on the target platform. This is usually the same
34 # as BCC, unless you are cross-compiling. This C compiler builds
35 # the finished binary for fossil. The BCC compiler above is used
36 # for building intermediate code-generator tools.
37 #
38 TCC = gcc -Os -Wall -L$(ZLIBDIR)/lib -I$(ZLIBDIR)/include
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
40 # With HTTPS support
41 ifdef FOSSIL_ENABLE_SSL
42 TCC += -static -DFOSSIL_ENABLE_SSL=1
 
 
 
 
 
43 endif
44
45 #### Extra arguments for linking the finished binary. Fossil needs
46 # to link against the Z-Lib compression library. There are no
47 # other dependencies. We sometimes add the -static option here
48 # so that we can build a static executable that will run in a
49 # chroot jail.
50 #
51 #LIB = -lz -lws2_32
52 # OpenSSL:
 
 
53 ifdef FOSSIL_ENABLE_SSL
54 LIB += -lssl -lcrypto -lgdi32
55 endif
56 LIB += -lmingwex -lz -lws2_32
57
58 #### Tcl shell for use in running the fossil testsuite. This is only
59 # used for testing. If you do not run
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60 #
61 TCLSH = tclsh
62
63 #### Nullsoft installer makensis location
64 #
65 MAKENSIS = "c:\Program Files\NSIS\makensis.exe"
66
67 #### Include a configuration file that can override any one of these settings.
68 #
69 -include config.w32
70
@@ -164,10 +254,11 @@
164 $(SRCDIR)/vfile.c \
165 $(SRCDIR)/wiki.c \
166 $(SRCDIR)/wikiformat.c \
167 $(SRCDIR)/winhttp.c \
168 $(SRCDIR)/xfer.c \
 
169 $(SRCDIR)/zip.c
170
171 TRANS_SRC = \
172 $(OBJDIR)/add_.c \
173 $(OBJDIR)/allrepo_.c \
@@ -259,10 +350,11 @@
259 $(OBJDIR)/vfile_.c \
260 $(OBJDIR)/wiki_.c \
261 $(OBJDIR)/wikiformat_.c \
262 $(OBJDIR)/winhttp_.c \
263 $(OBJDIR)/xfer_.c \
 
264 $(OBJDIR)/zip_.c
265
266 OBJ = \
267 $(OBJDIR)/add.o \
268 $(OBJDIR)/allrepo.o \
@@ -354,10 +446,11 @@
354 $(OBJDIR)/vfile.o \
355 $(OBJDIR)/wiki.o \
356 $(OBJDIR)/wikiformat.o \
357 $(OBJDIR)/winhttp.o \
358 $(OBJDIR)/xfer.o \
 
359 $(OBJDIR)/zip.o
360
361 APPNAME = fossil.exe
362 TRANSLATE = $(subst /,\\,$(OBJDIR)/translate.exe)
363 MAKEHEADERS = $(subst /,\\,$(OBJDIR)/makeheaders.exe)
@@ -387,45 +480,49 @@
387 $(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
388
389 $(VERSION): $(SRCDIR)/mkversion.c
390 $(BCC) -o $(OBJDIR)/version $(SRCDIR)/mkversion.c
391
392 # WARNING. DANGER. Running the testsuite modifies the repository the
393 # build is done from, i.e. the checkout belongs to. Do not sync/push
394 # the repository after running the tests.
395 test: $(APPNAME)
396 $(TCLSH) test/tester.tcl $(APPNAME)
397
398 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
399 $(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
400
401 EXTRAOBJ = $(OBJDIR)/sqlite3.o $(OBJDIR)/shell.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(OBJDIR)/cson_amalgamation.o
 
 
 
 
402
403 $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/icon.o
404 $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/icon.o
405
406 # This rule prevents make from using its default rules to try build
407 # an executable named "manifest" out of the file named "manifest.c"
408 #
409 $(SRCDIR)/../manifest:
410 # noop
411
412 # Requires msys to be installed in addition to the mingw, for the "rm"
413 # command. "del" will not work here because it is not a separate command
414 # but a MSDOS-shell builtin.
415 #
416 clean:
417 rm -rf $(OBJDIR) $(APPNAME)
418
419 setup: $(OBJDIR) $(APPNAME)
420 $(MAKENSIS) ./fossil.nsi
421
422
423 $(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
424 $(MKINDEX) $(TRANS_SRC) >$@
425 $(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
426 $(MAKEHEADERS) $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/glob_.c:$(OBJDIR)/glob.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/gzip_.c:$(OBJDIR)/gzip.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/json_.c:$(OBJDIR)/json.h $(OBJDIR)/json_artifact_.c:$(OBJDIR)/json_artifact.h $(OBJDIR)/json_branch_.c:$(OBJDIR)/json_branch.h $(OBJDIR)/json_diff_.c:$(OBJDIR)/json_diff.h $(OBJDIR)/json_login_.c:$(OBJDIR)/json_login.h $(OBJDIR)/json_query_.c:$(OBJDIR)/json_query.h $(OBJDIR)/json_report_.c:$(OBJDIR)/json_report.h $(OBJDIR)/json_tag_.c:$(OBJDIR)/json_tag.h $(OBJDIR)/json_timeline_.c:$(OBJDIR)/json_timeline.h $(OBJDIR)/json_user_.c:$(OBJDIR)/json_user.h $(OBJDIR)/json_wiki_.c:$(OBJDIR)/json_wiki.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/path_.c:$(OBJDIR)/path.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/tar_.c:$(OBJDIR)/tar.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
427 echo Done >$(OBJDIR)/headers
428
429 $(OBJDIR)/headers: Makefile
430 Makefile:
431 $(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
@@ -1070,10 +1167,17 @@
1070
1071 $(OBJDIR)/xfer.o: $(OBJDIR)/xfer_.c $(OBJDIR)/xfer.h $(SRCDIR)/config.h
1072 $(XTCC) -o $(OBJDIR)/xfer.o -c $(OBJDIR)/xfer_.c
1073
1074 xfer.h: $(OBJDIR)/headers
 
 
 
 
 
 
 
1075 $(OBJDIR)/zip_.c: $(SRCDIR)/zip.c $(OBJDIR)/translate
1076 $(TRANSLATE) $(SRCDIR)/zip.c >$(OBJDIR)/zip_.c
1077
1078 $(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h
1079 $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
@@ -1084,14 +1188,20 @@
1084
1085 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
1086 $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE
1087
1088 $(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
 
1089 $(OBJDIR)/shell.o: $(SRCDIR)/shell.c $(SRCDIR)/sqlite3.h
1090 $(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
1091
1092 $(OBJDIR)/th.o: $(SRCDIR)/th.c
1093 $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th.c -o $(OBJDIR)/th.o
1094
1095 $(OBJDIR)/th_lang.o: $(SRCDIR)/th_lang.c
1096 $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th_lang.c -o $(OBJDIR)/th_lang.o
 
 
 
 
 
1097
1098
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -1,17 +1,24 @@
1 #!/usr/bin/make
2 #
3 ##############################################################################
4 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
5 ##############################################################################
6 #
7 # This file is automatically generated. Instead of editing this
8 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
9 # to regenerate this file.
10 #
11 # This is a makefile for us on windows using MinGW.
12 #
13 #### The toplevel directory of the source tree. Fossil can be built
14 # in a directory that is separate from the source tree. Just change
15 # the following to point from the build directory to the src/ folder.
16 #
17 SRCDIR = src
18
19 #### The directory into which object code files should be written.
 
20 #
21 OBJDIR = wbld
22
23 #### C Compiler and options for use in building executables that
24 # will run on the platform that is doing the build. This is used
@@ -20,51 +27,134 @@
27 #
28 BCC = gcc
29
30 #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
31 #
32 # FOSSIL_ENABLE_SSL = 1
33
34 #### Enable scripting support via Tcl/Tk
35 #
36 # FOSSIL_ENABLE_TCL = 1
37
38 #### Use the Tcl source directory instead of the install directory?
39 # This is useful when Tcl has been compiled statically with MinGW.
40 #
41 FOSSIL_TCL_SOURCE = 1
42
43 #### The directories where the zlib include and library files are located.
44 # The recommended usage here is to use the Sysinternals junction tool
45 # to create a hard link between an "zlib-1.x.y" sub-directory of the
46 # Fossil source code directory and the target zlib source directory.
47 #
48 ZINCDIR = $(SRCDIR)/../zlib-1.2.5
49 ZLIBDIR = $(SRCDIR)/../zlib-1.2.5
50
51 #### The directories where the OpenSSL include and library files are located.
52 # The recommended usage here is to use the Sysinternals junction tool
53 # to create a hard link between an "openssl-1.x" sub-directory of the
54 # Fossil source code directory and the target OpenSSL source directory.
55 #
56 OPENSSLINCDIR = $(SRCDIR)/../openssl-1.0.0e/include
57 OPENSSLLIBDIR = $(SRCDIR)/../openssl-1.0.0e
58
59 #### Either the directory where the Tcl library is installed or the Tcl
60 # source code directory resides (depending on the value of the macro
61 # FOSSIL_TCL_SOURCE). If this points to the Tcl install directory,
62 # this directory must have "include" and "lib" sub-directories. If
63 # this points to the Tcl source code directory, this directory must
64 # have "generic" and "win" sub-directories. The recommended usage
65 # here is to use the Sysinternals junction tool to create a hard
66 # link between a "tcl-8.x" sub-directory of the Fossil source code
67 # directory and the target Tcl directory. This removes the need to
68 # hard-code the necessary paths in this Makefile.
69 #
70 TCLDIR = $(SRCDIR)/../tcl-8.6
71
72 #### The Tcl source code directory. This defaults to the same value as
73 # TCLDIR macro (above), which may not be correct. This value will
74 # only be used if the FOSSIL_TCL_SOURCE macro is defined.
75 #
76 TCLSRCDIR = $(TCLDIR)
77
78 #### The Tcl include and library directories. These values will only be
79 # used if the FOSSIL_TCL_SOURCE macro is not defined.
80 #
81 TCLINCDIR = $(TCLDIR)/include
82 TCLLIBDIR = $(TCLDIR)/lib
83
84 #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)?
85 #
86 LIBTCL = -ltcl86
87
88 #### C Compile and options for use in building executables that
89 # will run on the target platform. This is usually the same
90 # as BCC, unless you are cross-compiling. This C compiler builds
91 # the finished binary for fossil. The BCC compiler above is used
92 # for building intermediate code-generator tools.
93 #
94 TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
95
96 # With HTTPS support
97 ifdef FOSSIL_ENABLE_SSL
98 TCC += -L$(OPENSSLLIBDIR) -I$(OPENSSLINCDIR)
99 endif
100
101 # With Tcl support
102 ifdef FOSSIL_ENABLE_TCL
103 ifdef FOSSIL_TCL_SOURCE
104 TCC += -L$(TCLSRCDIR)/win -I$(TCLSRCDIR)/generic -I$(TCLSRCDIR)/win
105 else
106 TCC += -L$(TCLLIBDIR) -I$(TCLINCDIR)
107 endif
108 endif
109
110 # With HTTPS support
111 ifdef FOSSIL_ENABLE_SSL
112 TCC += -DFOSSIL_ENABLE_SSL=1
113 endif
114
115 # With Tcl support (statically linked)
116 ifdef FOSSIL_ENABLE_TCL
117 TCC += -DFOSSIL_ENABLE_TCL=1 -DSTATIC_BUILD
118 endif
119
120 #### Extra arguments for linking the finished binary. Fossil needs
121 # to link against the Z-Lib compression library. There are no
122 # other mandatory dependencies. We add the -static option here
123 # so that we can build a static executable that will run in a
124 # chroot jail.
125 #
126 LIB = -static
127 LIB += -lmingwex -lz
128
129 # OpenSSL: Add the necessary libaries required, if enabled.
130 ifdef FOSSIL_ENABLE_SSL
131 LIB += -lssl -lcrypto -lgdi32
132 endif
 
133
134 # Tcl: Add the necessary libaries required, if enabled.
135 ifdef FOSSIL_ENABLE_TCL
136 LIB += $(LIBTCL)
137 endif
138
139 #### These libraries MUST appear in the same order as they do for Tcl
140 # or linking with it will not work (exact reason unknown).
141 #
142 ifdef FOSSIL_ENABLE_TCL
143 LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32
144 else
145 LIB += -lws2_32
146 endif
147
148 #### Tcl shell for use in running the fossil test suite. This is only
149 # used for testing.
150 #
151 TCLSH = tclsh
152
153 #### Nullsoft installer MakeNSIS location
154 #
155 MAKENSIS = "$(ProgramFiles)\NSIS\MakeNSIS.exe"
156
157 #### Include a configuration file that can override any one of these settings.
158 #
159 -include config.w32
160
@@ -164,10 +254,11 @@
254 $(SRCDIR)/vfile.c \
255 $(SRCDIR)/wiki.c \
256 $(SRCDIR)/wikiformat.c \
257 $(SRCDIR)/winhttp.c \
258 $(SRCDIR)/xfer.c \
259 $(SRCDIR)/xfersetup.c \
260 $(SRCDIR)/zip.c
261
262 TRANS_SRC = \
263 $(OBJDIR)/add_.c \
264 $(OBJDIR)/allrepo_.c \
@@ -259,10 +350,11 @@
350 $(OBJDIR)/vfile_.c \
351 $(OBJDIR)/wiki_.c \
352 $(OBJDIR)/wikiformat_.c \
353 $(OBJDIR)/winhttp_.c \
354 $(OBJDIR)/xfer_.c \
355 $(OBJDIR)/xfersetup_.c \
356 $(OBJDIR)/zip_.c
357
358 OBJ = \
359 $(OBJDIR)/add.o \
360 $(OBJDIR)/allrepo.o \
@@ -354,10 +446,11 @@
446 $(OBJDIR)/vfile.o \
447 $(OBJDIR)/wiki.o \
448 $(OBJDIR)/wikiformat.o \
449 $(OBJDIR)/winhttp.o \
450 $(OBJDIR)/xfer.o \
451 $(OBJDIR)/xfersetup.o \
452 $(OBJDIR)/zip.o
453
454 APPNAME = fossil.exe
455 TRANSLATE = $(subst /,\\,$(OBJDIR)/translate.exe)
456 MAKEHEADERS = $(subst /,\\,$(OBJDIR)/makeheaders.exe)
@@ -387,45 +480,49 @@
480 $(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
481
482 $(VERSION): $(SRCDIR)/mkversion.c
483 $(BCC) -o $(OBJDIR)/version $(SRCDIR)/mkversion.c
484
485 # WARNING. DANGER. Running the test suite modifies the repository the
486 # build is done from, i.e. the checkout belongs to. Do not sync/push
487 # the repository after running the tests.
488 test: $(OBJDIR) $(APPNAME)
489 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
490
491 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
492 $(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
493
494 EXTRAOBJ = $(OBJDIR)/sqlite3.o $(OBJDIR)/shell.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(OBJDIR)/cson_amalgamation.o
495
496 ifdef FOSSIL_ENABLE_TCL
497 EXTRAOBJ += $(OBJDIR)/th_tcl.o
498 endif
499
500 $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/icon.o
501 $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/icon.o
502
503 # This rule prevents make from using its default rules to try build
504 # an executable named "manifest" out of the file named "manifest.c"
505 #
506 $(SRCDIR)/../manifest:
507 # noop
508
509 # Requires MSYS to be installed in addition to the MinGW, for the "rm"
510 # command. "del" will not work here because it is not a separate command
511 # but a MSDOS-shell builtin.
512 #
513 clean:
514 rm -rf $(OBJDIR) $(APPNAME)
515
516 setup: $(OBJDIR) $(APPNAME)
517 $(MAKENSIS) ./fossil.nsi
518
519
520 $(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
521 $(MKINDEX) $(TRANS_SRC) >$@
522 $(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
523 $(MAKEHEADERS) $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/glob_.c:$(OBJDIR)/glob.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/gzip_.c:$(OBJDIR)/gzip.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/json_.c:$(OBJDIR)/json.h $(OBJDIR)/json_artifact_.c:$(OBJDIR)/json_artifact.h $(OBJDIR)/json_branch_.c:$(OBJDIR)/json_branch.h $(OBJDIR)/json_diff_.c:$(OBJDIR)/json_diff.h $(OBJDIR)/json_login_.c:$(OBJDIR)/json_login.h $(OBJDIR)/json_query_.c:$(OBJDIR)/json_query.h $(OBJDIR)/json_report_.c:$(OBJDIR)/json_report.h $(OBJDIR)/json_tag_.c:$(OBJDIR)/json_tag.h $(OBJDIR)/json_timeline_.c:$(OBJDIR)/json_timeline.h $(OBJDIR)/json_user_.c:$(OBJDIR)/json_user.h $(OBJDIR)/json_wiki_.c:$(OBJDIR)/json_wiki.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/path_.c:$(OBJDIR)/path.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/tar_.c:$(OBJDIR)/tar.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/xfersetup_.c:$(OBJDIR)/xfersetup.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
524 echo Done >$(OBJDIR)/headers
525
526 $(OBJDIR)/headers: Makefile
527 Makefile:
528 $(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
@@ -1070,10 +1167,17 @@
1167
1168 $(OBJDIR)/xfer.o: $(OBJDIR)/xfer_.c $(OBJDIR)/xfer.h $(SRCDIR)/config.h
1169 $(XTCC) -o $(OBJDIR)/xfer.o -c $(OBJDIR)/xfer_.c
1170
1171 xfer.h: $(OBJDIR)/headers
1172 $(OBJDIR)/xfersetup_.c: $(SRCDIR)/xfersetup.c $(OBJDIR)/translate
1173 $(TRANSLATE) $(SRCDIR)/xfersetup.c >$(OBJDIR)/xfersetup_.c
1174
1175 $(OBJDIR)/xfersetup.o: $(OBJDIR)/xfersetup_.c $(OBJDIR)/xfersetup.h $(SRCDIR)/config.h
1176 $(XTCC) -o $(OBJDIR)/xfersetup.o -c $(OBJDIR)/xfersetup_.c
1177
1178 xfersetup.h: $(OBJDIR)/headers
1179 $(OBJDIR)/zip_.c: $(SRCDIR)/zip.c $(OBJDIR)/translate
1180 $(TRANSLATE) $(SRCDIR)/zip.c >$(OBJDIR)/zip_.c
1181
1182 $(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h
1183 $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
@@ -1084,14 +1188,20 @@
1188
1189 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
1190 $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE
1191
1192 $(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
1193
1194 $(OBJDIR)/shell.o: $(SRCDIR)/shell.c $(SRCDIR)/sqlite3.h
1195 $(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
1196
1197 $(OBJDIR)/th.o: $(SRCDIR)/th.c
1198 $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th.c -o $(OBJDIR)/th.o
1199
1200 $(OBJDIR)/th_lang.o: $(SRCDIR)/th_lang.c
1201 $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th_lang.c -o $(OBJDIR)/th_lang.o
1202
1203 ifdef FOSSIL_ENABLE_TCL
1204 $(OBJDIR)/th_tcl.o: $(SRCDIR)/th_tcl.c
1205 $(XTCC) -I$(SRCDIR) -c $(SRCDIR)/th_tcl.c -o $(OBJDIR)/th_tcl.o
1206 endif
1207
1208
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -1,8 +1,16 @@
11
#!/usr/bin/make
22
#
3
-# This is a makefile for us on windows using mingw.
3
+##############################################################################
4
+# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
5
+##############################################################################
6
+#
7
+# This file is automatically generated. Instead of editing this
8
+# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
9
+# to regenerate this file.
10
+#
11
+# This is a makefile for us on windows using MinGW.
412
#
513
#### The toplevel directory of the source tree. Fossil can be built
614
# in a directory that is separate from the source tree. Just change
715
# the following to point from the build directory to the src/ folder.
816
#
@@ -19,34 +27,36 @@
1927
#
2028
BCC = gcc
2129
2230
#### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
2331
#
24
-FOSSIL_ENABLE_SSL=1
32
+FOSSIL_ENABLE_SSL = 1
2533
2634
#### Enable scripting support via Tcl/Tk
2735
#
28
-FOSSIL_ENABLE_TCL=1
36
+FOSSIL_ENABLE_TCL = 1
2937
3038
#### Use the Tcl source directory instead of the install directory?
3139
# This is useful when Tcl has been compiled statically with MinGW.
3240
#
33
-FOSSIL_TCL_SOURCE=1
41
+FOSSIL_TCL_SOURCE = 1
3442
35
-#### The directory where the zlib library source code is located.
43
+#### The directories where the zlib include and library files are located.
3644
# The recommended usage here is to use the Sysinternals junction tool
3745
# to create a hard link between an "zlib-1.x.y" sub-directory of the
3846
# Fossil source code directory and the target zlib source directory.
3947
#
48
+ZINCDIR = $(SRCDIR)/../zlib-1.2.5
4049
ZLIBDIR = $(SRCDIR)/../zlib-1.2.5
4150
42
-#### The directory where the OpenSSL library source code is located.
51
+#### The directories where the OpenSSL include and library files are located.
4352
# The recommended usage here is to use the Sysinternals junction tool
4453
# to create a hard link between an "openssl-1.x" sub-directory of the
4554
# Fossil source code directory and the target OpenSSL source directory.
4655
#
47
-OPENSSLDIR = $(SRCDIR)/../openssl-1.0.0e
56
+OPENSSLINCDIR = $(SRCDIR)/../openssl-1.0.0e/include
57
+OPENSSLLIBDIR = $(SRCDIR)/../openssl-1.0.0e
4858
4959
#### Either the directory where the Tcl library is installed or the Tcl
5060
# source code directory resides (depending on the value of the macro
5161
# FOSSIL_TCL_SOURCE). If this points to the Tcl install directory,
5262
# this directory must have "include" and "lib" sub-directories. If
@@ -56,30 +66,46 @@
5666
# link between a "tcl-8.x" sub-directory of the Fossil source code
5767
# directory and the target Tcl directory. This removes the need to
5868
# hard-code the necessary paths in this Makefile.
5969
#
6070
TCLDIR = $(SRCDIR)/../tcl-8.6
71
+
72
+#### The Tcl source code directory. This defaults to the same value as
73
+# TCLDIR macro (above), which may not be correct. This value will
74
+# only be used if the FOSSIL_TCL_SOURCE macro is defined.
75
+#
76
+TCLSRCDIR = $(TCLDIR)
77
+
78
+#### The Tcl include and library directories. These values will only be
79
+# used if the FOSSIL_TCL_SOURCE macro is not defined.
80
+#
81
+TCLINCDIR = $(TCLDIR)/include
82
+TCLLIBDIR = $(TCLDIR)/lib
83
+
84
+#### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)?
85
+#
86
+LIBTCL = -ltcl86
6187
6288
#### C Compile and options for use in building executables that
6389
# will run on the target platform. This is usually the same
6490
# as BCC, unless you are cross-compiling. This C compiler builds
6591
# the finished binary for fossil. The BCC compiler above is used
6692
# for building intermediate code-generator tools.
6793
#
68
-TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZLIBDIR)
94
+TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
6995
7096
# With HTTPS support
7197
ifdef FOSSIL_ENABLE_SSL
72
-TCC += -L$(OPENSSLDIR) -I$(OPENSSLDIR)/include
98
+TCC += -L$(OPENSSLLIBDIR) -I$(OPENSSLINCDIR)
7399
endif
74100
75101
# With Tcl support
76102
ifdef FOSSIL_ENABLE_TCL
77103
ifdef FOSSIL_TCL_SOURCE
78
-TCC += -L$(TCLDIR)/win -I$(TCLDIR)/generic -I$(TCLDIR)/win
104
+TCC += -L$(TCLSRCDIR)/win -I$(TCLSRCDIR)/generic -I$(TCLSRCDIR)/win
79105
else
80
-TCC += -L$(TCLDIR)/lib -I$(TCLDIR)/include
106
+TCC += -L$(TCLLIBDIR) -I$(TCLINCDIR)
81107
endif
82108
endif
83109
84110
# With HTTPS support
85111
ifdef FOSSIL_ENABLE_SSL
@@ -98,33 +124,37 @@
98124
# chroot jail.
99125
#
100126
LIB = -static
101127
LIB += -lmingwex -lz
102128
103
-# OpenSSL: Add the necessary libaries required.
129
+# OpenSSL: Add the necessary libaries required, if enabled.
104130
ifdef FOSSIL_ENABLE_SSL
105131
LIB += -lssl -lcrypto -lgdi32
106132
endif
107133
108
-# Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)?
134
+# Tcl: Add the necessary libaries required, if enabled.
109135
ifdef FOSSIL_ENABLE_TCL
110
-LIB += -ltcl86
136
+LIB += $(LIBTCL)
111137
endif
112138
113139
#### These libraries MUST appear in the same order as they do for Tcl
114140
# or linking with it will not work (exact reason unknown).
115141
#
142
+ifdef FOSSIL_ENABLE_TCL
116143
LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32
144
+else
145
+LIB += -lws2_32
146
+endif
117147
118
-#### Tcl shell for use in running the fossil testsuite. This is only
119
-# used for testing. If you do not run
148
+#### Tcl shell for use in running the fossil test suite. This is only
149
+# used for testing.
120150
#
121151
TCLSH = tclsh
122152
123
-#### Nullsoft installer makensis location
153
+#### Nullsoft installer MakeNSIS location
124154
#
125
-MAKENSIS = "c:\Program Files\NSIS\makensis.exe"
155
+MAKENSIS = "$(ProgramFiles)\NSIS\MakeNSIS.exe"
126156
127157
#### Include a configuration file that can override any one of these settings.
128158
#
129159
-include config.w32
130160
@@ -170,10 +200,21 @@
170200
$(SRCDIR)/http_socket.c \
171201
$(SRCDIR)/http_ssl.c \
172202
$(SRCDIR)/http_transport.c \
173203
$(SRCDIR)/import.c \
174204
$(SRCDIR)/info.c \
205
+ $(SRCDIR)/json.c \
206
+ $(SRCDIR)/json_artifact.c \
207
+ $(SRCDIR)/json_branch.c \
208
+ $(SRCDIR)/json_diff.c \
209
+ $(SRCDIR)/json_login.c \
210
+ $(SRCDIR)/json_query.c \
211
+ $(SRCDIR)/json_report.c \
212
+ $(SRCDIR)/json_tag.c \
213
+ $(SRCDIR)/json_timeline.c \
214
+ $(SRCDIR)/json_user.c \
215
+ $(SRCDIR)/json_wiki.c \
175216
$(SRCDIR)/leaf.c \
176217
$(SRCDIR)/login.c \
177218
$(SRCDIR)/main.c \
178219
$(SRCDIR)/manifest.c \
179220
$(SRCDIR)/md5.c \
@@ -213,10 +254,11 @@
213254
$(SRCDIR)/vfile.c \
214255
$(SRCDIR)/wiki.c \
215256
$(SRCDIR)/wikiformat.c \
216257
$(SRCDIR)/winhttp.c \
217258
$(SRCDIR)/xfer.c \
259
+ $(SRCDIR)/xfersetup.c \
218260
$(SRCDIR)/zip.c
219261
220262
TRANS_SRC = \
221263
$(OBJDIR)/add_.c \
222264
$(OBJDIR)/allrepo_.c \
@@ -254,10 +296,21 @@
254296
$(OBJDIR)/http_socket_.c \
255297
$(OBJDIR)/http_ssl_.c \
256298
$(OBJDIR)/http_transport_.c \
257299
$(OBJDIR)/import_.c \
258300
$(OBJDIR)/info_.c \
301
+ $(OBJDIR)/json_.c \
302
+ $(OBJDIR)/json_artifact_.c \
303
+ $(OBJDIR)/json_branch_.c \
304
+ $(OBJDIR)/json_diff_.c \
305
+ $(OBJDIR)/json_login_.c \
306
+ $(OBJDIR)/json_query_.c \
307
+ $(OBJDIR)/json_report_.c \
308
+ $(OBJDIR)/json_tag_.c \
309
+ $(OBJDIR)/json_timeline_.c \
310
+ $(OBJDIR)/json_user_.c \
311
+ $(OBJDIR)/json_wiki_.c \
259312
$(OBJDIR)/leaf_.c \
260313
$(OBJDIR)/login_.c \
261314
$(OBJDIR)/main_.c \
262315
$(OBJDIR)/manifest_.c \
263316
$(OBJDIR)/md5_.c \
@@ -297,10 +350,11 @@
297350
$(OBJDIR)/vfile_.c \
298351
$(OBJDIR)/wiki_.c \
299352
$(OBJDIR)/wikiformat_.c \
300353
$(OBJDIR)/winhttp_.c \
301354
$(OBJDIR)/xfer_.c \
355
+ $(OBJDIR)/xfersetup_.c \
302356
$(OBJDIR)/zip_.c
303357
304358
OBJ = \
305359
$(OBJDIR)/add.o \
306360
$(OBJDIR)/allrepo.o \
@@ -338,10 +392,21 @@
338392
$(OBJDIR)/http_socket.o \
339393
$(OBJDIR)/http_ssl.o \
340394
$(OBJDIR)/http_transport.o \
341395
$(OBJDIR)/import.o \
342396
$(OBJDIR)/info.o \
397
+ $(OBJDIR)/json.o \
398
+ $(OBJDIR)/json_artifact.o \
399
+ $(OBJDIR)/json_branch.o \
400
+ $(OBJDIR)/json_diff.o \
401
+ $(OBJDIR)/json_login.o \
402
+ $(OBJDIR)/json_query.o \
403
+ $(OBJDIR)/json_report.o \
404
+ $(OBJDIR)/json_tag.o \
405
+ $(OBJDIR)/json_timeline.o \
406
+ $(OBJDIR)/json_user.o \
407
+ $(OBJDIR)/json_wiki.o \
343408
$(OBJDIR)/leaf.o \
344409
$(OBJDIR)/login.o \
345410
$(OBJDIR)/main.o \
346411
$(OBJDIR)/manifest.o \
347412
$(OBJDIR)/md5.o \
@@ -381,10 +446,11 @@
381446
$(OBJDIR)/vfile.o \
382447
$(OBJDIR)/wiki.o \
383448
$(OBJDIR)/wikiformat.o \
384449
$(OBJDIR)/winhttp.o \
385450
$(OBJDIR)/xfer.o \
451
+ $(OBJDIR)/xfersetup.o \
386452
$(OBJDIR)/zip.o
387453
388454
APPNAME = fossil.exe
389455
TRANSLATE = $(subst /,\\,$(OBJDIR)/translate.exe)
390456
MAKEHEADERS = $(subst /,\\,$(OBJDIR)/makeheaders.exe)
@@ -414,20 +480,20 @@
414480
$(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
415481
416482
$(VERSION): $(SRCDIR)/mkversion.c
417483
$(BCC) -o $(OBJDIR)/version $(SRCDIR)/mkversion.c
418484
419
-# WARNING. DANGER. Running the testsuite modifies the repository the
485
+# WARNING. DANGER. Running the test suite modifies the repository the
420486
# build is done from, i.e. the checkout belongs to. Do not sync/push
421487
# the repository after running the tests.
422488
test: $(OBJDIR) $(APPNAME)
423489
$(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
424490
425491
$(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
426492
$(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
427493
428
-EXTRAOBJ = $(OBJDIR)/sqlite3.o $(OBJDIR)/shell.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o
494
+EXTRAOBJ = $(OBJDIR)/sqlite3.o $(OBJDIR)/shell.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(OBJDIR)/cson_amalgamation.o
429495
430496
ifdef FOSSIL_ENABLE_TCL
431497
EXTRAOBJ += $(OBJDIR)/th_tcl.o
432498
endif
433499
@@ -438,11 +504,11 @@
438504
# an executable named "manifest" out of the file named "manifest.c"
439505
#
440506
$(SRCDIR)/../manifest:
441507
# noop
442508
443
-# Requires msys to be installed in addition to the mingw, for the "rm"
509
+# Requires MSYS to be installed in addition to the MinGW, for the "rm"
444510
# command. "del" will not work here because it is not a separate command
445511
# but a MSDOS-shell builtin.
446512
#
447513
clean:
448514
rm -rf $(OBJDIR) $(APPNAME)
@@ -452,11 +518,11 @@
452518
453519
454520
$(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
455521
$(MKINDEX) $(TRANS_SRC) >$@
456522
$(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
457
- $(MAKEHEADERS) $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/glob_.c:$(OBJDIR)/glob.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/gzip_.c:$(OBJDIR)/gzip.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/path_.c:$(OBJDIR)/path.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/tar_.c:$(OBJDIR)/tar.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
523
+ $(MAKEHEADERS) $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/glob_.c:$(OBJDIR)/glob.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/gzip_.c:$(OBJDIR)/gzip.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/json_.c:$(OBJDIR)/json.h $(OBJDIR)/json_artifact_.c:$(OBJDIR)/json_artifact.h $(OBJDIR)/json_branch_.c:$(OBJDIR)/json_branch.h $(OBJDIR)/json_diff_.c:$(OBJDIR)/json_diff.h $(OBJDIR)/json_login_.c:$(OBJDIR)/json_login.h $(OBJDIR)/json_query_.c:$(OBJDIR)/json_query.h $(OBJDIR)/json_report_.c:$(OBJDIR)/json_report.h $(OBJDIR)/json_tag_.c:$(OBJDIR)/json_tag.h $(OBJDIR)/json_timeline_.c:$(OBJDIR)/json_timeline.h $(OBJDIR)/json_user_.c:$(OBJDIR)/json_user.h $(OBJDIR)/json_wiki_.c:$(OBJDIR)/json_wiki.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/path_.c:$(OBJDIR)/path.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/tar_.c:$(OBJDIR)/tar.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/xfersetup_.c:$(OBJDIR)/xfersetup.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
458524
echo Done >$(OBJDIR)/headers
459525
460526
$(OBJDIR)/headers: Makefile
461527
Makefile:
462528
$(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
@@ -723,10 +789,87 @@
723789
724790
$(OBJDIR)/info.o: $(OBJDIR)/info_.c $(OBJDIR)/info.h $(SRCDIR)/config.h
725791
$(XTCC) -o $(OBJDIR)/info.o -c $(OBJDIR)/info_.c
726792
727793
info.h: $(OBJDIR)/headers
794
+$(OBJDIR)/json_.c: $(SRCDIR)/json.c $(OBJDIR)/translate
795
+ $(TRANSLATE) $(SRCDIR)/json.c >$(OBJDIR)/json_.c
796
+
797
+$(OBJDIR)/json.o: $(OBJDIR)/json_.c $(OBJDIR)/json.h $(SRCDIR)/config.h
798
+ $(XTCC) -o $(OBJDIR)/json.o -c $(OBJDIR)/json_.c
799
+
800
+json.h: $(OBJDIR)/headers
801
+$(OBJDIR)/json_artifact_.c: $(SRCDIR)/json_artifact.c $(OBJDIR)/translate
802
+ $(TRANSLATE) $(SRCDIR)/json_artifact.c >$(OBJDIR)/json_artifact_.c
803
+
804
+$(OBJDIR)/json_artifact.o: $(OBJDIR)/json_artifact_.c $(OBJDIR)/json_artifact.h $(SRCDIR)/config.h
805
+ $(XTCC) -o $(OBJDIR)/json_artifact.o -c $(OBJDIR)/json_artifact_.c
806
+
807
+json_artifact.h: $(OBJDIR)/headers
808
+$(OBJDIR)/json_branch_.c: $(SRCDIR)/json_branch.c $(OBJDIR)/translate
809
+ $(TRANSLATE) $(SRCDIR)/json_branch.c >$(OBJDIR)/json_branch_.c
810
+
811
+$(OBJDIR)/json_branch.o: $(OBJDIR)/json_branch_.c $(OBJDIR)/json_branch.h $(SRCDIR)/config.h
812
+ $(XTCC) -o $(OBJDIR)/json_branch.o -c $(OBJDIR)/json_branch_.c
813
+
814
+json_branch.h: $(OBJDIR)/headers
815
+$(OBJDIR)/json_diff_.c: $(SRCDIR)/json_diff.c $(OBJDIR)/translate
816
+ $(TRANSLATE) $(SRCDIR)/json_diff.c >$(OBJDIR)/json_diff_.c
817
+
818
+$(OBJDIR)/json_diff.o: $(OBJDIR)/json_diff_.c $(OBJDIR)/json_diff.h $(SRCDIR)/config.h
819
+ $(XTCC) -o $(OBJDIR)/json_diff.o -c $(OBJDIR)/json_diff_.c
820
+
821
+json_diff.h: $(OBJDIR)/headers
822
+$(OBJDIR)/json_login_.c: $(SRCDIR)/json_login.c $(OBJDIR)/translate
823
+ $(TRANSLATE) $(SRCDIR)/json_login.c >$(OBJDIR)/json_login_.c
824
+
825
+$(OBJDIR)/json_login.o: $(OBJDIR)/json_login_.c $(OBJDIR)/json_login.h $(SRCDIR)/config.h
826
+ $(XTCC) -o $(OBJDIR)/json_login.o -c $(OBJDIR)/json_login_.c
827
+
828
+json_login.h: $(OBJDIR)/headers
829
+$(OBJDIR)/json_query_.c: $(SRCDIR)/json_query.c $(OBJDIR)/translate
830
+ $(TRANSLATE) $(SRCDIR)/json_query.c >$(OBJDIR)/json_query_.c
831
+
832
+$(OBJDIR)/json_query.o: $(OBJDIR)/json_query_.c $(OBJDIR)/json_query.h $(SRCDIR)/config.h
833
+ $(XTCC) -o $(OBJDIR)/json_query.o -c $(OBJDIR)/json_query_.c
834
+
835
+json_query.h: $(OBJDIR)/headers
836
+$(OBJDIR)/json_report_.c: $(SRCDIR)/json_report.c $(OBJDIR)/translate
837
+ $(TRANSLATE) $(SRCDIR)/json_report.c >$(OBJDIR)/json_report_.c
838
+
839
+$(OBJDIR)/json_report.o: $(OBJDIR)/json_report_.c $(OBJDIR)/json_report.h $(SRCDIR)/config.h
840
+ $(XTCC) -o $(OBJDIR)/json_report.o -c $(OBJDIR)/json_report_.c
841
+
842
+json_report.h: $(OBJDIR)/headers
843
+$(OBJDIR)/json_tag_.c: $(SRCDIR)/json_tag.c $(OBJDIR)/translate
844
+ $(TRANSLATE) $(SRCDIR)/json_tag.c >$(OBJDIR)/json_tag_.c
845
+
846
+$(OBJDIR)/json_tag.o: $(OBJDIR)/json_tag_.c $(OBJDIR)/json_tag.h $(SRCDIR)/config.h
847
+ $(XTCC) -o $(OBJDIR)/json_tag.o -c $(OBJDIR)/json_tag_.c
848
+
849
+json_tag.h: $(OBJDIR)/headers
850
+$(OBJDIR)/json_timeline_.c: $(SRCDIR)/json_timeline.c $(OBJDIR)/translate
851
+ $(TRANSLATE) $(SRCDIR)/json_timeline.c >$(OBJDIR)/json_timeline_.c
852
+
853
+$(OBJDIR)/json_timeline.o: $(OBJDIR)/json_timeline_.c $(OBJDIR)/json_timeline.h $(SRCDIR)/config.h
854
+ $(XTCC) -o $(OBJDIR)/json_timeline.o -c $(OBJDIR)/json_timeline_.c
855
+
856
+json_timeline.h: $(OBJDIR)/headers
857
+$(OBJDIR)/json_user_.c: $(SRCDIR)/json_user.c $(OBJDIR)/translate
858
+ $(TRANSLATE) $(SRCDIR)/json_user.c >$(OBJDIR)/json_user_.c
859
+
860
+$(OBJDIR)/json_user.o: $(OBJDIR)/json_user_.c $(OBJDIR)/json_user.h $(SRCDIR)/config.h
861
+ $(XTCC) -o $(OBJDIR)/json_user.o -c $(OBJDIR)/json_user_.c
862
+
863
+json_user.h: $(OBJDIR)/headers
864
+$(OBJDIR)/json_wiki_.c: $(SRCDIR)/json_wiki.c $(OBJDIR)/translate
865
+ $(TRANSLATE) $(SRCDIR)/json_wiki.c >$(OBJDIR)/json_wiki_.c
866
+
867
+$(OBJDIR)/json_wiki.o: $(OBJDIR)/json_wiki_.c $(OBJDIR)/json_wiki.h $(SRCDIR)/config.h
868
+ $(XTCC) -o $(OBJDIR)/json_wiki.o -c $(OBJDIR)/json_wiki_.c
869
+
870
+json_wiki.h: $(OBJDIR)/headers
728871
$(OBJDIR)/leaf_.c: $(SRCDIR)/leaf.c $(OBJDIR)/translate
729872
$(TRANSLATE) $(SRCDIR)/leaf.c >$(OBJDIR)/leaf_.c
730873
731874
$(OBJDIR)/leaf.o: $(OBJDIR)/leaf_.c $(OBJDIR)/leaf.h $(SRCDIR)/config.h
732875
$(XTCC) -o $(OBJDIR)/leaf.o -c $(OBJDIR)/leaf_.c
@@ -1024,19 +1167,31 @@
10241167
10251168
$(OBJDIR)/xfer.o: $(OBJDIR)/xfer_.c $(OBJDIR)/xfer.h $(SRCDIR)/config.h
10261169
$(XTCC) -o $(OBJDIR)/xfer.o -c $(OBJDIR)/xfer_.c
10271170
10281171
xfer.h: $(OBJDIR)/headers
1172
+$(OBJDIR)/xfersetup_.c: $(SRCDIR)/xfersetup.c $(OBJDIR)/translate
1173
+ $(TRANSLATE) $(SRCDIR)/xfersetup.c >$(OBJDIR)/xfersetup_.c
1174
+
1175
+$(OBJDIR)/xfersetup.o: $(OBJDIR)/xfersetup_.c $(OBJDIR)/xfersetup.h $(SRCDIR)/config.h
1176
+ $(XTCC) -o $(OBJDIR)/xfersetup.o -c $(OBJDIR)/xfersetup_.c
1177
+
1178
+xfersetup.h: $(OBJDIR)/headers
10291179
$(OBJDIR)/zip_.c: $(SRCDIR)/zip.c $(OBJDIR)/translate
10301180
$(TRANSLATE) $(SRCDIR)/zip.c >$(OBJDIR)/zip_.c
10311181
10321182
$(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h
10331183
$(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
10341184
10351185
zip.h: $(OBJDIR)/headers
10361186
$(OBJDIR)/sqlite3.o: $(SRCDIR)/sqlite3.c
1037
- $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT2 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0 -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
1187
+ $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0 -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
1188
+
1189
+$(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
1190
+ $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE
1191
+
1192
+$(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
10381193
10391194
$(OBJDIR)/shell.o: $(SRCDIR)/shell.c $(SRCDIR)/sqlite3.h
10401195
$(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
10411196
10421197
$(OBJDIR)/th.o: $(SRCDIR)/th.c
10431198
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -1,8 +1,16 @@
1 #!/usr/bin/make
2 #
3 # This is a makefile for us on windows using mingw.
 
 
 
 
 
 
 
 
4 #
5 #### The toplevel directory of the source tree. Fossil can be built
6 # in a directory that is separate from the source tree. Just change
7 # the following to point from the build directory to the src/ folder.
8 #
@@ -19,34 +27,36 @@
19 #
20 BCC = gcc
21
22 #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
23 #
24 FOSSIL_ENABLE_SSL=1
25
26 #### Enable scripting support via Tcl/Tk
27 #
28 FOSSIL_ENABLE_TCL=1
29
30 #### Use the Tcl source directory instead of the install directory?
31 # This is useful when Tcl has been compiled statically with MinGW.
32 #
33 FOSSIL_TCL_SOURCE=1
34
35 #### The directory where the zlib library source code is located.
36 # The recommended usage here is to use the Sysinternals junction tool
37 # to create a hard link between an "zlib-1.x.y" sub-directory of the
38 # Fossil source code directory and the target zlib source directory.
39 #
 
40 ZLIBDIR = $(SRCDIR)/../zlib-1.2.5
41
42 #### The directory where the OpenSSL library source code is located.
43 # The recommended usage here is to use the Sysinternals junction tool
44 # to create a hard link between an "openssl-1.x" sub-directory of the
45 # Fossil source code directory and the target OpenSSL source directory.
46 #
47 OPENSSLDIR = $(SRCDIR)/../openssl-1.0.0e
 
48
49 #### Either the directory where the Tcl library is installed or the Tcl
50 # source code directory resides (depending on the value of the macro
51 # FOSSIL_TCL_SOURCE). If this points to the Tcl install directory,
52 # this directory must have "include" and "lib" sub-directories. If
@@ -56,30 +66,46 @@
56 # link between a "tcl-8.x" sub-directory of the Fossil source code
57 # directory and the target Tcl directory. This removes the need to
58 # hard-code the necessary paths in this Makefile.
59 #
60 TCLDIR = $(SRCDIR)/../tcl-8.6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
62 #### C Compile and options for use in building executables that
63 # will run on the target platform. This is usually the same
64 # as BCC, unless you are cross-compiling. This C compiler builds
65 # the finished binary for fossil. The BCC compiler above is used
66 # for building intermediate code-generator tools.
67 #
68 TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZLIBDIR)
69
70 # With HTTPS support
71 ifdef FOSSIL_ENABLE_SSL
72 TCC += -L$(OPENSSLDIR) -I$(OPENSSLDIR)/include
73 endif
74
75 # With Tcl support
76 ifdef FOSSIL_ENABLE_TCL
77 ifdef FOSSIL_TCL_SOURCE
78 TCC += -L$(TCLDIR)/win -I$(TCLDIR)/generic -I$(TCLDIR)/win
79 else
80 TCC += -L$(TCLDIR)/lib -I$(TCLDIR)/include
81 endif
82 endif
83
84 # With HTTPS support
85 ifdef FOSSIL_ENABLE_SSL
@@ -98,33 +124,37 @@
98 # chroot jail.
99 #
100 LIB = -static
101 LIB += -lmingwex -lz
102
103 # OpenSSL: Add the necessary libaries required.
104 ifdef FOSSIL_ENABLE_SSL
105 LIB += -lssl -lcrypto -lgdi32
106 endif
107
108 # Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)?
109 ifdef FOSSIL_ENABLE_TCL
110 LIB += -ltcl86
111 endif
112
113 #### These libraries MUST appear in the same order as they do for Tcl
114 # or linking with it will not work (exact reason unknown).
115 #
 
116 LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32
 
 
 
117
118 #### Tcl shell for use in running the fossil testsuite. This is only
119 # used for testing. If you do not run
120 #
121 TCLSH = tclsh
122
123 #### Nullsoft installer makensis location
124 #
125 MAKENSIS = "c:\Program Files\NSIS\makensis.exe"
126
127 #### Include a configuration file that can override any one of these settings.
128 #
129 -include config.w32
130
@@ -170,10 +200,21 @@
170 $(SRCDIR)/http_socket.c \
171 $(SRCDIR)/http_ssl.c \
172 $(SRCDIR)/http_transport.c \
173 $(SRCDIR)/import.c \
174 $(SRCDIR)/info.c \
 
 
 
 
 
 
 
 
 
 
 
175 $(SRCDIR)/leaf.c \
176 $(SRCDIR)/login.c \
177 $(SRCDIR)/main.c \
178 $(SRCDIR)/manifest.c \
179 $(SRCDIR)/md5.c \
@@ -213,10 +254,11 @@
213 $(SRCDIR)/vfile.c \
214 $(SRCDIR)/wiki.c \
215 $(SRCDIR)/wikiformat.c \
216 $(SRCDIR)/winhttp.c \
217 $(SRCDIR)/xfer.c \
 
218 $(SRCDIR)/zip.c
219
220 TRANS_SRC = \
221 $(OBJDIR)/add_.c \
222 $(OBJDIR)/allrepo_.c \
@@ -254,10 +296,21 @@
254 $(OBJDIR)/http_socket_.c \
255 $(OBJDIR)/http_ssl_.c \
256 $(OBJDIR)/http_transport_.c \
257 $(OBJDIR)/import_.c \
258 $(OBJDIR)/info_.c \
 
 
 
 
 
 
 
 
 
 
 
259 $(OBJDIR)/leaf_.c \
260 $(OBJDIR)/login_.c \
261 $(OBJDIR)/main_.c \
262 $(OBJDIR)/manifest_.c \
263 $(OBJDIR)/md5_.c \
@@ -297,10 +350,11 @@
297 $(OBJDIR)/vfile_.c \
298 $(OBJDIR)/wiki_.c \
299 $(OBJDIR)/wikiformat_.c \
300 $(OBJDIR)/winhttp_.c \
301 $(OBJDIR)/xfer_.c \
 
302 $(OBJDIR)/zip_.c
303
304 OBJ = \
305 $(OBJDIR)/add.o \
306 $(OBJDIR)/allrepo.o \
@@ -338,10 +392,21 @@
338 $(OBJDIR)/http_socket.o \
339 $(OBJDIR)/http_ssl.o \
340 $(OBJDIR)/http_transport.o \
341 $(OBJDIR)/import.o \
342 $(OBJDIR)/info.o \
 
 
 
 
 
 
 
 
 
 
 
343 $(OBJDIR)/leaf.o \
344 $(OBJDIR)/login.o \
345 $(OBJDIR)/main.o \
346 $(OBJDIR)/manifest.o \
347 $(OBJDIR)/md5.o \
@@ -381,10 +446,11 @@
381 $(OBJDIR)/vfile.o \
382 $(OBJDIR)/wiki.o \
383 $(OBJDIR)/wikiformat.o \
384 $(OBJDIR)/winhttp.o \
385 $(OBJDIR)/xfer.o \
 
386 $(OBJDIR)/zip.o
387
388 APPNAME = fossil.exe
389 TRANSLATE = $(subst /,\\,$(OBJDIR)/translate.exe)
390 MAKEHEADERS = $(subst /,\\,$(OBJDIR)/makeheaders.exe)
@@ -414,20 +480,20 @@
414 $(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
415
416 $(VERSION): $(SRCDIR)/mkversion.c
417 $(BCC) -o $(OBJDIR)/version $(SRCDIR)/mkversion.c
418
419 # WARNING. DANGER. Running the testsuite modifies the repository the
420 # build is done from, i.e. the checkout belongs to. Do not sync/push
421 # the repository after running the tests.
422 test: $(OBJDIR) $(APPNAME)
423 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
424
425 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
426 $(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
427
428 EXTRAOBJ = $(OBJDIR)/sqlite3.o $(OBJDIR)/shell.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o
429
430 ifdef FOSSIL_ENABLE_TCL
431 EXTRAOBJ += $(OBJDIR)/th_tcl.o
432 endif
433
@@ -438,11 +504,11 @@
438 # an executable named "manifest" out of the file named "manifest.c"
439 #
440 $(SRCDIR)/../manifest:
441 # noop
442
443 # Requires msys to be installed in addition to the mingw, for the "rm"
444 # command. "del" will not work here because it is not a separate command
445 # but a MSDOS-shell builtin.
446 #
447 clean:
448 rm -rf $(OBJDIR) $(APPNAME)
@@ -452,11 +518,11 @@
452
453
454 $(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
455 $(MKINDEX) $(TRANS_SRC) >$@
456 $(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
457 $(MAKEHEADERS) $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/glob_.c:$(OBJDIR)/glob.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/gzip_.c:$(OBJDIR)/gzip.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/path_.c:$(OBJDIR)/path.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/tar_.c:$(OBJDIR)/tar.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
458 echo Done >$(OBJDIR)/headers
459
460 $(OBJDIR)/headers: Makefile
461 Makefile:
462 $(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
@@ -723,10 +789,87 @@
723
724 $(OBJDIR)/info.o: $(OBJDIR)/info_.c $(OBJDIR)/info.h $(SRCDIR)/config.h
725 $(XTCC) -o $(OBJDIR)/info.o -c $(OBJDIR)/info_.c
726
727 info.h: $(OBJDIR)/headers
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
728 $(OBJDIR)/leaf_.c: $(SRCDIR)/leaf.c $(OBJDIR)/translate
729 $(TRANSLATE) $(SRCDIR)/leaf.c >$(OBJDIR)/leaf_.c
730
731 $(OBJDIR)/leaf.o: $(OBJDIR)/leaf_.c $(OBJDIR)/leaf.h $(SRCDIR)/config.h
732 $(XTCC) -o $(OBJDIR)/leaf.o -c $(OBJDIR)/leaf_.c
@@ -1024,19 +1167,31 @@
1024
1025 $(OBJDIR)/xfer.o: $(OBJDIR)/xfer_.c $(OBJDIR)/xfer.h $(SRCDIR)/config.h
1026 $(XTCC) -o $(OBJDIR)/xfer.o -c $(OBJDIR)/xfer_.c
1027
1028 xfer.h: $(OBJDIR)/headers
 
 
 
 
 
 
 
1029 $(OBJDIR)/zip_.c: $(SRCDIR)/zip.c $(OBJDIR)/translate
1030 $(TRANSLATE) $(SRCDIR)/zip.c >$(OBJDIR)/zip_.c
1031
1032 $(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h
1033 $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
1034
1035 zip.h: $(OBJDIR)/headers
1036 $(OBJDIR)/sqlite3.o: $(SRCDIR)/sqlite3.c
1037 $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT2 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0 -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
 
 
 
 
 
1038
1039 $(OBJDIR)/shell.o: $(SRCDIR)/shell.c $(SRCDIR)/sqlite3.h
1040 $(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
1041
1042 $(OBJDIR)/th.o: $(SRCDIR)/th.c
1043
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -1,8 +1,16 @@
1 #!/usr/bin/make
2 #
3 ##############################################################################
4 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
5 ##############################################################################
6 #
7 # This file is automatically generated. Instead of editing this
8 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
9 # to regenerate this file.
10 #
11 # This is a makefile for us on windows using MinGW.
12 #
13 #### The toplevel directory of the source tree. Fossil can be built
14 # in a directory that is separate from the source tree. Just change
15 # the following to point from the build directory to the src/ folder.
16 #
@@ -19,34 +27,36 @@
27 #
28 BCC = gcc
29
30 #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
31 #
32 FOSSIL_ENABLE_SSL = 1
33
34 #### Enable scripting support via Tcl/Tk
35 #
36 FOSSIL_ENABLE_TCL = 1
37
38 #### Use the Tcl source directory instead of the install directory?
39 # This is useful when Tcl has been compiled statically with MinGW.
40 #
41 FOSSIL_TCL_SOURCE = 1
42
43 #### The directories where the zlib include and library files are located.
44 # The recommended usage here is to use the Sysinternals junction tool
45 # to create a hard link between an "zlib-1.x.y" sub-directory of the
46 # Fossil source code directory and the target zlib source directory.
47 #
48 ZINCDIR = $(SRCDIR)/../zlib-1.2.5
49 ZLIBDIR = $(SRCDIR)/../zlib-1.2.5
50
51 #### The directories where the OpenSSL include and library files are located.
52 # The recommended usage here is to use the Sysinternals junction tool
53 # to create a hard link between an "openssl-1.x" sub-directory of the
54 # Fossil source code directory and the target OpenSSL source directory.
55 #
56 OPENSSLINCDIR = $(SRCDIR)/../openssl-1.0.0e/include
57 OPENSSLLIBDIR = $(SRCDIR)/../openssl-1.0.0e
58
59 #### Either the directory where the Tcl library is installed or the Tcl
60 # source code directory resides (depending on the value of the macro
61 # FOSSIL_TCL_SOURCE). If this points to the Tcl install directory,
62 # this directory must have "include" and "lib" sub-directories. If
@@ -56,30 +66,46 @@
66 # link between a "tcl-8.x" sub-directory of the Fossil source code
67 # directory and the target Tcl directory. This removes the need to
68 # hard-code the necessary paths in this Makefile.
69 #
70 TCLDIR = $(SRCDIR)/../tcl-8.6
71
72 #### The Tcl source code directory. This defaults to the same value as
73 # TCLDIR macro (above), which may not be correct. This value will
74 # only be used if the FOSSIL_TCL_SOURCE macro is defined.
75 #
76 TCLSRCDIR = $(TCLDIR)
77
78 #### The Tcl include and library directories. These values will only be
79 # used if the FOSSIL_TCL_SOURCE macro is not defined.
80 #
81 TCLINCDIR = $(TCLDIR)/include
82 TCLLIBDIR = $(TCLDIR)/lib
83
84 #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)?
85 #
86 LIBTCL = -ltcl86
87
88 #### C Compile and options for use in building executables that
89 # will run on the target platform. This is usually the same
90 # as BCC, unless you are cross-compiling. This C compiler builds
91 # the finished binary for fossil. The BCC compiler above is used
92 # for building intermediate code-generator tools.
93 #
94 TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
95
96 # With HTTPS support
97 ifdef FOSSIL_ENABLE_SSL
98 TCC += -L$(OPENSSLLIBDIR) -I$(OPENSSLINCDIR)
99 endif
100
101 # With Tcl support
102 ifdef FOSSIL_ENABLE_TCL
103 ifdef FOSSIL_TCL_SOURCE
104 TCC += -L$(TCLSRCDIR)/win -I$(TCLSRCDIR)/generic -I$(TCLSRCDIR)/win
105 else
106 TCC += -L$(TCLLIBDIR) -I$(TCLINCDIR)
107 endif
108 endif
109
110 # With HTTPS support
111 ifdef FOSSIL_ENABLE_SSL
@@ -98,33 +124,37 @@
124 # chroot jail.
125 #
126 LIB = -static
127 LIB += -lmingwex -lz
128
129 # OpenSSL: Add the necessary libaries required, if enabled.
130 ifdef FOSSIL_ENABLE_SSL
131 LIB += -lssl -lcrypto -lgdi32
132 endif
133
134 # Tcl: Add the necessary libaries required, if enabled.
135 ifdef FOSSIL_ENABLE_TCL
136 LIB += $(LIBTCL)
137 endif
138
139 #### These libraries MUST appear in the same order as they do for Tcl
140 # or linking with it will not work (exact reason unknown).
141 #
142 ifdef FOSSIL_ENABLE_TCL
143 LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32
144 else
145 LIB += -lws2_32
146 endif
147
148 #### Tcl shell for use in running the fossil test suite. This is only
149 # used for testing.
150 #
151 TCLSH = tclsh
152
153 #### Nullsoft installer MakeNSIS location
154 #
155 MAKENSIS = "$(ProgramFiles)\NSIS\MakeNSIS.exe"
156
157 #### Include a configuration file that can override any one of these settings.
158 #
159 -include config.w32
160
@@ -170,10 +200,21 @@
200 $(SRCDIR)/http_socket.c \
201 $(SRCDIR)/http_ssl.c \
202 $(SRCDIR)/http_transport.c \
203 $(SRCDIR)/import.c \
204 $(SRCDIR)/info.c \
205 $(SRCDIR)/json.c \
206 $(SRCDIR)/json_artifact.c \
207 $(SRCDIR)/json_branch.c \
208 $(SRCDIR)/json_diff.c \
209 $(SRCDIR)/json_login.c \
210 $(SRCDIR)/json_query.c \
211 $(SRCDIR)/json_report.c \
212 $(SRCDIR)/json_tag.c \
213 $(SRCDIR)/json_timeline.c \
214 $(SRCDIR)/json_user.c \
215 $(SRCDIR)/json_wiki.c \
216 $(SRCDIR)/leaf.c \
217 $(SRCDIR)/login.c \
218 $(SRCDIR)/main.c \
219 $(SRCDIR)/manifest.c \
220 $(SRCDIR)/md5.c \
@@ -213,10 +254,11 @@
254 $(SRCDIR)/vfile.c \
255 $(SRCDIR)/wiki.c \
256 $(SRCDIR)/wikiformat.c \
257 $(SRCDIR)/winhttp.c \
258 $(SRCDIR)/xfer.c \
259 $(SRCDIR)/xfersetup.c \
260 $(SRCDIR)/zip.c
261
262 TRANS_SRC = \
263 $(OBJDIR)/add_.c \
264 $(OBJDIR)/allrepo_.c \
@@ -254,10 +296,21 @@
296 $(OBJDIR)/http_socket_.c \
297 $(OBJDIR)/http_ssl_.c \
298 $(OBJDIR)/http_transport_.c \
299 $(OBJDIR)/import_.c \
300 $(OBJDIR)/info_.c \
301 $(OBJDIR)/json_.c \
302 $(OBJDIR)/json_artifact_.c \
303 $(OBJDIR)/json_branch_.c \
304 $(OBJDIR)/json_diff_.c \
305 $(OBJDIR)/json_login_.c \
306 $(OBJDIR)/json_query_.c \
307 $(OBJDIR)/json_report_.c \
308 $(OBJDIR)/json_tag_.c \
309 $(OBJDIR)/json_timeline_.c \
310 $(OBJDIR)/json_user_.c \
311 $(OBJDIR)/json_wiki_.c \
312 $(OBJDIR)/leaf_.c \
313 $(OBJDIR)/login_.c \
314 $(OBJDIR)/main_.c \
315 $(OBJDIR)/manifest_.c \
316 $(OBJDIR)/md5_.c \
@@ -297,10 +350,11 @@
350 $(OBJDIR)/vfile_.c \
351 $(OBJDIR)/wiki_.c \
352 $(OBJDIR)/wikiformat_.c \
353 $(OBJDIR)/winhttp_.c \
354 $(OBJDIR)/xfer_.c \
355 $(OBJDIR)/xfersetup_.c \
356 $(OBJDIR)/zip_.c
357
358 OBJ = \
359 $(OBJDIR)/add.o \
360 $(OBJDIR)/allrepo.o \
@@ -338,10 +392,21 @@
392 $(OBJDIR)/http_socket.o \
393 $(OBJDIR)/http_ssl.o \
394 $(OBJDIR)/http_transport.o \
395 $(OBJDIR)/import.o \
396 $(OBJDIR)/info.o \
397 $(OBJDIR)/json.o \
398 $(OBJDIR)/json_artifact.o \
399 $(OBJDIR)/json_branch.o \
400 $(OBJDIR)/json_diff.o \
401 $(OBJDIR)/json_login.o \
402 $(OBJDIR)/json_query.o \
403 $(OBJDIR)/json_report.o \
404 $(OBJDIR)/json_tag.o \
405 $(OBJDIR)/json_timeline.o \
406 $(OBJDIR)/json_user.o \
407 $(OBJDIR)/json_wiki.o \
408 $(OBJDIR)/leaf.o \
409 $(OBJDIR)/login.o \
410 $(OBJDIR)/main.o \
411 $(OBJDIR)/manifest.o \
412 $(OBJDIR)/md5.o \
@@ -381,10 +446,11 @@
446 $(OBJDIR)/vfile.o \
447 $(OBJDIR)/wiki.o \
448 $(OBJDIR)/wikiformat.o \
449 $(OBJDIR)/winhttp.o \
450 $(OBJDIR)/xfer.o \
451 $(OBJDIR)/xfersetup.o \
452 $(OBJDIR)/zip.o
453
454 APPNAME = fossil.exe
455 TRANSLATE = $(subst /,\\,$(OBJDIR)/translate.exe)
456 MAKEHEADERS = $(subst /,\\,$(OBJDIR)/makeheaders.exe)
@@ -414,20 +480,20 @@
480 $(BCC) -o $(OBJDIR)/mkindex $(SRCDIR)/mkindex.c
481
482 $(VERSION): $(SRCDIR)/mkversion.c
483 $(BCC) -o $(OBJDIR)/version $(SRCDIR)/mkversion.c
484
485 # WARNING. DANGER. Running the test suite modifies the repository the
486 # build is done from, i.e. the checkout belongs to. Do not sync/push
487 # the repository after running the tests.
488 test: $(OBJDIR) $(APPNAME)
489 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
490
491 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
492 $(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
493
494 EXTRAOBJ = $(OBJDIR)/sqlite3.o $(OBJDIR)/shell.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(OBJDIR)/cson_amalgamation.o
495
496 ifdef FOSSIL_ENABLE_TCL
497 EXTRAOBJ += $(OBJDIR)/th_tcl.o
498 endif
499
@@ -438,11 +504,11 @@
504 # an executable named "manifest" out of the file named "manifest.c"
505 #
506 $(SRCDIR)/../manifest:
507 # noop
508
509 # Requires MSYS to be installed in addition to the MinGW, for the "rm"
510 # command. "del" will not work here because it is not a separate command
511 # but a MSDOS-shell builtin.
512 #
513 clean:
514 rm -rf $(OBJDIR) $(APPNAME)
@@ -452,11 +518,11 @@
518
519
520 $(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
521 $(MKINDEX) $(TRANS_SRC) >$@
522 $(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
523 $(MAKEHEADERS) $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/glob_.c:$(OBJDIR)/glob.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/gzip_.c:$(OBJDIR)/gzip.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/json_.c:$(OBJDIR)/json.h $(OBJDIR)/json_artifact_.c:$(OBJDIR)/json_artifact.h $(OBJDIR)/json_branch_.c:$(OBJDIR)/json_branch.h $(OBJDIR)/json_diff_.c:$(OBJDIR)/json_diff.h $(OBJDIR)/json_login_.c:$(OBJDIR)/json_login.h $(OBJDIR)/json_query_.c:$(OBJDIR)/json_query.h $(OBJDIR)/json_report_.c:$(OBJDIR)/json_report.h $(OBJDIR)/json_tag_.c:$(OBJDIR)/json_tag.h $(OBJDIR)/json_timeline_.c:$(OBJDIR)/json_timeline.h $(OBJDIR)/json_user_.c:$(OBJDIR)/json_user.h $(OBJDIR)/json_wiki_.c:$(OBJDIR)/json_wiki.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/path_.c:$(OBJDIR)/path.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/tar_.c:$(OBJDIR)/tar.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/xfersetup_.c:$(OBJDIR)/xfersetup.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
524 echo Done >$(OBJDIR)/headers
525
526 $(OBJDIR)/headers: Makefile
527 Makefile:
528 $(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
@@ -723,10 +789,87 @@
789
790 $(OBJDIR)/info.o: $(OBJDIR)/info_.c $(OBJDIR)/info.h $(SRCDIR)/config.h
791 $(XTCC) -o $(OBJDIR)/info.o -c $(OBJDIR)/info_.c
792
793 info.h: $(OBJDIR)/headers
794 $(OBJDIR)/json_.c: $(SRCDIR)/json.c $(OBJDIR)/translate
795 $(TRANSLATE) $(SRCDIR)/json.c >$(OBJDIR)/json_.c
796
797 $(OBJDIR)/json.o: $(OBJDIR)/json_.c $(OBJDIR)/json.h $(SRCDIR)/config.h
798 $(XTCC) -o $(OBJDIR)/json.o -c $(OBJDIR)/json_.c
799
800 json.h: $(OBJDIR)/headers
801 $(OBJDIR)/json_artifact_.c: $(SRCDIR)/json_artifact.c $(OBJDIR)/translate
802 $(TRANSLATE) $(SRCDIR)/json_artifact.c >$(OBJDIR)/json_artifact_.c
803
804 $(OBJDIR)/json_artifact.o: $(OBJDIR)/json_artifact_.c $(OBJDIR)/json_artifact.h $(SRCDIR)/config.h
805 $(XTCC) -o $(OBJDIR)/json_artifact.o -c $(OBJDIR)/json_artifact_.c
806
807 json_artifact.h: $(OBJDIR)/headers
808 $(OBJDIR)/json_branch_.c: $(SRCDIR)/json_branch.c $(OBJDIR)/translate
809 $(TRANSLATE) $(SRCDIR)/json_branch.c >$(OBJDIR)/json_branch_.c
810
811 $(OBJDIR)/json_branch.o: $(OBJDIR)/json_branch_.c $(OBJDIR)/json_branch.h $(SRCDIR)/config.h
812 $(XTCC) -o $(OBJDIR)/json_branch.o -c $(OBJDIR)/json_branch_.c
813
814 json_branch.h: $(OBJDIR)/headers
815 $(OBJDIR)/json_diff_.c: $(SRCDIR)/json_diff.c $(OBJDIR)/translate
816 $(TRANSLATE) $(SRCDIR)/json_diff.c >$(OBJDIR)/json_diff_.c
817
818 $(OBJDIR)/json_diff.o: $(OBJDIR)/json_diff_.c $(OBJDIR)/json_diff.h $(SRCDIR)/config.h
819 $(XTCC) -o $(OBJDIR)/json_diff.o -c $(OBJDIR)/json_diff_.c
820
821 json_diff.h: $(OBJDIR)/headers
822 $(OBJDIR)/json_login_.c: $(SRCDIR)/json_login.c $(OBJDIR)/translate
823 $(TRANSLATE) $(SRCDIR)/json_login.c >$(OBJDIR)/json_login_.c
824
825 $(OBJDIR)/json_login.o: $(OBJDIR)/json_login_.c $(OBJDIR)/json_login.h $(SRCDIR)/config.h
826 $(XTCC) -o $(OBJDIR)/json_login.o -c $(OBJDIR)/json_login_.c
827
828 json_login.h: $(OBJDIR)/headers
829 $(OBJDIR)/json_query_.c: $(SRCDIR)/json_query.c $(OBJDIR)/translate
830 $(TRANSLATE) $(SRCDIR)/json_query.c >$(OBJDIR)/json_query_.c
831
832 $(OBJDIR)/json_query.o: $(OBJDIR)/json_query_.c $(OBJDIR)/json_query.h $(SRCDIR)/config.h
833 $(XTCC) -o $(OBJDIR)/json_query.o -c $(OBJDIR)/json_query_.c
834
835 json_query.h: $(OBJDIR)/headers
836 $(OBJDIR)/json_report_.c: $(SRCDIR)/json_report.c $(OBJDIR)/translate
837 $(TRANSLATE) $(SRCDIR)/json_report.c >$(OBJDIR)/json_report_.c
838
839 $(OBJDIR)/json_report.o: $(OBJDIR)/json_report_.c $(OBJDIR)/json_report.h $(SRCDIR)/config.h
840 $(XTCC) -o $(OBJDIR)/json_report.o -c $(OBJDIR)/json_report_.c
841
842 json_report.h: $(OBJDIR)/headers
843 $(OBJDIR)/json_tag_.c: $(SRCDIR)/json_tag.c $(OBJDIR)/translate
844 $(TRANSLATE) $(SRCDIR)/json_tag.c >$(OBJDIR)/json_tag_.c
845
846 $(OBJDIR)/json_tag.o: $(OBJDIR)/json_tag_.c $(OBJDIR)/json_tag.h $(SRCDIR)/config.h
847 $(XTCC) -o $(OBJDIR)/json_tag.o -c $(OBJDIR)/json_tag_.c
848
849 json_tag.h: $(OBJDIR)/headers
850 $(OBJDIR)/json_timeline_.c: $(SRCDIR)/json_timeline.c $(OBJDIR)/translate
851 $(TRANSLATE) $(SRCDIR)/json_timeline.c >$(OBJDIR)/json_timeline_.c
852
853 $(OBJDIR)/json_timeline.o: $(OBJDIR)/json_timeline_.c $(OBJDIR)/json_timeline.h $(SRCDIR)/config.h
854 $(XTCC) -o $(OBJDIR)/json_timeline.o -c $(OBJDIR)/json_timeline_.c
855
856 json_timeline.h: $(OBJDIR)/headers
857 $(OBJDIR)/json_user_.c: $(SRCDIR)/json_user.c $(OBJDIR)/translate
858 $(TRANSLATE) $(SRCDIR)/json_user.c >$(OBJDIR)/json_user_.c
859
860 $(OBJDIR)/json_user.o: $(OBJDIR)/json_user_.c $(OBJDIR)/json_user.h $(SRCDIR)/config.h
861 $(XTCC) -o $(OBJDIR)/json_user.o -c $(OBJDIR)/json_user_.c
862
863 json_user.h: $(OBJDIR)/headers
864 $(OBJDIR)/json_wiki_.c: $(SRCDIR)/json_wiki.c $(OBJDIR)/translate
865 $(TRANSLATE) $(SRCDIR)/json_wiki.c >$(OBJDIR)/json_wiki_.c
866
867 $(OBJDIR)/json_wiki.o: $(OBJDIR)/json_wiki_.c $(OBJDIR)/json_wiki.h $(SRCDIR)/config.h
868 $(XTCC) -o $(OBJDIR)/json_wiki.o -c $(OBJDIR)/json_wiki_.c
869
870 json_wiki.h: $(OBJDIR)/headers
871 $(OBJDIR)/leaf_.c: $(SRCDIR)/leaf.c $(OBJDIR)/translate
872 $(TRANSLATE) $(SRCDIR)/leaf.c >$(OBJDIR)/leaf_.c
873
874 $(OBJDIR)/leaf.o: $(OBJDIR)/leaf_.c $(OBJDIR)/leaf.h $(SRCDIR)/config.h
875 $(XTCC) -o $(OBJDIR)/leaf.o -c $(OBJDIR)/leaf_.c
@@ -1024,19 +1167,31 @@
1167
1168 $(OBJDIR)/xfer.o: $(OBJDIR)/xfer_.c $(OBJDIR)/xfer.h $(SRCDIR)/config.h
1169 $(XTCC) -o $(OBJDIR)/xfer.o -c $(OBJDIR)/xfer_.c
1170
1171 xfer.h: $(OBJDIR)/headers
1172 $(OBJDIR)/xfersetup_.c: $(SRCDIR)/xfersetup.c $(OBJDIR)/translate
1173 $(TRANSLATE) $(SRCDIR)/xfersetup.c >$(OBJDIR)/xfersetup_.c
1174
1175 $(OBJDIR)/xfersetup.o: $(OBJDIR)/xfersetup_.c $(OBJDIR)/xfersetup.h $(SRCDIR)/config.h
1176 $(XTCC) -o $(OBJDIR)/xfersetup.o -c $(OBJDIR)/xfersetup_.c
1177
1178 xfersetup.h: $(OBJDIR)/headers
1179 $(OBJDIR)/zip_.c: $(SRCDIR)/zip.c $(OBJDIR)/translate
1180 $(TRANSLATE) $(SRCDIR)/zip.c >$(OBJDIR)/zip_.c
1181
1182 $(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h
1183 $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
1184
1185 zip.h: $(OBJDIR)/headers
1186 $(OBJDIR)/sqlite3.o: $(SRCDIR)/sqlite3.c
1187 $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0 -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
1188
1189 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
1190 $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE
1191
1192 $(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
1193
1194 $(OBJDIR)/shell.o: $(SRCDIR)/shell.c $(SRCDIR)/sqlite3.h
1195 $(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
1196
1197 $(OBJDIR)/th.o: $(SRCDIR)/th.c
1198
+16 -5
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -1,10 +1,14 @@
1
-# DO NOT EDIT
1
+#
2
+##############################################################################
3
+# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
4
+##############################################################################
25
#
36
# This file is automatically generated. Instead of editing this
4
-# file, edit "makemake.tcl" then run "tclsh src/makemake.tcl"
7
+# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
58
# to regenerate this file.
9
+#
610
B = ..
711
SRCDIR = $B\src
812
OBJDIR = .
913
OX = .
1014
O = .obj
@@ -36,13 +40,13 @@
3640
LIBS = $(ZLIB) ws2_32.lib advapi32.lib $(SSLLIB)
3741
LIBDIR = -LIBPATH:$(MSCDIR)\extra\lib -LIBPATH:$(ZLIBDIR)
3842
3943
SQLITE_OPTIONS = /DSQLITE_OMIT_LOAD_EXTENSION=1 /DSQLITE_THREADSAFE=0 /DSQLITE_DEFAULT_FILE_FORMAT=4 /DSQLITE_ENABLE_STAT3 /Dlocaltime=fossil_localtime /DSQLITE_ENABLE_LOCKING_STYLE=0
4044
41
-SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c glob_.c graph_.c gzip_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c json_.c json_artifact_.c json_branch_.c json_diff_.c json_login_.c json_query_.c json_report_.c json_tag_.c json_timeline_.c json_user_.c json_wiki_.c leaf_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c path_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c tar_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
45
+SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c glob_.c graph_.c gzip_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c json_.c json_artifact_.c json_branch_.c json_diff_.c json_login_.c json_query_.c json_report_.c json_tag_.c json_timeline_.c json_user_.c json_wiki_.c leaf_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c path_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c tar_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c xfersetup_.c zip_.c
4246
43
-OBJ = $(OX)\add$O $(OX)\allrepo$O $(OX)\attach$O $(OX)\bag$O $(OX)\bisect$O $(OX)\blob$O $(OX)\branch$O $(OX)\browse$O $(OX)\captcha$O $(OX)\cgi$O $(OX)\checkin$O $(OX)\checkout$O $(OX)\clearsign$O $(OX)\clone$O $(OX)\comformat$O $(OX)\configure$O $(OX)\content$O $(OX)\db$O $(OX)\delta$O $(OX)\deltacmd$O $(OX)\descendants$O $(OX)\diff$O $(OX)\diffcmd$O $(OX)\doc$O $(OX)\encode$O $(OX)\event$O $(OX)\export$O $(OX)\file$O $(OX)\finfo$O $(OX)\glob$O $(OX)\graph$O $(OX)\gzip$O $(OX)\http$O $(OX)\http_socket$O $(OX)\http_ssl$O $(OX)\http_transport$O $(OX)\import$O $(OX)\info$O $(OX)\json$O $(OX)\json_artifact$O $(OX)\json_branch$O $(OX)\json_diff$O $(OX)\json_login$O $(OX)\json_query$O $(OX)\json_report$O $(OX)\json_tag$O $(OX)\json_timeline$O $(OX)\json_user$O $(OX)\json_wiki$O $(OX)\leaf$O $(OX)\login$O $(OX)\main$O $(OX)\manifest$O $(OX)\md5$O $(OX)\merge$O $(OX)\merge3$O $(OX)\name$O $(OX)\path$O $(OX)\pivot$O $(OX)\popen$O $(OX)\pqueue$O $(OX)\printf$O $(OX)\rebuild$O $(OX)\report$O $(OX)\rss$O $(OX)\schema$O $(OX)\search$O $(OX)\setup$O $(OX)\sha1$O $(OX)\shun$O $(OX)\skins$O $(OX)\sqlcmd$O $(OX)\stash$O $(OX)\stat$O $(OX)\style$O $(OX)\sync$O $(OX)\tag$O $(OX)\tar$O $(OX)\th_main$O $(OX)\timeline$O $(OX)\tkt$O $(OX)\tktsetup$O $(OX)\undo$O $(OX)\update$O $(OX)\url$O $(OX)\user$O $(OX)\verify$O $(OX)\vfile$O $(OX)\wiki$O $(OX)\wikiformat$O $(OX)\winhttp$O $(OX)\xfer$O $(OX)\zip$O $(OX)\shell$O $(OX)\sqlite3$O $(OX)\th$O $(OX)\th_lang$O
47
+OBJ = $(OX)\add$O $(OX)\allrepo$O $(OX)\attach$O $(OX)\bag$O $(OX)\bisect$O $(OX)\blob$O $(OX)\branch$O $(OX)\browse$O $(OX)\captcha$O $(OX)\cgi$O $(OX)\checkin$O $(OX)\checkout$O $(OX)\clearsign$O $(OX)\clone$O $(OX)\comformat$O $(OX)\configure$O $(OX)\content$O $(OX)\db$O $(OX)\delta$O $(OX)\deltacmd$O $(OX)\descendants$O $(OX)\diff$O $(OX)\diffcmd$O $(OX)\doc$O $(OX)\encode$O $(OX)\event$O $(OX)\export$O $(OX)\file$O $(OX)\finfo$O $(OX)\glob$O $(OX)\graph$O $(OX)\gzip$O $(OX)\http$O $(OX)\http_socket$O $(OX)\http_ssl$O $(OX)\http_transport$O $(OX)\import$O $(OX)\info$O $(OX)\json$O $(OX)\json_artifact$O $(OX)\json_branch$O $(OX)\json_diff$O $(OX)\json_login$O $(OX)\json_query$O $(OX)\json_report$O $(OX)\json_tag$O $(OX)\json_timeline$O $(OX)\json_user$O $(OX)\json_wiki$O $(OX)\leaf$O $(OX)\login$O $(OX)\main$O $(OX)\manifest$O $(OX)\md5$O $(OX)\merge$O $(OX)\merge3$O $(OX)\name$O $(OX)\path$O $(OX)\pivot$O $(OX)\popen$O $(OX)\pqueue$O $(OX)\printf$O $(OX)\rebuild$O $(OX)\report$O $(OX)\rss$O $(OX)\schema$O $(OX)\search$O $(OX)\setup$O $(OX)\sha1$O $(OX)\shun$O $(OX)\skins$O $(OX)\sqlcmd$O $(OX)\stash$O $(OX)\stat$O $(OX)\style$O $(OX)\sync$O $(OX)\tag$O $(OX)\tar$O $(OX)\th_main$O $(OX)\timeline$O $(OX)\tkt$O $(OX)\tktsetup$O $(OX)\undo$O $(OX)\update$O $(OX)\url$O $(OX)\user$O $(OX)\verify$O $(OX)\vfile$O $(OX)\wiki$O $(OX)\wikiformat$O $(OX)\winhttp$O $(OX)\xfer$O $(OX)\xfersetup$O $(OX)\zip$O $(OX)\shell$O $(OX)\sqlite3$O $(OX)\th$O $(OX)\th_lang$O
4448
4549
4650
APPNAME = $(OX)\fossil$(E)
4751
4852
all: $(OX) $(APPNAME)
@@ -146,10 +150,11 @@
146150
echo $(OX)\vfile.obj >> $@
147151
echo $(OX)\wiki.obj >> $@
148152
echo $(OX)\wikiformat.obj >> $@
149153
echo $(OX)\winhttp.obj >> $@
150154
echo $(OX)\xfer.obj >> $@
155
+ echo $(OX)\xfersetup.obj >> $@
151156
echo $(OX)\zip.obj >> $@
152157
echo $(LIBS) >> $@
153158
154159
155160
@@ -759,15 +764,21 @@
759764
$(OX)\xfer$O : xfer_.c xfer.h
760765
$(TCC) /Fo$@ -c xfer_.c
761766
762767
xfer_.c : $(SRCDIR)\xfer.c
763768
translate$E $** > $@
769
+
770
+$(OX)\xfersetup$O : xfersetup_.c xfersetup.h
771
+ $(TCC) /Fo$@ -c xfersetup_.c
772
+
773
+xfersetup_.c : $(SRCDIR)\xfersetup.c
774
+ translate$E $** > $@
764775
765776
$(OX)\zip$O : zip_.c zip.h
766777
$(TCC) /Fo$@ -c zip_.c
767778
768779
zip_.c : $(SRCDIR)\zip.c
769780
translate$E $** > $@
770781
771782
headers: makeheaders$E page_index.h VERSION.h
772
- makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h glob_.c:glob.h graph_.c:graph.h gzip_.c:gzip.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h json_.c:json.h json_artifact_.c:json_artifact.h json_branch_.c:json_branch.h json_diff_.c:json_diff.h json_login_.c:json_login.h json_query_.c:json_query.h json_report_.c:json_report.h json_tag_.c:json_tag.h json_timeline_.c:json_timeline.h json_user_.c:json_user.h json_wiki_.c:json_wiki.h leaf_.c:leaf.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h path_.c:path.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h tar_.c:tar.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h $(SRCDIR)\cson_amalgamation.h
783
+ makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h glob_.c:glob.h graph_.c:graph.h gzip_.c:gzip.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h json_.c:json.h json_artifact_.c:json_artifact.h json_branch_.c:json_branch.h json_diff_.c:json_diff.h json_login_.c:json_login.h json_query_.c:json_query.h json_report_.c:json_report.h json_tag_.c:json_tag.h json_timeline_.c:json_timeline.h json_user_.c:json_user.h json_wiki_.c:json_wiki.h leaf_.c:leaf.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h path_.c:path.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h tar_.c:tar.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h xfersetup_.c:xfersetup.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h $(SRCDIR)\cson_amalgamation.h
773784
@copy /Y nul: headers
774785
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -1,10 +1,14 @@
1 # DO NOT EDIT
 
 
 
2 #
3 # This file is automatically generated. Instead of editing this
4 # file, edit "makemake.tcl" then run "tclsh src/makemake.tcl"
5 # to regenerate this file.
 
6 B = ..
7 SRCDIR = $B\src
8 OBJDIR = .
9 OX = .
10 O = .obj
@@ -36,13 +40,13 @@
36 LIBS = $(ZLIB) ws2_32.lib advapi32.lib $(SSLLIB)
37 LIBDIR = -LIBPATH:$(MSCDIR)\extra\lib -LIBPATH:$(ZLIBDIR)
38
39 SQLITE_OPTIONS = /DSQLITE_OMIT_LOAD_EXTENSION=1 /DSQLITE_THREADSAFE=0 /DSQLITE_DEFAULT_FILE_FORMAT=4 /DSQLITE_ENABLE_STAT3 /Dlocaltime=fossil_localtime /DSQLITE_ENABLE_LOCKING_STYLE=0
40
41 SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c glob_.c graph_.c gzip_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c json_.c json_artifact_.c json_branch_.c json_diff_.c json_login_.c json_query_.c json_report_.c json_tag_.c json_timeline_.c json_user_.c json_wiki_.c leaf_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c path_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c tar_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
42
43 OBJ = $(OX)\add$O $(OX)\allrepo$O $(OX)\attach$O $(OX)\bag$O $(OX)\bisect$O $(OX)\blob$O $(OX)\branch$O $(OX)\browse$O $(OX)\captcha$O $(OX)\cgi$O $(OX)\checkin$O $(OX)\checkout$O $(OX)\clearsign$O $(OX)\clone$O $(OX)\comformat$O $(OX)\configure$O $(OX)\content$O $(OX)\db$O $(OX)\delta$O $(OX)\deltacmd$O $(OX)\descendants$O $(OX)\diff$O $(OX)\diffcmd$O $(OX)\doc$O $(OX)\encode$O $(OX)\event$O $(OX)\export$O $(OX)\file$O $(OX)\finfo$O $(OX)\glob$O $(OX)\graph$O $(OX)\gzip$O $(OX)\http$O $(OX)\http_socket$O $(OX)\http_ssl$O $(OX)\http_transport$O $(OX)\import$O $(OX)\info$O $(OX)\json$O $(OX)\json_artifact$O $(OX)\json_branch$O $(OX)\json_diff$O $(OX)\json_login$O $(OX)\json_query$O $(OX)\json_report$O $(OX)\json_tag$O $(OX)\json_timeline$O $(OX)\json_user$O $(OX)\json_wiki$O $(OX)\leaf$O $(OX)\login$O $(OX)\main$O $(OX)\manifest$O $(OX)\md5$O $(OX)\merge$O $(OX)\merge3$O $(OX)\name$O $(OX)\path$O $(OX)\pivot$O $(OX)\popen$O $(OX)\pqueue$O $(OX)\printf$O $(OX)\rebuild$O $(OX)\report$O $(OX)\rss$O $(OX)\schema$O $(OX)\search$O $(OX)\setup$O $(OX)\sha1$O $(OX)\shun$O $(OX)\skins$O $(OX)\sqlcmd$O $(OX)\stash$O $(OX)\stat$O $(OX)\style$O $(OX)\sync$O $(OX)\tag$O $(OX)\tar$O $(OX)\th_main$O $(OX)\timeline$O $(OX)\tkt$O $(OX)\tktsetup$O $(OX)\undo$O $(OX)\update$O $(OX)\url$O $(OX)\user$O $(OX)\verify$O $(OX)\vfile$O $(OX)\wiki$O $(OX)\wikiformat$O $(OX)\winhttp$O $(OX)\xfer$O $(OX)\zip$O $(OX)\shell$O $(OX)\sqlite3$O $(OX)\th$O $(OX)\th_lang$O
44
45
46 APPNAME = $(OX)\fossil$(E)
47
48 all: $(OX) $(APPNAME)
@@ -146,10 +150,11 @@
146 echo $(OX)\vfile.obj >> $@
147 echo $(OX)\wiki.obj >> $@
148 echo $(OX)\wikiformat.obj >> $@
149 echo $(OX)\winhttp.obj >> $@
150 echo $(OX)\xfer.obj >> $@
 
151 echo $(OX)\zip.obj >> $@
152 echo $(LIBS) >> $@
153
154
155
@@ -759,15 +764,21 @@
759 $(OX)\xfer$O : xfer_.c xfer.h
760 $(TCC) /Fo$@ -c xfer_.c
761
762 xfer_.c : $(SRCDIR)\xfer.c
763 translate$E $** > $@
 
 
 
 
 
 
764
765 $(OX)\zip$O : zip_.c zip.h
766 $(TCC) /Fo$@ -c zip_.c
767
768 zip_.c : $(SRCDIR)\zip.c
769 translate$E $** > $@
770
771 headers: makeheaders$E page_index.h VERSION.h
772 makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h glob_.c:glob.h graph_.c:graph.h gzip_.c:gzip.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h json_.c:json.h json_artifact_.c:json_artifact.h json_branch_.c:json_branch.h json_diff_.c:json_diff.h json_login_.c:json_login.h json_query_.c:json_query.h json_report_.c:json_report.h json_tag_.c:json_tag.h json_timeline_.c:json_timeline.h json_user_.c:json_user.h json_wiki_.c:json_wiki.h leaf_.c:leaf.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h path_.c:path.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h tar_.c:tar.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h $(SRCDIR)\cson_amalgamation.h
773 @copy /Y nul: headers
774
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -1,10 +1,14 @@
1 #
2 ##############################################################################
3 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
4 ##############################################################################
5 #
6 # This file is automatically generated. Instead of editing this
7 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
8 # to regenerate this file.
9 #
10 B = ..
11 SRCDIR = $B\src
12 OBJDIR = .
13 OX = .
14 O = .obj
@@ -36,13 +40,13 @@
40 LIBS = $(ZLIB) ws2_32.lib advapi32.lib $(SSLLIB)
41 LIBDIR = -LIBPATH:$(MSCDIR)\extra\lib -LIBPATH:$(ZLIBDIR)
42
43 SQLITE_OPTIONS = /DSQLITE_OMIT_LOAD_EXTENSION=1 /DSQLITE_THREADSAFE=0 /DSQLITE_DEFAULT_FILE_FORMAT=4 /DSQLITE_ENABLE_STAT3 /Dlocaltime=fossil_localtime /DSQLITE_ENABLE_LOCKING_STYLE=0
44
45 SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c glob_.c graph_.c gzip_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c json_.c json_artifact_.c json_branch_.c json_diff_.c json_login_.c json_query_.c json_report_.c json_tag_.c json_timeline_.c json_user_.c json_wiki_.c leaf_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c path_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c tar_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c xfersetup_.c zip_.c
46
47 OBJ = $(OX)\add$O $(OX)\allrepo$O $(OX)\attach$O $(OX)\bag$O $(OX)\bisect$O $(OX)\blob$O $(OX)\branch$O $(OX)\browse$O $(OX)\captcha$O $(OX)\cgi$O $(OX)\checkin$O $(OX)\checkout$O $(OX)\clearsign$O $(OX)\clone$O $(OX)\comformat$O $(OX)\configure$O $(OX)\content$O $(OX)\db$O $(OX)\delta$O $(OX)\deltacmd$O $(OX)\descendants$O $(OX)\diff$O $(OX)\diffcmd$O $(OX)\doc$O $(OX)\encode$O $(OX)\event$O $(OX)\export$O $(OX)\file$O $(OX)\finfo$O $(OX)\glob$O $(OX)\graph$O $(OX)\gzip$O $(OX)\http$O $(OX)\http_socket$O $(OX)\http_ssl$O $(OX)\http_transport$O $(OX)\import$O $(OX)\info$O $(OX)\json$O $(OX)\json_artifact$O $(OX)\json_branch$O $(OX)\json_diff$O $(OX)\json_login$O $(OX)\json_query$O $(OX)\json_report$O $(OX)\json_tag$O $(OX)\json_timeline$O $(OX)\json_user$O $(OX)\json_wiki$O $(OX)\leaf$O $(OX)\login$O $(OX)\main$O $(OX)\manifest$O $(OX)\md5$O $(OX)\merge$O $(OX)\merge3$O $(OX)\name$O $(OX)\path$O $(OX)\pivot$O $(OX)\popen$O $(OX)\pqueue$O $(OX)\printf$O $(OX)\rebuild$O $(OX)\report$O $(OX)\rss$O $(OX)\schema$O $(OX)\search$O $(OX)\setup$O $(OX)\sha1$O $(OX)\shun$O $(OX)\skins$O $(OX)\sqlcmd$O $(OX)\stash$O $(OX)\stat$O $(OX)\style$O $(OX)\sync$O $(OX)\tag$O $(OX)\tar$O $(OX)\th_main$O $(OX)\timeline$O $(OX)\tkt$O $(OX)\tktsetup$O $(OX)\undo$O $(OX)\update$O $(OX)\url$O $(OX)\user$O $(OX)\verify$O $(OX)\vfile$O $(OX)\wiki$O $(OX)\wikiformat$O $(OX)\winhttp$O $(OX)\xfer$O $(OX)\xfersetup$O $(OX)\zip$O $(OX)\shell$O $(OX)\sqlite3$O $(OX)\th$O $(OX)\th_lang$O
48
49
50 APPNAME = $(OX)\fossil$(E)
51
52 all: $(OX) $(APPNAME)
@@ -146,10 +150,11 @@
150 echo $(OX)\vfile.obj >> $@
151 echo $(OX)\wiki.obj >> $@
152 echo $(OX)\wikiformat.obj >> $@
153 echo $(OX)\winhttp.obj >> $@
154 echo $(OX)\xfer.obj >> $@
155 echo $(OX)\xfersetup.obj >> $@
156 echo $(OX)\zip.obj >> $@
157 echo $(LIBS) >> $@
158
159
160
@@ -759,15 +764,21 @@
764 $(OX)\xfer$O : xfer_.c xfer.h
765 $(TCC) /Fo$@ -c xfer_.c
766
767 xfer_.c : $(SRCDIR)\xfer.c
768 translate$E $** > $@
769
770 $(OX)\xfersetup$O : xfersetup_.c xfersetup.h
771 $(TCC) /Fo$@ -c xfersetup_.c
772
773 xfersetup_.c : $(SRCDIR)\xfersetup.c
774 translate$E $** > $@
775
776 $(OX)\zip$O : zip_.c zip.h
777 $(TCC) /Fo$@ -c zip_.c
778
779 zip_.c : $(SRCDIR)\zip.c
780 translate$E $** > $@
781
782 headers: makeheaders$E page_index.h VERSION.h
783 makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h glob_.c:glob.h graph_.c:graph.h gzip_.c:gzip.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h json_.c:json.h json_artifact_.c:json_artifact.h json_branch_.c:json_branch.h json_diff_.c:json_diff.h json_login_.c:json_login.h json_query_.c:json_query.h json_report_.c:json_report.h json_tag_.c:json_tag.h json_timeline_.c:json_timeline.h json_user_.c:json_user.h json_wiki_.c:json_wiki.h leaf_.c:leaf.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h path_.c:path.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h tar_.c:tar.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h xfersetup_.c:xfersetup.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h $(SRCDIR)\cson_amalgamation.h
784 @copy /Y nul: headers
785

Keyboard Shortcuts

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