gs_bucket_array

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

cl.bat (796B)


      1 @echo off
      2 rmdir /Q /S bin
      3 mkdir bin
      4 pushd bin
      5 
      6 rem Name
      7 set name=App
      8 
      9 rem Include directories 
     10 set inc=/I ..\third_party\include\
     11 
     12 rem Source files
     13 set src_main=..\source\*.c
     14 
     15 rem All source together
     16 set src_all=%src_main%
     17 
     18 rem OS Libraries
     19 set os_libs= opengl32.lib kernel32.lib user32.lib ^
     20 shell32.lib vcruntime.lib msvcrt.lib gdi32.lib Winmm.lib Advapi32.lib
     21 
     22 rem Link options
     23 set l_options=/EHsc /link /SUBSYSTEM:CONSOLE /NODEFAULTLIB:msvcrt.lib
     24 
     25 rem Compile Release
     26 rem cl /MP /FS /Ox /W0 /Fe%name%.exe %src_all% %inc% ^
     27 rem /EHsc /link /SUBSYSTEM:CONSOLE /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:LIBCMT ^
     28 rem %os_libs%
     29 
     30 rem Compile Debug
     31 cl /w /MP -Zi /DEBUG:FULL /Fe%name%.exe %src_all% %inc% ^
     32 /EHsc /link /SUBSYSTEM:CONSOLE /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:LIBCMT ^
     33 %os_libs%
     34 
     35 popd