2012-09-28 11:19:49 -04:00
|
|
|
:: run this from a VS x64 command prompt
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
SET PACKAGE_NAME=zlib-1.2.7
|
|
|
|
|
|
|
|
nmake -f win32\Makefile.msc clean
|
|
|
|
nmake -f win32\Makefile.msc AS=ml64 LOC="-I. -I.\win32 -DASMV -DASMINF" OBJA="inffasx64.obj gvmat64.obj inffas8664.obj"
|
|
|
|
set ZLIB_SRC=%cd%
|
|
|
|
set ZLIB_DEST=%cd%-x64
|
|
|
|
nmake -f win32\Makefile.msc test
|
|
|
|
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
|
|
|
|
copy zlib.h %ZLIB_DEST%\include
|
|
|
|
copy zconf.h %ZLIB_DEST%\include
|
|
|
|
copy zdll.lib %ZLIB_DEST%\lib
|
|
|
|
copy zlib1.dll %ZLIB_DEST%\bin
|
|
|
|
copy README %ZLIB_DEST%\LICENSE.ZLIB
|
|
|
|
nmake -f win32\Makefile.msc clean
|
|
|
|
|
|
|
|
cd %ZLIB_DEST%
|
|
|
|
set PATH=%PATH%;%ProgramFiles%\7-zip
|
2012-09-28 12:05:33 -04:00
|
|
|
del ..\%PACKAGE_NAME%-x64.7z
|
2012-09-28 11:19:49 -04:00
|
|
|
7z a ..\%PACKAGE_NAME%-x64.7z *
|
|
|
|
cd %ZLIB_SRC%
|
|
|
|
rmdir /q /s %ZLIB_DEST%
|
|
|
|
|
|
|
|
echo.Finished!
|
|
|
|
pause
|