summaryrefslogtreecommitdiff
path: root/gdb/Makefile
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-04-15 08:35:08 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-04-15 08:35:08 +0000
commitd42d78fe4b000a47d5c1d451973b362891c6fc65 (patch)
tree9548b0990d714a3ef7083051f7e44b3e4ceb1258 /gdb/Makefile
parent11d0198e49987a3d85b0b5889d0dfeba3d9cd51e (diff)
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/Makefile32
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 @@
+# __________ __ ___.
+# Open \______ \ ____ ____ | | _\_ |__ _______ ___
+# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+# \/ \/ \/ \/ \/
+# $Id$
+#
+TARGET = stub
+OBJS = start.o sh-stub.o
+#LIBS = -L/home/linus/sh1/lib/gcc-lib/sh-elf/3.0.4 -lgcc
+LIBS = -lgcc
+
+.s.o:
+ sh-elf-as -o $@ $<
+
+.c.o:
+ sh-elf-gcc -O -m1 -Wall -c -o $@ $<
+
+$(TARGET).out: $(TARGET).elf
+ sh-elf-objcopy -O binary $(TARGET).elf $(TARGET).out
+ scramble $(TARGET).out archos.mod
+
+$(TARGET).elf: $(OBJS)
+ sh-elf-gcc -nostartfiles $(OBJS) -lgcc -Wl,-Map,$(TARGET).map -o $(TARGET).elf -Tlinker.cfg
+
+clean:
+ rm $(OBJS) $(TARGET).map $(TARGET).elf $(TARGET).out archos.mod
+
+start.o: start.s
+stub.o: stub.c
+s-stub.o: sh-stub.c