aboutsummaryrefslogtreecommitdiff
path: root/player/Makefile
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-04-17 22:05:24 +0100
committerJuan J. Martinez <jjm@usebox.net>2021-04-17 22:05:24 +0100
commita5745813e442b66ae6eed30bba81d1b3dd5cf634 (patch)
treeb302db1780350dc44543b81d49bfc1b2d4dff6a8 /player/Makefile
downloadbeeper-int-zx-a5745813e442b66ae6eed30bba81d1b3dd5cf634.tar.gz
beeper-int-zx-a5745813e442b66ae6eed30bba81d1b3dd5cf634.zip
Initial public release
Diffstat (limited to 'player/Makefile')
-rw-r--r--player/Makefile20
1 files changed, 20 insertions, 0 deletions
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
+