online/Makefile

47 lines
1.1 KiB
Makefile
Raw Normal View History

2017-09-07 19:24:17 +00:00
# Compiles with https://www.brutaldeluxe.fr/products/crossdevtools/merlin/
#
ifeq ($(OS),Windows_NT)
MERLIN_DIR=C:/opt/Merlin32_v1.0
MERLIN_LIB=$(MERLIN_DIR)/Library
MERLIN=$(MERLIN_DIR)/Windows/Merlin32
RM=del /s
2018-10-17 18:40:01 +00:00
COPY=copy
APPLEWIN="c:\opt\AppleWin1.26.2.3\applewin.exe"
2017-09-07 19:24:17 +00:00
else
MERLIN_DIR=$(HOME)/opt/Merlin32_v1.0
2017-09-07 19:24:17 +00:00
MERLIN_LIB=$(MERLIN_DIR)/Library
MERLIN=$(MERLIN_DIR)/Linux64/Merlin32
2017-09-07 19:24:17 +00:00
RM=rm -f
2018-10-17 18:40:01 +00:00
COPY=cp
APPLEWIN=applewin
2017-09-07 19:24:17 +00:00
endif
2018-10-17 18:40:01 +00:00
AC=java -jar AppleCommander-ac-1.4.0.jar
2017-09-07 19:24:17 +00:00
SRC=online.s
2018-10-17 18:40:01 +00:00
PGM=online
BASE_DSK=prodos-2.0.3-boot.dsk
2017-09-07 19:24:17 +00:00
VOL=$(PGM)
DSK=$(PGM).dsk
2018-10-17 18:40:01 +00:00
# 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)
2017-09-07 19:24:17 +00:00
$(DSK): $(PGM)
2018-10-17 18:40:01 +00:00
$(COPY) $(BASE_DSK) $(DSK)
$(AC) -n $(DSK) $(VOL)
2017-09-07 19:24:17 +00:00
$(AC) -p $(DSK) $(PGM) SYS < $(PGM)
2018-10-19 19:02:47 +00:00
#cat $(PGM).VER.bas | tr '\n' '\r' | $(AC) -p $(DSK) $(PGM).VER TXT
$(AC) -p $(DSK) $(PGM).VER TXT
2017-09-07 19:24:17 +00:00
$(PGM): $(SRC)
$(MERLIN) $(MERLIN_LIB) $(SRC)
clean:
$(RM) $(DSK) $(PGM)
2018-10-17 18:40:01 +00:00
test: $(DSK)
$(APPLEWIN) -d1 $(DSK)