zlib1.2.5的编译
zlib1.2.5没有了1.2.4的vc6工程,只好使用命令行编译。
通过win32/Makefile.msc发现有4种编译方式,如下:
# Usage:
# nmake -f win32/Makefile.msc (standard build)
# nmake -f win32/Makefile.msc LOC=-DFOO (nonstandard build)
# nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" \
# OBJA="inffas32.obj match686.obj" (use ASM code, x86)
# nmake -f win32/Makefile.msc AS=ml64 LOC="-DASMV -DASMINF" \
# OBJA="inffasx64.obj gvmat64.obj inffas8664.c" (use ASM code, x64)
http://blogger.org.cn/blog/more.asp?name=hongrui&id=51442
通过win32/Makefile.msc发现有4种编译方式,如下:
# Usage:
# nmake -f win32/Makefile.msc (standard build)
# nmake -f win32/Makefile.msc LOC=-DFOO (nonstandard build)
# nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" \
# OBJA="inffas32.obj match686.obj" (use ASM code, x86)
# nmake -f win32/Makefile.msc AS=ml64 LOC="-DASMV -DASMINF" \
# OBJA="inffasx64.obj gvmat64.obj inffas8664.c" (use ASM code, x64)
首先打开Visual Studio 2005 Command Prompt,进入到zlib-1.2.5\contrib\masmx86,然后运行bld_ml32.bat,生成inffas32.obj和match686.obj。
然后把这两个文件copy到zlib-1.2.5下,输入命令行
nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" OBJA="inffas32.obj match686.obj"
最后编译出zdll.lib
http://blogger.org.cn/blog/more.asp?name=hongrui&id=51442