| 1 | @echo off |
|---|
| 2 | rem Put your favourite target(s) first, it will be built by default |
|---|
| 3 | |
|---|
| 4 | if "%1" == "?" goto help |
|---|
| 5 | if "%1" == "min" goto min |
|---|
| 6 | |
|---|
| 7 | call buildsub.cmd _txall_\os2t %2 %3 %4 %5 |
|---|
| 8 | if errorlevel 1 goto end |
|---|
| 9 | |
|---|
| 10 | REM end of default built targets |
|---|
| 11 | if "%1" == "" goto end |
|---|
| 12 | if "%1" == "def" goto end |
|---|
| 13 | |
|---|
| 14 | call buildsub.cmd _txall_\dosd %2 %3 %4 %5 |
|---|
| 15 | if errorlevel 1 goto end |
|---|
| 16 | call buildsub.cmd _txall_\dosr %2 %3 %4 %5 |
|---|
| 17 | if errorlevel 1 goto end |
|---|
| 18 | call buildsub.cmd _txall_\dost %2 %3 %4 %5 |
|---|
| 19 | if errorlevel 1 goto end |
|---|
| 20 | call buildsub.cmd _txall_\lind %2 %3 %4 %5 |
|---|
| 21 | if errorlevel 1 goto end |
|---|
| 22 | call buildsub.cmd _txall_\linr %2 %3 %4 %5 |
|---|
| 23 | if errorlevel 1 goto end |
|---|
| 24 | call buildsub.cmd _txall_\lint %2 %3 %4 %5 |
|---|
| 25 | if errorlevel 1 goto end |
|---|
| 26 | call buildsub.cmd _txall_\os2d %2 %3 %4 %5 |
|---|
| 27 | if errorlevel 1 goto end |
|---|
| 28 | call buildsub.cmd _txall_\os2r %2 %3 %4 %5 |
|---|
| 29 | if errorlevel 1 goto end |
|---|
| 30 | call buildsub.cmd _txall_\wind %2 %3 %4 %5 |
|---|
| 31 | if errorlevel 1 goto end |
|---|
| 32 | call buildsub.cmd _txall_\winr %2 %3 %4 %5 |
|---|
| 33 | if errorlevel 1 goto end |
|---|
| 34 | call buildsub.cmd _txall_\wint %2 %3 %4 %5 |
|---|
| 35 | if errorlevel 1 goto end |
|---|
| 36 | |
|---|
| 37 | call buildsub.cmd _txmin_\dosr %2 %3 %4 %5 |
|---|
| 38 | if errorlevel 1 goto end |
|---|
| 39 | call buildsub.cmd _txmin_\winr %2 %3 %4 %5 |
|---|
| 40 | if errorlevel 1 goto end |
|---|
| 41 | call buildsub.cmd _txmin_\linr %2 %3 %4 %5 |
|---|
| 42 | if errorlevel 1 goto end |
|---|
| 43 | call buildsub.cmd _txmin_\os2t %2 %3 %4 %5 |
|---|
| 44 | if errorlevel 1 goto end |
|---|
| 45 | call buildsub.cmd _txmin_\dost %2 %3 %4 %5 |
|---|
| 46 | if errorlevel 1 goto end |
|---|
| 47 | call buildsub.cmd _txmin_\wint %2 %3 %4 %5 |
|---|
| 48 | if errorlevel 1 goto end |
|---|
| 49 | call buildsub.cmd _txmin_\lint %2 %3 %4 %5 |
|---|
| 50 | if errorlevel 1 goto end |
|---|
| 51 | call buildsub.cmd _txmin_\os2d %2 %3 %4 %5 |
|---|
| 52 | if errorlevel 1 goto end |
|---|
| 53 | call buildsub.cmd _txmin_\dosd %2 %3 %4 %5 |
|---|
| 54 | if errorlevel 1 goto end |
|---|
| 55 | call buildsub.cmd _txmin_\wind %2 %3 %4 %5 |
|---|
| 56 | if errorlevel 1 goto end |
|---|
| 57 | call buildsub.cmd _txmin_\lind %2 %3 %4 %5 |
|---|
| 58 | if errorlevel 1 goto end |
|---|
| 59 | |
|---|
| 60 | :min |
|---|
| 61 | call buildsub.cmd _txmin_\os2r %2 %3 %4 %5 |
|---|
| 62 | if errorlevel 1 goto end |
|---|
| 63 | goto end |
|---|
| 64 | |
|---|
| 65 | :help |
|---|
| 66 | echo. |
|---|
| 67 | echo Build one or more executable targets using a small 'makefile' in a 2nd |
|---|
| 68 | echo level subdirectory for each target-type and a generic makefile.mif here |
|---|
| 69 | echo. |
|---|
| 70 | echo Usage: %0 [def ^| all | min] [clean] |
|---|
| 71 | echo. |
|---|
| 72 | echo Parameters: def Build trace (but not debug) for all platforms |
|---|
| 73 | echo all Build all target-types, trace and debug |
|---|
| 74 | echo min Build default MINimal-size target |
|---|
| 75 | echo. |
|---|
| 76 | echo clean Cleanup, delete all previously built stuff and temporaries |
|---|
| 77 | echo. |
|---|
| 78 | :end |
|---|