| 1 | @echo off\r |
| 2 | rem Compile all of SIMH using MINGW make and gcc environment\r |
| 3 | rem Individual simulator sources are in .\simulator_name\r |
| 4 | rem Individual simulator executables are to .\bin\r |
| 5 | rem\r |
| 6 | rem If needed, define the path for the MINGW bin directory.\r |
| 7 | rem (this should already be set if MINGW was installed correctly)\r |
| 8 | rem\r |
| 9 | gcc -v 1>NUL 2>NUL\r |
| 10 | if ERRORLEVEL 1 path C:\MinGW\bin;%path%\r |
| 11 | if not exist BIN mkdir BIN\r |
| 12 | gcc -v 1>NUL 2>NUL\r |
| 13 | if ERRORLEVEL 1 echo "MinGW Environment Unavailable"\r |
| 14 | mingw32-make WIN32=1 -f makefile %1 %2 %3 %4\r |