chiark
/
gitweb
/
~mdw
/
zx-fizzbuzz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add machinery for building a working `.tap' file.
[zx-fizzbuzz]
/
Makefile
diff --git
a/Makefile
b/Makefile
index eeaf9d255e2d706ab46a014a5217154684c3964d..9bef4338e5190aeb077ad76371e240a42cb00138 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-6,10
+6,16
@@
clean::
TARGETS =
CLEANFILES = $(TARGETS)
TARGETS =
CLEANFILES = $(TARGETS)
-
TARGETS
+= spectrum-fb.img
+
CLEANFILES
+= spectrum-fb.img
spectrum-fb.img: fizzbuzz.s
z80asm -o $@ $^
spectrum-fb.img: fizzbuzz.s
z80asm -o $@ $^
+TARGETS += spectrum-fizzbuzz.tap
+spectrum-fizzbuzz.tap: tapify spectrum-loader.tap spectrum-fb.img
+ { cat spectrum-loader.tap; \
+ ./tapify 3 fb 0x7000 0x8000 <spectrum-fb.img; } \
+ >$@.new && mv $@.new $@
+
all: $(TARGETS)
clean::; rm -f $(CLEANFILES)
all: $(TARGETS)
clean::; rm -f $(CLEANFILES)