]> git.saurik.com Git - redis.git/blame - deps/lua/etc/luavs.bat
makefile adapted to link against lua lib and to pass the 32bit flag to Lua building...
[redis.git] / deps / lua / etc / luavs.bat
CommitLineData
21d3294c 1@rem Script to build Lua under "Visual Studio .NET Command Prompt".\r
2@rem Do not run from this directory; run it from the toplevel: etc\luavs.bat .\r
3@rem It creates lua51.dll, lua51.lib, lua.exe, and luac.exe in src.\r
4@rem (contributed by David Manura and Mike Pall)\r
5\r
6@setlocal\r
7@set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE\r
8@set MYLINK=link /nologo\r
9@set MYMT=mt /nologo\r
10\r
11cd src\r
12%MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c\r
13del lua.obj luac.obj\r
14%MYLINK% /DLL /out:lua51.dll l*.obj\r
15if exist lua51.dll.manifest^\r
16 %MYMT% -manifest lua51.dll.manifest -outputresource:lua51.dll;2\r
17%MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c\r
18%MYLINK% /out:lua.exe lua.obj lua51.lib\r
19if exist lua.exe.manifest^\r
20 %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe\r
21%MYCOMPILE% l*.c print.c\r
22del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^\r
23 loslib.obj ltablib.obj lstrlib.obj loadlib.obj\r
24%MYLINK% /out:luac.exe *.obj\r
25if exist luac.exe.manifest^\r
26 %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe\r
27del *.obj *.manifest\r
28cd ..\r