anton_render/build.bat
2025-05-14 11:12:07 +02:00

51 lines
897 B
Batchfile

@echo off
@rem ---------------------------------------------------------------------------------------
@rem Build and run codegen
IF NOT EXIST .\build mkdir .\build
pushd .\build
ctime -begin timeBuild.ctm
cl /Zi /nologo ../src/metagen/codegen.c
set LastError=%ERRORLEVEL%
ctime -end timeBuild.ctm %LastError%
popd
IF NOT %LastError%==0 GOTO :end
pushd src
pushd gen_test
..\..\build\codegen.exe ./
popd
popd
@rem ---------------------------------------------------------------------------------------
@rem Build main program
set CommonCompilerFlags=/nologo /Zi /FC /Od
@rem /WX /W4 /wd4201 /wd4100 /wd4189 /wd4244 /wd4127 /wd4456
@rem
@rem
IF NOT EXIST .\build mkdir .\build
pushd .\build
ctime -begin timeBuild.ctm
cl %CommonCompilerFlags% ../src/main.c /Fe:program.exe
set LastError=%ERRORLEVEL%
ctime -end timeBuild.ctm %LastError%
popd
IF NOT %LastError%==0 GOTO :end
:end