mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
Second pass at canadian cross
This commit is contained in:
@ -42,8 +42,16 @@ Wed Sep 4 11:35:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
|||||||
(CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode.
|
(CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode.
|
||||||
(run): By default, the math library is not needed to be linked
|
(run): By default, the math library is not needed to be linked
|
||||||
in.
|
in.
|
||||||
({BFD,OPCODES,LIBIBERTY}_LIB): Define as variables so they can be
|
({BFD,LIBIBERTY}_LIB): Define as variables so they can be
|
||||||
overridden.
|
overridden.
|
||||||
|
(VPATH): Don't set to anything but @srcdir@ to work with non-GNU
|
||||||
|
makes.
|
||||||
|
({run,callback}.o): Provide explicit paths to their appropriate
|
||||||
|
source directories.
|
||||||
|
(gencode{,.o},d10v-opc.o): Split compilation into creating object
|
||||||
|
and linking. Instead of linking in libopcodes.a, just compile
|
||||||
|
d10v-opc.o directly to handle canadian cross.
|
||||||
|
(CSEARCH): Add opcodes directory.
|
||||||
|
|
||||||
* configure.in (--enable-sim-cflags): New switch to allow user to
|
* configure.in (--enable-sim-cflags): New switch to allow user to
|
||||||
set the defaults.
|
set the defaults.
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
default: all
|
default: all
|
||||||
|
|
||||||
VPATH = @srcdir@:@srcdir@/../common:@srcdir@/../../gdb/
|
VPATH = @srcdir@
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
srcroot = $(srcdir)/../..
|
srcroot = $(srcdir)/../..
|
||||||
|
|
||||||
@ -79,24 +79,29 @@ X_LIB=
|
|||||||
MATH_LIB=
|
MATH_LIB=
|
||||||
|
|
||||||
|
|
||||||
INCLUDE = d10v_sim.h
|
INCLUDE = d10v_sim.h $(srcdir)/../../gdb/callback.h
|
||||||
INCDIR = $(srcdir)/../../include
|
INCDIR = $(srcdir)/../../include
|
||||||
CSEARCH = -I. -I$(srcdir) -I../../include \
|
CSEARCH = -I. -I$(srcdir) -I../../include \
|
||||||
-I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb -I$(srcdir)/../../newlib/libc/sys/d10v
|
-I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb -I$(srcdir)/../../newlib/libc/sys/d10v \
|
||||||
|
-I$(srcdir)/opcodes
|
||||||
DEP = mkdep
|
DEP = mkdep
|
||||||
|
|
||||||
LIBIBERTY_LIB = ../../libiberty/libiberty.a
|
LIBIBERTY_LIB = ../../libiberty/libiberty.a
|
||||||
BFD_LIB = ../../bfd/libbfd.a
|
BFD_LIB = ../../bfd/libbfd.a
|
||||||
OPCODES_LIB = ../../opcodes/libopcodes.a
|
|
||||||
|
|
||||||
all: run libsim.a
|
all: run libsim.a
|
||||||
|
|
||||||
run: interp.o $(X) run.o table.o callback.o simops.o
|
run: interp.o $(X) run.o table.o callback.o simops.o
|
||||||
$(CC) $(CFLAGS) $(CONFIG_CFLAGS) -o run $(X) interp.o table.o callback.o simops.o run.o $(BFD_LIB) $(LIBIBERTY_LIB) $(X_LIB) $(MATH_LIB)
|
$(CC) $(CFLAGS) $(CONFIG_CFLAGS) -o run $(X) interp.o table.o callback.o simops.o run.o \
|
||||||
|
$(BFD_LIB) $(LIBIBERTY_LIB) $(X_LIB) $(MATH_LIB)
|
||||||
|
|
||||||
interp.o:interp.c table.c $(INCLUDE)
|
interp.o:interp.c table.c $(INCLUDE)
|
||||||
run.o:run.c $(INCLUDE)
|
run.o: $(srcdir)/../common/run.c $(INCLUDE)
|
||||||
|
$(CC) -c $(CFLAGS) $(CONFIG_CFLAGS) $<
|
||||||
|
|
||||||
simops.o: simops.c $(INCLUDE)
|
simops.o: simops.c $(INCLUDE)
|
||||||
|
callback.o: $(srcdir)/../../gdb/callback.c $(INCLUDE)
|
||||||
|
$(CC) -c $(CFLAGS) $(CONFIG_CFLAGS) $<
|
||||||
|
|
||||||
libsim.a:interp.o table.o simops.o
|
libsim.a:interp.o table.o simops.o
|
||||||
$(AR) $(ARFLAGS) libsim.a interp.o table.o simops.o
|
$(AR) $(ARFLAGS) libsim.a interp.o table.o simops.o
|
||||||
@ -108,8 +113,14 @@ simops.h: gencode
|
|||||||
table.c: gencode simops.h
|
table.c: gencode simops.h
|
||||||
./gencode >$@
|
./gencode >$@
|
||||||
|
|
||||||
gencode: gencode.c ../../opcodes/libopcodes.a $(INCLUDE)
|
gencode.o: gencode.c $(INCLUDE)
|
||||||
$(CC_FOR_BUILD) $(BUILD_CFLAGS) -o gencode $(srcdir)/gencode.c $(OPCODES_LIB)
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/gencode.c
|
||||||
|
|
||||||
|
d10v-opc.o: $(srcdir)/../../opcodes/d10v-opc.c
|
||||||
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/../../opcodes/d10v-opc.c
|
||||||
|
|
||||||
|
gencode: gencode.o d10v-opc.o
|
||||||
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) -o gencode gencode.o d10v-opc.o $(BUILD_LIB)
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) $(CONFIG_CFLAGS) $<
|
$(CC) -c $(CFLAGS) $(CONFIG_CFLAGS) $<
|
||||||
|
Reference in New Issue
Block a user