2012-09-28 17:16:48 +02:00
|
|
|
:: run this from a VS x86 command prompt
|
2012-09-28 13:41:20 +02:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
SET PACKAGE_NAME=zlib-1.2.7
|
2012-09-28 17:16:48 +02:00
|
|
|
|
2012-09-28 17:19:49 +02:00
|
|
|
nmake -f win32\Makefile.msc clean
|
|
|
|
nmake -f win32\Makefile.msc LOC="-DASMV -DASMINF" OBJA="inffas32.obj match686.obj"
|
2012-09-28 13:41:20 +02:00
|
|
|
set ZLIB_SRC=%cd%
|
|
|
|
set ZLIB_DEST=%cd%-x86
|
2012-09-28 17:19:49 +02:00
|
|
|
nmake -f win32\Makefile.msc test
|
2012-09-28 13:41:20 +02:00
|
|
|
echo.Press return when ready to install!
|
|
|
|
pause
|
|
|
|
|
|
|
|
rmdir /q /s %ZLIB_DEST%
|
|
|
|
mkdir %ZLIB_DEST%
|
|
|
|
mkdir %ZLIB_DEST%\bin
|
|
|
|
mkdir %ZLIB_DEST%\include
|
|
|
|
mkdir %ZLIB_DEST%\lib
|
2012-10-03 16:31:24 +02:00
|
|
|
mkdir %ZLIB_DEST%\share
|
|
|
|
mkdir %ZLIB_DEST%\share\doc
|
|
|
|
mkdir %ZLIB_DEST%\share\doc\zlib
|
2012-09-28 13:41:20 +02:00
|
|
|
copy zlib.h %ZLIB_DEST%\include
|
|
|
|
copy zconf.h %ZLIB_DEST%\include
|
|
|
|
copy zdll.lib %ZLIB_DEST%\lib
|
|
|
|
copy zlib1.dll %ZLIB_DEST%\bin
|
2012-10-03 16:31:24 +02:00
|
|
|
copy README %ZLIB_DEST%\share\doc\zlib\COPYING
|
2012-09-28 17:19:49 +02:00
|
|
|
nmake -f win32\Makefile.msc clean
|
2012-09-28 13:41:20 +02:00
|
|
|
|
|
|
|
cd %ZLIB_DEST%
|
|
|
|
set PATH=%PATH%;%ProgramFiles%\7-zip
|
2012-09-28 18:05:33 +02:00
|
|
|
del ..\%PACKAGE_NAME%-x86.7z
|
2012-09-28 13:41:20 +02:00
|
|
|
7z a ..\%PACKAGE_NAME%-x86.7z *
|
|
|
|
cd %ZLIB_SRC%
|
2012-09-28 17:16:48 +02:00
|
|
|
rmdir /q /s %ZLIB_DEST%
|
2012-09-28 13:41:20 +02:00
|
|
|
|
|
|
|
echo.Finished!
|
|
|
|
pause
|