mirror of
https://github.com/a2-4am/pitch-dark.git
synced 2025-01-19 09:31:39 +00:00
58 lines
1.6 KiB
Makefile
58 lines
1.6 KiB
Makefile
#
|
|
# 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
|
|
#
|
|
|
|
DISK=PitchDark.2mg
|
|
|
|
# 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
|
|
|
|
md:
|
|
mkdir -p build
|
|
|
|
clean:
|
|
rm -rf build/
|
|
|
|
asm: md
|
|
$(ACME) src/grue.system.s
|
|
$(ACME) src/pitchdark.a
|
|
$(ACME) src/onbeyond/onbeyond.system.s
|
|
$(ACME) src/onbeyond/z3/z3.s
|
|
$(ACME) src/onbeyond/z4/z4.s
|
|
$(ACME) src/onbeyond/z5/z5.s
|
|
$(ACME) src/onbeyond/z5u/z5u.s
|
|
|
|
dsk: md asm
|
|
cp res/"Pitch Dark.master games collection.do.not.edit.2mg" build/$(DISK)
|
|
cp res/WEEGUI build/
|
|
cp res/_FileInformation.txt build/
|
|
$(CADIUS) ADDFILE build/$(DISK) "/PITCH.DARK/" "build/GRUE.SYSTEM"
|
|
$(CADIUS) ADDFILE build/$(DISK) "/PITCH.DARK/" "build/PITCH.DARK"
|
|
$(CADIUS) ADDFILE build/$(DISK) "/PITCH.DARK/" "build/WEEGUI"
|
|
$(CADIUS) ADDFILE build/$(DISK) "/PITCH.DARK/" "build/ONBEYOND.SYSTEM"
|
|
$(CADIUS) ADDFILE build/$(DISK) "/PITCH.DARK/" "build/ONBEYONDZ3"
|
|
$(CADIUS) ADDFILE build/$(DISK) "/PITCH.DARK/" "build/ONBEYONDZ4"
|
|
$(CADIUS) ADDFILE build/$(DISK) "/PITCH.DARK/" "build/ONBEYONDZ5"
|
|
$(CADIUS) ADDFILE build/$(DISK) "/PITCH.DARK/" "build/ONBEYONDZ5U"
|
|
|
|
txt: md dsk
|
|
mkdir -p build/text
|
|
$(PY3) bin/textnormalize.py text/*
|
|
cd build && $(CADIUS) ADDFOLDER $(DISK) "/PITCH.DARK/TEXT" text
|
|
|
|
mount: dsk
|
|
osascript bin/V2Make.scpt "`pwd`" bin/pitchdark.vii build/$(DISK)
|
|
|
|
all: clean asm dsk txt mount
|