2005-01-03 23:46:15 +01:00
|
|
|
|
|
|
|
# Tweak these for your system
|
2013-10-16 23:23:26 +02:00
|
|
|
!if "$(OPENSSLINC)" == ""
|
2014-11-30 18:39:57 +01:00
|
|
|
OPENSSLINC=..\openssl-0.9.8zc\inc32
|
2013-10-16 23:23:26 +02:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!if "$(OPENSSLLIB)" == ""
|
2014-11-30 18:39:57 +01:00
|
|
|
OPENSSLLIB=..\openssl-0.9.8zc\out32dll
|
2013-10-16 23:23:26 +02:00
|
|
|
!endif
|
2005-01-03 23:46:15 +01:00
|
|
|
|
2013-10-16 23:23:26 +02:00
|
|
|
!if "$(ZLIBINC)" == ""
|
2014-11-30 18:39:57 +01:00
|
|
|
ZLIBINC=..\zlib-1.2.8
|
2013-10-16 23:23:26 +02:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!if "$(ZLIBLIB)" == ""
|
2014-11-30 18:39:57 +01:00
|
|
|
ZLIBLIB=..\zlib-1.2.8
|
2013-10-16 23:23:26 +02:00
|
|
|
!endif
|
2005-01-03 23:46:15 +01:00
|
|
|
|
|
|
|
!if "$(TARGET)" == ""
|
2005-01-11 03:23:28 +01:00
|
|
|
TARGET=Release
|
2005-01-03 23:46:15 +01:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!if "$(TARGET)" == "Debug"
|
|
|
|
SUFFIX=_debug
|
2005-01-11 03:23:28 +01:00
|
|
|
CPPFLAGS=/Od /MDd
|
|
|
|
DLLFLAGS=/DEBUG /LDd
|
|
|
|
!else
|
2013-10-16 23:23:26 +02:00
|
|
|
CPPFLAGS=/Oi /O2 /Oy /GF /Y- /MD /DNDEBUG
|
2005-01-11 03:23:28 +01:00
|
|
|
DLLFLAGS=/DEBUG /LD
|
2005-01-03 23:46:15 +01:00
|
|
|
!endif
|
|
|
|
|
2014-11-30 18:39:57 +01:00
|
|
|
CPPFLAGS=/nologo /GL /Zi /EHsc $(CPPFLAGS) /Iwin32 /Iinclude
|
|
|
|
|
|
|
|
!if "$(WITH_WINCNG)" == "1"
|
|
|
|
CPPFLAGS=$(CPPFLAGS) /DLIBSSH2_WINCNG
|
|
|
|
# LIBS=bcrypt.lib crypt32.lib
|
|
|
|
!else
|
|
|
|
CPPFLAGS=$(CPPFLAGS) /DLIBSSH2_OPENSSL /I$(OPENSSLINC)
|
2014-12-01 13:21:50 +01:00
|
|
|
LIBS=$(LIBS) $(OPENSSLLIB)\libeay32.lib $(OPENSSLLIB)\ssleay32.lib
|
2014-11-30 18:39:57 +01:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!if "$(WITH_ZLIB)" == "1"
|
|
|
|
CPPFLAGS=$(CPPFLAGS) /DLIBSSH2_HAVE_ZLIB /I$(ZLIBINC)
|
2014-12-01 13:21:50 +01:00
|
|
|
LIBS=$(LIBS) $(ZLIBLIB)\zlib.lib
|
2014-11-30 18:39:57 +01:00
|
|
|
!endif
|
|
|
|
|
2005-01-11 03:23:28 +01:00
|
|
|
CFLAGS=$(CPPFLAGS)
|
2012-10-24 02:37:55 +02:00
|
|
|
RCFLAGS=/Iinclude
|
2005-01-11 03:23:28 +01:00
|
|
|
DLLFLAGS=$(CFLAGS) $(DLLFLAGS)
|
2014-11-30 18:39:57 +01:00
|
|
|
LIBS=$(LIBS) ws2_32.lib user32.lib advapi32.lib gdi32.lib
|
2005-01-11 03:23:28 +01:00
|
|
|
|
2005-01-03 23:46:15 +01:00
|
|
|
INTDIR=$(TARGET)\$(SUBDIR)
|
|
|
|
|
|
|
|
|