diff options
author | Doug Evans <dje@google.com> | 2010-10-06 16:02:45 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-10-06 16:02:45 +0000 |
commit | aa2e2d8d772c0ece5b6c4685228c159979841a5d (patch) | |
tree | 619b99d7200be5fd22e4d5639feea95af652843b /gdb/Makefile.in | |
parent | aa27d0b360a0709329fe9b0c39de6bffcf2af7f3 (diff) | |
download | gdb-aa2e2d8d772c0ece5b6c4685228c159979841a5d.zip gdb-aa2e2d8d772c0ece5b6c4685228c159979841a5d.tar.gz gdb-aa2e2d8d772c0ece5b6c4685228c159979841a5d.tar.bz2 |
Create subdir data-directory.
* Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
data-directory/Makefile.in.
(SUBDIRS): Add data-directory.
(all): Remove xml-syscall-copy dependency.
(xml-syscall-copy): Moved to data-directory/Makefile.in as
stamp-syscalls.
(xml-syscall-install): Moved to data-directory/Makefile.in as
install-syscalls.
(install-only): Remove xml-syscall-install dependency.
(all-data-directory): New rule.
(data-directory/Makefile): New rule.
* configure.ac (AC_OUTPUT): Add data-directory/Makefile.
* configure: Regenerate.
* data-directory/Makefile.in: New file.
* python/lib/gdb/__init__.py: New file.
testsuite/
* gdb.base/catch-syscall.exp (do_syscall_tests): Update location
of syscall staging area.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 57 |
1 files changed, 15 insertions, 42 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 2135476..bfb4b59 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -870,16 +870,9 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \ inferior.o osdata.o gdb_usleep.o record.o gcore.o \ jit.o progspace.o -# Definitions for the syscall's XML files and dir -XML_SYSCALLS_DIR = syscalls/ -XML_SYSCALLS_FILES = gdb-syscalls.dtd \ - ppc-linux.xml ppc64-linux.xml \ - i386-linux.xml amd64-linux.xml \ - sparc-linux.xml sparc64-linux.xml - TSOBS = inflow.o -SUBDIRS = @subdirs@ +SUBDIRS = @subdirs@ data-directory CLEANDIRS = $(SUBDIRS) gnulib # For now, shortcut the "configure GDB for fewer languages" stuff. @@ -910,41 +903,11 @@ generated_files = config.h observer.h observer.inc ada-lex.c \ $(COMPILE) $< $(POSTCOMPILE) -all: gdb$(EXEEXT) $(CONFIG_ALL) xml-syscall-copy +all: gdb$(EXEEXT) $(CONFIG_ALL) @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do .PHONY: all-tui all-tui: $(TUI)$(EXEEXT) -# This is needed for running GDB from the build directory -.PHONY: xml-syscall-copy -xml-syscall-copy: - if [ "`cd $(srcdir) && pwd`" != "`pwd`" ] ; then \ - mkdir -p ./$(XML_SYSCALLS_DIR) ; \ - list='$(XML_SYSCALLS_FILES)' ; \ - for file in $$list ; do \ - f=$(srcdir)/$(XML_SYSCALLS_DIR)/$$file ; \ - if test -f $$f ; then \ - $(INSTALL_DATA) $$f \ - ./$(XML_SYSCALLS_DIR) ; \ - fi ; \ - done ; \ - fi ; - -# This target is responsible for properly installing the syscalls' -# XML files in the system. -.PHONY: xml-syscall-install -xml-syscall-install: - $(SHELL) $(srcdir)/../mkinstalldirs \ - $(DESTDIR)$(GDB_DATADIR)/$(XML_SYSCALLS_DIR) ; \ - list='$(XML_SYSCALLS_FILES)' ; \ - for file in $$list ; do \ - f=$(srcdir)/$(XML_SYSCALLS_DIR)/$$file ; \ - if test -f $$f ; then \ - $(INSTALL_DATA) $$f \ - $(DESTDIR)$(GDB_DATADIR)/$(XML_SYSCALLS_DIR) ; \ - fi ; \ - done ; - installcheck: # The check target can not use subdir_do, because subdir_do does not @@ -1003,9 +966,7 @@ gdb.z:gdb.1 # install-only is intended to address that need. install: all install-only -# The "install-only" target also installs the syscalls' XML files in -# the system. -install-only: $(CONFIG_INSTALL) xml-syscall-install +install-only: $(CONFIG_INSTALL) transformed_name=`t='$(program_transform_name)'; \ echo gdb | sed -e "$$t"` ; \ if test "x$$transformed_name" = x; then \ @@ -1178,6 +1139,11 @@ all-lib: gnulib/Makefile @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=gnulib subdir_do .PHONY: all-lib +# Convenience rule to handle recursion. +.PHONY: all-data-directory +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. # @@ -1294,6 +1260,13 @@ gnulib/Makefile: gnulib/Makefile.in gnulib/Makefile.in config.status @frags@ CONFIG_LINKS= \ $(SHELL) config.status +data-directory/Makefile: data-directory/Makefile.in config.status @frags@ + CONFIG_FILES="data-directory/Makefile" \ + CONFIG_COMMANDS="depfiles" \ + CONFIG_HEADERS= \ + CONFIG_LINKS= \ + $(SHELL) config.status + config.h: stamp-h ; @true stamp-h: $(srcdir)/config.in config.status CONFIG_HEADERS=config.h:config.in \ |