delhndlr/Makefile

36 lines
920 B
Makefile
Raw Permalink Normal View History

2018-08-04 07:02:16 +00:00
# Compiles with https://www.brutaldeluxe.fr/products/crossdevtools/merlin/
2021-09-24 03:47:16 +00:00
# a.k.a. https://github.com/apple2accumulator/merlin32
2018-08-04 07:02:16 +00:00
2021-09-28 17:33:25 +00:00
AC=java -jar AppleCommander-1.3.5-ac.jar
2021-12-08 05:03:45 +00:00
PGM=del2bs40
PGM2=del2bs80
2021-10-01 06:12:32 +00:00
SRC=$(PGM).s
2021-12-08 05:03:45 +00:00
SRC2=$(PGM2).s
VOL=del2bs
DSK=$(VOL).dsk
ADDR=0x0300
2018-08-04 07:02:16 +00:00
2021-10-01 06:12:32 +00:00
$(DSK): $(PGM) $(PGM2)
2021-12-08 05:03:45 +00:00
@#$(AC) -pro140 $(DSK) $(VOL) ---- Broken in 1.3.5 and others
2021-09-29 01:44:41 +00:00
cp prodos.dsk $(DSK)
2021-12-08 05:03:45 +00:00
$(AC) -p $(DSK) $(PGM) BIN $(ADDR) < $(PGM)
$(AC) -p $(DSK) $(PGM2) BIN $(ADDR) < $(PGM2)
2018-08-04 07:02:16 +00:00
$(PGM): $(SRC)
2021-12-08 05:03:45 +00:00
merlin32 . $(SRC)
2018-08-04 07:02:16 +00:00
@# Merlin fails to provide a non-0 exit code on failure so
@# it needs to be simulated by checking for the error_output.txt
@# file.
2021-12-08 05:03:45 +00:00
test -e $(PGM)
$(PGM2): $(SRC2)
merlin32 . $(SRC2)
@# Merlin fails to provide a non-0 exit code on failure so
@# it needs to be simulated by checking for the error_output.txt
@# file.
test -e $(PGM2)
2018-08-04 07:02:16 +00:00
clean:
2021-12-08 05:03:45 +00:00
$(RM) $(PGM) $(PGM2) $(DSK) error_output.txt _FileInformation.txt
2018-08-04 07:02:16 +00:00