summaryrefslogtreecommitdiffstats
path: root/private/mvdm/dpmi/mk.cmd
blob: 3f38f18161577d8e1cd8bce95ea3454b527fbd0a (plain) (blame)
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
52
53
54
55
56
57
echo off
if "%1"==""	    goto debug
if "%1"=="all"	    goto debug
if "%1"=="debug"    goto debug
if "%1"=="retail"   goto retail
if "%1"=="rom"	    goto rom

echo Usage:
echo	    mk				- Make debug version
echo	    mk debug			- Make debug version
echo	    mk retail			- Make retail version
echo	    mk rom    [debug \ retail]	- Make ROM version
echo	    mk all			- Make ALL versions!
goto end

rem ##
rem ## Make debug version
rem ##
:debug

nmake OPTIONS="-DDEBUG=1"

if "%1"=="all" goto retail
goto end

rem ##
rem ## Make retail version
rem ##
:retail

nmake SRC=".." DEST="retail" OPTIONS=""

if "%1"=="all" goto rom
goto end

rem ##
rem ## Make debug ROM Windows version
rem ##
:rom

if "%2"=="retail" goto rrom

nmake SRC=".." DEST="rom" OPTIONS="-DDEBUG=1 -DROM=1" VCPI="" LINKCMD="dosx.exe/far/ma,dosx.map,,$(SRC)\dosx.def;"

if "%1"=="all" goto rrom
goto end

rem ##
rem ## Make retail ROM Windows version
rem ##
:rrom

nmake SRC=".." DEST="rrom" OPTIONS="-DROM=1" VCPI="" LINKCMD="dosx.exe/far/ma,dosx.map,,$(SRC)\dosx.def;"
goto end


:end