aboutsummaryrefslogtreecommitdiff
path: root/sim/common/Make-common.in
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1997-04-17 09:37:02 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1997-04-17 09:37:02 +0000
commit0f2811d1c539d123b69ffa0da3cd13febd10ef43 (patch)
treee855611e559b83b3a50f2220a8f8f47120efd331 /sim/common/Make-common.in
parent22003c917e05848dd91b347c77dbcdd980720d88 (diff)
downloadgdb-0f2811d1c539d123b69ffa0da3cd13febd10ef43.zip
gdb-0f2811d1c539d123b69ffa0da3cd13febd10ef43.tar.gz
gdb-0f2811d1c539d123b69ffa0da3cd13febd10ef43.tar.bz2
* Make-common.in (sim-options.o, sim-load.o): Add rules for.
(sim_main_headers): Add sim-trace.h. * run.c (exec_bfd, target_byte_order): Delete. (main): Pass -E <endian> to sim_open. Delete code to load sections, call sim_load instead. Check return code of sim_create_inferior. * sim-base.h (CURRENT_STATE): Define. (sim_state_base): Make typedef. New members options, prog_argv, prog_bfd, text_{section,start,end}, start_addr, simcache_size, mem_size, memory [+ corresponding access macros]. (sim_cpu_base): New typedef. * sim-trace.h: New file. * sim-basics.h: #include it. * sim-load.c: New file.
Diffstat (limited to 'sim/common/Make-common.in')
-rw-r--r--sim/common/Make-common.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index ad6b081..6c7ef6d 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -80,7 +80,9 @@ RANLIB = @RANLIB@
MAKEINFO = makeinfo
# Each simulator's Makefile.in defines one or more of these variables
-# to override our settings as necessary.
+# to override our settings as necessary. There is no need to define these
+# in the simulator's Makefile.in if one is using the default value. In fact
+# it's preferable not to.
# List of object files, less common parts.
SIM_OBJS =
@@ -174,6 +176,7 @@ sim_main_headers = \
$(srcdir)/../common/sim-config.h \
$(srcdir)/../common/sim-base.h \
$(srcdir)/../common/sim-basics.h \
+ $(srcdir)/../common/sim-trace.h \
tconfig.h
sim-assert_h = $(srcdir)/../common/sim-assert.h
@@ -254,10 +257,17 @@ sim-io.c: $(srcdir)/../common/sim-io.c
cat $(srcdir)/../common/$@ >> tmp-$@
$(srcdir)/../../move-if-change tmp-$@ $@
+sim-options.o: $(srcdir)/../common/sim-options.c $(sim_headers) \
+ $(srcdir)/../common/sim-options.h
+ $(CC) -c $(srcdir)/../common/sim-options.c $(ALL_CFLAGS)
+
sim-utils.o: $(srcdir)/../common/sim-utils.c $(sim_main_headers) \
$(SIM_EXTRA_DEPS)
$(CC) -c $(srcdir)/../common/sim-utils.c $(ALL_CFLAGS)
+sim-load.o: $(srcdir)/../common/sim-load.c
+ $(CC) -c $(srcdir)/../common/sim-load.c $(ALL_CFLAGS)
+
install: install-common $(SIM_EXTRA_INSTALL)