mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-10 06:23:02 +03:00
Watcom build: added support for WinCNG build.
This commit is contained in:
@@ -73,13 +73,15 @@ OPENSSL_ROOT = $(%openssl_root)
|
|||||||
OPENSSL_ROOT = ..\..\openssl-0.9.8zc
|
OPENSSL_ROOT = ..\..\openssl-0.9.8zc
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
#!ifdef %use_zlib
|
!ifdef %use_zlib
|
||||||
CFLAGS += -dHAVE_ZLIB_H -dHAVE_LIBZ -I$(ZLIB_ROOT)
|
CFLAGS += -DLIBSSH2_HAVE_ZLIB -I$(ZLIB_ROOT)
|
||||||
#!endif
|
!endif
|
||||||
|
|
||||||
#!ifdef %use_ssl
|
!ifdef %use_wincng
|
||||||
CFLAGS += -wcd=138 -dUSE_OPENSSL -dUSE_SSLEAY -I$(OPENSSL_ROOT)\inc32
|
CFLAGS += -DLIBSSH2_WINCNG
|
||||||
#!endif
|
!else
|
||||||
|
CFLAGS += -wcd=138 -dLIBSSH2_OPENSSL -I$(OPENSSL_ROOT)\inc32
|
||||||
|
!endif
|
||||||
|
|
||||||
!ifdef %use_watt32
|
!ifdef %use_watt32
|
||||||
CFLAGS += -dUSE_WATT32 -I$(%watt_root)\inc
|
CFLAGS += -dUSE_WATT32 -I$(%watt_root)\inc
|
||||||
@@ -93,9 +95,11 @@ LIB_ARG = $(OBJ_BASE)\stat\wlib.arg
|
|||||||
!ifndef %MAKEFLAGS
|
!ifndef %MAKEFLAGS
|
||||||
!error You MUST call wmake with the -u switch!
|
!error You MUST call wmake with the -u switch!
|
||||||
!else
|
!else
|
||||||
# only OpenSSL is supported with this build system
|
!ifdef %use_wincng
|
||||||
CFLAGS += -dLIBSSH2_OPENSSL
|
!include ..\Makefile.WinCNG.inc
|
||||||
|
!else
|
||||||
!include ..\Makefile.OpenSSL.inc
|
!include ..\Makefile.OpenSSL.inc
|
||||||
|
!endif
|
||||||
!include ..\Makefile.inc
|
!include ..\Makefile.inc
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
@@ -168,12 +172,16 @@ $(LINK_ARG): $(__MAKEFILES__)
|
|||||||
!else
|
!else
|
||||||
@%append $^@ library ws2_32.lib
|
@%append $^@ library ws2_32.lib
|
||||||
!endif
|
!endif
|
||||||
#!ifdef %use_zlib
|
!ifdef %use_zlib
|
||||||
@%append $^@ library $(ZLIB_ROOT)\zlib.lib
|
@%append $^@ library '$(ZLIB_ROOT)\zlib.lib'
|
||||||
#!endif
|
!endif
|
||||||
#!ifdef %use_ssl
|
!ifdef %use_wincng
|
||||||
@%append $^@ library $(OPENSSL_ROOT)\out32\libeay32.lib, $(OPENSSL_ROOT)\out32\ssleay32.lib
|
@%append $^@ library bcrypt.lib
|
||||||
#!endif
|
@%append $^@ library crypt32.lib
|
||||||
|
!else
|
||||||
|
@%append $^@ library '$(OPENSSL_ROOT)\out32\libeay32.lib'
|
||||||
|
@%append $^@ library '$(OPENSSL_ROOT)\out32\ssleay32.lib'
|
||||||
|
!endif
|
||||||
|
|
||||||
$(LIB_ARG): $(__MAKEFILES__)
|
$(LIB_ARG): $(__MAKEFILES__)
|
||||||
%create $^@
|
%create $^@
|
||||||
|
Reference in New Issue
Block a user