Fossil SCM

Merge updates from trunk.

mistachkin 2014-09-30 15:13 UTC inherit-priv-mark-sub merge
Commit eb44ae1f7c1e00c9481312a54f81018c04a48d23
+41 -8
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -486,10 +486,18 @@
486486
ifndef MINGW_IS_32BIT_ONLY
487487
ifeq (,$(findstring w64-mingw32,$(PREFIX)))
488488
MINGW_IS_32BIT_ONLY = 1
489489
endif
490490
endif
491
+ifeq (,$(findstring x86_64-w64-mingw32,$(PREFIX)))
492
+SSLCONFIG = mingw
493
+else
494
+SSLCONFIG = mingw64
495
+endif
496
+ifndef FOSSIL_ENABLE_MINIZ
497
+SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib
498
+endif
491499
492500
#### The directories where the zlib include and library files are located.
493501
#
494502
ZINCDIR = $(SRCDIR)/../compat/zlib
495503
ZLIBDIR = $(SRCDIR)/../compat/zlib
@@ -859,15 +867,11 @@
859867
ifndef FOSSIL_ENABLE_MINIZ
860868
LIBTARGETS += zlib
861869
endif
862870
863871
openssl: $(LIBTARGETS)
864
-ifndef FOSSIL_ENABLE_MINIZ
865
- cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw
866
-else
867
- cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw
868
-endif
872
+ cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) $(SSLCONFIG)
869873
$(MAKE) -C $(OPENSSLLIBDIR) build_libs
870874
871875
clean-openssl:
872876
$(MAKE) -C $(OPENSSLLIBDIR) clean
873877
@@ -1141,10 +1145,18 @@
11411145
11421146
writeln {#
11431147
##############################################################################
11441148
# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
11451149
##############################################################################
1150
+#
1151
+# This Makefile will only function correctly if used from a sub-directory
1152
+# that is a direct child of the top-level directory for this project.
1153
+#
1154
+!if !exist("..\.fossil-settings")
1155
+!error "Please change the current directory to the one containing this file."
1156
+!endif
1157
+
11461158
#
11471159
# This file is automatically generated. Instead of editing this
11481160
# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
11491161
# to regenerate this file.
11501162
#
@@ -1171,10 +1183,13 @@
11711183
# Uncomment to enable miniz usage
11721184
# FOSSIL_ENABLE_MINIZ = 1
11731185
11741186
# Uncomment to enable SSL support
11751187
# FOSSIL_ENABLE_SSL = 1
1188
+
1189
+# Uncomment to build SSL libraries
1190
+# FOSSIL_BUILD_SSL = 1
11761191
11771192
# Uncomment to enable TH1 scripts in embedded documentation files
11781193
# FOSSIL_ENABLE_TH1_DOCS = 1
11791194
11801195
# Uncomment to enable TH1 hooks
@@ -1186,10 +1201,26 @@
11861201
!ifdef FOSSIL_ENABLE_SSL
11871202
SSLDIR = $(B)\compat\openssl-1.0.1i
11881203
SSLINCDIR = $(SSLDIR)\inc32
11891204
SSLLIBDIR = $(SSLDIR)\out32
11901205
SSLLIB = ssleay32.lib libeay32.lib user32.lib gdi32.lib
1206
+!if "$(PLATFORM)"=="amd64" || "$(PLATFORM)"=="x64"
1207
+!message Using 'x64' platform for OpenSSL...
1208
+SSLCONFIG = VC-WIN64A no-asm
1209
+SSLSETUP = ms\do_win64a.bat
1210
+SSLNMAKE = ms\nt.mak all
1211
+!elseif "$(PLATFORM)"=="ia64"
1212
+!message Using 'ia64' platform for OpenSSL...
1213
+SSLCONFIG = VC-WIN64I no-asm
1214
+SSLSETUP = ms\do_win64i.bat
1215
+SSLNMAKE = ms\nt.mak all
1216
+!else
1217
+!message Assuming 'x86' platform for OpenSSL...
1218
+SSLCONFIG = VC-WIN32 no-asm
1219
+SSLSETUP = ms\do_ms.bat
1220
+SSLNMAKE = ms\nt.mak all
1221
+!endif
11911222
!endif
11921223
11931224
!ifdef FOSSIL_ENABLE_TCL
11941225
TCLDIR = $(B)\compat\tcl-8.6
11951226
TCLSRCDIR = $(TCLDIR)
@@ -1329,21 +1360,23 @@
13291360
openssl:
13301361
@echo Building OpenSSL from "$(SSLDIR)"...
13311362
!if "$(PERLDIR)" != ""
13321363
@set PATH=$(PERLDIR);$(PATH)
13331364
!endif
1334
- @pushd "$(SSLDIR)" && $(PERL) Configure VC-WIN32 no-asm && popd
1335
- @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd
1336
- @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd
1365
+ @pushd "$(SSLDIR)" && $(PERL) Configure $(SSLCONFIG) && popd
1366
+ @pushd "$(SSLDIR)" && call $(SSLSETUP) && popd
1367
+ @pushd "$(SSLDIR)" && $(MAKE) /f $(SSLNMAKE) && popd
13371368
!endif
13381369
13391370
!ifndef FOSSIL_ENABLE_MINIZ
13401371
APPTARGETS = $(APPTARGETS) zlib
13411372
!endif
13421373
13431374
!ifdef FOSSIL_ENABLE_SSL
1375
+!ifdef FOSSIL_BUILD_SSL
13441376
APPTARGETS = $(APPTARGETS) openssl
1377
+!endif
13451378
!endif
13461379
13471380
$(APPNAME) : $(APPTARGETS) translate$E mkindex$E headers $(OBJ) $(OX)\linkopts
13481381
cd $(OX)
13491382
link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts
13501383
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -486,10 +486,18 @@
486 ifndef MINGW_IS_32BIT_ONLY
487 ifeq (,$(findstring w64-mingw32,$(PREFIX)))
488 MINGW_IS_32BIT_ONLY = 1
489 endif
490 endif
 
 
 
 
 
 
 
 
491
492 #### The directories where the zlib include and library files are located.
493 #
494 ZINCDIR = $(SRCDIR)/../compat/zlib
495 ZLIBDIR = $(SRCDIR)/../compat/zlib
@@ -859,15 +867,11 @@
859 ifndef FOSSIL_ENABLE_MINIZ
860 LIBTARGETS += zlib
861 endif
862
863 openssl: $(LIBTARGETS)
864 ifndef FOSSIL_ENABLE_MINIZ
865 cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw
866 else
867 cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw
868 endif
869 $(MAKE) -C $(OPENSSLLIBDIR) build_libs
870
871 clean-openssl:
872 $(MAKE) -C $(OPENSSLLIBDIR) clean
873
@@ -1141,10 +1145,18 @@
1141
1142 writeln {#
1143 ##############################################################################
1144 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
1145 ##############################################################################
 
 
 
 
 
 
 
 
1146 #
1147 # This file is automatically generated. Instead of editing this
1148 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
1149 # to regenerate this file.
1150 #
@@ -1171,10 +1183,13 @@
1171 # Uncomment to enable miniz usage
1172 # FOSSIL_ENABLE_MINIZ = 1
1173
1174 # Uncomment to enable SSL support
1175 # FOSSIL_ENABLE_SSL = 1
 
 
 
1176
1177 # Uncomment to enable TH1 scripts in embedded documentation files
1178 # FOSSIL_ENABLE_TH1_DOCS = 1
1179
1180 # Uncomment to enable TH1 hooks
@@ -1186,10 +1201,26 @@
1186 !ifdef FOSSIL_ENABLE_SSL
1187 SSLDIR = $(B)\compat\openssl-1.0.1i
1188 SSLINCDIR = $(SSLDIR)\inc32
1189 SSLLIBDIR = $(SSLDIR)\out32
1190 SSLLIB = ssleay32.lib libeay32.lib user32.lib gdi32.lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1191 !endif
1192
1193 !ifdef FOSSIL_ENABLE_TCL
1194 TCLDIR = $(B)\compat\tcl-8.6
1195 TCLSRCDIR = $(TCLDIR)
@@ -1329,21 +1360,23 @@
1329 openssl:
1330 @echo Building OpenSSL from "$(SSLDIR)"...
1331 !if "$(PERLDIR)" != ""
1332 @set PATH=$(PERLDIR);$(PATH)
1333 !endif
1334 @pushd "$(SSLDIR)" && $(PERL) Configure VC-WIN32 no-asm && popd
1335 @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd
1336 @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd
1337 !endif
1338
1339 !ifndef FOSSIL_ENABLE_MINIZ
1340 APPTARGETS = $(APPTARGETS) zlib
1341 !endif
1342
1343 !ifdef FOSSIL_ENABLE_SSL
 
1344 APPTARGETS = $(APPTARGETS) openssl
 
1345 !endif
1346
1347 $(APPNAME) : $(APPTARGETS) translate$E mkindex$E headers $(OBJ) $(OX)\linkopts
1348 cd $(OX)
1349 link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts
1350
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -486,10 +486,18 @@
486 ifndef MINGW_IS_32BIT_ONLY
487 ifeq (,$(findstring w64-mingw32,$(PREFIX)))
488 MINGW_IS_32BIT_ONLY = 1
489 endif
490 endif
491 ifeq (,$(findstring x86_64-w64-mingw32,$(PREFIX)))
492 SSLCONFIG = mingw
493 else
494 SSLCONFIG = mingw64
495 endif
496 ifndef FOSSIL_ENABLE_MINIZ
497 SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib
498 endif
499
500 #### The directories where the zlib include and library files are located.
501 #
502 ZINCDIR = $(SRCDIR)/../compat/zlib
503 ZLIBDIR = $(SRCDIR)/../compat/zlib
@@ -859,15 +867,11 @@
867 ifndef FOSSIL_ENABLE_MINIZ
868 LIBTARGETS += zlib
869 endif
870
871 openssl: $(LIBTARGETS)
872 cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) $(SSLCONFIG)
 
 
 
 
873 $(MAKE) -C $(OPENSSLLIBDIR) build_libs
874
875 clean-openssl:
876 $(MAKE) -C $(OPENSSLLIBDIR) clean
877
@@ -1141,10 +1145,18 @@
1145
1146 writeln {#
1147 ##############################################################################
1148 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
1149 ##############################################################################
1150 #
1151 # This Makefile will only function correctly if used from a sub-directory
1152 # that is a direct child of the top-level directory for this project.
1153 #
1154 !if !exist("..\.fossil-settings")
1155 !error "Please change the current directory to the one containing this file."
1156 !endif
1157
1158 #
1159 # This file is automatically generated. Instead of editing this
1160 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
1161 # to regenerate this file.
1162 #
@@ -1171,10 +1183,13 @@
1183 # Uncomment to enable miniz usage
1184 # FOSSIL_ENABLE_MINIZ = 1
1185
1186 # Uncomment to enable SSL support
1187 # FOSSIL_ENABLE_SSL = 1
1188
1189 # Uncomment to build SSL libraries
1190 # FOSSIL_BUILD_SSL = 1
1191
1192 # Uncomment to enable TH1 scripts in embedded documentation files
1193 # FOSSIL_ENABLE_TH1_DOCS = 1
1194
1195 # Uncomment to enable TH1 hooks
@@ -1186,10 +1201,26 @@
1201 !ifdef FOSSIL_ENABLE_SSL
1202 SSLDIR = $(B)\compat\openssl-1.0.1i
1203 SSLINCDIR = $(SSLDIR)\inc32
1204 SSLLIBDIR = $(SSLDIR)\out32
1205 SSLLIB = ssleay32.lib libeay32.lib user32.lib gdi32.lib
1206 !if "$(PLATFORM)"=="amd64" || "$(PLATFORM)"=="x64"
1207 !message Using 'x64' platform for OpenSSL...
1208 SSLCONFIG = VC-WIN64A no-asm
1209 SSLSETUP = ms\do_win64a.bat
1210 SSLNMAKE = ms\nt.mak all
1211 !elseif "$(PLATFORM)"=="ia64"
1212 !message Using 'ia64' platform for OpenSSL...
1213 SSLCONFIG = VC-WIN64I no-asm
1214 SSLSETUP = ms\do_win64i.bat
1215 SSLNMAKE = ms\nt.mak all
1216 !else
1217 !message Assuming 'x86' platform for OpenSSL...
1218 SSLCONFIG = VC-WIN32 no-asm
1219 SSLSETUP = ms\do_ms.bat
1220 SSLNMAKE = ms\nt.mak all
1221 !endif
1222 !endif
1223
1224 !ifdef FOSSIL_ENABLE_TCL
1225 TCLDIR = $(B)\compat\tcl-8.6
1226 TCLSRCDIR = $(TCLDIR)
@@ -1329,21 +1360,23 @@
1360 openssl:
1361 @echo Building OpenSSL from "$(SSLDIR)"...
1362 !if "$(PERLDIR)" != ""
1363 @set PATH=$(PERLDIR);$(PATH)
1364 !endif
1365 @pushd "$(SSLDIR)" && $(PERL) Configure $(SSLCONFIG) && popd
1366 @pushd "$(SSLDIR)" && call $(SSLSETUP) && popd
1367 @pushd "$(SSLDIR)" && $(MAKE) /f $(SSLNMAKE) && popd
1368 !endif
1369
1370 !ifndef FOSSIL_ENABLE_MINIZ
1371 APPTARGETS = $(APPTARGETS) zlib
1372 !endif
1373
1374 !ifdef FOSSIL_ENABLE_SSL
1375 !ifdef FOSSIL_BUILD_SSL
1376 APPTARGETS = $(APPTARGETS) openssl
1377 !endif
1378 !endif
1379
1380 $(APPNAME) : $(APPTARGETS) translate$E mkindex$E headers $(OBJ) $(OX)\linkopts
1381 cd $(OX)
1382 link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts
1383
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -94,10 +94,18 @@
9494
ifndef MINGW_IS_32BIT_ONLY
9595
ifeq (,$(findstring w64-mingw32,$(PREFIX)))
9696
MINGW_IS_32BIT_ONLY = 1
9797
endif
9898
endif
99
+ifeq (,$(findstring x86_64-w64-mingw32,$(PREFIX)))
100
+SSLCONFIG = mingw
101
+else
102
+SSLCONFIG = mingw64
103
+endif
104
+ifndef FOSSIL_ENABLE_MINIZ
105
+SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib
106
+endif
99107
100108
#### The directories where the zlib include and library files are located.
101109
#
102110
ZINCDIR = $(SRCDIR)/../compat/zlib
103111
ZLIBDIR = $(SRCDIR)/../compat/zlib
@@ -788,15 +796,11 @@
788796
ifndef FOSSIL_ENABLE_MINIZ
789797
LIBTARGETS += zlib
790798
endif
791799
792800
openssl: $(LIBTARGETS)
793
-ifndef FOSSIL_ENABLE_MINIZ
794
- cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw
795
-else
796
- cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw
797
-endif
801
+ cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) $(SSLCONFIG)
798802
$(MAKE) -C $(OPENSSLLIBDIR) build_libs
799803
800804
clean-openssl:
801805
$(MAKE) -C $(OPENSSLLIBDIR) clean
802806
803807
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -94,10 +94,18 @@
94 ifndef MINGW_IS_32BIT_ONLY
95 ifeq (,$(findstring w64-mingw32,$(PREFIX)))
96 MINGW_IS_32BIT_ONLY = 1
97 endif
98 endif
 
 
 
 
 
 
 
 
99
100 #### The directories where the zlib include and library files are located.
101 #
102 ZINCDIR = $(SRCDIR)/../compat/zlib
103 ZLIBDIR = $(SRCDIR)/../compat/zlib
@@ -788,15 +796,11 @@
788 ifndef FOSSIL_ENABLE_MINIZ
789 LIBTARGETS += zlib
790 endif
791
792 openssl: $(LIBTARGETS)
793 ifndef FOSSIL_ENABLE_MINIZ
794 cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw
795 else
796 cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw
797 endif
798 $(MAKE) -C $(OPENSSLLIBDIR) build_libs
799
800 clean-openssl:
801 $(MAKE) -C $(OPENSSLLIBDIR) clean
802
803
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -94,10 +94,18 @@
94 ifndef MINGW_IS_32BIT_ONLY
95 ifeq (,$(findstring w64-mingw32,$(PREFIX)))
96 MINGW_IS_32BIT_ONLY = 1
97 endif
98 endif
99 ifeq (,$(findstring x86_64-w64-mingw32,$(PREFIX)))
100 SSLCONFIG = mingw
101 else
102 SSLCONFIG = mingw64
103 endif
104 ifndef FOSSIL_ENABLE_MINIZ
105 SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib
106 endif
107
108 #### The directories where the zlib include and library files are located.
109 #
110 ZINCDIR = $(SRCDIR)/../compat/zlib
111 ZLIBDIR = $(SRCDIR)/../compat/zlib
@@ -788,15 +796,11 @@
796 ifndef FOSSIL_ENABLE_MINIZ
797 LIBTARGETS += zlib
798 endif
799
800 openssl: $(LIBTARGETS)
801 cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) $(SSLCONFIG)
 
 
 
 
802 $(MAKE) -C $(OPENSSLLIBDIR) build_libs
803
804 clean-openssl:
805 $(MAKE) -C $(OPENSSLLIBDIR) clean
806
807
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -94,10 +94,18 @@
9494
ifndef MINGW_IS_32BIT_ONLY
9595
ifeq (,$(findstring w64-mingw32,$(PREFIX)))
9696
MINGW_IS_32BIT_ONLY = 1
9797
endif
9898
endif
99
+ifeq (,$(findstring x86_64-w64-mingw32,$(PREFIX)))
100
+SSLCONFIG = mingw
101
+else
102
+SSLCONFIG = mingw64
103
+endif
104
+ifndef FOSSIL_ENABLE_MINIZ
105
+SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib
106
+endif
99107
100108
#### The directories where the zlib include and library files are located.
101109
#
102110
ZINCDIR = $(SRCDIR)/../compat/zlib
103111
ZLIBDIR = $(SRCDIR)/../compat/zlib
@@ -788,15 +796,11 @@
788796
ifndef FOSSIL_ENABLE_MINIZ
789797
LIBTARGETS += zlib
790798
endif
791799
792800
openssl: $(LIBTARGETS)
793
-ifndef FOSSIL_ENABLE_MINIZ
794
- cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw
795
-else
796
- cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw
797
-endif
801
+ cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) $(SSLCONFIG)
798802
$(MAKE) -C $(OPENSSLLIBDIR) build_libs
799803
800804
clean-openssl:
801805
$(MAKE) -C $(OPENSSLLIBDIR) clean
802806
803807
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -94,10 +94,18 @@
94 ifndef MINGW_IS_32BIT_ONLY
95 ifeq (,$(findstring w64-mingw32,$(PREFIX)))
96 MINGW_IS_32BIT_ONLY = 1
97 endif
98 endif
 
 
 
 
 
 
 
 
99
100 #### The directories where the zlib include and library files are located.
101 #
102 ZINCDIR = $(SRCDIR)/../compat/zlib
103 ZLIBDIR = $(SRCDIR)/../compat/zlib
@@ -788,15 +796,11 @@
788 ifndef FOSSIL_ENABLE_MINIZ
789 LIBTARGETS += zlib
790 endif
791
792 openssl: $(LIBTARGETS)
793 ifndef FOSSIL_ENABLE_MINIZ
794 cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw
795 else
796 cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw
797 endif
798 $(MAKE) -C $(OPENSSLLIBDIR) build_libs
799
800 clean-openssl:
801 $(MAKE) -C $(OPENSSLLIBDIR) clean
802
803
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -94,10 +94,18 @@
94 ifndef MINGW_IS_32BIT_ONLY
95 ifeq (,$(findstring w64-mingw32,$(PREFIX)))
96 MINGW_IS_32BIT_ONLY = 1
97 endif
98 endif
99 ifeq (,$(findstring x86_64-w64-mingw32,$(PREFIX)))
100 SSLCONFIG = mingw
101 else
102 SSLCONFIG = mingw64
103 endif
104 ifndef FOSSIL_ENABLE_MINIZ
105 SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib
106 endif
107
108 #### The directories where the zlib include and library files are located.
109 #
110 ZINCDIR = $(SRCDIR)/../compat/zlib
111 ZLIBDIR = $(SRCDIR)/../compat/zlib
@@ -788,15 +796,11 @@
796 ifndef FOSSIL_ENABLE_MINIZ
797 LIBTARGETS += zlib
798 endif
799
800 openssl: $(LIBTARGETS)
801 cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) $(SSLCONFIG)
 
 
 
 
802 $(MAKE) -C $(OPENSSLLIBDIR) build_libs
803
804 clean-openssl:
805 $(MAKE) -C $(OPENSSLLIBDIR) clean
806
807
+32 -3
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -1,9 +1,17 @@
11
#
22
##############################################################################
33
# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
44
##############################################################################
5
+#
6
+# This Makefile will only function correctly if used from a sub-directory
7
+# that is a direct child of the top-level directory for this project.
8
+#
9
+!if !exist("..\.fossil-settings")
10
+!error "Please change the current directory to the one containing this file."
11
+!endif
12
+
513
#
614
# This file is automatically generated. Instead of editing this
715
# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
816
# to regenerate this file.
917
#
@@ -30,10 +38,13 @@
3038
# Uncomment to enable miniz usage
3139
# FOSSIL_ENABLE_MINIZ = 1
3240
3341
# Uncomment to enable SSL support
3442
# FOSSIL_ENABLE_SSL = 1
43
+
44
+# Uncomment to build SSL libraries
45
+# FOSSIL_BUILD_SSL = 1
3546
3647
# Uncomment to enable TH1 scripts in embedded documentation files
3748
# FOSSIL_ENABLE_TH1_DOCS = 1
3849
3950
# Uncomment to enable TH1 hooks
@@ -45,10 +56,26 @@
4556
!ifdef FOSSIL_ENABLE_SSL
4657
SSLDIR = $(B)\compat\openssl-1.0.1i
4758
SSLINCDIR = $(SSLDIR)\inc32
4859
SSLLIBDIR = $(SSLDIR)\out32
4960
SSLLIB = ssleay32.lib libeay32.lib user32.lib gdi32.lib
61
+!if "$(PLATFORM)"=="amd64" || "$(PLATFORM)"=="x64"
62
+!message Using 'x64' platform for OpenSSL...
63
+SSLCONFIG = VC-WIN64A no-asm
64
+SSLSETUP = ms\do_win64a.bat
65
+SSLNMAKE = ms\nt.mak all
66
+!elseif "$(PLATFORM)"=="ia64"
67
+!message Using 'ia64' platform for OpenSSL...
68
+SSLCONFIG = VC-WIN64I no-asm
69
+SSLSETUP = ms\do_win64i.bat
70
+SSLNMAKE = ms\nt.mak all
71
+!else
72
+!message Assuming 'x86' platform for OpenSSL...
73
+SSLCONFIG = VC-WIN32 no-asm
74
+SSLSETUP = ms\do_ms.bat
75
+SSLNMAKE = ms\nt.mak all
76
+!endif
5077
!endif
5178
5279
!ifdef FOSSIL_ENABLE_TCL
5380
TCLDIR = $(B)\compat\tcl-8.6
5481
TCLSRCDIR = $(TCLDIR)
@@ -404,21 +431,23 @@
404431
openssl:
405432
@echo Building OpenSSL from "$(SSLDIR)"...
406433
!if "$(PERLDIR)" != ""
407434
@set PATH=$(PERLDIR);$(PATH)
408435
!endif
409
- @pushd "$(SSLDIR)" && $(PERL) Configure VC-WIN32 no-asm && popd
410
- @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd
411
- @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd
436
+ @pushd "$(SSLDIR)" && $(PERL) Configure $(SSLCONFIG) && popd
437
+ @pushd "$(SSLDIR)" && call $(SSLSETUP) && popd
438
+ @pushd "$(SSLDIR)" && $(MAKE) /f $(SSLNMAKE) && popd
412439
!endif
413440
414441
!ifndef FOSSIL_ENABLE_MINIZ
415442
APPTARGETS = $(APPTARGETS) zlib
416443
!endif
417444
418445
!ifdef FOSSIL_ENABLE_SSL
446
+!ifdef FOSSIL_BUILD_SSL
419447
APPTARGETS = $(APPTARGETS) openssl
448
+!endif
420449
!endif
421450
422451
$(APPNAME) : $(APPTARGETS) translate$E mkindex$E headers $(OBJ) $(OX)\linkopts
423452
cd $(OX)
424453
link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts
425454
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -1,9 +1,17 @@
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 #
@@ -30,10 +38,13 @@
30 # Uncomment to enable miniz usage
31 # FOSSIL_ENABLE_MINIZ = 1
32
33 # Uncomment to enable SSL support
34 # FOSSIL_ENABLE_SSL = 1
 
 
 
35
36 # Uncomment to enable TH1 scripts in embedded documentation files
37 # FOSSIL_ENABLE_TH1_DOCS = 1
38
39 # Uncomment to enable TH1 hooks
@@ -45,10 +56,26 @@
45 !ifdef FOSSIL_ENABLE_SSL
46 SSLDIR = $(B)\compat\openssl-1.0.1i
47 SSLINCDIR = $(SSLDIR)\inc32
48 SSLLIBDIR = $(SSLDIR)\out32
49 SSLLIB = ssleay32.lib libeay32.lib user32.lib gdi32.lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50 !endif
51
52 !ifdef FOSSIL_ENABLE_TCL
53 TCLDIR = $(B)\compat\tcl-8.6
54 TCLSRCDIR = $(TCLDIR)
@@ -404,21 +431,23 @@
404 openssl:
405 @echo Building OpenSSL from "$(SSLDIR)"...
406 !if "$(PERLDIR)" != ""
407 @set PATH=$(PERLDIR);$(PATH)
408 !endif
409 @pushd "$(SSLDIR)" && $(PERL) Configure VC-WIN32 no-asm && popd
410 @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd
411 @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd
412 !endif
413
414 !ifndef FOSSIL_ENABLE_MINIZ
415 APPTARGETS = $(APPTARGETS) zlib
416 !endif
417
418 !ifdef FOSSIL_ENABLE_SSL
 
419 APPTARGETS = $(APPTARGETS) openssl
 
420 !endif
421
422 $(APPNAME) : $(APPTARGETS) translate$E mkindex$E headers $(OBJ) $(OX)\linkopts
423 cd $(OX)
424 link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts
425
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -1,9 +1,17 @@
1 #
2 ##############################################################################
3 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
4 ##############################################################################
5 #
6 # This Makefile will only function correctly if used from a sub-directory
7 # that is a direct child of the top-level directory for this project.
8 #
9 !if !exist("..\.fossil-settings")
10 !error "Please change the current directory to the one containing this file."
11 !endif
12
13 #
14 # This file is automatically generated. Instead of editing this
15 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
16 # to regenerate this file.
17 #
@@ -30,10 +38,13 @@
38 # Uncomment to enable miniz usage
39 # FOSSIL_ENABLE_MINIZ = 1
40
41 # Uncomment to enable SSL support
42 # FOSSIL_ENABLE_SSL = 1
43
44 # Uncomment to build SSL libraries
45 # FOSSIL_BUILD_SSL = 1
46
47 # Uncomment to enable TH1 scripts in embedded documentation files
48 # FOSSIL_ENABLE_TH1_DOCS = 1
49
50 # Uncomment to enable TH1 hooks
@@ -45,10 +56,26 @@
56 !ifdef FOSSIL_ENABLE_SSL
57 SSLDIR = $(B)\compat\openssl-1.0.1i
58 SSLINCDIR = $(SSLDIR)\inc32
59 SSLLIBDIR = $(SSLDIR)\out32
60 SSLLIB = ssleay32.lib libeay32.lib user32.lib gdi32.lib
61 !if "$(PLATFORM)"=="amd64" || "$(PLATFORM)"=="x64"
62 !message Using 'x64' platform for OpenSSL...
63 SSLCONFIG = VC-WIN64A no-asm
64 SSLSETUP = ms\do_win64a.bat
65 SSLNMAKE = ms\nt.mak all
66 !elseif "$(PLATFORM)"=="ia64"
67 !message Using 'ia64' platform for OpenSSL...
68 SSLCONFIG = VC-WIN64I no-asm
69 SSLSETUP = ms\do_win64i.bat
70 SSLNMAKE = ms\nt.mak all
71 !else
72 !message Assuming 'x86' platform for OpenSSL...
73 SSLCONFIG = VC-WIN32 no-asm
74 SSLSETUP = ms\do_ms.bat
75 SSLNMAKE = ms\nt.mak all
76 !endif
77 !endif
78
79 !ifdef FOSSIL_ENABLE_TCL
80 TCLDIR = $(B)\compat\tcl-8.6
81 TCLSRCDIR = $(TCLDIR)
@@ -404,21 +431,23 @@
431 openssl:
432 @echo Building OpenSSL from "$(SSLDIR)"...
433 !if "$(PERLDIR)" != ""
434 @set PATH=$(PERLDIR);$(PATH)
435 !endif
436 @pushd "$(SSLDIR)" && $(PERL) Configure $(SSLCONFIG) && popd
437 @pushd "$(SSLDIR)" && call $(SSLSETUP) && popd
438 @pushd "$(SSLDIR)" && $(MAKE) /f $(SSLNMAKE) && popd
439 !endif
440
441 !ifndef FOSSIL_ENABLE_MINIZ
442 APPTARGETS = $(APPTARGETS) zlib
443 !endif
444
445 !ifdef FOSSIL_ENABLE_SSL
446 !ifdef FOSSIL_BUILD_SSL
447 APPTARGETS = $(APPTARGETS) openssl
448 !endif
449 !endif
450
451 $(APPNAME) : $(APPTARGETS) translate$E mkindex$E headers $(OBJ) $(OX)\linkopts
452 cd $(OX)
453 link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts
454
+2 -2
--- www/build.wiki
+++ www/build.wiki
@@ -126,14 +126,14 @@
126126
[/tree?ci=trunk&name=compat | compat] directory (e.g.
127127
"<b>compat/openssl-1.0.1i</b>"), then make sure that some recent
128128
<a href="http://www.perl.org/">Perl</a> binaries are installed locally,
129129
and finally run one of the following commands:
130130
<blockquote><pre>
131
-nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 PERLDIR=C:\full\path\to\Perl\bin
131
+nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 FOSSIL_BUILD_SSL=1 PERLDIR=C:\full\path\to\Perl\bin
132132
</pre></blockquote>
133133
<blockquote><pre>
134
-buildmsvc.bat FOSSIL_ENABLE_SSL=1 PERLDIR=C:\full\path\to\Perl\bin
134
+buildmsvc.bat FOSSIL_ENABLE_SSL=1 FOSSIL_BUILD_SSL=1 PERLDIR=C:\full\path\to\Perl\bin
135135
</pre></blockquote>
136136
137137
<li><p><i>Cygwin</i> → The same as other unix-like systems. It is
138138
recommended to configure using: "<b>configure --disable-internal-sqlite</b>",
139139
making sure you have the "libsqlite3-devel" , "zlib-devel" and
140140
--- www/build.wiki
+++ www/build.wiki
@@ -126,14 +126,14 @@
126 [/tree?ci=trunk&name=compat | compat] directory (e.g.
127 "<b>compat/openssl-1.0.1i</b>"), then make sure that some recent
128 <a href="http://www.perl.org/">Perl</a> binaries are installed locally,
129 and finally run one of the following commands:
130 <blockquote><pre>
131 nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 PERLDIR=C:\full\path\to\Perl\bin
132 </pre></blockquote>
133 <blockquote><pre>
134 buildmsvc.bat FOSSIL_ENABLE_SSL=1 PERLDIR=C:\full\path\to\Perl\bin
135 </pre></blockquote>
136
137 <li><p><i>Cygwin</i> → The same as other unix-like systems. It is
138 recommended to configure using: "<b>configure --disable-internal-sqlite</b>",
139 making sure you have the "libsqlite3-devel" , "zlib-devel" and
140
--- www/build.wiki
+++ www/build.wiki
@@ -126,14 +126,14 @@
126 [/tree?ci=trunk&name=compat | compat] directory (e.g.
127 "<b>compat/openssl-1.0.1i</b>"), then make sure that some recent
128 <a href="http://www.perl.org/">Perl</a> binaries are installed locally,
129 and finally run one of the following commands:
130 <blockquote><pre>
131 nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 FOSSIL_BUILD_SSL=1 PERLDIR=C:\full\path\to\Perl\bin
132 </pre></blockquote>
133 <blockquote><pre>
134 buildmsvc.bat FOSSIL_ENABLE_SSL=1 FOSSIL_BUILD_SSL=1 PERLDIR=C:\full\path\to\Perl\bin
135 </pre></blockquote>
136
137 <li><p><i>Cygwin</i> → The same as other unix-like systems. It is
138 recommended to configure using: "<b>configure --disable-internal-sqlite</b>",
139 making sure you have the "libsqlite3-devel" , "zlib-devel" and
140

Keyboard Shortcuts

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