diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-04-15 08:35:08 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-04-15 08:35:08 +0000 |
commit | d42d78fe4b000a47d5c1d451973b362891c6fc65 (patch) | |
tree | 9548b0990d714a3ef7083051f7e44b3e4ceb1258 /gdb/Makefile | |
parent | 11d0198e49987a3d85b0b5889d0dfeba3d9cd51e (diff) | |
download | rockbox-d42d78fe4b000a47d5c1d451973b362891c6fc65.tar.gz rockbox-d42d78fe4b000a47d5c1d451973b362891c6fc65.zip |
First check in
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@93 a1c6a512-1295-4272-9138-f99709370657
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 | ||