From b2cad8050e2077f09535607a829183a842023da7 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 22 Sep 2017 16:09:17 -0400 Subject: initial commit --- Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3