diff options
author | B. Watson <yalhcru@gmail.com> | 2017-09-22 16:09:17 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2017-09-22 16:09:17 -0400 |
commit | b2cad8050e2077f09535607a829183a842023da7 (patch) | |
tree | 1f51d630c7596355b023a8cb4583fe46e3d066a7 /Makefile | |
download | defender-b2cad8050e2077f09535607a829183a842023da7.tar.gz |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..77a4a94 --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +all: defender.ca65 + +html: defender.html + +test: deftest.rom + +clean: + rm -f *.o tmp.lbl 1 2 3 foo bar .*.swp deftest.rom dumptxt dumpgttxt + +push: + touch defender.info + $(MAKE) clean all html + git push + +tools: dumpgttxt dumptxt + +defender.ca65: defender.info + da65 -i defender.info + +defender.html: defender.ca65 + vim +TOhtml '+w!defender.html' '+qall' defender.ca65 + +deftest.rom: defender.ca65 + ca65 -t none -o deftest.o -g defender.ca65 + ld65 -t none -o deftest.rom -Ln tmp.lbl --start-addr 0x8000 deftest.o + @grep -v '\.__' tmp.lbl | sed 's, \., ,' > deftest.lbl + @rm -f tmp.lbl *.o + @echo + @cmp defender.rom deftest.rom && echo "=== Binary reassembles correctly" || echo "*** Binary FAILS to reassemble correctly ***" + @echo ; echo "-----------------------" + @echo labels add deftest.lbl + @echo "-----------------------" ; echo + @atari800 -nobasic -cart-type 2 -cart deftest.rom + +.PHONY: all clean push html |