aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-04-14 19:47:29 +0000
committerDaniel Jacobowitz <drow@false.org>2008-04-14 19:47:29 +0000
commitaa11fd3fc49287c58a04f7b84be0eee10bafef68 (patch)
tree1e69ed3d40e0af8a16c119b3ae61833bedd141b1 /gdb/Makefile.in
parent783e057b02b4e0d4f62840c1e8c968a1da418c7e (diff)
downloadgdb-aa11fd3fc49287c58a04f7b84be0eee10bafef68.zip
gdb-aa11fd3fc49287c58a04f7b84be0eee10bafef68.tar.gz
gdb-aa11fd3fc49287c58a04f7b84be0eee10bafef68.tar.bz2
* Makefile.in (GNULIB_H): New. Trigger all-lib.
(defs_h): Use $(GNULIB_H). (all-lib): Depend on gnulib/Makefile. (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps. * config.in, gnulib/Makefile.in: Regenerated.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in20
1 files changed, 16 insertions, 4 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 6dc2de6..6cd77f1 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -164,6 +164,10 @@ TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@
LIBGNU = gnulib/libgnu.a
INCGNU = -I$(srcdir)/gnulib -Ignulib
+# Generated headers in the gnulib directory. These must be listed
+# so that they are generated before other files are compiled.
+GNULIB_H = gnulib/string.h
+
#
# CLI sub directory definitons
#
@@ -754,9 +758,10 @@ completer_h = completer.h
cp_abi_h = cp-abi.h
cp_support_h = cp-support.h $(symtab_h)
dcache_h = dcache.h
+# Depend on $(GNULIB_H), since generated files are created in the gnulib build.
defs_h = defs.h $(config_h) $(ansidecl_h) $(gdb_locale_h) $(gdb_signals_h) \
$(libiberty_h) $(bfd_h) $(ui_file_h) $(nm_h) \
- $(fopen_bin_h) $(gdbarch_h)
+ $(fopen_bin_h) $(gdbarch_h) $(GNULIB_H)
dictionary_h = dictionary.h
disasm_h = disasm.h
doublest_h = doublest.h $(floatformat_h)
@@ -1335,8 +1340,8 @@ $(TUI)$(EXEEXT): tui-main.o libgdb.a $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
$(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
# Convenience rule to handle recursion.
-$(LIBGNU): all-lib
-all-lib:
+$(LIBGNU) $(GNULIB_H): all-lib
+all-lib: gnulib/Makefile
@$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=gnulib subdir_do
.PHONY: all-lib
@@ -1442,11 +1447,18 @@ subdir_do: force
Makefile: Makefile.in config.status @frags@
# Regenerate the Makefile and the tm.h / nm.h links.
- CONFIG_FILES=Makefile \
+ CONFIG_FILES="Makefile" \
CONFIG_COMMANDS= \
CONFIG_HEADERS= \
$(SHELL) config.status
+gnulib/Makefile: gnulib/Makefile.in gnulib/Makefile.in config.status @frags@
+ CONFIG_FILES="gnulib/Makefile" \
+ CONFIG_COMMANDS="depfiles" \
+ CONFIG_HEADERS= \
+ CONFIG_LINKS= \
+ $(SHELL) config.status
+
config.h: stamp-h ; @true
stamp-h: config.in config.status
CONFIG_HEADERS=config.h:config.in \