Subversion Repositories Shiroi

Rev

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

Rev 18 Rev 21
Line 1... Line 1...
1
# $Id: Makefile 18 2024-08-29 06:56:23Z nishi $
1
# $Id: Makefile 21 2024-08-31 09:25:21Z 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 21... Line 21...
21
	mkdir -p Discard
21
	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)
22
	sdcc -mz80 -o $@ --data-loc 0x8000 --idata-loc 0x8000 --code-loc 0 --stack-loc 0x9000 --no-std-crt0 --nostdinc --nostdlib $(OBJS)
23
 
23
 
24
.c.rel:
24
.c.rel:
25
	mkdir -p Discard
25
	mkdir -p Discard
26
	sdcc -DONLY_VDP -c -mz80 -o $@ --no-std-crt0 --nostdinc --nostdlib $<
26
	sdcc -DONLY_VDP2 -c -mz80 -o $@ --no-std-crt0 --nostdinc --nostdlib $<
27
	rm -f "`echo $< | sed -E 's/\.c$$/.asm/g'`" "`echo $< | sed -E 's/\.c$$/.sym/g'`" "`echo $< | sed -E 's/\.c$$/.lst/g'`"
27
	rm -f "`echo $< | sed -E 's/\.c$$/.asm/g'`" "`echo $< | sed -E 's/\.c$$/.sym/g'`" "`echo $< | sed -E 's/\.c$$/.lst/g'`"
28
 
28
 
29
Discard/font.ihx: font.asm
29
Discard/font.ihx: font.asm
30
	mkdir -p Discard
30
	mkdir -p Discard
31
	sdasz80 -o Discard/font.rel font.asm
31
	sdasz80 -o Discard/font.rel font.asm