mirror of
https://github.com/gungwald/rnd.git
synced 2024-06-25 00:33:20 +00:00
45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
|
MERLIN_URL=https://www.brutaldeluxe.fr/products/crossdevtools/merlin/Merlin32_v1.0.zip
|
||
|
|
||
|
PGM=rnd
|
||
|
BASE_DSK=prodos-2.0.3-boot.dsk
|
||
|
# 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
|
||
|
AS65=java -cp 65xx.zip uk.co.demon.obelisk.w65xx.As65
|
||
|
LK65=java -cp 65xx.zip uk.co.demon.obelisk.w65xx.Lk65
|
||
|
SRC=$(PGM).s
|
||
|
VOL=$(PGM)
|
||
|
DSK=$(PGM).dsk
|
||
|
APPLEWIN_VER=1.29.10.0
|
||
|
|
||
|
ifeq ($(OS),Windows_NT)
|
||
|
COPY=copy
|
||
|
EMU=$(USERPROFILE)\Dropbox\opt\applewin-$(APPLEWIN_VER)\applewin.exe -no-printscreen-dlg -s7 empty -s6d1
|
||
|
else
|
||
|
COPY=cp
|
||
|
EMU=$(HOME)/Dropbox/opt/applewin-$(APPLEWIN_VER)/applewin -no-printscreen-dlg -s7 empty -s6d1
|
||
|
endif
|
||
|
|
||
|
# 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)
|
||
|
|
||
|
$(DSK): $(PGM)
|
||
|
$(COPY) $(BASE_DSK) $(DSK)
|
||
|
$(AC) -p $(DSK) STARTUP BAS < STARTUP#fc0801
|
||
|
$(AC) -p $(DSK) $(PGM) BIN 0x8000 < $(PGM)
|
||
|
|
||
|
$(PGM): $(PGM).obj
|
||
|
$(LK65) -output $(PGM) -bin $(PGM).obj
|
||
|
|
||
|
$(PGM).obj: symbols.s macros.s $(SRC)
|
||
|
$(AS65) $(SRC)
|
||
|
|
||
|
test: $(DSK)
|
||
|
$(EMU) $(DSK)
|
||
|
|
||
|
clean:
|
||
|
rm $(PGM) $(DSK) _FileInformation.txt $(PGM).obj *~
|
||
|
|