Add GPL3 notices and a copy of the GPL3.
[zx-fizzbuzz] / Makefile
CommitLineData
f97b241f 1### -*-makefile-*-
4278b406
MW
2### (c) 2021 Mark Wooding
3
4###----- Licensing notice ---------------------------------------------------
5###
6### This file is part of ZX Fizzbuzz.
7###
8### ZX Fizzbuzz is free software: you can redistribute it and/or modify it
9### under the terms of the GNU Lesser General Public License as published
10### by the Free Software Foundation; either version 3 of the License, or
11### (at your option) any later version.
12###
13### ZX Fizzbuzz is distributed in the hope that it will be useful, but
14### WITHOUT ANY WARRANTY; without even the implied warranty of
15### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16### Lesser General Public License for more details.
17###
18### You should have received a copy of the GNU Lesser General Public
19### License along with ZX Fizzbuzz. If not, see
20### <https://www.gnu.org/licenses/>.
f97b241f
MW
21
22all:
23clean::
24
25TARGETS =
26CLEANFILES = $(TARGETS)
27
79f86650 28CLEANFILES += spectrum-fb.img
64b6fca5 29spectrum-fb.img: spectrum.s fizzbuzz.s
f97b241f
MW
30 z80asm -o $@ $^
31
79f86650
MW
32TARGETS += spectrum-fizzbuzz.tap
33spectrum-fizzbuzz.tap: tapify spectrum-loader.tap spectrum-fb.img
34 { cat spectrum-loader.tap; \
35 ./tapify 3 fb 0x7000 0x8000 <spectrum-fb.img; } \
36 >$@.new && mv $@.new $@
37
e007e1c9
MW
38CLEANFILES += zx81-fb.img
39zx81-fb.img: zx81.s fizzbuzz.s
40 z80asm -o $@ $^
41
42TARGETS += zx81-fizzbuzz.p
43zx81-fizzbuzz.p: gluep zx81-loader.p zx81-fb.img
44 ./gluep 0x4009:zx81-loader.p 0x7000:zx81-fb.img >$@.new && mv $@.new $@
45
601d46cd
MW
46CLEANFILES += zx81-1kfb.img
47zx81-1kfb.img: zx81-1k.s fizzbuzz.s
48 z80asm -o $@ $^
49
50TARGETS += zx81-1kfizzbuzz.p
51zx81-1kfizzbuzz.p: gluep zx81-1kldr.p zx81-1kfb.img
52 ./gluep 0x4009:zx81-1kldr.p 0x4300:zx81-1kfb.img >$@.new && mv $@.new $@
53
f97b241f
MW
54all: $(TARGETS)
55
56clean::; rm -f $(CLEANFILES)