aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-04-19 19:34:52 +0000
committerPedro Alves <palves@redhat.com>2012-04-19 19:34:52 +0000
commitc971b7fa72c48b07e3199b76f8d79f3a71c65124 (patch)
tree1da895c31fc16645f398f166dfdb33b41ac36f78 /gdb/Makefile.in
parent9d28a8c73b6f647ffab4a27d827137e272e046b8 (diff)
downloadgdb-c971b7fa72c48b07e3199b76f8d79f3a71c65124.zip
gdb-c971b7fa72c48b07e3199b76f8d79f3a71c65124.tar.gz
gdb-c971b7fa72c48b07e3199b76f8d79f3a71c65124.tar.bz2
2012-04-19 Pedro Alves <palves@redhat.com>
gdb/ * Makefile.in (GNULIB_BUILDDIR): New. (LIBGNU, INCGNU, GNULIB_H): Adjust. (SUBDIRS): Add $(GNULIB_BUILDDIR). (CLEANDIRS). Remove gnulib/import. (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR). (all-lib): Ditto. (distclean): Remove the $(GNULIB_BUILDDIR) directory. (gnulib/import/Makefile): Replace gnulib/import with $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile. (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'. (aclocal_m4_deps): Remove the gnulib dependencies. Add acx_configure_dir.m4. * acinclude.m4: Include acx_configure_dir.m4. * acx_configure_dir.m4: New file. * aclocal.m4: Regenerate. * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE calls. Configure gnulib using ACX_CONFIGURE_DIR. (GNULIB): New variable. (GNULIB_STDINT_H): Adjust. (AC_OUTPUT): Don't output gnulib/Makefile. * gdb/defs.h: Include build-gnulib/config.h. * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate. * gnulib/Makefile.in: New file. * gnulib/configure.ac: New file. * gnulib/aclocal.m4: New file. * gnulib/config.in: New file. * gnulib/configure: New file. * gnulib/: Re-run gnulib-tool to adjust. gdb/gdbserver/ * Makefile.in (GNULIB_BUILDDIR): New. (LIBGNU, INCGNU, GNULIB_H): Adjust. (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New. (all, install-only, uninstall, clean-info, all-lib, clean): No longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do. (maintainer-clean realclean distclean): Use subdir_do. (subdir_do): New. (gnulib/import/Makefile): Adjust. Replace gnulib/import with $(GNULIB_BUILDDIR). Don't pass argument to config.status. * acinclude.m4: Include acx_configure_dir.m4. * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE calls. Call AC_PROG_RANLIB. Configure gnulib using ACX_CONFIGURE_DIR. (GNULIB): New. (GNULIB_STDINT_H): Adjust. (AC_OUTPUT): Don't output gnulib/Makefile anymore. * gdbreplay.c: Include build-gnulib/config.h. * server.h: Likewise. * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in47
1 files changed, 14 insertions, 33 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 03298cb..0e87eeb 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -170,12 +170,13 @@ INTL_CFLAGS = @INCINTL@
GDB_DATADIR = @GDB_DATADIR@
# Helper code from gnulib.
-LIBGNU = gnulib/import/libgnu.a
-INCGNU = -I$(srcdir)/gnulib/import -Ignulib/import
+GNULIB_BUILDDIR = build-gnulib
+LIBGNU = $(GNULIB_BUILDDIR)/import/libgnu.a
+INCGNU = -I$(srcdir)/gnulib/import -I$(GNULIB_BUILDDIR)/import
# Generated headers in the gnulib directory. These must be listed
# so that they are generated before other files are compiled.
-GNULIB_H = gnulib/import/string.h @GNULIB_STDINT_H@
+GNULIB_H = $(GNULIB_BUILDDIR)/import/string.h @GNULIB_STDINT_H@
#
# CLI sub directory definitons
@@ -916,14 +917,14 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
TSOBS = inflow.o
-SUBDIRS = doc @subdirs@ data-directory
-CLEANDIRS = $(SUBDIRS) gnulib/import
+SUBDIRS = doc @subdirs@ data-directory $(GNULIB_BUILDDIR)
+CLEANDIRS = $(SUBDIRS)
# List of subdirectories in the build tree that must exist.
# This is used to force build failures in existing trees when
# a new directory is added.
# The format here is for the `case' shell command.
-REQUIRED_SUBDIRS = doc | testsuite | gnulib/import | data-directory
+REQUIRED_SUBDIRS = doc | testsuite | $(GNULIB_BUILDDIR) | data-directory
# For now, shortcut the "configure GDB for fewer languages" stuff.
YYFILES = c-exp.c \
@@ -1163,8 +1164,8 @@ gdb$(EXEEXT): gdb.o $(LIBGDB_OBS) $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
# Convenience rule to handle recursion.
$(LIBGNU) $(GNULIB_H): all-lib
-all-lib: gnulib/import/Makefile
- @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=gnulib/import subdir_do
+all-lib: $(GNULIB_BUILDDIR)/Makefile
+ @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=$(GNULIB_BUILDDIR) subdir_do
.PHONY: all-lib
# Convenience rule to handle recursion.
@@ -1219,6 +1220,7 @@ clean mostlyclean: $(CONFIG_CLEAN)
# always included in SUBDIRS. Remove the gdbserver files explicitly.
distclean: clean
@$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(CLEANDIRS)" subdir_do
+ rm -rf $(GNULIB_BUILDDIR)
rm -f gdbserver/config.status gdbserver/config.log
rm -f gdbserver/tm.h gdbserver/xm.h gdbserver/nm.h
rm -f gdbserver/Makefile gdbserver/config.cache
@@ -1274,8 +1276,8 @@ Makefile: Makefile.in config.status @frags@
CONFIG_HEADERS= \
$(SHELL) config.status
-gnulib/import/Makefile: gnulib/import/Makefile.in config.status @frags@
- CONFIG_FILES="gnulib/import/Makefile" \
+$(GNULIB_BUILDDIR)/Makefile: gnulib/Makefile.in config.status @frags@
+ @cd $(GNULIB_BUILDDIR); CONFIG_FILES="Makefile" \
CONFIG_COMMANDS="depfiles" \
CONFIG_HEADERS= \
CONFIG_LINKS= \
@@ -1303,31 +1305,10 @@ config.status: $(srcdir)/configure configure.tgt configure.host
$(SHELL) config.status --recheck
ACLOCAL = aclocal
-ACLOCAL_AMFLAGS = -I gnulib/import/m4 -I ../config
+ACLOCAL_AMFLAGS = -I ../config
aclocal_m4_deps = \
configure.ac \
- gnulib/import/m4/00gnulib.m4 \
- gnulib/import/m4/extensions.m4 \
- gnulib/import/m4/gnulib-cache.m4 \
- gnulib/import/m4/gnulib-common.m4 \
- gnulib/import/m4/gnulib-comp.m4 \
- gnulib/import/m4/gnulib-tool.m4 \
- gnulib/import/m4/include_next.m4 \
- gnulib/import/m4/inttypes.m4 \
- gnulib/import/m4/inttypes-pri.m4 \
- gnulib/import/m4/longlong.m4 \
- gnulib/import/m4/memchr.m4 \
- gnulib/import/m4/memmem.m4 \
- gnulib/import/m4/mmap-anon.m4 \
- gnulib/import/m4/multiarch.m4 \
- gnulib/import/m4/onceonly.m4 \
- gnulib/import/m4/stddef_h.m4 \
- gnulib/import/m4/stdint.m4 \
- gnulib/import/m4/string_h.m4 \
- gnulib/import/m4/warn-on-use.m4 \
- gnulib/import/m4/wchar_h.m4 \
- gnulib/import/m4/wchar_t.m4 \
- gnulib/import/m4/wint_t.m4 \
+ acx_configure_dir.m4 \
../config/extensions.m4 \
../config/lead-dot.m4 \
../config/proginstall.m4 \