File tree Expand file tree Collapse file tree 2 files changed +25
-8
lines changed Expand file tree Collapse file tree 2 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 1
1
!include "win32/config.mk"
2
2
3
- # only OpenSSL is supported with this build system
3
+ !if "$(WITH_WINCNG)" == "1"
4
+ !include "Makefile.WinCNG.inc"
5
+ !else
4
6
!include "Makefile.OpenSSL.inc"
7
+ !endif
5
8
!include "Makefile.inc"
6
9
7
10
OBJECTS=$(CSOURCES:.c=.obj)
@@ -14,14 +17,14 @@ all-sub: win32\objects.mk
14
17
15
18
clean:
16
19
-rmdir 2>NUL /s/q $(TARGET)
20
+ -del 2>NUL win32\objects.mk
17
21
18
22
real-clean vclean: clean
19
23
-del 2>NUL libssh2.dll
20
24
-del 2>NUL libssh2.exp
21
25
-del 2>NUL libssh2.ilk
22
26
-del 2>NUL libssh2.lib
23
27
-del 2>NUL *.pdb
24
- -del 2>NUL win32\objects.mk
25
28
26
29
win32\objects.mk: Makefile.inc
27
30
@echo OBJECTS = \>$@
Original file line number Diff line number Diff line change 1
1
2
2
# Tweak these for your system
3
3
!if "$(OPENSSLINC)" == ""
4
- OPENSSLINC =..\openssl-0.9.8x \inc32
4
+ OPENSSLINC =..\openssl-0.9.8zc \inc32
5
5
!endif
6
6
7
7
!if "$(OPENSSLLIB)" == ""
8
- OPENSSLLIB =..\openssl-0.9.8x \out32dll
8
+ OPENSSLLIB =..\openssl-0.9.8zc \out32dll
9
9
!endif
10
10
11
11
!if "$(ZLIBINC)" == ""
12
- ZLIBINC=-DLIBSSH2_HAVE_ZLIB =1 /I ..\zlib-1.2.7
12
+ ZLIBINC =..\zlib-1.2.8
13
13
!endif
14
14
15
15
!if "$(ZLIBLIB)" == ""
16
- ZLIBLIB =..\zlib-1.2.7
16
+ ZLIBLIB =..\zlib-1.2.8
17
17
!endif
18
18
19
19
!if "$(TARGET)" == ""
@@ -29,11 +29,25 @@ CPPFLAGS=/Oi /O2 /Oy /GF /Y- /MD /DNDEBUG
29
29
DLLFLAGS =/DEBUG /LD
30
30
!endif
31
31
32
- CPPFLAGS =/nologo /GL /Zi /EHsc $(CPPFLAGS ) /Iwin32 /Iinclude /DLIBSSH2_OPENSSL /I$(OPENSSLINC ) $(ZLIBINC )
32
+ CPPFLAGS =/nologo /GL /Zi /EHsc $(CPPFLAGS ) /Iwin32 /Iinclude
33
+
34
+ !if "$(WITH_WINCNG)" == "1"
35
+ CPPFLAGS =$(CPPFLAGS ) /DLIBSSH2_WINCNG
36
+ # LIBS=bcrypt.lib crypt32.lib
37
+ !else
38
+ CPPFLAGS =$(CPPFLAGS ) /DLIBSSH2_OPENSSL /I$(OPENSSLINC )
39
+ LIBS =$(OPENSSLLIB ) \libeay32.lib $(OPENSSLLIB ) \ssleay32.lib
40
+ !endif
41
+
42
+ !if "$(WITH_ZLIB)" == "1"
43
+ CPPFLAGS =$(CPPFLAGS ) /DLIBSSH2_HAVE_ZLIB /I$(ZLIBINC )
44
+ LIBS =$(ZLIBLIB ) \zlib.lib
45
+ !endif
46
+
33
47
CFLAGS =$(CPPFLAGS )
34
48
RCFLAGS =/Iinclude
35
49
DLLFLAGS =$(CFLAGS ) $(DLLFLAGS )
36
- LIBS =$(OPENSSLLIB ) \libeay32.lib $( OPENSSLLIB ) \ssleay32.lib $( ZLIBLIB ) \zlib.lib ws2_32.lib user32.lib advapi32.lib gdi32.lib
50
+ LIBS =$(LIBS ) ws2_32.lib user32.lib advapi32.lib gdi32.lib
37
51
38
52
INTDIR =$(TARGET ) \$(SUBDIR )
39
53
You can’t perform that action at this time.
0 commit comments