From 5e33fd17f383f03555f96f6ad4ad04b1e55a6bac Mon Sep 17 00:00:00 2001 From: Ivan Tatarinov Date: Wed, 5 May 2021 16:56:20 +0300 Subject: [PATCH] firmware/scroll: added `Makefile` --- firmware/scroll/Makefile | 59 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 firmware/scroll/Makefile diff --git a/firmware/scroll/Makefile b/firmware/scroll/Makefile new file mode 100644 index 0000000..de2311d --- /dev/null +++ b/firmware/scroll/Makefile @@ -0,0 +1,59 @@ +# SPDX-FileCopyrightText: 2021 Ivan Tatarinov +# +# SPDX-License-Identifier: GPL-3.0-or-later +# +# Supported environments: +# * GNU on Linux, FreeBSD etc. +# * GNU on Windows NT (using MinGW/MSYS/Cygwin/WSL) +# +# Build: +# make +# Clean: +# make clean + +include ../../sdk/common.mk + +FUENTEABIN = tools/build/FuenteABin$(EXESUFFIX) +AS = sjasmplus +AFLAGS = --nobanner -I../../sdk/include + +.PHONY: all +all: scroll.tap + +scroll.tap: scrolldesc.bin + GenTape $@ basic "SCROLL" 0 $< + +scrolldesc.bin: scrolldesc.asm scroll.bin scroll.bin.zx7b + echo ' define filesize $(shell stat -c %s scroll.bin)' >define.asm + $(AS) $(AFLAGS) --raw=$@ $< + +scroll.bin.zx7b: scroll.bin + zx7b $< $@ + +scroll.bin: scroll.asm string.asm music.bin fuente6x8.bin lineas.asm fondo.rcs + $(AS) $(AFLAGS) --raw=$@ $< + +music.bin: playstc.bin music.stc + cat $^ >$@ + +fuente6x8.bin: fuente6x8.png | $(FUENTEABIN) + $(FUENTEABIN) $< $@ + +$(FUENTEABIN): | tools + $(MAKE) -w -C $| + +fondo.rcs: fondo.png fondo.atr + Png2Rcs $< $@ -a fondo.atr + +.PHONY: install +install:; + +.PHONY: uninstall +uninstall:; + +.PHONY: clean +clean: + rm -f music.bin fuente6x8.bin fondo.rcs scroll.bin scroll.bin.zx7b define.asm scrolldesc.bin scroll.tap + +.PHONY: distclean +distclean:;