### -*-makefile-*-
+### (c) 2021 Mark Wooding
+
+###----- Licensing notice ---------------------------------------------------
+###
+### This file is part of ZX Fizzbuzz.
+###
+### ZX Fizzbuzz is free software: you can redistribute it and/or modify it
+### under the terms of the GNU Lesser General Public License as published
+### by the Free Software Foundation; either version 3 of the License, or
+### (at your option) any later version.
+###
+### ZX Fizzbuzz is distributed in the hope that it will be useful, but
+### WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+### Lesser General Public License for more details.
+###
+### You should have received a copy of the GNU Lesser General Public
+### License along with ZX Fizzbuzz. If not, see
+### <https://www.gnu.org/licenses/>.
all:
clean::
./tapify 3 fb 0x7000 0x8000 <spectrum-fb.img; } \
>$@.new && mv $@.new $@
+CLEANFILES += zx81-fb.img
+zx81-fb.img: zx81.s fizzbuzz.s
+ z80asm -o $@ $^
+
+TARGETS += zx81-fizzbuzz.p
+zx81-fizzbuzz.p: gluep zx81-loader.p zx81-fb.img
+ ./gluep 0x4009:zx81-loader.p 0x7000:zx81-fb.img >$@.new && mv $@.new $@
+
+CLEANFILES += zx81-1kfb.img
+zx81-1kfb.img: zx81-1k.s fizzbuzz.s
+ z80asm -o $@ $^
+
+TARGETS += zx81-1kfizzbuzz.p
+zx81-1kfizzbuzz.p: gluep zx81-1kldr.p zx81-1kfb.img
+ ./gluep 0x4009:zx81-1kldr.p 0x4300:zx81-1kfb.img >$@.new && mv $@.new $@
+
all: $(TARGETS)
clean::; rm -f $(CLEANFILES)