Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
37 lines
1.4 KiB
Batchfile
37 lines
1.4 KiB
Batchfile
@echo off
|
|
:: ____________________________
|
|
:: ██▀▀█▀▀██▀▀▀▀▀▀▀█▀▀█ │ ▄▄▄ ▄▄
|
|
:: ██ ▀ █▄ ▀██▄ ▀ ▄█ ▄▀▀ █ │ ▀█▄ ▄▀██ ▄█▄█ ██▀▄ ██ ▄███
|
|
:: █ █ █ ▀▀ ▄█ █ █ ▀▄█ █▄ │ ▄▄█▀ ▀▄██ ██ █ ██▀ ▀█▄ ▀█▄▄
|
|
:: ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀────────┘ ▀▀
|
|
:: by Guillaume 'Aoineko' Blanchard under CC BY-SA license
|
|
::─────────────────────────────────────────────────────────────────────────────
|
|
setlocal EnableDelayedExpansion
|
|
|
|
for %%G in (*.c) do call :BuildFilter %%~nG %1 %2 %3 %4 %5 %6 %7 %8 %9
|
|
|
|
call build s_game "target=BIN_DISK"
|
|
call build s_game "target=BIN_TAPE"
|
|
call build s_game "target=DOS0"
|
|
call build s_game "target=DOS1"
|
|
call build s_game "target=DOS2"
|
|
|
|
exit /b 0
|
|
|
|
:BuildFilter
|
|
:: Setup variables
|
|
set name=%1
|
|
set ext=%name:~-3%
|
|
|
|
:: Skip ROM mapper segments
|
|
if /I %ext%==_p0 exit /b
|
|
if /I %ext%==_b0 exit /b
|
|
if /I %ext%==_b1 exit /b
|
|
if /I %ext%==_b2 exit /b
|
|
if /I %ext%==_b3 exit /b
|
|
|
|
:: Do build
|
|
call build %1 %2 %3 %4 %5 %6 %7 %8 %9
|
|
REM echo %1
|
|
exit /b
|