Subversion Repositories Shiroi

Rev

Rev 1 | Rev 8 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 nishi 1
# $Id: Makefile 3 2024-08-28 09:19:04Z 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
3 nishi 11
	makebin -s 22528 Discard/shiroi.ihx shiroi.bin
1 nishi 12
 
13
font.bin: Discard/font.ihx
3 nishi 14
	makebin -s 2048 Discard/font.ihx font.bin
1 nishi 15
 
16
Discard/shiroi.ihx: shiroi.c
17
	mkdir -p Discard
3 nishi 18
	sdcc -mz80 -o Discard/shiroi.ihx --data-loc 0x8000 --idata-loc 0x8000 --code-loc 0 --stack-loc 0x9000 --no-std-crt0 --nostdinc --nostdlib shiroi.c
1 nishi 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