]>
Commit | Line | Data |
---|---|---|
e5a87a6c | 1 | @echo off\r |
2 | setlocal\r | |
3934e170 | 3 | call setenv.cmd\r |
e5a87a6c | 4 | if "%1"=="" goto icc\r |
5 | if "%1"=="--icc" goto icc\r | |
6 | if "%1"=="-i" goto icc\r | |
7 | if "%1"=="--emx" goto emx\r | |
8 | if "%1"=="-e" goto emx\r | |
9 | if "%1"=="--gcc" goto gcc\r | |
10 | if "%1"=="-g" goto gcc\r | |
11 | if "%1"=="--oldconf" goto oldconf\r | |
12 | if "%1"=="-o" goto oldconf\r | |
13 | if "%1"=="--test" goto test\r | |
14 | if "%1"=="-t" goto test\r | |
15 | if "%1"=="--package" goto package\r | |
16 | if "%1"=="-p" goto package\r | |
17 | "echo.exe" "usage: makeos2 [--emx|-e|--gcc|-g|--icc|-i|--oldconf|-o|--test|-t|--package|-p]"\r | |
18 | goto end\r | |
19 | \r | |
20 | :emx\r | |
21 | set COMPILER=gcc-emx\r | |
22 | goto initial\r | |
23 | \r | |
24 | :gcc\r | |
25 | set COMPILER=gcc-os2\r | |
26 | goto initial\r | |
27 | \r | |
28 | :icc\r | |
29 | set COMPILER=icc-os2\r | |
30 | goto initial\r | |
31 | \r | |
32 | :initial\r | |
87fa79e5 | 33 | make -f Makefile.os2 confclean\r |
34 | make -e -f Makefile.os2 %2 %3 %4 %5 %6 %7 %8 %9\r | |
e5a87a6c | 35 | goto end\r |
36 | \r | |
37 | :oldconf\r | |
38 | make -f Makefile.os2 --directory=../src --warn-undefined-variables %2 %3 %4 %5 %6 %7 %8 %9 \r | |
36250f22 | 39 | make -f Makefile.os2 --directory=../lib --warn-undefined-variables %2 %3 %4 %5 %6 %7 %8 %9 \r |
e5a87a6c | 40 | goto end\r |
41 | \r | |
42 | :test\r | |
e5a87a6c | 43 | cd ..\test\r |
44 | echo it's %LARCH_PATH% and %LCLIMPORTDIR%\r | |
87fa79e5 | 45 | make LCLINT=%basedir%\bin\splint %2 %3 %4 %4 %5 %6 %7 %8 %9 -e -f Makefile.os2\r |
e5a87a6c | 46 | cd ..\os2\r |
47 | goto end\r | |
48 | \r | |
49 | :package\r | |
3934e170 | 50 | cd %basedir%\..\r |
87fa79e5 | 51 | rm -f splint-%version%-os2-*.tar*\r |
52 | tar cvf splint-%version%-os2-bin.tar splint-%version%\bin splint-%version%\imports splint-%version%\lib splint-%version%\os2 splint-%version%\test splint-%version%\LICENSE splint-%version%\README\r | |
53 | tar cvf splint-%version%-os2-all.tar splint-%version%\r | |
54 | cd \export\splint\r | |
55 | tar cvf %basedir%\..\splint-%version%-os2-add.tar splint-%version%\r | |
56 | gzip %basedir%\..\splint-%version%-os2-*.tar\r | |
e5a87a6c | 57 | goto end\r |
58 | \r | |
59 | :end\r | |
60 | endlocal\r |