mirror of
https://github.com/a2-4am/anti-m.git
synced 2024-12-26 20:30:26 +00:00
36 lines
795 B
Makefile
36 lines
795 B
Makefile
#
|
|
# Anti-M 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 2019-03-09
|
|
#
|
|
|
|
# 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
|
|
|
|
BUILDDISK=build/anti-m.po
|
|
VOLUME=ANTI.M
|
|
|
|
asm:
|
|
mkdir -p build
|
|
$(ACME) -r build/anti-m.lst src/anti-m.a
|
|
cp res/work.bin $(BUILDDISK)
|
|
cp res/_FileInformation.txt build/ >>build/log
|
|
$(CADIUS) ADDFILE "$(BUILDDISK)" "/${VOLUME}/" "build/ANTI.M.SYSTEM" >>build/log
|
|
|
|
clean:
|
|
rm -rf build/
|
|
|
|
mount:
|
|
open "$(BUILDDISK)"
|
|
|
|
all: clean asm mount
|