diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-02-08 20:03:26 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-02-08 20:03:26 +0000 |
commit | fb639847713fed3ed2c94e41e7f21d09cebe4af2 (patch) | |
tree | 1698f481ff266b22ee0e49b18026ca15d24f15b2 /c/src/lib/libbsp/mips/shared/gdbstub/Makefile | |
parent | 2002-02-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-fb639847713fed3ed2c94e41e7f21d09cebe4af2.tar.bz2 |
2002-02-08 Joel Sherrill <joel@OARcorp.com>
* Merged r46kstub.c into RTEMS distribution without modification.
I got the code from Franz Fischer <Franz.Fischer@franz-fischer.de>
who had used this with an old version of RTEMS with the mips64orion
port of RTEMS. After adding this to the repository, I will tailor
this to work with the RTEMS exception processing model and trim
no longer needed parts.
* ChangeLog, gdb_if.h, ioaddr.h, limits.h, Makefile, mips_opcode.h,
r4600.h, r46kstub.c, r46kstub.ld, README, stubinit.S:
Diffstat (limited to 'c/src/lib/libbsp/mips/shared/gdbstub/Makefile')
-rw-r--r-- | c/src/lib/libbsp/mips/shared/gdbstub/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/mips/shared/gdbstub/Makefile b/c/src/lib/libbsp/mips/shared/gdbstub/Makefile new file mode 100644 index 0000000000..9057011b4e --- /dev/null +++ b/c/src/lib/libbsp/mips/shared/gdbstub/Makefile @@ -0,0 +1,38 @@ +CC = mips64orion-idt-elf-gcc +CFLAGS = -g -Wa,-ahld -Wall -membedded-data -O3 +AS = mips64orion-idt-elf-as +ASFLAGS = -ahld +LD = mips64orion-idt-elf-ld +LDFLAGS = -t -s + +# Inference rules + +.SUFFIXES: $(SUFFIXES) .out .ld + +.ld.out: + $(LD) $(LDFLAGS) -T $< -Map $*.map -o $*.out +.c.o: + $(CC) $(CFLAGS) -c $< >$*.L + +.S.o: + $(CC) $(CFLAGS) -c $< >$*.L + +.s.o: + $(AS) $(ASFLAGS) -o $*.o $< >$*.L + +# Targets + +r46kstub.hex: r46kstub.out + mips64orion-idt-elf-objcopy -S -R .bss -R .data -R .reginfo \ + -O srec r46kstub.out r46kstub.hex + +clean: + rm -f *.L *.map *.o *.out *.hex + +# Dependencies + +r46kstub.out: r46kstub.ld r46kstub.o stubinit.o + +r46kstub.o: mips_opcode.h r4600.h limits.h gdb_if.h r46kstub.c + +stubinit.o: r4600.h ioaddr.h gdb_if.h stubinit.S |