SIM_NEW_COMMON_OBJS = \
sim-arange.o \
sim-bits.o \
+ sim-close.o \
sim-command.o \
sim-config.o \
sim-core.o \
+ sim-cpu.o \
sim-endian.o \
+ sim-engine.o \
sim-events.o \
sim-fpu.o \
+ sim-hrw.o \
sim-io.o \
sim-info.o \
sim-load.o \
sim-module.o \
sim-options.o \
sim-profile.o \
+ sim-reason.o \
+ sim-reg.o \
sim-signal.o \
+ sim-stop.o \
+ sim-syscall.o \
sim-trace.o \
sim-utils.o \
sim-watch.o \
COMMON_DEP_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH)
+ZLIB = @zlibdir@ -lz
LIBIBERTY_LIB = ../../libiberty/libiberty.a
BFD_LIB = ../../bfd/libbfd.a
@PLUGINS_TRUE@LIBDL = @lt_cv_dlopen_libs@
OPCODES_LIB = ../../opcodes/libopcodes.a
LIBINTL = @LIBINTL@
LIBINTL_DEP = @LIBINTL_DEP@
-CONFIG_LIBS = @LIBS@
+CONFIG_LIBS = @LIBS@ $(ZLIB)
LIBDEPS = $(BFD_LIB) $(OPCODES_LIB) $(LIBINTL_DEP) $(LIBIBERTY_LIB) \
$(SIM_EXTRA_LIBDEPS)
EXTRA_LIBS = $(BFD_LIB) $(OPCODES_LIB) $(LIBINTL) $(LIBIBERTY_LIB) \
$(SHELL) $(srcroot)/move-if-change tmp-tmap.c targ-map.c
touch stamp-tvals
-version.c: Makefile $(srccom)/create-version.sh ../../bfd/version.h ../../gdb/version.in
- $(SHELL) $(srccom)/create-version.sh $(srcsim) $(host_alias) $(target_alias) version.c
+version.c: Makefile $(srcroot)/gdb/version.in $(srcroot)/bfd/version.h $(srcroot)/gdb/common/create-version.sh
+ $(SHELL) $(srcroot)/gdb/common/create-version.sh $(srcroot)/gdb \
+ $(host_alias) $(target_alias) version.c
#
# Rules for building sim-* components. Triggered by listing the corresponding
# Dependencies.
@GMAKE_TRUE@-include $(patsubst %.o, $(DEPDIR)/%.Po, $(all_object_files))
-BUILT_SRC_FROM_COMMON= \
- sim-inline.c
-
-sim-inline.c: $(srccom)/sim-inline.c
- rm -f $@ tmp-$@
- echo "# 1 \"$(srccom)/$@\"" > tmp-$@
- cat $(srccom)/$@ >> tmp-$@
- $(SHELL) $(srcdir)/../../move-if-change tmp-$@ $@
-
# FIXME This is one very simple-minded way of generating the file hw-config.h
hw-config.h: Makefile.in $(srccom)/Make-common.in config.status Makefile
rm -f tmp-hw.h