diff options
author | B. Watson <yalhcru@gmail.com> | 2016-08-29 15:00:13 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-08-29 15:00:13 -0400 |
commit | 26b42926816662ce878e814938a1ebc0aa1847c2 (patch) | |
tree | d4f451ab2820704f5b680b8ae0ceda037c78d9e9 /Makefile | |
download | jumpmanjr-26b42926816662ce878e814938a1ebc0aa1847c2.tar.gz |
finally made a git repo for this
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ece7548 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +all: clean jumpmanjr.dasm + +clean: + rm -f jumpmanjr.dasm + +distclean: clean + rm -f jumpmanjr.info leveldesc.info jmjtest.* tmp.lbl 1 2 1.* 2.* atari???.png strace.out + +jumpmanjr.dasm: jumpmanjr.info jumpmanjr.inc + da65 -i jumpmanjr.info + +jumpmanjr.info: main.info leveldesc.info + ( echo '### GENERATED FILE, do not edit, edit main.info and mklevelinfo.pl instead' ;\ + 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 + ld65 -t none -o jmjtest.bin -Ln tmp.lbl --start-addr 0x8000 jmjtest.o + grep -v '\.__' tmp.lbl | sed 's, \., ,' > jmjtest.lbl + @echo + @cmp jumpmanjr.rom jmjtest.bin && echo "=== Binary reassembles correctly" || echo "*** Binary FAILS to reassemble correctly ***" + @echo ; echo "-----------------------" + @echo labels load jmjtest.lbl + @echo "-----------------------" ; echo + @atari800 -nobasic jumpmanjr.cart |