diff options
author | Masaki Muranaka <monaka@sourceware.org> | 2010-12-04 01:58:55 +0000 |
---|---|---|
committer | Masaki Muranaka <monaka@sourceware.org> | 2010-12-04 01:58:55 +0000 |
commit | cd006ce47a63fa23abf4a85efc38ba3bd2aaff9b (patch) | |
tree | dd4271dbeb88aa66f54ef94ddb02d6049f3b8bc8 | |
parent | e66a3432ef115f1637d2cbe06042a9d29a2c70d2 (diff) | |
download | gdb-cd006ce47a63fa23abf4a85efc38ba3bd2aaff9b.zip gdb-cd006ce47a63fa23abf4a85efc38ba3bd2aaff9b.tar.gz gdb-cd006ce47a63fa23abf4a85efc38ba3bd2aaff9b.tar.bz2 |
* Makefile.in: Use CC_FOR_BUILD to build opc2c.
-rw-r--r-- | sim/m32c/ChangeLog | 4 | ||||
-rw-r--r-- | sim/m32c/Makefile.in | 11 |
2 files changed, 12 insertions, 3 deletions
diff --git a/sim/m32c/ChangeLog b/sim/m32c/ChangeLog index 49dfa03..89e6643 100644 --- a/sim/m32c/ChangeLog +++ b/sim/m32c/ChangeLog @@ -1,3 +1,7 @@ +2010-12-04 Masaki Muranaka <monaka@monami-software.com> + + * Makefile.in: Use CC_FOR_BUILD to build opc2c. + 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> * main.c (setup_tcp_console): Check error return from socket() call diff --git a/sim/m32c/Makefile.in b/sim/m32c/Makefile.in index c304ab8..18fc24f 100644 --- a/sim/m32c/Makefile.in +++ b/sim/m32c/Makefile.in @@ -55,7 +55,7 @@ m32c.c : m32c.opc opc2c ./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c opc2c : opc2c.o safe-fgets.o - $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ + $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) $^ -o $@ $(BUILD_LIBS) sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o @@ -82,10 +82,15 @@ load.o : load.h cpu.h mem.h main.o : cpu.h mem.h misc.h load.h mem.o : mem.h cpu.h syscalls.h misc.o : cpu.h misc.h -opc2c.o : safe-fgets.h reg.o : cpu.h -safe-fgets.o : safe-fgets.h srcdest.c : cpu.h mem.h syscalls.c : cpu.h mem.h syscalls.h r8c.o : cpu.h mem.h misc.h int.h + +opc2c.o : opc2c.c safe-fgets.h + $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/opc2c.c + +safe-fgets.o : safe-fgets.c safe-fgets.h + $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/safe-fgets.c + |