2018-02-01 03:04:10 +00:00
|
|
|
#
|
|
|
|
# Pitch Dark 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-01-07
|
|
|
|
#
|
|
|
|
|
|
|
|
# third-party tools required to build
|
|
|
|
# https://sourceforge.net/projects/acme-crossass/
|
|
|
|
ACME=acme
|
|
|
|
# https://sourceforge.net/projects/applecommander/
|
|
|
|
AC=bin/AppleCommander.jar
|
|
|
|
|
2018-02-07 14:05:24 +00:00
|
|
|
DISK=pitchdark.po
|
|
|
|
MASTERDISK=res/$(DISK)
|
|
|
|
BUILDDISK=build/$(DISK)
|
2018-02-01 03:04:10 +00:00
|
|
|
|
|
|
|
asm:
|
|
|
|
mkdir -p build
|
|
|
|
cd src && $(ACME) pitchdark.a
|
2018-02-07 14:05:24 +00:00
|
|
|
cp $(MASTERDISK) $(BUILDDISK)
|
2018-02-09 01:06:51 +00:00
|
|
|
java -jar $(AC) -p $(BUILDDISK) "PITCH.DARK" bin 0x6000 < "build/PITCH.DARK#066000"
|
2018-02-01 03:04:10 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build/
|
|
|
|
|
|
|
|
mount:
|
|
|
|
osascript bin/V2Make.scpt "`pwd`" $(BUILDDISK)
|
|
|
|
|
|
|
|
all: clean asm mount
|