aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ece7548..1e13d51 100644
--- a/Makefile
+++ b/Makefile
@@ -11,14 +11,21 @@ jumpmanjr.dasm: jumpmanjr.info jumpmanjr.inc
jumpmanjr.info: main.info leveldesc.info
( echo '### GENERATED FILE, do not edit, edit main.info and mklevelinfo.pl instead' ;\
+ echo ;\
cat main.info leveldesc.info ) > jumpmanjr.info
leveldesc.info: mklevelinfo.pl
perl mklevelinfo.pl > leveldesc.info
-test: all
- cp jumpmanjr.dasm jmjtest.s
- ca65 -t none -o jmjtest.o -g jmjtest.s
+jumpmanjr.html: jumpmanjr.dasm
+ vim +TOhtml '+w!jumpmanjr.html' '+qall!' jumpmanjr.dasm
+
+jmjtest.dasm: jumpmanjr.dasm
+ mv jmjtest.dasm jmjtest.dasm.bak 2>/dev/null || true
+ cp jumpmanjr.dasm jmjtest.dasm
+
+test: jmjtest.dasm
+ ca65 -t none -o jmjtest.o -g jmjtest.dasm
ld65 -t none -o jmjtest.bin -Ln tmp.lbl --start-addr 0x8000 jmjtest.o
grep -v '\.__' tmp.lbl | sed 's, \., ,' > jmjtest.lbl
@echo
@@ -26,4 +33,4 @@ test: all
@echo ; echo "-----------------------"
@echo labels load jmjtest.lbl
@echo "-----------------------" ; echo
- @atari800 -nobasic jumpmanjr.cart
+ @atari800 -nobasic -cart-type 2 -cart jmjtest.bin