diff options
Diffstat (limited to 'gdb/Makefile')
-rw-r--r-- | gdb/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gdb/Makefile b/gdb/Makefile new file mode 100644 index 0000000000..2e36a7f80e --- /dev/null +++ b/gdb/Makefile | |||
@@ -0,0 +1,32 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id$ | ||
8 | # | ||
9 | TARGET = stub | ||
10 | OBJS = start.o sh-stub.o | ||
11 | #LIBS = -L/home/linus/sh1/lib/gcc-lib/sh-elf/3.0.4 -lgcc | ||
12 | LIBS = -lgcc | ||
13 | |||
14 | .s.o: | ||
15 | sh-elf-as -o $@ $< | ||
16 | |||
17 | .c.o: | ||
18 | sh-elf-gcc -O -m1 -Wall -c -o $@ $< | ||
19 | |||
20 | $(TARGET).out: $(TARGET).elf | ||
21 | sh-elf-objcopy -O binary $(TARGET).elf $(TARGET).out | ||
22 | scramble $(TARGET).out archos.mod | ||
23 | |||
24 | $(TARGET).elf: $(OBJS) | ||
25 | sh-elf-gcc -nostartfiles $(OBJS) -lgcc -Wl,-Map,$(TARGET).map -o $(TARGET).elf -Tlinker.cfg | ||
26 | |||
27 | clean: | ||
28 | rm $(OBJS) $(TARGET).map $(TARGET).elf $(TARGET).out archos.mod | ||
29 | |||
30 | start.o: start.s | ||
31 | stub.o: stub.c | ||
32 | s-stub.o: sh-stub.c | ||