summaryrefslogtreecommitdiff
path: root/gdb/Makefile
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-05-17 00:31:50 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-05-17 00:31:50 +0000
commit1dc42d1fcbe293513c45cdef1a0278ae3e4ecf1a (patch)
tree103b25b68573d34e3cde9c2a3553ce9eb8352362 /gdb/Makefile
parente96a085af8b51d20b0925f50abb8dcc2798291e0 (diff)
Now compiles without newlib. Refined the Makefile a little.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3674 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'gdb/Makefile')
-rw-r--r--gdb/Makefile24
1 files changed, 18 insertions, 6 deletions
diff --git a/gdb/Makefile b/gdb/Makefile
index 518217fc70..21c0cf8341 100644
--- a/gdb/Makefile
+++ b/gdb/Makefile
@@ -6,25 +6,37 @@
# \/ \/ \/ \/ \/
# $Id$
#
+
+ifdef RECORDER
+EXTRA = -DRECORDER
+EXT = ajz
+else
+EXT = mod
+endif
+
TARGET = stub
-OBJS = start.o sh-stub.o
+OBJS = start.o sh-stub.o setjmp.o
LIBS = -lgcc
.s.o:
sh-elf-as -o $@ $<
.c.o:
- sh-elf-gcc -O -I../firmware/drivers -m1 -Wall -Wstrict-prototypes -c -o $@ $<
+ sh-elf-gcc -O $(EXTRA) -I../firmware/export -I../firmware/include -m1 -Wall -Wstrict-prototypes -c -o $@ $<
+
+.S.o:
+ sh-elf-gcc -O -I../firmware/export -I../firmware/include -m1 -Wall -Wstrict-prototypes -c -o $@ $<
-archos.mod: $(TARGET).elf
+$(TARGET).$(EXT): $(TARGET).elf
sh-elf-objcopy -O binary $(TARGET).elf $(TARGET).out
- ../tools/scramble $(TARGET).out archos.mod
+ ../tools/scramble $(TARGET).out $(TARGET).$(EXT)
$(TARGET).elf: $(OBJS)
- sh-elf-gcc -nostartfiles $(OBJS) -lgcc -Wl,-Map,$(TARGET).map -o $(TARGET).elf -Tlinker.cfg
+ sh-elf-gcc -nostartfiles $(OBJS) -nostdlib -Wl,-Map,$(TARGET).map -o $(TARGET).elf -Tlinker.cfg
clean:
- rm $(OBJS) $(TARGET).map $(TARGET).elf $(TARGET).out archos.mod
+ rm $(OBJS) $(TARGET).map $(TARGET).elf $(TARGET).out $(TARGET).mod $(TARGET).ajz
start.o: start.s
sh-stub.o: sh-stub.c
+setjmp.o: setjmp.S