anti-m/Makefile

38 lines
895 B
Makefile
Raw Normal View History

2019-03-09 20:09:16 +00:00
#
# 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
2019-03-18 17:52:43 +00:00
cp res/work.bin "$(BUILDDISK)"
2019-03-09 20:09:16 +00:00
cp res/_FileInformation.txt build/ >>build/log
$(CADIUS) ADDFILE "$(BUILDDISK)" "/${VOLUME}/" "build/ANTI.M.SYSTEM" >>build/log
2019-03-18 17:52:43 +00:00
$(ACME) -r build/proboot.lst src/proboot.a
bin/changebootloader.py "$(BUILDDISK)" build/proboot
2019-03-09 20:09:16 +00:00
clean:
rm -rf build/
mount:
open "$(BUILDDISK)"
all: clean asm mount