Subversion Repositories Shiroi

Rev

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

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