Skip to content

Commit

Permalink
Make it build with Merlin32
Browse files Browse the repository at this point in the history
  • Loading branch information
gungwald committed Aug 4, 2018
1 parent faa318a commit 9094ecf
Show file tree
Hide file tree
Showing 4 changed files with 264 additions and 228 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.dsk
*.swp
Binary file added AppleCommander-ac-1.4.0.jar
Binary file not shown.
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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
else
MERLIN_DIR=$(HOME)/opt/Merlin32_v1.0
MERLIN_LIB=$(MERLIN_DIR)/Library
MERLIN=$(MERLIN_DIR)/Linux64/Merlin32
RM=rm -f
endif

AC=java -jar AppleCommander-ac-1.4.0.jar
SRC=delhndlr.s
PGM=DELHNDLR
VOL=$(PGM)
DSK=$(PGM).dsk

$(DSK): $(PGM)
$(AC) -pro140 $(DSK) $(VOL)
$(AC) -p $(DSK) $(PGM) SYS < $(PGM)

$(PGM): $(SRC)
$(MERLIN) $(MERLIN_LIB) $(SRC)
@# 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 $(PGM)

clean:
$(RM) $(DSK) $(PGM) error_output.txt _FileInformation.txt

Loading

0 comments on commit 9094ecf

Please sign in to comment.