Subversion Repositories Shiroi

Rev

Rev 3 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 nishi 1
# $Id: Makefile 1 2024-08-28 08:10:28Z nishi $
2
 
3
.PHONY: all clean
4
 
5
all: shiroi.rom
6
 
7
shiroi.rom: shiroi.bin font.bin
8
	cat shiroi.bin font.bin > shiroi.rom
9
 
10
shiroi.bin: Discard/shiroi.ihx
11
	makebin -s 8192 Discard/shiroi.ihx shiroi.bin
12
 
13
font.bin: Discard/font.ihx
14
	makebin -s 8192 Discard/font.ihx font.bin
15
 
16
Discard/shiroi.ihx: shiroi.c
17
	mkdir -p Discard
18
	sdcc -mz80 -o Discard/shiroi.ihx --data-loc 0x1000 --code-loc 0 --no-std-crt0 --nostdinc --nostdlib shiroi.c
19
 
20
Discard/font.ihx: font.asm
21
	mkdir -p Discard
22
	sdasz80 -o Discard/font.rel font.asm
23
	sdldz80 -i $@ Discard/font.rel
24
 
25
clean:
26
	rm -rf Discard *.o *.bin *.rom