X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/zx-fizzbuzz/blobdiff_plain/64b6fca5f33b619e9c38778000f5192521a57cf6..HEAD:/Makefile diff --git a/Makefile b/Makefile index 0af35b7..e7ebf0b 100644 --- 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 +### . all: clean:: @@ -16,6 +35,22 @@ spectrum-fizzbuzz.tap: tapify spectrum-loader.tap spectrum-fb.img ./tapify 3 fb 0x7000 0x8000 $@.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)