New screen dump feature for recorders
[kugel-rb.git] / gdb / Makefile
blob61f4cb838d40105b1c02aaf1c35d50ed8667dc41
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 ifdef RECORDER
11 EXTRA = -DRECORDER
12 EXT = ajz
13 else
14 EXT = mod
15 endif
17 TARGET = stub
18 OBJS = start.o sh-stub.o setjmp.o
19 LIBS = -lgcc
21 .s.o:
22 sh-elf-as -o $@ $<
24 .c.o:
25 sh-elf-gcc -O $(EXTRA) -I../firmware/export -I../firmware/include -m1 -Wall -Wstrict-prototypes -c -o $@ $<
27 .S.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
38 clean:
39 rm $(OBJS) $(TARGET).map $(TARGET).elf $(TARGET).out $(TARGET).mod $(TARGET).ajz
41 start.o: start.S
42 sh-stub.o: sh-stub.c
43 setjmp.o: setjmp.S