2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
18 OBJS
= start.o sh-stub.o setjmp.o
25 sh-elf-gcc
-O
$(EXTRA
) -I..
/firmware
/export -I..
/firmware
/include -m1
-Wall
-Wstrict-prototypes
-c
-o
$@
$<
28 sh-elf-gcc
-O
-I..
/firmware
/export -I..
/firmware
/include -m1
-Wall
-Wstrict-prototypes
-c
-o
$@
$<
30 $(TARGET
).
$(EXT
): $(TARGET
).elf
31 sh-elf-objcopy
-O binary
$(TARGET
).elf
$(TARGET
).out
32 ..
/tools
/scramble
$(TARGET
).out
$(TARGET
).
$(EXT
)
33 ..
/tools
/sh2d
$(TARGET
).out
-o
09000000 > $(TARGET
).asm
35 $(TARGET
).elf
: $(OBJS
)
36 sh-elf-gcc
-nostartfiles
$(OBJS
) -nostdlib
-Wl
,-Map
,$(TARGET
).map
-o
$(TARGET
).elf
-Tlinker.cfg
39 rm $(OBJS
) $(TARGET
).map
$(TARGET
).elf
$(TARGET
).out
$(TARGET
).mod
$(TARGET
).ajz