Subversion Repositories Shiroi

Rev

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

Rev 22 Rev 26
Line 1... Line 1...
1
# $Id: Makefile 22 2024-08-31 10:44:32Z nishi $
1
# $Id: Makefile 26 2024-08-31 12:31:25Z 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 26... Line 26...
26
	sdasz80 -o io.rel io.asm
26
	sdasz80 -o io.rel io.asm
27
	rm -f "`echo $< | sed -E 's/\.asm$$/.sym/g'`" "`echo $< | sed -E 's/\.asm$$/.lst/g'`"
27
	rm -f "`echo $< | sed -E 's/\.asm$$/.sym/g'`" "`echo $< | sed -E 's/\.asm$$/.lst/g'`"
28
 
28
 
29
.c.rel:
29
.c.rel:
30
	mkdir -p Discard
30
	mkdir -p Discard
31
	sdcc -DONLY_VDP2 -c -mz80 -o $@ --no-std-crt0 --nostdinc --nostdlib $<
31
	sdcc -DONLY_VDP -c -mz80 -o $@ --no-std-crt0 --nostdinc --nostdlib $<
32
	rm -f "`echo $< | sed -E 's/\.c$$/.asm/g'`" "`echo $< | sed -E 's/\.c$$/.sym/g'`" "`echo $< | sed -E 's/\.c$$/.lst/g'`"
32
	rm -f "`echo $< | sed -E 's/\.c$$/.asm/g'`" "`echo $< | sed -E 's/\.c$$/.sym/g'`" "`echo $< | sed -E 's/\.c$$/.lst/g'`"
33
 
33
 
34
Discard/font.ihx: font.asm
34
Discard/font.ihx: font.asm
35
	mkdir -p Discard
35
	mkdir -p Discard
36
	sdasz80 -o Discard/font.rel font.asm
36
	sdasz80 -o Discard/font.rel font.asm