diff options
author | B. Watson <yalhcru@gmail.com> | 2015-04-08 22:22:42 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2015-04-08 22:22:42 -0400 |
commit | 0c0f0f9951f748427eaaf703e164d08467c27fbf (patch) | |
tree | 3652b16557ad269cb7d3f990faf188df69e17920 /Makefile | |
download | col80-master.tar.gz |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d5983c2 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ + +SRCFILES=col80_dosini_seg.s col80_header_seg.s col80_main.s \ + col80_runad_seg.s col80_startaddr.s + +all: col80.xex check + + +col80.xex: + $(MAKE) dasm_build || $(MAKE) ca65_build || $(MAKE) atasm_build + +dasm_build: $(SRCFILES) col80.dasm + dasm col80.dasm -f3 -ocol80.xex + +ca65_build: $(SRCFILES) col80.s + ca65 -t atari col80.s + ld65 -t atari -o col80.xex col80.o + +atasm_build: $(SRCFILES) col80.atasm + perl dasm2atasm col80_header_seg.s col80_header_seg.atasm + perl dasm2atasm col80_main.s col80_main.atasm + atasm -r -ocol80.xex col80.atasm + +check: col80.xex + @if cmp col80.xex col80_orig.xex; then \ + echo "OK: New binary is identical to original" ;\ + else \ + echo "BAD: New binary differs from original" ;\ + fi + +clean: + rm -f *.o col80_header_seg.atasm col80_main.atasm col80.xex |