Diff
Not logged in

Differences From:

File Makefile part of check-in [7dddab2fbe] - added comments about necessary link flags for Solaris 10 + OpenSolaris by stephan on 2008-09-18 11:21:29. Also file Makefile part of check-in [651c75c5b7] - merge trunk into creole by robert on 2009-10-05 10:08:05. [view]

To:

File Makefile 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 =
 
+#### 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
@@ -26,8 +30,13 @@
 #
 #TCC = gcc -O6
 #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
 TCC = gcc -g -Os -Wall
+
+# 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
@@ -39,9 +48,13 @@
 # LIB += lsocket
 # Solaris 10 needs:
 # LIB += -lsocket -lnsl
 # My assumption is that the Sol10 flags will work for Sol8/9 and possibly 11.
-
+#
+# OpenSSL:
+ifdef FOSSIL_ENABLE_SSL
+LIB += -lcrypto -lssl
+endif
 
 #### Tcl shell for use in running the fossil testsuite.
 #
 TCLSH = tclsh