Skip to content

Commit

Permalink
Watcom build: added support for WinCNG build.
Browse files Browse the repository at this point in the history
  • Loading branch information
gknauf committed Dec 8, 2014
1 parent 7f7e65c commit 1689315
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions win32/Makefile.Watcom
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ OPENSSL_ROOT = $(%openssl_root)
OPENSSL_ROOT = ..\..\openssl-0.9.8zc
!endif

#!ifdef %use_zlib
CFLAGS += -dHAVE_ZLIB_H -dHAVE_LIBZ -I$(ZLIB_ROOT)
#!endif
!ifdef %use_zlib
CFLAGS += -DLIBSSH2_HAVE_ZLIB -I$(ZLIB_ROOT)
!endif

#!ifdef %use_ssl
CFLAGS += -wcd=138 -dUSE_OPENSSL -dUSE_SSLEAY -I$(OPENSSL_ROOT)\inc32
#!endif
!ifdef %use_wincng
CFLAGS += -DLIBSSH2_WINCNG
!else
CFLAGS += -wcd=138 -dLIBSSH2_OPENSSL -I$(OPENSSL_ROOT)\inc32
!endif

!ifdef %use_watt32
CFLAGS += -dUSE_WATT32 -I$(%watt_root)\inc
Expand All @@ -93,9 +95,11 @@ LIB_ARG = $(OBJ_BASE)\stat\wlib.arg
!ifndef %MAKEFLAGS
!error You MUST call wmake with the -u switch!
!else
# only OpenSSL is supported with this build system
CFLAGS += -dLIBSSH2_OPENSSL
!ifdef %use_wincng
!include ..\Makefile.WinCNG.inc
!else
!include ..\Makefile.OpenSSL.inc
!endif
!include ..\Makefile.inc
!endif

Expand Down Expand Up @@ -168,12 +172,16 @@ $(LINK_ARG): $(__MAKEFILES__)
!else
@%append $^@ library ws2_32.lib
!endif
#!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_zlib
@%append $^@ library '$(ZLIB_ROOT)\zlib.lib'
!endif
!ifdef %use_wincng
@%append $^@ library bcrypt.lib
@%append $^@ library crypt32.lib
!else
@%append $^@ library '$(OPENSSL_ROOT)\out32\libeay32.lib'
@%append $^@ library '$(OPENSSL_ROOT)\out32\ssleay32.lib'
!endif

$(LIB_ARG): $(__MAKEFILES__)
%create $^@
Expand Down

0 comments on commit 1689315

Please sign in to comment.