Advertisement
Guest User

456

a guest
Apr 26th, 2013
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. @echo off
  2. call "\Program Files(x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat"
  3.  
  4. :compile
  5. @echo === building bam ===
  6. @cl /D_CRT_SECURE_NO_DEPRECATE /O2 /nologo src/tools/txt2c.c /Fesrc/tools/txt2c.exe
  7. @src\tools\txt2c src/base.lua src/tools.lua src/driver_gcc.lua src/driver_clang.lua src/driver_cl.lua > src\internal_base.h
  8.  
  9. @REM /DLUA_BUILD_AS_DLL = export lua functions
  10. @REM /W3 = Warning level 3
  11. @REM /Ox = max optimizations
  12. @REM /TC = compile as c
  13. @REM /Zi = generate debug database
  14. @REM /GS- = no stack checks
  15. @REM /GL = Whole program optimization (ltcg)
  16. @REM /LTCG = link time code generation
  17. @cl /D_CRT_SECURE_NO_DEPRECATE /DLUA_BUILD_AS_DLL /W3 /O2 /TC /Zi /GS- /GL /nologo /I src/lua src/*.c src/lua/*.c /Febam.exe /link /LTCG
  18.  
  19. @REM clean up
  20. @del bam.exp
  21. @del *.obj
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement