From 3c2ee9c341d0e9f22a1020c13deb87a2b6afafeb Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Wed, 11 Aug 2010 18:08:39 +0200 Subject: Added OpenSSL builds to Watcom makefiles. --- lib/Makefile.Watcom | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib') diff --git a/lib/Makefile.Watcom b/lib/Makefile.Watcom index 63624d31a..9096fa91f 100644 --- a/lib/Makefile.Watcom +++ b/lib/Makefile.Watcom @@ -66,6 +66,12 @@ ZLIB_ROOT = $(%zlib_root) ZLIB_ROOT = ..\..\zlib-1.2.5 !endif +!ifdef %openssl_root +OPENSSL_ROOT = $(%openssl_root) +!else +OPENSSL_ROOT = ..\..\openssl-0.9.8o +!endif + !ifdef %ares_root ARES_ROOT = $(%ares_root) !else @@ -76,6 +82,10 @@ ARES_ROOT = ..\ares CFLAGS += -dHAVE_ZLIB_H -dHAVE_LIBZ -I$(ZLIB_ROOT) !endif +!ifdef %use_ssl +CFLAGS += -wcd=138 -dUSE_OPENSSL -dUSE_SSLEAY -I$(OPENSSL_ROOT)\inc32 +!endif + !ifdef %use_ares CFLAGS += -dUSE_ARES -I$(ARES_ROOT) !endif @@ -169,6 +179,9 @@ $(LINK_ARG): $(__MAKEFILES__) !ifdef %use_zlib @%append $^@ library $(ZLIB_ROOT)\zlib.lib !endif +!ifdef %use_ssl + @%append $^@ library $(OPENSSL_ROOT)\out32\libeay32.lib, $(OPENSSL_ROOT)\out32\ssleay32.lib +!endif !ifdef %use_ares @%append $^@ library $(ARES_ROOT)\cares.lib !endif -- cgit v1.2.3