Subversion Repositories Shiroi

Rev

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

Rev 26 Rev 31
Line 1... Line 1...
1
# $Id: Makefile 26 2024-08-31 12:31:25Z nishi $
1
# $Id: Makefile 31 2024-09-01 06:11:33Z nishi $
2
 
2
 
3
.PHONY: all clean
3
.PHONY: all clean
4
.SUFFIXES: .c .rel
4
.SUFFIXES: .c .rel
5
 
5
 
6
OBJS = shiroi.rel basic.rel io.rel char.rel
6
OBJS = shiroi.rel basic.rel io.rel char.rel
Line 10... Line 10...
10
 
10
 
11
shiroi.rom: shiroi.bin font.bin
11
shiroi.rom: shiroi.bin font.bin
12
	cat shiroi.bin font.bin > shiroi.rom
12
	cat shiroi.bin font.bin > shiroi.rom
13
 
13
 
14
shiroi.bin: Discard/shiroi.ihx
14
shiroi.bin: Discard/shiroi.ihx
-
 
15
	mkdir -p Discard
15
	makebin -s 22528 Discard/shiroi.ihx shiroi.bin
16
	makebin -s 22528 Discard/shiroi.ihx shiroi.bin
16
 
17
 
17
font.bin: Discard/font.ihx
18
font.bin: Discard/font.ihx
-
 
19
	mkdir -p Discard
18
	makebin -s 2048 Discard/font.ihx font.bin
20
	makebin -s 2048 Discard/font.ihx font.bin
19
 
21
 
20
Discard/shiroi.ihx: $(OBJS)
22
Discard/shiroi.ihx: $(OBJS)
21
	mkdir -p Discard
23
	mkdir -p Discard
22
	sdcc -mz80 -o $@ --data-loc 0x8000 --idata-loc 0x8000 --code-loc 0 --stack-loc 0x9000 --no-std-crt0 --nostdinc --nostdlib $(OBJS)
24
	sdcc -mz80 -o $@ --data-loc 0x8000 --idata-loc 0x8000 --code-loc 0 --stack-loc 0x9000 --no-std-crt0 --nostdinc --nostdlib $(OBJS)