PageRenderTime 41ms CodeModel.GetById 20ms app.highlight 4ms RepoModel.GetById 16ms app.codeStats 0ms

/PC/VS7.1/_ssl.mak

http://unladen-swallow.googlecode.com/
Makefile | 38 lines | 30 code | 7 blank | 1 comment | 0 complexity | 6d3983b469e2ea63ab30a5ce818bf3a6 MD5 | raw file
 1EXTRA_LIBS=
 2
 3!IFDEF DEBUG
 4SUFFIX=_d.pyd
 5TEMP=x86-temp-debug/
 6CFLAGS=/Od /Zi /MDd /LDd /DDEBUG /D_DEBUG /DWIN32
 7SSL_LIB_DIR=$(SSL_DIR)/out32.dbg
 8!ELSE
 9SUFFIX=.pyd
10TEMP=x86-temp-release/
11CFLAGS=/Ox /MD /LD /DWIN32
12SSL_LIB_DIR=$(SSL_DIR)/out32
13!ENDIF
14
15INCLUDES=-I ../../Include -I ../../PC -I $(SSL_DIR)/inc32
16
17SSL_LIBS=gdi32.lib wsock32.lib user32.lib advapi32.lib /LIBPATH:$(SSL_LIB_DIR) libeay32.lib ssleay32.lib
18SSL_SOURCE=../../Modules/_ssl.c 
19
20HASH_LIBS=gdi32.lib user32.lib advapi32.lib /libpath:$(SSL_LIB_DIR) libeay32.lib
21HASH_SOURCE=../../Modules/_hashopenssl.c 
22
23all: _ssl$(SUFFIX) _hashlib$(SUFFIX)
24
25# Split compile/link into two steps to better support VSExtComp
26_ssl$(SUFFIX): $(SSL_SOURCE) $(SSL_LIB_DIR)/libeay32.lib $(SSL_LIB_DIR)/ssleay32.lib ../../PC/*.h ../../Include/*.h
27	@if not exist "$(TEMP)/_ssl/." mkdir "$(TEMP)/_ssl"
28	cl /nologo /c $(SSL_SOURCE) $(CFLAGS) /Fo$(TEMP)\_ssl\$*.obj $(INCLUDES)
29	link /nologo @<<
30             /dll /out:_ssl$(SUFFIX) $(TEMP)\_ssl\$*.obj $(SSL_LIBS) $(EXTRA_LIBS)
31<<
32
33_hashlib$(SUFFIX): $(HASH_SOURCE) $(SSL_LIB_DIR)/libeay32.lib ../../PC/*.h ../../Include/*.h
34    @if not exist "$(TEMP)/_hashlib/." mkdir "$(TEMP)/_hashlib"
35    cl /nologo /c $(HASH_SOURCE) $(CFLAGS) $(EXTRA_CFLAGS) /Fo$(TEMP)\_hashlib\$*.obj $(INCLUDES) 
36    link /nologo @<<
37	/dll /out:_hashlib$(SUFFIX) $(HASH_LIBS) $(EXTRA_LIBS) $(TEMP)\_hashlib\$*.obj
38<<