Diff
Not logged in

Differences From:

File Makefile.w32 part of check-in [3275d9c63c] - update makefile for win32 by rwilson on 2009-10-21 15:43:23. [view]

To:

File Makefile.w32 part of check-in [16f6fd904a] - Add SSL support. by dmitry on 2009-11-09 15:32:32. [view]

@@ -17,8 +17,12 @@
 #    Nothing for unix.
 #
 E = .exe
 
+#### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
+#
+# FOSSIL_ENABLE_SSL=1
+
 #### C Compile and options for use in building executables that
 #    will run on the target platform.  This is usually the same
 #    as BCC, unless you are cross-compiling.  This C compiler builds
 #    the finished binary for fossil.  The BCC compiler above is used
@@ -29,8 +33,13 @@
 #TCC = gcc -g -Os -Wall
 #TCC = gcc -g -Os -Wall -DFOSSIL_I18N=0 -L/usr/local/lib -I/usr/local/include
 TCC = gcc -Os -Wall -DFOSSIL_I18N=0 -L/mingw/lib -I/mingw/include
 
+# With HTTPS support
+ifdef FOSSIL_ENABLE_SSL
+TCC += -DFOSSIL_ENABLE_SSL=1
+endif
+
 #### Extra arguments for linking the finished binary.  Fossil needs
 #    to link against the Z-Lib compression library.  There are no
 #    other dependencies.  We sometimes add the -static option here
 #    so that we can build a static executable that will run in a
@@ -38,8 +47,12 @@
 #
 #LIB = -lz
 #LIB = -lz -lws2_32
 LIB = -lmingwex -lz -lws2_32
+# OpenSSL:
+ifdef FOSSIL_ENABLE_SSL
+LIB += -lcrypto -lssl
+endif
 
 #### Tcl shell for use in running the fossil testsuite.
 #
 TCLSH = tclsh