-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
51 lines (45 loc) · 950 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@echo off
if "%1"=="/?" goto usage
if "%1"=="final" goto final
if "%1"=="FINAL" goto final
if "%1"=="debug" goto debug
if "%1"=="DEBUG" goto debug
if "%1"=="clean" goto clean
if "%1"=="CLEAN" goto clean
:usage
echo.
echo Heretic v1.3 make batch
echo Usage: build [/?] [build-type]
echo.
echo build-type FINAL = Final build
echo build-type DEBUG = Debug build (include debugging info)
echo build-type CLEAN = Clean build environment
echo.
goto end
:final
echo.
echo.
echo *** Building Heretic v1.3 Final executable
echo.
echo.
wmake -f makefile.wat clean
wmake -f makefile.wat tic.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
goto end
:debug
echo.
echo.
echo *** Building Heretic v1.3 Debug executable
echo.
echo.
wmake -f makefile.wat clean
wmake -f makefile.wat tic.exe EXTERNOPT=/d2 %1 %2 %3 %4 %5 %6 %7 %8 %9
goto end
:clean
echo.
echo.
echo *** Cleaning Heretic v1.3 Environment (no binary deletion)
echo.
echo.
wmake -f makefile.wat clean
goto end
:end