aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-01-02 02:31:18 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-01-02 02:31:18 +0000
commit8574e74b2bc8cbc7c004ae377b6ec2340c52ca67 (patch)
tree79ebcc931f747d0d118929f5ff54c2cd4c63f5f0 /gdb/Makefile.in
parent217bff3e3f2e8fc50715a9d2d4dfa2d882ac6904 (diff)
downloadgdb-8574e74b2bc8cbc7c004ae377b6ec2340c52ca67.zip
gdb-8574e74b2bc8cbc7c004ae377b6ec2340c52ca67.tar.gz
gdb-8574e74b2bc8cbc7c004ae377b6ec2340c52ca67.tar.bz2
gdb/
Build gdb directly from *.o files not using libgdb.a. * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o. (COMMON_OBS): Remove solib-target.o. (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule. (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS). (LIBGDB_OBS, libgdb.a): Move it above. * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*) (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu) (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe) (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu) (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*) (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*) (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu) (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*) (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*) (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*) (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*) (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*) (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*) (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*) (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*) (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*) (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*) (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*) (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*) (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu) (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*) (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*) (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*) (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*) (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu) (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*) (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in28
1 files changed, 14 insertions, 14 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index e39203c..882bf2a 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -228,7 +228,7 @@ SUBDIR_TUI_OBS = \
tui-command.o \
tui-data.o \
tui-disasm.o \
- tui-file.o tui.o \
+ tui-file.o \
tui-hooks.o \
tui-interp.o \
tui-io.o \
@@ -908,7 +908,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
reggroups.o regset.o \
trad-frame.o \
tramp-frame.o \
- solib.o solib-target.o \
+ solib.o \
prologue-value.o memory-map.o memrange.o \
xml-support.o xml-syscall.o xml-utils.o \
target-descriptions.o target-memory.o xml-tdesc.o xml-builtin.o \
@@ -1146,11 +1146,21 @@ init.c: $(INIT_FILES)
.PRECIOUS: init.c
+# Create a library of the gdb object files and build GDB by linking
+# against that.
+#
+# init.o is very important. It pulls in the rest of GDB.
+LIBGDB_OBS= $(COMMON_OBS) $(TSOBS) $(ADD_FILES) init.o
+libgdb.a: $(LIBGDB_OBS)
+ -rm -f libgdb.a
+ $(AR) q libgdb.a $(LIBGDB_OBS)
+ $(RANLIB) libgdb.a
+
# Removing the old gdb first works better if it is running, at least on SunOS.
-gdb$(EXEEXT): gdb.o libgdb.a $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
+gdb$(EXEEXT): gdb.o $(LIBGDB_OBS) $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
rm -f gdb$(EXEEXT)
$(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \
- -o gdb$(EXEEXT) gdb.o libgdb.a \
+ -o gdb$(EXEEXT) gdb.o $(LIBGDB_OBS) \
$(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
# Convenience rule to handle recursion.
@@ -1164,16 +1174,6 @@ all-lib: gnulib/Makefile
all-data-directory: data-directory/Makefile
@$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=data-directory subdir_do
-# Create a library of the gdb object files and build GDB by linking
-# against that.
-#
-# init.o is very important. It pulls in the rest of GDB.
-LIBGDB_OBS= $(COMMON_OBS) $(TSOBS) $(ADD_FILES) init.o
-libgdb.a: $(LIBGDB_OBS)
- -rm -f libgdb.a
- $(AR) q libgdb.a $(LIBGDB_OBS)
- $(RANLIB) libgdb.a
-
# This is useful when debugging GDB, because some Unix's don't let you run GDB
# on itself without copying the executable. So "make gdb1" will make
# gdb and put a copy in gdb1, and you can run it with "gdb gdb1".