summaryrefslogtreecommitdiff
path: root/build.bat
diff options
context:
space:
mode:
Diffstat (limited to 'build.bat')
-rw-r--r--build.bat15
1 files changed, 15 insertions, 0 deletions
diff --git a/build.bat b/build.bat
new file mode 100644
index 0000000..3569429
--- /dev/null
+++ b/build.bat
@@ -0,0 +1,15 @@
1@echo off
2setlocal
3time /t
4
5set BUILD_DIR=build
6set SOURCE_DIR=source
7set INCLUDES=-I%SOURCE_DIR%\code -I%SOURCE_DIR% -I%SOURCE_DIR%\base
8set CFLAGS=-FC -GR- -EHa- -nologo -Zi -FS /analyze /W3 /WX -MD /DYNAMICBASE:NO
9set LIBS=user32.lib gdi32.lib kernel32.lib shell32.lib
10
11if not exist %BUILD_DIR% mkdir %BUILD_DIR%
12
13echo Building %BUILD_DIR%\program.exe...
14
15cl %INCLUDES% %CFLAGS% %SOURCE_DIR%\code\compiler.cpp /Fe%BUILD_DIR%\compiler.exe %LIBS%