diff options
Diffstat (limited to 'gdb/Makefile')
-rw-r--r-- | gdb/Makefile | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/gdb/Makefile b/gdb/Makefile index 0cd9990cd1..cf24a77cee 100644 --- a/gdb/Makefile +++ b/gdb/Makefile | |||
@@ -61,41 +61,4 @@ clean: | |||
61 | 61 | ||
62 | -include $(DEPFILE) | 62 | -include $(DEPFILE) |
63 | 63 | ||
64 | else # not ifp7xx | ||
65 | |||
66 | ifdef RECORDER | ||
67 | EXTRA = -DRECORDER | ||
68 | EXT = ajz | ||
69 | else | ||
70 | EXT = mod | ||
71 | endif | ||
72 | |||
73 | TARGET = stub | ||
74 | OBJS = start.o sh-stub.o setjmp.o | ||
75 | LIBS = -lgcc | ||
76 | |||
77 | .s.o: | ||
78 | sh-elf-as -o $@ $< | ||
79 | |||
80 | .c.o: | ||
81 | sh-elf-gcc -O $(EXTRA) -I../firmware/export -I../firmware/include -m1 -Wall -Wstrict-prototypes -c -o $@ $< | ||
82 | |||
83 | .S.o: | ||
84 | sh-elf-gcc -O -I../firmware/export -I../firmware/include -m1 -Wall -Wstrict-prototypes -c -o $@ $< | ||
85 | |||
86 | $(TARGET).$(EXT): $(TARGET).elf | ||
87 | sh-elf-objcopy -O binary $(TARGET).elf $(TARGET).out | ||
88 | ../tools/scramble $(TARGET).out $(TARGET).$(EXT) | ||
89 | ../tools/sh2d $(TARGET).out -o 09000000 > $(TARGET).asm | ||
90 | |||
91 | $(TARGET).elf: $(OBJS) | ||
92 | sh-elf-gcc -nostartfiles $(OBJS) -nostdlib -Wl,-Map,$(TARGET).map -o $(TARGET).elf -Tlinker.cfg | ||
93 | |||
94 | clean: | ||
95 | rm $(OBJS) $(TARGET).map $(TARGET).elf $(TARGET).out $(TARGET).mod $(TARGET).ajz | ||
96 | |||
97 | start.o: start.s | ||
98 | sh-stub.o: sh-stub.c | ||
99 | setjmp.o: setjmp.S | ||
100 | |||
101 | endif | 64 | endif |