Subversion Repositories Shiroi

Rev

Rev 1 | Rev 8 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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