summaryrefslogtreecommitdiffstats
path: root/private/mvdm/wow16/write/kmake.bat
blob: a13ee8082c9ed4351b809b1528307142a9932516 (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
rem echo off
set include=.
set lib=.\tools;.;
set path=.\tools
if exist debug goto origin
rem ****** command /c kmakend %1 %2 %3 %4 %5
rem ****** goto realfinis
:origin
rem ****** if not exist e:sccs.chk goto noshort
rem ****** set include=c:\lib
rem ****** set lib=c:\lib
rem ****** path=c:\dos;c:\wbin;c:\tools;c:\editors;c:\lint
:noshort
if "%1"=="-u" goto update
if "%1"=="-e" goto doecho
if "%1"=="-k" goto nobreak
if "%1"==""   goto breakok
echo usage: kmake {-u}{-e}{-k}
goto finis
:update
rem ****** if exist e:sccs.chk goto realupd
rem ****** echo *** Net not active, Update Skipped
rem ****** goto nonetfile
:realupd
echo *** Updating From Net
rem ****** upd /n d:\wow c:\wbin *.c *.asm *.def *.h *.ico *.cur *.rc makefile.* *.bmp
ssync
echo *** Update Complete
:nonetfile
shift
goto origin
:nobreak
del z-.msg
ren z.msg z-.msg
echo *** Starting Make. Make will not stop for compiler errors (DEBUG ON)
make -k "DFLAGS = -DKANJI -DCRLF -u" "DEBUGDEF = -DDEBUG"  >z.msg
goto finis
:doecho
echo *** Starting Make. Make will not stop for compiler errors (DEBUG ON)
make -k "DFLAGS = -DKANJI -DCRLF -u" "DEBUGDEF = -DDEBUG"
goto realfinis
:breakok
del z-.msg
ren z.msg z-.msg
echo *** Starting Make. MAKE WILL STOP FOR ALL ERRORS (DEBUG ON)
make "DFLAGS = -DKANJI -DCRLF -u" "DEBUGDEF = -DDEBUG"  >z.msg
:finis
:realfinis
if ERRORLEVEL 1 goto badend
echoerr *** Make complete.
goto theend
:badend
echo *** Errors found during make. 
:theend
..\..\setenv