chiark / gitweb /
Add GPL3 notices and a copy of the GPL3.
[zx-fizzbuzz] / Makefile
index 40594c4b4853fdbdb8c08b5902674628e0d64eec..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::
@@ -24,6 +43,14 @@ 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)