chiark / gitweb /
Add GPL3 notices and a copy of the GPL3.
[zx-fizzbuzz] / Makefile
index 0af35b7b17e863ac8fc80de93fc27db388e74342..e7ebf0bc24dc753555588be23a4300aeccc03e73 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,23 @@
 ### -*-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::
@@ -16,6 +35,22 @@ spectrum-fizzbuzz.tap: tapify spectrum-loader.tap spectrum-fb.img
          ./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)