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
7 @set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE
\r
8 @set MYLINK=link /nologo
\r
12 %MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c
\r
13 del lua.obj luac.obj
\r
14 %MYLINK% /DLL /out:lua51.dll l*.obj
\r
15 if 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
19 if exist lua.exe.manifest^
\r
20 %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe
\r
21 %MYCOMPILE% l*.c print.c
\r
22 del 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
25 if exist luac.exe.manifest^
\r
26 %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe
\r
27 del *.obj *.manifest
\r