mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-29 10:33:08 +00:00
132 lines
4.8 KiB
Batchfile
132 lines
4.8 KiB
Batchfile
@echo off
|
|
rem
|
|
rem 4cade Makefile for Windows
|
|
rem assembles source code, optionally builds a disk image
|
|
rem
|
|
rem a qkumba monstrosity from 2018-10-29
|
|
rem
|
|
|
|
set DISK=4cade.2mg
|
|
set VOLUME=A.4AM.PACK
|
|
|
|
rem third-party tools required to build (must be in path)
|
|
rem https://sourceforge.net/projects/acme-crossass/
|
|
set ACME=acme
|
|
rem https://www.brutaldeluxe.fr/products/crossdevtools/cadius/
|
|
rem https://github.com/mach-kernel/cadius
|
|
set CADIUS=cadius
|
|
|
|
if "%1" equ "asm" (
|
|
:asm
|
|
2>nul md build
|
|
2>nul md build\po
|
|
2>nul md build\X
|
|
2>nul md build\HGR
|
|
2>nul md build\ACTION
|
|
2>nul md build\DHGR
|
|
2>nul md build\SHR
|
|
2>nul md build\SS
|
|
2>nul md build\DEMO
|
|
2>nul md build\FX
|
|
|
|
%ACME% -r build\4cade.lst src\4cade.a
|
|
%ACME% src\fx\fx.dhgr.ripple.a
|
|
%ACME% src\fx\fx.dhgr.iris.a
|
|
%ACME% src\fx\fx.dhgr.radial.a
|
|
%ACME% src\fx\fx.dhgr.radial2.a
|
|
%ACME% src\fx\fx.dhgr.radial3.a
|
|
%ACME% src\fx\fx.dhgr.radial4.a
|
|
%ACME% src\fx\fx.dhgr.radial5.a
|
|
%ACME% src\fx\fx.dhgr.star.a
|
|
%ACME% src\fx\fx.hgr.diagonal.a
|
|
%ACME% src\fx\fx.hgr.interlock.ud.a
|
|
%ACME% src\fx\fx.hgr.interlock.lr.a
|
|
%ACME% src\fx\fx.hgr.spiral.a
|
|
%ACME% src\fx\fx.hgr.fourspiral.a
|
|
%ACME% src\fx\fx.hgr.fizzle.a
|
|
%ACME% src\fx\fx.hgr.bar.dissolve.a
|
|
%ACME% src\fx\fx.hgr.block.fizzle.a
|
|
%ACME% src\fx\fx.hgr.block.fizzle.white.a
|
|
%ACME% src\fx\fx.hgr.2pass.lr.a
|
|
%ACME% src\fx\fx.hgr.crystal.a
|
|
%ACME% src\fx\fx.hgr.foursquare.white.a
|
|
%ACME% src\fx\fx.hgr.onesquare.white.a
|
|
%ACME% src\fx\fx.hgr.diamond.a
|
|
%ACME% src\fx\fx.hgr.checkerboard.white.a
|
|
%ACME% src\fx\fx.hgr.halfblock.fizzle.a
|
|
%ACME% src\fx\fx.hgr.halfblock.fizzle.white.a
|
|
%ACME% src\fx\fx.hgr.stagger.ud.a
|
|
%ACME% src\fx\fx.hgr.stagger.ud.white.a
|
|
%ACME% src\fx\fx.hgr.stagger.lr.a
|
|
%ACME% src\fx\fx.hgr.stagger.lr.white.a
|
|
%ACME% src\fx\fx.hgr.corner.circle.a
|
|
%ACME% src\fx\fx.hgr.sunrise.a
|
|
%ACME% src\fx\fx.hgr.sunset.a
|
|
%ACME% src\fx\fx.hgr.radial.a
|
|
%ACME% src\fx\fx.hgr.radial2.a
|
|
%ACME% src\fx\fx.hgr.radial3.a
|
|
%ACME% src\fx\fx.hgr.radial4.a
|
|
%ACME% src\fx\fx.hgr.radial5.a
|
|
%ACME% src\fx\fx.hgr.split.ud.intro.a
|
|
%ACME% src\fx\fx.hgr.iris.a
|
|
%ACME% src\fx\fx.hgr.ripple.a
|
|
%ACME% src\fx\fx.hgr.ripple2.a
|
|
%ACME% src\fx\fx.hgr.star.a
|
|
%ACME% src\fx\fx.shr.fizzle.a
|
|
goto :EOF
|
|
)
|
|
|
|
if "%1" equ "clean" (
|
|
:clean
|
|
echo y|1>nul 2>nul rd build /s
|
|
goto :EOF
|
|
)
|
|
|
|
if "%1" equ "dsk" (
|
|
:dsk
|
|
call :asm
|
|
2>nul del build\log
|
|
%CADIUS% CREATEVOLUME "build\%DISK%" "%VOLUME%" 32766KB >>build\log
|
|
1>nul copy /y res\_FileInformation.txt build\ >>build\log
|
|
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "build\LAUNCHER.SYSTEM" >>build\log
|
|
1>nul copy /y res\prefs.conf build\PREFS.CONF >>build\log
|
|
cscript /nologo bin/padto.js 512 build\PREFS.CONF
|
|
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\COVER" >>build\log
|
|
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "build\PREFS.CONF" >>build\log
|
|
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\GAMES.CONF" >>build\log
|
|
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\ATTRACT.CONF" >>build\log
|
|
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\FX.CONF" >>build\log
|
|
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\DFX.CONF" >>build\log
|
|
cscript /nologo bin/rsync.js res\hgr\* build\HGR >>build\log
|
|
cscript /nologo bin/buildfileinfo.js build\HGR "06" "4000" >>build\log
|
|
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/HGR" "build/HGR" >>build\log
|
|
cscript /nologo bin/rsync.js res\action\* build\ACTION >>build\log
|
|
cscript /nologo bin/buildfileinfo.js build\ACTION "06" "4000" >>build\log
|
|
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/ACTION" "build/ACTION" >>build\log
|
|
cscript /nologo bin/rsync.js res\dhgr\* build\DHGR >>build\log
|
|
cscript /nologo bin/buildfileinfo.js build\DHGR "06" "4000" >>build\log
|
|
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/DHGR" "build/DHGR" >>build\log
|
|
cscript /nologo bin/rsync.js res\shr\* build\SHR >>build\log
|
|
cscript /nologo bin/buildfileinfo.js build\SHR "C1" "2000" >>build\log
|
|
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/SHR" "build/SHR" >>build/log
|
|
cscript /nologo bin/rsync.js res\ss\* build\SS >>build\log
|
|
cscript /nologo bin/buildfileinfo.js build\SS "04" "4000" >>build\log
|
|
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/SS" "build/SS" >>build\log
|
|
cscript /nologo bin/rsync.js res\demo\* build\DEMO >>build\log
|
|
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/DEMO" "build/DEMO" >>build\log
|
|
cscript /nologo bin/rsync.js res\fx\* build\FX >>build\log
|
|
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/FX" "build/FX" >>build\log
|
|
%CADIUS% CREATEFOLDER "build\%DISK%" "/%VOLUME%/X/" >>build/log
|
|
cscript /nologo bin/do2po.js res\dsk build\po
|
|
cscript /nologo bin/rsync.js res\dsk\*.po build\po
|
|
cscript /nologo bin/extract.js build\po >>build/log
|
|
echo y|1>nul 2>nul del /s build\X\.DS_Store
|
|
echo y|1>nul 2>nul del /s build\X\PRODOS
|
|
echo y|1>nul 2>nul del /s build\X\LOADER.SYSTEM
|
|
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/X" "build/X" >>build/log
|
|
cscript /nologo bin/changebootloader.js "build\%DISK%" res\proboothd
|
|
goto :EOF
|
|
)
|
|
|
|
echo usage: %0 clean / asm / dsk
|