From a5745813e442b66ae6eed30bba81d1b3dd5cf634 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 17 Apr 2021 22:05:24 +0100 Subject: Initial public release --- player/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 player/Makefile (limited to 'player/Makefile') diff --git a/player/Makefile b/player/Makefile new file mode 100644 index 0000000..c837be5 --- /dev/null +++ b/player/Makefile @@ -0,0 +1,20 @@ +all: player.bin + +CC = sdcc +AS = sdasz80 +AR = sdar +CFLAGS = -mz80 --Werror --fsigned-char --std-sdcc99 --opt-code-speed +LDFLAGS = --no-std-crt0 --fomit-frame-pointer + +%.rel: %.z80 + $(AS) -g -o $@ $< + +player.bin: player.rel + $(CC) $(CFLAGS) $(LDFLAGS) --code-loc 20480 --data-loc 0 -o player.ihx $< + hex2bin -p 00 player.ihx + ./bin2h.py player.bin player > ../player.h + +.PHONY: clean +clean: + rm -f *.rel *.ihx *.bin *.map *.noi *.lk + -- cgit v1.2.3