prodos-more/Makefile

52 lines
1.2 KiB
Makefile
Raw Normal View History

2019-01-25 23:48:43 +00:00
# Require-mints:
#
# GNU make
# - To execute this make file
#
# merlin32
# - to assemble the source code
# https://www.brutaldeluxe.fr/products/crossdevtools/merlin/
#
# AppleCommander (included)
# - To create the Apple II disk image
#
# AppleWin
# - To load the disk and test the program
#
ifeq ($(OS),Windows_NT)
COPY=copy
APPLEWIN="c:\opt\AppleWin1.26.2.3\applewin.exe"
else
COPY=cp
APPLEWIN=applewin
endif
# It is necessary to use this older version of AppleCommander to support
# the PowerBook G4 and iBook G3. This version only requires Java 1.3.
AC=java -jar AppleCommander-1.3.5-ac.jar
SRC=more.merlin.s
2024-02-04 00:26:06 +00:00
PGM=MORE
BASE_DSK=prodos-2.0.3.dsk
2019-01-25 23:48:43 +00:00
VOL=$(PGM)
DSK=$(PGM).dsk
# There is some kind of problem with turning this into a boot disk
# after it is created by AppleCommander. So, copy an existing boot
# disk instead.
#$(AC) -pro140 $(DSK) $(VOL)
2024-02-04 00:26:06 +00:00
$(DSK): $(PGM) test.txt
2019-01-25 23:48:43 +00:00
$(COPY) $(BASE_DSK) $(DSK)
2024-02-04 00:26:06 +00:00
$(AC) -p $(DSK) $(PGM) BIN 0x2000 < $(PGM)
cat test.txt | tr '\n' '\r' | $(AC) -p $(DSK) TEST TXT
2019-01-25 23:48:43 +00:00
$(PGM): $(SRC) Makefile
2024-02-04 00:26:06 +00:00
merlin32 $(SRC)
2019-01-25 23:48:43 +00:00
clean:
$(RM) $(DSK) $(PGM) *.zip _FileInformation.txt $(PGM)_Output.txt
test: $(DSK)
$(APPLEWIN) -d1 $(DSK)