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
|
|
|
|
#
|
|
|
|
|
2018-02-21 21:00:31 +00:00
|
|
|
DISK=Pitch Dark.2mg
|
2018-02-11 17:41:39 +00:00
|
|
|
|
2018-02-01 03:04:10 +00:00
|
|
|
# third-party tools required to build
|
|
|
|
# https://sourceforge.net/projects/acme-crossass/
|
|
|
|
ACME=acme
|
2018-02-11 17:41:39 +00:00
|
|
|
# https://www.brutaldeluxe.fr/products/crossdevtools/cadius/
|
|
|
|
# https://github.com/mach-kernel/cadius
|
|
|
|
CADIUS=cadius
|
2018-02-01 03:04:10 +00:00
|
|
|
|
2018-02-20 21:37:28 +00:00
|
|
|
asm: md
|
2018-04-15 02:49:15 +00:00
|
|
|
$(ACME) -r build/grue.system.lst src/loader/grue.system.s
|
2018-03-08 20:55:13 +00:00
|
|
|
$(ACME) -r build/pitchdark.lst src/pitchdark.a
|
|
|
|
$(ACME) -r build/onbeyond.system.lst src/onbeyond/onbeyond.system.s
|
2018-03-22 02:02:32 +00:00
|
|
|
$(ACME) -r build/z1.lst src/onbeyond/z1/z1.s
|
|
|
|
$(ACME) -r build/z2.lst src/onbeyond/z2/z2.s
|
2018-03-08 20:55:13 +00:00
|
|
|
$(ACME) -r build/z3.lst src/onbeyond/z3/z3.s
|
|
|
|
$(ACME) -r build/z4.lst src/onbeyond/z4/z4.s
|
|
|
|
$(ACME) -r build/z5.lst src/onbeyond/z5/z5.s
|
|
|
|
$(ACME) -r build/z5u.lst src/onbeyond/z5u/z5u.s
|
2018-04-13 03:58:12 +00:00
|
|
|
$(ACME) -r build/zinfo.system.lst src/zinfo/zinfo.system.s
|
|
|
|
$(ACME) -r build/zinfo1.lst src/zinfo/z1/z1.s
|
2018-04-13 05:15:14 +00:00
|
|
|
$(ACME) -r build/zinfo2.lst src/zinfo/z2/z2.s
|
2018-04-13 20:22:46 +00:00
|
|
|
$(ACME) -r build/zinfo3.lst src/zinfo/z3/z3.s
|
2018-02-20 21:37:28 +00:00
|
|
|
|
|
|
|
dsk: md asm
|
2018-02-21 21:00:31 +00:00
|
|
|
cp res/"Pitch Dark.master games collection.do.not.edit.2mg" build/"$(DISK)"
|
2018-02-20 21:37:28 +00:00
|
|
|
cp res/_FileInformation.txt build/
|
2018-04-18 20:39:59 +00:00
|
|
|
bin/fixFileInformation.sh build/_FileInformation.txt
|
2018-02-21 21:00:31 +00:00
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/" "build/GRUE.SYSTEM"
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/" "build/ONBEYOND.SYSTEM"
|
2018-04-13 03:58:12 +00:00
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/" "build/ZINFO.SYSTEM"
|
2018-03-16 18:17:45 +00:00
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/" "build/PITCH.DARK"
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/" "res/PITCH.DARK.CONF"
|
2018-03-28 18:18:35 +00:00
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/" "res/GAMES.CONF"
|
2018-02-22 20:52:54 +00:00
|
|
|
$(CADIUS) CREATEFOLDER build/"$(DISK)" "/PITCH.DARK/LIB/"
|
2018-03-21 22:25:48 +00:00
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/LIB/" "build/ONBEYONDZ1"
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/LIB/" "build/ONBEYONDZ2"
|
2018-02-22 20:52:54 +00:00
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/LIB/" "build/ONBEYONDZ3"
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/LIB/" "build/ONBEYONDZ4"
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/LIB/" "build/ONBEYONDZ5"
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/LIB/" "build/ONBEYONDZ5U"
|
2018-04-13 03:58:12 +00:00
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/LIB/" "build/ZINFO1"
|
2018-04-13 05:15:14 +00:00
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/LIB/" "build/ZINFO2"
|
2018-04-13 20:22:46 +00:00
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/LIB/" "build/ZINFO3"
|
2018-04-01 21:20:42 +00:00
|
|
|
# TODO remove these save game files, just here for development
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/Z/WISHBRINGER/" "res/R69.850920.SAV"
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/Z/ZORK.I/" "res/R88.840726.SAV"
|
2018-02-21 21:00:31 +00:00
|
|
|
|
|
|
|
txt: dsk
|
2018-02-11 17:41:39 +00:00
|
|
|
mkdir -p build/text
|
2018-02-21 21:02:26 +00:00
|
|
|
$(PY3) bin/textnormalize.py res/text/*
|
2018-02-21 21:00:31 +00:00
|
|
|
cd build && $(CADIUS) ADDFOLDER "$(DISK)" "/PITCH.DARK/TEXT" text
|
|
|
|
|
|
|
|
artwork: dsk
|
2018-03-22 23:54:05 +00:00
|
|
|
$(CADIUS) ADDFOLDER build/"$(DISK)" "/PITCH.DARK/ARTWORK" "res/artwork"
|
2018-03-22 20:06:31 +00:00
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/PITCH.DARK/ARTWORK/" "res/DHRSLIDE.SYSTEM"
|
2018-02-01 03:04:10 +00:00
|
|
|
|
2018-02-20 21:37:28 +00:00
|
|
|
mount: dsk
|
2018-02-21 21:00:31 +00:00
|
|
|
osascript bin/V2Make.scpt "`pwd`" bin/pitchdark.vii build/"$(DISK)"
|
2018-02-01 03:04:10 +00:00
|
|
|
|
2018-03-31 15:25:42 +00:00
|
|
|
md:
|
|
|
|
mkdir -p build
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build/
|
|
|
|
|
2018-02-21 21:00:31 +00:00
|
|
|
all: clean asm dsk txt artwork mount
|