* gdb.threads/manythreads.c (main): Increase thread stack size
[deliverable/binutils-gdb.git] / gdb / Makefile.in
index 7f2fe5889c3ccd3f3a0d2fcde1b3f2fdef9887b3..7d53205aeb1f646e4f96d120102a102faa2a2579 100644 (file)
@@ -166,6 +166,9 @@ INTL_CFLAGS = @INCINTL@
 TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@
 TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@
 
+# Did the user give us a --with-gdb-datadir option?
+GDB_DATADIR = @GDB_DATADIR@
+
 # Helper code from gnulib.
 LIBGNU = gnulib/libgnu.a
 INCGNU = -I$(srcdir)/gnulib -Ignulib
@@ -677,7 +680,8 @@ SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
        xml-tdesc.c xml-support.c \
        inferior.c gdb_usleep.c \
        record.c \
-       jit.c
+       jit.c \
+       xml-syscall.c \
 
 LINTFILES = $(SFILES) $(YYFILES) $(CONFIG_SRCS) init.c
 
@@ -746,7 +750,7 @@ config/rs6000/nm-rs6000.h top.h bsd-kvm.h gdb-stabs.h reggroups.h \
 annotate.h sim-regno.h dictionary.h dfp.h main.h frame-unwind.h        \
 remote-fileio.h i386-linux-tdep.h vax-tdep.h objc-lang.h \
 sentinel-frame.h bcache.h symfile.h windows-tdep.h linux-tdep.h \
-gdb_usleep.h jit.h
+gdb_usleep.h jit.h xml-syscall.h ada-operator.inc
 
 # Header files that already have srcdir in them, or which are in objdir.
 
@@ -826,11 +830,17 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
        trad-frame.o \
        tramp-frame.o \
        solib.o solib-null.o \
-       prologue-value.o memory-map.o xml-support.o \
+       prologue-value.o memory-map.o xml-support.o xml-syscall.o \
        target-descriptions.o target-memory.o xml-tdesc.o xml-builtin.o \
        inferior.o osdata.o gdb_usleep.o record.o \
        jit.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
+
 TSOBS = inflow.o
 
 SUBDIRS = @subdirs@
@@ -864,11 +874,41 @@ generated_files = config.h observer.h observer.inc ada-lex.c \
        $(COMPILE) $<
        $(POSTCOMPILE)
 
-all: gdb$(EXEEXT) $(CONFIG_ALL)
+all: gdb$(EXEEXT) $(CONFIG_ALL) xml-syscall-copy
        @$(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
@@ -925,8 +965,11 @@ gdb.z:gdb.1
 # source file and doesn't care about rebuilding or just wants to save the
 # time it takes for make to check that all is up to date.
 # install-only is intended to address that need.
-install: all install-only
-install-only: $(CONFIG_INSTALL)
+install: all install-only 
+
+# The "install-only" target also installs the syscalls' XML files in
+# the system.
+install-only: $(CONFIG_INSTALL) xml-syscall-install
        transformed_name=`t='$(program_transform_name)'; \
                          echo gdb | sed -e "$$t"` ; \
                if test "x$$transformed_name" = x; then \
This page took 0.025828 seconds and 4 git commands to generate.