2018-08-21 13:58:28 +00:00
|
|
|
#
|
|
|
|
# 4cade Makefile
|
|
|
|
# assembles source code, optionally builds a disk image and mounts it
|
|
|
|
#
|
|
|
|
# original by Quinn Dunki on 2014-08-15
|
|
|
|
# One Girl, One Laptop Productions
|
|
|
|
# http://www.quinndunki.com/blondihacks
|
|
|
|
#
|
|
|
|
# adapted by 4am on 2018-08-19
|
|
|
|
#
|
|
|
|
|
|
|
|
DISK=4cade.2mg
|
2018-08-23 20:02:48 +00:00
|
|
|
VOLUME=A.4AM.PACK
|
2018-08-21 13:58:28 +00:00
|
|
|
|
|
|
|
# third-party tools required to build
|
|
|
|
# https://sourceforge.net/projects/acme-crossass/
|
|
|
|
ACME=acme
|
|
|
|
# https://www.brutaldeluxe.fr/products/crossdevtools/cadius/
|
|
|
|
# https://github.com/mach-kernel/cadius
|
|
|
|
CADIUS=cadius
|
|
|
|
|
|
|
|
asm: md
|
2018-08-23 20:02:48 +00:00
|
|
|
$(ACME) -r build/4cade.lst src/4cade.a
|
2018-10-29 23:23:43 +00:00
|
|
|
$(ACME) src/fx/fx.hgr.diagonal.a
|
|
|
|
$(ACME) src/fx/fx.hgr.iris.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.fizzle.a
|
2018-10-30 01:27:11 +00:00
|
|
|
$(ACME) src/fx/fx.hgr.bar.dissolve.a
|
2018-10-30 22:27:51 +00:00
|
|
|
$(ACME) src/fx/fx.hgr.block.fizzle.a
|
2018-11-03 13:23:04 +00:00
|
|
|
$(ACME) src/fx/fx.hgr.block.fizzle.white.a
|
2018-10-31 01:28:14 +00:00
|
|
|
$(ACME) src/fx/fx.hgr.2pass.lr.a
|
2018-11-01 02:25:59 +00:00
|
|
|
$(ACME) src/fx/fx.hgr.crystal.a
|
2018-11-03 13:23:04 +00:00
|
|
|
$(ACME) src/fx/fx.hgr.foursquare.white.a
|
|
|
|
$(ACME) src/fx/fx.hgr.onesquare.white.a
|
2018-11-02 00:59:23 +00:00
|
|
|
$(ACME) src/fx/fx.hgr.diamond.a
|
2018-11-03 13:23:04 +00:00
|
|
|
$(ACME) src/fx/fx.hgr.checkerboard.white.a
|
2018-11-02 02:35:48 +00:00
|
|
|
$(ACME) src/fx/fx.hgr.halfblock.fizzle.a
|
2018-11-03 13:23:04 +00:00
|
|
|
$(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.radial.a
|
2018-08-21 13:58:28 +00:00
|
|
|
|
|
|
|
dsk: md asm
|
2018-09-13 13:53:04 +00:00
|
|
|
$(CADIUS) CREATEVOLUME build/"$(DISK)" "${VOLUME}" 32766KB >>build/log
|
|
|
|
cp res/_FileInformation.txt build/ >>build/log
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "build/LAUNCHER.SYSTEM" >>build/log
|
|
|
|
$(CADIUS) CREATEFOLDER build/"$(DISK)" "/${VOLUME}/X/" >>build/log
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "res/GAMES.CONF" >>build/log
|
2018-10-23 19:44:06 +00:00
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "res/ATTRACT.CONF" >>build/log
|
2018-10-29 23:23:43 +00:00
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "res/FX.CONF" >>build/log
|
2018-10-28 18:04:52 +00:00
|
|
|
rsync -aP res/hgr/* build/HGR >>build/log
|
|
|
|
bin/buildfileinfo.py build/HGR >>build/log
|
|
|
|
$(CADIUS) ADDFOLDER build/"$(DISK)" "/${VOLUME}/HGR" "build/HGR" >>build/log
|
|
|
|
rsync -aP res/dhgr/* build/DHGR >>build/log
|
|
|
|
bin/buildfileinfo.py build/DHGR >>build/log
|
|
|
|
$(CADIUS) ADDFOLDER build/"$(DISK)" "/${VOLUME}/DHGR" "build/DHGR" >>build/log
|
2018-10-22 22:36:37 +00:00
|
|
|
rsync -aP res/ss/* build/SS >>build/log
|
|
|
|
$(CADIUS) ADDFOLDER build/"$(DISK)" "/${VOLUME}/SS" "build/SS" >>build/log
|
2018-10-28 21:20:48 +00:00
|
|
|
rsync -aP res/demo/* build/DEMO >>build/log
|
|
|
|
$(CADIUS) ADDFOLDER build/"$(DISK)" "/${VOLUME}/DEMO" "build/DEMO" >>build/log
|
2018-10-29 23:23:43 +00:00
|
|
|
rsync -aP res/fx/* build/FX >>build/log
|
|
|
|
$(CADIUS) ADDFOLDER build/"$(DISK)" "/${VOLUME}/FX" "build/FX" >>build/log
|
2018-11-02 03:46:41 +00:00
|
|
|
# bin/do2po.py res/dsk/ build/po/
|
2018-08-29 19:27:30 +00:00
|
|
|
# rsync -a res/dsk/*.po build/po/
|
2018-09-13 13:53:04 +00:00
|
|
|
# bin/extract.py build/po/ | sh >build/log
|
2018-10-31 15:13:03 +00:00
|
|
|
rm -f build/X/**/.DS_Store
|
|
|
|
rm -f build/X/**/PRODOS
|
|
|
|
rm -f build/X/**/LOADER.SYSTEM
|
|
|
|
$(CADIUS) ADDFOLDER build/"$(DISK)" "/${VOLUME}/X" "build/X" >build/log
|
|
|
|
bin/changebootloader.py build/"$(DISK)" res/proboothd
|
2018-08-21 13:58:28 +00:00
|
|
|
|
|
|
|
mount: dsk
|
|
|
|
osascript bin/V2Make.scpt "`pwd`" bin/4cade.vii build/"$(DISK)"
|
|
|
|
|
|
|
|
md:
|
2018-08-23 20:02:48 +00:00
|
|
|
mkdir -p build/po
|
|
|
|
mkdir -p build/X
|
2018-10-28 18:04:52 +00:00
|
|
|
mkdir -p build/HGR
|
|
|
|
mkdir -p build/DHGR
|
2018-10-22 22:36:37 +00:00
|
|
|
mkdir -p build/SS
|
2018-10-28 21:20:48 +00:00
|
|
|
mkdir -p build/DEMO
|
2018-10-29 23:23:43 +00:00
|
|
|
mkdir -p build/FX
|
2018-08-21 13:58:28 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build/
|
|
|
|
|
2018-10-31 15:13:03 +00:00
|
|
|
all: clean asm dsk mount
|