-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmake.bat
37 lines (27 loc) · 870 Bytes
/
make.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
echo off
echo ************************************************************
echo Auto detect build target from the execution environment.
echo Running "make.bat default" will select default build target.
echo This default is defined in "src\f386def.inc".
echo ************************************************************
cd src
..\test.com\check_pc.com %1
if ERRORLEVEL 4 goto DOS
if ERRORLEVEL 3 goto AT
if ERRORLEVEL 2 goto PC98
if ERRORLEVEL 1 goto TOWNS
..\tools\imake %1 %2 %3 %4 %5 %6 %7 %8 %9
goto exit
:TOWNS
..\tools\imake -DBUILD_TARGET=TOWNS %1 %2 %3 %4 %5 %6 %7 %8 %9
goto exit
:PC98
..\tools\imake -DBUILD_TARGET=PC98 %1 %2 %3 %4 %5 %6 %7 %8 %9
goto exit
:AT
..\tools\imake -DBUILD_TARGET=AT %1 %2 %3 %4 %5 %6 %7 %8 %9
goto exit
:DOS
..\tools\imake -DBUILD_TARGET=gen %1 %2 %3 %4 %5 %6 %7 %8 %9
goto exit
:exit