Subversion Repositories Shiroi

Rev

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

Rev 35 Rev 37
Line 1... Line 1...
1
# $Id: Makefile 35 2024-09-01 15:14:41Z nishi $
1
# $Id: Makefile 37 2024-09-01 15:55:40Z 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 mem.rel
6
OBJS = shiroi.rel basic.rel io.rel char.rel mem.rel
Line 28... Line 28...
28
	sdasz80 -o io.rel io.asm
28
	sdasz80 -o io.rel io.asm
29
	rm -f "`echo $< | sed -E 's/\.asm$$/.sym/g'`" "`echo $< | sed -E 's/\.asm$$/.lst/g'`"
29
	rm -f "`echo $< | sed -E 's/\.asm$$/.sym/g'`" "`echo $< | sed -E 's/\.asm$$/.lst/g'`"
30
 
30
 
31
.c.rel:
31
.c.rel:
32
	mkdir -p Discard
32
	mkdir -p Discard
33
	sdcc -DPLATFORM=\"Shiroi\" -DONLY_VDP -c -mz80 -o $@ --no-std-crt0 --nostdinc --nostdlib $<
33
	sdcc -DPLATFORM_SHIROI -DONLY_VDP -c -mz80 -o $@ --no-std-crt0 --nostdinc --nostdlib $<
34
	rm -f "`echo $< | sed -E 's/\.c$$/.asm/g'`" "`echo $< | sed -E 's/\.c$$/.sym/g'`" "`echo $< | sed -E 's/\.c$$/.lst/g'`"
34
	rm -f "`echo $< | sed -E 's/\.c$$/.asm/g'`" "`echo $< | sed -E 's/\.c$$/.sym/g'`" "`echo $< | sed -E 's/\.c$$/.lst/g'`"
35
 
35
 
36
Discard/font.ihx: font.asm
36
Discard/font.ihx: font.asm
37
	mkdir -p Discard
37
	mkdir -p Discard
38
	sdasz80 -o Discard/font.rel font.asm
38
	sdasz80 -o Discard/font.rel font.asm