aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-08-29 19:49:06 -0400
committerB. Watson <yalhcru@gmail.com>2016-08-29 19:49:06 -0400
commitc35d85e5b1a014193ecc34a249e5a20aed729779 (patch)
treea5ad303074af4420932d5c3d9b62c3b474c9b2a5 /Makefile
parent26b42926816662ce878e814938a1ebc0aa1847c2 (diff)
downloadjumpmanjr-c35d85e5b1a014193ecc34a249e5a20aed729779.tar.gz
add README and jumpmanjr.html
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