FreeCalypso > hg > tcs211-c139
comparison g23m/condat/int/bin/makcdg.bat @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 @PUSHD %TESTROOT%\int\bin | |
2 @if x%_4ver% == x goto Need4NT | |
3 | |
4 | |
5 @iff not x%MSGDOCDIR% == x then | |
6 @if not exist %MSGDOCDIR% mkdir %MSGDOCDIR% | |
7 @copy /U %TESTROOT%\com\doc\msg\*.* %MSGDOCDIR% | |
8 @endiff | |
9 | |
10 | |
11 @iff not x%SAPDOCDIR% == x then | |
12 @if not exist %SAPDOCDIR% mkdir %SAPDOCDIR% | |
13 @copy /U %TESTROOT%\ms\doc\sap\*.* %SAPDOCDIR% | |
14 @endiff | |
15 | |
16 | |
17 @set OPT= | |
18 | |
19 @rem ALR and GTI are considered to be mutually exclusive; | |
20 @rem therefore the maximum number of arguments currently supported is 3 | |
21 @rem for example makcdg [|ALR|GTI] [GPRS] [TARGET] [NO_SDL] [NO_SYMBOLS] | |
22 | |
23 @if %1 == ALR .OR. %2 == ALR .OR. %3 == ALR .OR. %4 == ALR .OR. %5 == ALR set OPT=ALR=1 | |
24 @if %1 == GPRS .OR. %2 == GPRS .OR. %3 == GPRS .OR. %4 == GPRS .OR. %5 == GPRS set OPT=%OPT% GPRS= | |
25 @if %1 == GTI .OR. %2 == GTI .OR. %3 == GTI .OR. %4 == GTI .OR. %5 == GTI set OPT=%OPT% FF_GTI= | |
26 | |
27 @rem make ALR and GPRS the default, if neither ALR, GTI, or GPRS are being explicitly specified!!! | |
28 @if %@index[%OPT,ALR] == -1 .AND. %@index[%OPT,FF_GTI] == -1 .AND. %@index[%OPT,GPRS] == -1 set OPT=ALR=1 GPRS= | |
29 | |
30 @set CCDGEN_OPT_TEMP= -a2 | |
31 @rem default is alignment for PC = INTEL = a2 | |
32 @if %1 == ARM .OR. %2 == ARM .OR. %3 == ARM .OR. %4 == ARM .OR. %5 == ARM set CCDGEN_OPT_TEMP= -a2 | |
33 @set CCDGEN_OPT_MAKCDG=%CCDGEN_OPT_TEMP% | |
34 | |
35 @set CCDGEN_OPT_TEMP= -s | |
36 @rem default is symbols (for PC) = -s | |
37 @if %1 == NO_SYMBOLS .OR. %2 == NO_SYMBOLS .OR. %3 == NO_SYMBOLS .OR. %4 == NO_SYMBOLS .OR. %5 == NO_SYMBOLS set CCDGEN_OPT_TEMP= | |
38 @set CCDGEN_OPT_MAKCDG=%CCDGEN_OPT_MAKCDG% %CCDGEN_OPT_TEMP% | |
39 | |
40 @set CCDGEN_OPT_TEMP= -l | |
41 @rem default is sdl (for PC) = -l | |
42 @if %1 == NO_SDL .OR. %2 == NO_SDL .OR. %3 == NO_SDL .OR. %4 == NO_SDL .OR. %5 == NO_SDL set CCDGEN_OPT_TEMP= | |
43 @set CCDGEN_OPT_MAKCDG=%CCDGEN_OPT_MAKCDG% %CCDGEN_OPT_TEMP% | |
44 | |
45 @unset /Q CCDGEN_OPT_TEMP | |
46 | |
47 @set OPT=%OPT% TDCLIB=1 | |
48 @set CCDGEN_OPT_MAKCDG=%CCDGEN_OPT_MAKCDG% -gtdc | |
49 | |
50 @if exist "%TESTROOT%\ms\doc\sap\dmya.sap" goto DUMMY | |
51 goto NODUMMY | |
52 :DUMMY | |
53 set OPT=%OPT% DMY= | |
54 :NODUMMY | |
55 | |
56 @if exist "%TESTROOT%\ms\doc\sap\ip.sap" goto WAP | |
57 goto NOWAP | |
58 :WAP | |
59 set OPT=%OPT% WAP= | |
60 :NOWAP | |
61 | |
62 @if exist "%TESTROOT%\ms\doc\sap\btp.sap" goto BT | |
63 goto NOBT | |
64 :BT | |
65 set OPT=%OPT% BT= | |
66 :NOBT | |
67 | |
68 @if exist "%TESTROOT%\ms\doc\sap\t30.sap" GOTO FAX | |
69 set OPT=%OPT% VOICE= | |
70 :FAX | |
71 | |
72 nmake %TESTROOT%\int\bin\makcdg.mak %OPT %CCDGEN_OPT | |
73 @pushd | |
74 strcheck -i -c%TESTROOT%\ms\CDGINC && @goto STR_SUCC | |
75 @echo strcheck failed - makcdg cancelled | |
76 @goto END | |
77 :STR_SUCC | |
78 @cdd %GPF%\CCD | |
79 gnumake -f ccddata.mk TARGET=nucwin [DEBUG=1] | |
80 gnumake -f ccddata.mk [DEBUG=1] | |
81 @popd | |
82 | |
83 @pushd | |
84 @cdd %GPF%\util\tap | |
85 gnumake tcsl | |
86 @popd | |
87 | |
88 | |
89 @REM -- need config files in a generic config directory for WINDOWS stack build | |
90 @md \chipsetsw\system\deps_objs | |
91 @md \chipsetsw\system\deps_objs\berlin_simulation | |
92 @md \chipsetsw\system\deps_objs\berlin_simulation\config | |
93 @pushd | |
94 cdd \g23m | |
95 perl generate_nice_config_files.pl | |
96 @popd | |
97 | |
98 goto END | |
99 | |
100 :Need4NT | |
101 @echo "Error: 4DOS or 4NT is needed | |
102 @goto END | |
103 | |
104 | |
105 :END | |
106 @if NOT ISDIR %TESTROOT%\cdginc md %TESTROOT%\cdginc | |
107 @POPD |