blob: c837be555e6a876db89230691c9eb100ffc99c0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|