gdb/gdbserver/Makefile - gdb

  1. # Copyright (C) 1989-2014 Free Software Foundation, Inc.

  2. # This file is part of GDB.

  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; either version 3 of the License, or
  6. # (at your option) any later version.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program.  If not, see <http://www.gnu.org/licenses/>.

  15. prefix = /opt/binutils
  16. exec_prefix = ${prefix}

  17. host_alias = x86_64-unknown-linux-gnu
  18. target_alias = x86_64-unknown-linux-gnu
  19. program_transform_name = s,y,y,
  20. bindir = ${exec_prefix}/bin
  21. libdir = ${exec_prefix}/lib
  22. tooldir = $(libdir)/$(target_alias)

  23. datarootdir = ${prefix}/share
  24. datadir = ${datarootdir}
  25. mandir = ${datarootdir}/man
  26. man1dir = $(mandir)/man1
  27. man2dir = $(mandir)/man2
  28. man3dir = $(mandir)/man3
  29. man4dir = $(mandir)/man4
  30. man5dir = $(mandir)/man5
  31. man6dir = $(mandir)/man6
  32. man7dir = $(mandir)/man7
  33. man8dir = $(mandir)/man8
  34. man9dir = $(mandir)/man9
  35. infodir = ${datarootdir}/info
  36. htmldir = $(prefix)/html
  37. includedir = ${prefix}/include

  38. SHELL = /bin/sh
  39. EXEEXT =

  40. INSTALL = /bin/install -c
  41. INSTALL_PROGRAM = /bin/install -c
  42. INSTALL_DATA = /bin/install -c -m 644
  43. RANLIB = ranlib

  44. CC = gcc
  45. AR = ar
  46. AR_FLAGS = rc

  47. # Dependency tracking information.
  48. DEPMODE = depmode=gcc3
  49. DEPDIR = .deps
  50. depcomp = $(SHELL) $(srcdir)/../depcomp

  51. # Note that these are overridden by GNU make-specific code below if
  52. # GNU make is used.  The overrides implement dependency tracking.
  53. COMPILE.pre = $(CC)
  54. COMPILE.post = -c -o $@
  55. COMPILE = $(COMPILE.pre) $(INTERNAL_CFLAGS) $(COMPILE.post)
  56. POSTCOMPILE = @true

  57. # Directory containing source files.  Don't clean up the spacing,
  58. # this exact string is matched for by the "configure" script.
  59. srcdir = .
  60. abs_top_srcdir=/home/agentzh/git/binutils-gdb/gdb/gdbserver
  61. abs_srcdir=/home/agentzh/git/binutils-gdb/gdb/gdbserver


  62. # It is also possible that you will need to add -I/usr/include/sys to the
  63. # CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
  64. # is where it should be according to Posix).

  65. # Set this up with gcc if you have gnu ld and the loader will print out
  66. # line numbers for undefinded refs.
  67. #CC-LD=gcc -static
  68. CC-LD=${CC}

  69. # Where is the "include" directory?  Traditionally ../include or ./include
  70. INCLUDE_DIR ${srcdir}/../../include
  71. INCLUDE_DEP = $$(INCLUDE_DIR)

  72. LIBIBERTY_BUILDDIR = build-libiberty-gdbserver
  73. LIBIBERTY = $(LIBIBERTY_BUILDDIR)/libiberty.a

  74. # Where is ust?  These will be empty if ust was not available.
  75. ustlibs =
  76. ustinc =

  77. # gnulib
  78. GNULIB_BUILDDIR = build-gnulib-gdbserver
  79. LIBGNU = $(GNULIB_BUILDDIR)/import/libgnu.a
  80. INCGNU = -I$(srcdir)/../gnulib/import -I$(GNULIB_BUILDDIR)/import

  81. # Generated headers in the gnulib directory.  These must be listed
  82. # so that they are generated before other files are compiled.
  83. GNULIB_H = $(GNULIB_BUILDDIR)/import/string.h

  84. # All the includes used for CFLAGS and for lint.
  85. # -I. for config files.
  86. # -I${srcdir} for our headers.
  87. # -I$(srcdir)/../regformats for regdef.h.
  88. #
  89. # We do not include ../target or ../nat in here because headers
  90. # in those directories should be included with the subdirectory.
  91. # e.g.: "target/wait.h".
  92. #
  93. INCLUDE_CFLAGS = -I. -I${srcdir} -I$(srcdir)/../common \
  94.         -I$(srcdir)/../regformats -I$(srcdir)/.. -I$(INCLUDE_DIR) \
  95.         $(INCGNU)

  96. # M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
  97. # from the config/ directory.
  98. GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS}
  99. #PROFILE_CFLAGS = -pg

  100. WARN_CFLAGS =  -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Wempty-body
  101. WERROR_CFLAGS = -Werror

  102. WARN_CFLAGS_NO_FORMAT = `echo " $(WARN_CFLAGS) " \
  103.                    | sed "s/ -Wformat-nonliteral / -Wno-format-nonliteral /g"`

  104. # CFLAGS is specifically reserved for setting from the command line
  105. # when running make.  I.E.  "make CFLAGS=-Wmissing-prototypes".
  106. CFLAGS = -g -O2
  107. CPPFLAGS =

  108. # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
  109. INTERNAL_CFLAGS_BASE ${CFLAGS} ${GLOBAL_CFLAGS} \
  110.         ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CPPFLAGS}
  111. INTERNAL_WARN_CFLAGS ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
  112. INTERNAL_CFLAGS ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) -DGDBSERVER

  113. # LDFLAGS is specifically reserved for setting from the command line
  114. # when running make.
  115. LDFLAGS =
  116. INTERNAL_LDFLAGS = $(LDFLAGS) -Wl,--dynamic-list=$(srcdir)/proc-service.list

  117. # All source files that go into linking GDB remote server.

  118. SFILES=        $(srcdir)/gdbreplay.c $(srcdir)/inferiors.c $(srcdir)/dll.c \
  119.         $(srcdir)/mem-break.c $(srcdir)/proc-service.c \
  120.         $(srcdir)/proc-service.list $(srcdir)/regcache.c \
  121.         $(srcdir)/remote-utils.c $(srcdir)/server.c $(srcdir)/target.c \
  122.         $(srcdir)/thread-db.c $(srcdir)/utils.c $(srcdir)/debug.c \
  123.         $(srcdir)/linux-arm-low.c $(srcdir)/linux-bfin-low.c \
  124.         $(srcdir)/linux-cris-low.c $(srcdir)/linux-crisv32-low.c \
  125.         ${srcdir}/x86-low.c $(srcdir)/i387-fp.c \
  126.         $(srcdir)/linux-ia64-low.c $(srcdir)/linux-low.c \
  127.         $(srcdir)/linux-m32r-low.c \
  128.         $(srcdir)/linux-m68k-low.c $(srcdir)/linux-mips-low.c \
  129.         $(srcdir)/linux-nios2-low.c \
  130.         $(srcdir)/linux-ppc-low.c \
  131.         $(srcdir)/linux-s390-low.c \
  132.         $(srcdir)/linux-sh-low.c $(srcdir)/linux-sparc-low.c \
  133.         $(srcdir)/linux-x86-low.c \
  134.         $(srcdir)/linux-xtensa-low.c \
  135.         $(srcdir)/linux-tile-low.c \
  136.         $(srcdir)/win32-arm-low.c $(srcdir)/win32-i386-low.c \
  137.         $(srcdir)/win32-low.c $(srcdir)/wincecompat.c \
  138.         $(srcdir)/hostio.c $(srcdir)/hostio-errno.c \
  139.         $(srcdir)/common/vec.c $(srcdir)/common/gdb_vecs.c \
  140.         $(srcdir)/common/common-utils.c $(srcdir)/common/xml-utils.c \
  141.         $(srcdir)/nat/linux-osdata.c $(srcdir)/common/ptid.c \
  142.         $(srcdir)/common/buffer.c $(srcdir)/nat/linux-btrace.c \
  143.         $(srcdir)/common/filestuff.c $(srcdir)/target/waitstatus.c \
  144.         $(srcdir)/nat/mips-linux-watch.c $(srcdir)/common/print-utils.c \
  145.         $(srcdir)/common/rsp-low.c $(srcdir)/common/errors.c \
  146.         $(srcdir)/common/common-debug.c $(srcdir)/common/cleanups.c \
  147.         $(srcdir)/common/common-exceptions.c $(srcdir)/symbol.c

  148. DEPFILES = amd64-linux.o amd64-avx-linux.o amd64-avx512-linux.o amd64-mpx-linux.o x32-linux.o x32-avx-linux.o x32-avx512-linux.o i386-linux.o i386-avx-linux.o i386-avx512-linux.o i386-mpx-linux.o i386-mmx-linux.o linux-low.o linux-osdata.o linux-procfs.o linux-ptrace.o linux-waitpid.o linux-x86-low.o x86-low.o x86-dregs.o i387-fp.o linux-btrace.o hostio-errno.o thread-db.o proc-service.o

  149. LIBOBJS =

  150. SOURCES = $(SFILES)
  151. TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}

  152. OBS = agent.o ax.o inferiors.o regcache.o remote-utils.o server.o signals.o \
  153.       target.o waitstatus.o utils.o debug.o version.o vec.o gdb_vecs.o \
  154.       mem-break.o hostio.o event-loop.o tracepoint.o xml-utils.o \
  155.       common-utils.o ptid.o buffer.o format.o filestuff.o dll.o notif.o \
  156.       tdesc.o print-utils.o rsp-low.o errors.o common-debug.o cleanups.o \
  157.       common-exceptions.o symbol.o \
  158.       $(XML_BUILTIN) $(DEPFILES) $(LIBOBJS)
  159. GDBREPLAY_OBS = gdbreplay.o version.o
  160. GDBSERVER_LIBS = -ldl
  161. XM_CLIBS = -lmcheck
  162. CDEPS = $(srcdir)/proc-service.list

  163. # XML files to compile in to gdbserver, if any.
  164. XML_DIR = $(srcdir)/../features
  165. XML_FILES $(XML_DIR)/i386/i386-linux.xml $(XML_DIR)/i386/i386-avx-linux.xml $(XML_DIR)/i386/i386-avx512-linux.xml $(XML_DIR)/i386/i386-mmx-linux.xml $(XML_DIR)/i386/32bit-linux.xml $(XML_DIR)/i386/i386-mpx-linux.xml $(XML_DIR)/i386/32bit-core.xml $(XML_DIR)/i386/32bit-sse.xml $(XML_DIR)/i386/32bit-avx.xml $(XML_DIR)/i386/32bit-avx512.xml $(XML_DIR)/i386/32bit-mpx.xml $(XML_DIR)/i386/amd64-linux.xml $(XML_DIR)/i386/amd64-avx-linux.xml $(XML_DIR)/i386/amd64-avx512-linux.xml $(XML_DIR)/i386/64bit-linux.xml $(XML_DIR)/i386/amd64-mpx-linux.xml $(XML_DIR)/i386/x32-linux.xml $(XML_DIR)/i386/x32-avx-linux.xml $(XML_DIR)/i386/x32-avx512-linux.xml $(XML_DIR)/i386/64bit-core.xml $(XML_DIR)/i386/64bit-sse.xml $(XML_DIR)/i386/64bit-avx.xml $(XML_DIR)/i386/64bit-avx512.xml $(XML_DIR)/i386/x32-core.xml $(XML_DIR)/i386/64bit-mpx.xml
  166. XML_BUILTIN = xml-builtin.o

  167. IPA_DEPFILES = amd64-linux-ipa.o linux-amd64-ipa.o
  168. extra_libraries =  libinproctrace.so

  169. SUBDIRS = $(GNULIB_BUILDDIR) $(LIBIBERTY_BUILDDIR)
  170. CLEANDIRS = $(SUBDIRS)

  171. # List of subdirectories in the build tree that must exist.
  172. # This is used to force build failures in existing trees when
  173. # a new directory is added.
  174. # The format here is for the `case' shell command.
  175. REQUIRED_SUBDIRS = $(GNULIB_BUILDDIR) | $(LIBIBERTY_BUILDDIR)

  176. FLAGS_TO_PASS = \
  177.         "prefix=$(prefix)" \
  178.         "exec_prefix=$(exec_prefix)" \
  179.         "infodir=$(infodir)" \
  180.         "datarootdir=$(datarootdir)" \
  181.         "docdir=$(docdir)" \
  182.         "htmldir=$(htmldir)" \
  183.         "pdfdir=$(pdfdir)" \
  184.         "libdir=$(libdir)" \
  185.         "mandir=$(mandir)" \
  186.         "datadir=$(datadir)" \
  187.         "includedir=$(includedir)" \
  188.         "against=$(against)" \
  189.         "DESTDIR=$(DESTDIR)" \
  190.         "AR=$(AR)" \
  191.         "AR_FLAGS=$(AR_FLAGS)" \
  192.         "CC=$(CC)" \
  193.         "CFLAGS=$(CFLAGS)" \
  194.         "CXX=$(CXX)" \
  195.         "CXXFLAGS=$(CXXFLAGS)" \
  196.         "DLLTOOL=$(DLLTOOL)" \
  197.         "LDFLAGS=$(LDFLAGS)" \
  198.         "RANLIB=$(RANLIB)" \
  199.         "MAKEINFO=$(MAKEINFO)" \
  200.         "MAKEHTML=$(MAKEHTML)" \
  201.         "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
  202.         "INSTALL=$(INSTALL)" \
  203.         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  204.         "INSTALL_DATA=$(INSTALL_DATA)" \
  205.         "RUNTEST=$(RUNTEST)" \
  206.         "RUNTESTFLAGS=$(RUNTESTFLAGS)"

  207. # All generated files which can be included by another file.
  208. generated_files = config.h $(GNULIB_H)

  209. .c.o:
  210.         $(COMPILE) $<
  211.         $(POSTCOMPILE)

  212. all: gdbserver$(EXEEXT) gdbreplay$(EXEEXT) $(extra_libraries)
  213.         @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do

  214. # Traditionally "install" depends on "all".  But it may be useful
  215. # not to; for example, if the user has made some trivial change to a
  216. # source file and doesn't care about rebuilding or just wants to save the
  217. # time it takes for make to check that all is up to date.
  218. # install-only is intended to address that need.
  219. install: all
  220.         @$(MAKE) $(FLAGS_TO_PASS) install-only

  221. install-only:
  222.         n=`echo gdbserver | sed '$(program_transform_name)'`; \
  223.         if [ x$$n = x ]; then n=gdbserver; else true; fi; \
  224.         if [ x"$(IPA_DEPFILES)" != x ]; then \
  225.                 $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
  226.                 $(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
  227.         fi; \
  228.         $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir); \
  229.         $(INSTALL_PROGRAM) gdbserver$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
  230.         # Note that we run install and not install-only, as the latter
  231.         # is not part of GNU standards and in particular not provided
  232.         # in libiberty.
  233.         @$(MAKE) $(FLAGS_TO_PASS) DO=install "DODIRS=$(SUBDIRS)" subdir_do

  234. uninstall: force
  235.         n=`echo gdbserver | sed '$(program_transform_name)'`; \
  236.         if [ x$$n = x ]; then n=gdbserver; else true; fi; \
  237.         rm -f $(DESTDIR)/$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(man1dir)/$$n.1
  238.         @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do

  239. installcheck:
  240. check:
  241. info dvi pdf:
  242. install-info:
  243. install-pdf:
  244. html:
  245. install-html:
  246. clean-info: force
  247.         @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do

  248. gdbserver$(EXEEXT): $(OBS) ${ADD_DEPS} ${CDEPS} $(LIBGNU) $(LIBIBERTY)
  249.         rm -f gdbserver$(EXEEXT)
  250.         ${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbserver$(EXEEXT) $(OBS) \
  251.         $(LIBGNU) $(LIBIBERTY) $(GDBSERVER_LIBS) $(XM_CLIBS)

  252. $(LIBGNU) $(LIBIBERTY) $(GNULIB_H): all-lib
  253. all-lib: $(GNULIB_BUILDDIR)/Makefile $(LIBIBERTY_BUILDDIR)/Makefile
  254.         @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS="$(SUBDIRS)" subdir_do
  255. .PHONY: all-lib

  256. gdbreplay$(EXEEXT): $(GDBREPLAY_OBS) $(LIBGNU) $(LIBIBERTY)
  257.         rm -f gdbreplay$(EXEEXT)
  258.         ${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbreplay$(EXEEXT) $(GDBREPLAY_OBS) \
  259.           $(XM_CLIBS) $(LIBGNU) $(LIBIBERTY)

  260. IPA_OBJS=ax-ipa.o tracepoint-ipa.o format-ipa.o utils-ipa.o \
  261.         regcache-ipa.o remote-utils-ipa.o common-utils-ipa.o \
  262.         tdesc-ipa.o print-utils-ipa.o rsp-low-ipa.o errors-ipa.o \
  263.         ${IPA_DEPFILES}

  264. IPA_LIB=libinproctrace.so

  265. $(IPA_LIB): $(IPA_OBJS) ${ADD_DEPS} ${CDEPS}
  266.         rm -f $(IPA_LIB)
  267.         ${CC-LD} -shared -fPIC -Wl,--no-undefined $(INTERNAL_CFLAGS) \
  268.         $(INTERNAL_LDFLAGS) -o $(IPA_LIB) ${IPA_OBJS} -ldl -pthread

  269. # Put the proper machine-specific files first, so M-. on a machine
  270. # specific routine gets the one for the correct machine.
  271. # The xyzzy stuff below deals with empty DEPFILES
  272. TAGS:        ${TAGFILES}
  273.         etags `find ${srcdir}/../config -name $(DEPRECATED_TM_FILE) -print` \
  274.           `find ${srcdir}/../config -name ${XM_FILE} -print` \
  275.           `find ${srcdir}/../config -name ${NAT_FILE} -print` \
  276.           `for i in yzzy ${DEPFILES}; do \
  277.              if [ x$$i != xyzzy ]; then \
  278.                echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \
  279.              fi; \
  280.            done` \
  281.           ${TAGFILES}
  282. tags: TAGS

  283. clean:
  284.         rm -f *.o ${ADD_FILES} *~
  285.         rm -f version.c
  286.         rm -f gdbserver$(EXEEXT) gdbreplay$(EXEEXT) core make.log
  287.         rm -f $(IPA_LIB)
  288.         rm -f aarch64.c
  289.         rm -f reg-arm.c reg-bfin.c i386.c reg-ia64.c reg-m32r.c reg-m68k.c
  290.         rm -f reg-sh.c reg-sparc.c reg-spu.c amd64.c i386-linux.c
  291.         rm -f reg-cris.c reg-crisv32.c amd64-linux.c reg-xtensa.c
  292.         rm -f reg-tilegx.c reg-tilegx32.c
  293.         rm -f arm-with-iwmmxt.c
  294.         rm -f arm-with-vfpv2.c arm-with-vfpv3.c arm-with-neon.c
  295.         rm -f mips-linux.c mips-dsp-linux.c
  296.         rm -f mips64-linux.c mips64-dsp-linux.c
  297.         rm -f nios2-linux.c
  298.         rm -f powerpc-32.c powerpc-32l.c powerpc-64l.c powerpc-e500l.c
  299.         rm -f powerpc-altivec32l.c powerpc-cell32l.c powerpc-vsx32l.c
  300.         rm -f powerpc-altivec64l.c powerpc-cell64l.c powerpc-vsx64l.c
  301.         rm -f powerpc-isa205-32l.c powerpc-isa205-64l.c
  302.         rm -f powerpc-isa205-altivec32l.c powerpc-isa205-vsx32l.c powerpc-isa205-altivec64l.c
  303.         rm -f powerpc-isa205-vsx64l.c
  304.         rm -f s390-linux32.c s390-linux64.c s390x-linux64.c
  305.         rm -f s390-linux32v1.c s390-linux32v2.c s390-linux64v1.c
  306.         rm -f s390-linux64v2.c s390x-linux64v1.c s390x-linux64v2.c
  307.         rm -f s390-te-linux32.c s390-te-linux64.c
  308.         rm -f tic6x-c64xp-linux.c tic6x-c64x-linux.c tic6x-c62x-linux.c
  309.         rm -f xml-builtin.c stamp-xml
  310.         rm -f i386-avx.c i386-avx-linux.c
  311.         rm -f i386-mpx.c i386-mpx-linux.c
  312.         rm -f i386-avx512.c i386-avx512-linux.c
  313.         rm -f amd64-avx.c amd64-avx-linux.c
  314.         rm -f amd64-mpx.c amd64-mpx-linux.c
  315.         rm -f amd64-avx512.c amd64-avx512-linux.c
  316.         rm -f i386-mmx.c i386-mmx-linux.c
  317.         rm -f x32.c x32-linux.c
  318.         rm -f x32-avx.c x32-avx-linux.c
  319.         rm -f x32-avx512.c x32-avx512-linux.c
  320.         @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do

  321. maintainer-clean realclean distclean: clean
  322.         @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
  323.         rm -rf $(GNULIB_BUILDDIR)
  324.         rm -f Makefile config.status config.h stamp-h config.log
  325.         rm -f Makefile

  326. subdir_do: force
  327.         @for i in $(DODIRS); do \
  328.                 case $$i in \
  329.                 $(REQUIRED_SUBDIRS)) \
  330.                         if [ ! -f ./$$i/Makefile ] ; then \
  331.                                 echo "Missing $$i/Makefile" >&2 ; \
  332.                                 exit 1 ; \
  333.                         fi ;; \
  334.                 esac ; \
  335.                 if [ -f ./$$i/Makefile ] ; then \
  336.                         if (cd ./$$i; \
  337.                                 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
  338.                         else exit 1 ; fi ; \
  339.                 else true ; fi ; \
  340.         done

  341. config.h: stamp-h ; @true
  342. stamp-h: config.in config.status
  343.         CONFIG_FILES="" CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status

  344. Makefile: Makefile.in config.status
  345.         CONFIG_HEADERS="" $(SHELL) ./config.status

  346. $(GNULIB_BUILDDIR)/Makefile: $(srcdir)/../gnulib/Makefile.in config.status
  347.           @cd $(GNULIB_BUILDDIR); CONFIG_FILES="Makefile" \
  348.           CONFIG_COMMANDS="depfiles" \
  349.           CONFIG_HEADERS= \
  350.           CONFIG_LINKS= \
  351.           $(SHELL) config.status

  352. config.status: configure configure.srv $(srcdir)/../../bfd/development.sh
  353.         $(SHELL) ./config.status --recheck

  354. # automatic rebuilding in automake-generated Makefiles requires
  355. # this rule in the toplevel Makefile, which, with GNU make, causes
  356. # the desired updates through the implicit regeneration of the Makefile
  357. # and all of its prerequisites.
  358. am--refresh:
  359.         @:

  360. force:

  361. version.c: Makefile $(srcdir)/../version.in $(srcdir)/../../bfd/version.h $(srcdir)/../common/create-version.sh
  362.         $(SHELL) $(srcdir)/../common/create-version.sh $(srcdir)/.. \
  363.             $(host_alias) $(target_alias) version.c

  364. xml-builtin.c: stamp-xml; @true
  365. stamp-xml: $(XML_DIR)/feature_to_c.sh Makefile $(XML_FILES)
  366.         rm -f xml-builtin.tmp
  367.         $(SHELL) $(XML_DIR)/feature_to_c.sh xml-builtin.tmp $(XML_FILES)
  368.         $(SHELL) $(srcdir)/../../move-if-change xml-builtin.tmp xml-builtin.c
  369.         echo stamp > stamp-xml

  370. .PRECIOUS: xml-builtin.c

  371. # GNU Make has an annoying habit of putting *all* the Makefile variables
  372. # into the environment, unless you include this target as a circumvention.
  373. # Rumor is that this will be fixed (and this target can be removed)
  374. # in GNU Make 4.0.
  375. .NOEXPORT:

  376. # GNU Make 3.63 has a different problem: it keeps tacking command line
  377. # overrides onto the definition of $(MAKE).  This variable setting
  378. # will remove them.
  379. MAKEOVERRIDES=

  380. regdat_sh = $(srcdir)/../regformats/regdat.sh

  381. UST_CFLAGS = $(ustinc) -DCONFIG_UST_GDB_INTEGRATION

  382. # Note, we only build the IPA if -fvisibility=hidden is supported in
  383. # the first place.
  384. IPAGENT_CFLAGS = $(INTERNAL_CFLAGS) $(UST_CFLAGS) \
  385.         -fPIC -DIN_PROCESS_AGENT \
  386.         -fvisibility=hidden

  387. IPAGENT_COMPILE = $(COMPILE.pre) $(IPAGENT_CFLAGS) $(COMPILE.post)

  388. # In-process agent object rules
  389. ax-ipa.o: ax.c
  390.         $(IPAGENT_COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
  391.         $(POSTCOMPILE)
  392. tracepoint-ipa.o: tracepoint.c
  393.         $(IPAGENT_COMPILE) $<
  394.         $(POSTCOMPILE)
  395. utils-ipa.o: utils.c
  396.         $(IPAGENT_COMPILE) $<
  397.         $(POSTCOMPILE)
  398. format-ipa.o: ../common/format.c
  399.         $(IPAGENT_COMPILE) $<
  400.         $(POSTCOMPILE)
  401. common-utils-ipa.o: ../common/common-utils.c
  402.         $(IPAGENT_COMPILE) $<
  403.         $(POSTCOMPILE)
  404. remote-utils-ipa.o: remote-utils.c
  405.         $(IPAGENT_COMPILE) $<
  406.         $(POSTCOMPILE)
  407. regcache-ipa.o: regcache.c
  408.         $(IPAGENT_COMPILE) $<
  409.         $(POSTCOMPILE)
  410. i386-linux-ipa.o: i386-linux.c
  411.         $(IPAGENT_COMPILE) $<
  412.         $(POSTCOMPILE)
  413. linux-i386-ipa.o: linux-i386-ipa.c
  414.         $(IPAGENT_COMPILE) $<
  415.         $(POSTCOMPILE)
  416. linux-amd64-ipa.o: linux-amd64-ipa.c
  417.         $(IPAGENT_COMPILE) $<
  418.         $(POSTCOMPILE)
  419. amd64-linux-ipa.o: amd64-linux.c
  420.         $(IPAGENT_COMPILE) $<
  421.         $(POSTCOMPILE)
  422. tdesc-ipa.o: tdesc.c
  423.         $(IPAGENT_COMPILE) $<
  424.         $(POSTCOMPILE)
  425. print-utils-ipa.o: ../common/print-utils.c
  426.         $(IPAGENT_COMPILE) $<
  427.         $(POSTCOMPILE)
  428. rsp-low-ipa.o: ../common/rsp-low.c
  429.         $(IPAGENT_COMPILE) $<
  430.         $(POSTCOMPILE)
  431. errors-ipa.o: ../common/errors.c
  432.         $(IPAGENT_COMPILE) $<
  433.         $(POSTCOMPILE)

  434. ax.o: ax.c
  435.         $(COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
  436.         $(POSTCOMPILE)

  437. signals.o: ../common/signals.c
  438.         $(COMPILE) $<
  439.         $(POSTCOMPILE)
  440. print-utils.o: ../common/print-utils.c
  441.         $(COMPILE) $<
  442.         $(POSTCOMPILE)
  443. rsp-low.o: ../common/rsp-low.c
  444.         $(COMPILE) $<
  445.         $(POSTCOMPILE)
  446. common-utils.o: ../common/common-utils.c
  447.         $(COMPILE) $<
  448.         $(POSTCOMPILE)
  449. vec.o: ../common/vec.c
  450.         $(COMPILE) $<
  451.         $(POSTCOMPILE)
  452. gdb_vecs.o: ../common/gdb_vecs.c
  453.         $(COMPILE) $<
  454.         $(POSTCOMPILE)
  455. xml-utils.o: ../common/xml-utils.c
  456.         $(COMPILE) $<
  457.         $(POSTCOMPILE)
  458. ptid.o: ../common/ptid.c
  459.         $(COMPILE) $<
  460.         $(POSTCOMPILE)
  461. buffer.o: ../common/buffer.c
  462.         $(COMPILE) $<
  463.         $(POSTCOMPILE)
  464. format.o: ../common/format.c
  465.         $(COMPILE) $<
  466.         $(POSTCOMPILE)
  467. filestuff.o: ../common/filestuff.c
  468.         $(COMPILE) $<
  469.         $(POSTCOMPILE)
  470. agent.o: ../common/agent.c
  471.         $(COMPILE) $<
  472.         $(POSTCOMPILE)
  473. errors.o: ../common/errors.c
  474.         $(COMPILE) $<
  475.         $(POSTCOMPILE)
  476. common-debug.o: ../common/common-debug.c
  477.         $(COMPILE) $<
  478.         $(POSTCOMPILE)
  479. cleanups.o: ../common/cleanups.c
  480.         $(COMPILE) $<
  481.         $(POSTCOMPILE)
  482. common-exceptions.o: ../common/common-exceptions.c
  483.         $(COMPILE) $<
  484.         $(POSTCOMPILE)
  485. waitstatus.o: ../target/waitstatus.c
  486.         $(COMPILE) $<
  487.         $(POSTCOMPILE)

  488. # Native object files rules from ../nat

  489. x86-dregs.o: ../nat/x86-dregs.c
  490.         $(COMPILE) $<
  491.         $(POSTCOMPILE)
  492. linux-btrace.o: ../nat/linux-btrace.c
  493.         $(COMPILE) $<
  494.         $(POSTCOMPILE)
  495. linux-osdata.o: ../nat/linux-osdata.c
  496.         $(COMPILE) $<
  497.         $(POSTCOMPILE)
  498. linux-procfs.o: ../nat/linux-procfs.c
  499.         $(COMPILE) $<
  500.         $(POSTCOMPILE)
  501. linux-ptrace.o: ../nat/linux-ptrace.c
  502.         $(COMPILE) $<
  503.         $(POSTCOMPILE)
  504. linux-waitpid.o: ../nat/linux-waitpid.c
  505.         $(COMPILE) $<
  506.         $(POSTCOMPILE)
  507. mips-linux-watch.o: ../nat/mips-linux-watch.c
  508.         $(COMPILE) $<
  509.         $(POSTCOMPILE)

  510. aarch64.c : $(srcdir)/../regformats/aarch64.dat $(regdat_sh)
  511.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/aarch64.dat aarch64.c
  512. reg-arm.c : $(srcdir)/../regformats/reg-arm.dat $(regdat_sh)
  513.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-arm.dat reg-arm.c
  514. arm-with-iwmmxt.c : $(srcdir)/../regformats/arm-with-iwmmxt.dat $(regdat_sh)
  515.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-iwmmxt.dat arm-with-iwmmxt.c
  516. arm-with-vfpv2.c : $(srcdir)/../regformats/arm-with-vfpv2.dat $(regdat_sh)
  517.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-vfpv2.dat arm-with-vfpv2.c
  518. arm-with-vfpv3.c : $(srcdir)/../regformats/arm-with-vfpv3.dat $(regdat_sh)
  519.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-vfpv3.dat arm-with-vfpv3.c
  520. arm-with-neon.c : $(srcdir)/../regformats/arm-with-neon.dat $(regdat_sh)
  521.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-neon.dat arm-with-neon.c
  522. reg-bfin.c : $(srcdir)/../regformats/reg-bfin.dat $(regdat_sh)
  523.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-bfin.dat reg-bfin.c
  524. reg-cris.c : $(srcdir)/../regformats/reg-cris.dat $(regdat_sh)
  525.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-cris.dat reg-cris.c
  526. reg-crisv32.c : $(srcdir)/../regformats/reg-crisv32.dat $(regdat_sh)
  527.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-crisv32.dat reg-crisv32.c
  528. i386.c : $(srcdir)/../regformats/i386/i386.dat $(regdat_sh)
  529.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386.dat i386.c
  530. i386-linux.c : $(srcdir)/../regformats/i386/i386-linux.dat $(regdat_sh)
  531.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-linux.dat i386-linux.c
  532. i386-avx.c : $(srcdir)/../regformats/i386/i386-avx.dat $(regdat_sh)
  533.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx.dat i386-avx.c
  534. i386-avx-linux.c : $(srcdir)/../regformats/i386/i386-avx-linux.dat $(regdat_sh)
  535.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx-linux.dat i386-avx-linux.c
  536. i386-avx512.c : $(srcdir)/../regformats/i386/i386-avx512.dat $(regdat_sh)
  537.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx512.dat i386-avx512.c
  538. i386-avx512-linux.c : $(srcdir)/../regformats/i386/i386-avx512-linux.dat $(regdat_sh)
  539.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx512-linux.dat i386-avx512-linux.c
  540. i386-mpx.c : $(srcdir)/../regformats/i386/i386-mpx.dat $(regdat_sh)
  541.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mpx.dat i386-mpx.c
  542. i386-mpx-linux.c : $(srcdir)/../regformats/i386/i386-mpx-linux.dat $(regdat_sh)
  543.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mpx-linux.dat i386-mpx-linux.c
  544. i386-mmx.c : $(srcdir)/../regformats/i386/i386-mmx.dat $(regdat_sh)
  545.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mmx.dat i386-mmx.c
  546. i386-mmx-linux.c : $(srcdir)/../regformats/i386/i386-mmx-linux.dat $(regdat_sh)
  547.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mmx-linux.dat i386-mmx-linux.c
  548. reg-ia64.c : $(srcdir)/../regformats/reg-ia64.dat $(regdat_sh)
  549.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-ia64.dat reg-ia64.c
  550. reg-m32r.c : $(srcdir)/../regformats/reg-m32r.dat $(regdat_sh)
  551.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-m32r.dat reg-m32r.c
  552. reg-m68k.c : $(srcdir)/../regformats/reg-m68k.dat $(regdat_sh)
  553.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-m68k.dat reg-m68k.c
  554. reg-cf.c : $(srcdir)/../regformats/reg-cf.dat $(regdat_sh)
  555.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-cf.dat reg-cf.c
  556. mips-linux.c : $(srcdir)/../regformats/mips-linux.dat $(regdat_sh)
  557.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips-linux.dat mips-linux.c
  558. mips-dsp-linux.c : $(srcdir)/../regformats/mips-dsp-linux.dat $(regdat_sh)
  559.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips-dsp-linux.dat mips-dsp-linux.c
  560. mips64-linux.c : $(srcdir)/../regformats/mips64-linux.dat $(regdat_sh)
  561.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips64-linux.dat mips64-linux.c
  562. mips64-dsp-linux.c : $(srcdir)/../regformats/mips64-dsp-linux.dat $(regdat_sh)
  563.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips64-dsp-linux.dat mips64-dsp-linux.c
  564. nios2-linux.c :        $(srcdir)/../regformats/nios2-linux.dat $(regdat_sh)
  565.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/nios2-linux.dat nios2-linux.c
  566. powerpc-32.c : $(srcdir)/../regformats/rs6000/powerpc-32.dat $(regdat_sh)
  567.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32.dat powerpc-32.c
  568. powerpc-32l.c : $(srcdir)/../regformats/rs6000/powerpc-32l.dat $(regdat_sh)
  569.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32l.dat powerpc-32l.c
  570. powerpc-altivec32l.c : $(srcdir)/../regformats/rs6000/powerpc-altivec32l.dat $(regdat_sh)
  571.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-altivec32l.dat powerpc-altivec32l.c
  572. powerpc-cell32l.c : $(srcdir)/../regformats/rs6000/powerpc-cell32l.dat $(regdat_sh)
  573.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-cell32l.dat powerpc-cell32l.c
  574. powerpc-vsx32l.c : $(srcdir)/../regformats/rs6000/powerpc-vsx32l.dat $(regdat_sh)
  575.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-vsx32l.dat powerpc-vsx32l.c
  576. powerpc-isa205-32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-32l.dat $(regdat_sh)
  577.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-32l.dat powerpc-isa205-32l.c
  578. powerpc-isa205-altivec32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec32l.dat $(regdat_sh)
  579.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec32l.dat powerpc-isa205-altivec32l.c
  580. powerpc-isa205-vsx32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx32l.dat $(regdat_sh)
  581.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx32l.dat powerpc-isa205-vsx32l.c
  582. powerpc-e500l.c : $(srcdir)/../regformats/rs6000/powerpc-e500l.dat $(regdat_sh)
  583.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-e500l.dat powerpc-e500l.c
  584. powerpc-64l.c : $(srcdir)/../regformats/rs6000/powerpc-64l.dat $(regdat_sh)
  585.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-64l.dat powerpc-64l.c
  586. powerpc-altivec64l.c : $(srcdir)/../regformats/rs6000/powerpc-altivec64l.dat $(regdat_sh)
  587.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-altivec64l.dat powerpc-altivec64l.c
  588. powerpc-cell64l.c : $(srcdir)/../regformats/rs6000/powerpc-cell64l.dat $(regdat_sh)
  589.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-cell64l.dat powerpc-cell64l.c
  590. powerpc-vsx64l.c : $(srcdir)/../regformats/rs6000/powerpc-vsx64l.dat $(regdat_sh)
  591.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-vsx64l.dat powerpc-vsx64l.c
  592. powerpc-isa205-64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-64l.dat $(regdat_sh)
  593.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-64l.dat powerpc-isa205-64l.c
  594. powerpc-isa205-altivec64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec64l.dat $(regdat_sh)
  595.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec64l.dat powerpc-isa205-altivec64l.c
  596. powerpc-isa205-vsx64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx64l.dat $(regdat_sh)
  597.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx64l.dat powerpc-isa205-vsx64l.c
  598. s390-linux32.c : $(srcdir)/../regformats/s390-linux32.dat $(regdat_sh)
  599.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32.dat s390-linux32.c
  600. s390-linux32v1.c : $(srcdir)/../regformats/s390-linux32v1.dat $(regdat_sh)
  601.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32v1.dat s390-linux32v1.c
  602. s390-linux32v2.c : $(srcdir)/../regformats/s390-linux32v2.dat $(regdat_sh)
  603.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32v2.dat s390-linux32v2.c
  604. s390-linux64.c : $(srcdir)/../regformats/s390-linux64.dat $(regdat_sh)
  605.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64.dat s390-linux64.c
  606. s390-linux64v1.c : $(srcdir)/../regformats/s390-linux64v1.dat $(regdat_sh)
  607.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64v1.dat s390-linux64v1.c
  608. s390-linux64v2.c : $(srcdir)/../regformats/s390-linux64v2.dat $(regdat_sh)
  609.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64v2.dat s390-linux64v2.c
  610. s390-te-linux64.c : $(srcdir)/../regformats/s390-te-linux64.dat $(regdat_sh)
  611.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-te-linux64.dat s390-te-linux64.c
  612. s390x-linux64.c : $(srcdir)/../regformats/s390x-linux64.dat $(regdat_sh)
  613.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64.dat s390x-linux64.c
  614. s390x-linux64v1.c : $(srcdir)/../regformats/s390x-linux64v1.dat $(regdat_sh)
  615.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64v1.dat s390x-linux64v1.c
  616. s390x-linux64v2.c : $(srcdir)/../regformats/s390x-linux64v2.dat $(regdat_sh)
  617.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64v2.dat s390x-linux64v2.c
  618. s390x-te-linux64.c : $(srcdir)/../regformats/s390x-te-linux64.dat $(regdat_sh)
  619.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-te-linux64.dat s390x-te-linux64.c

  620. tic6x-c64xp-linux.c : $(srcdir)/../regformats/tic6x-c64xp-linux.dat $(regdat_sh)
  621.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c64xp-linux.dat tic6x-c64xp-linux.c
  622. tic6x-c64x-linux.c : $(srcdir)/../regformats/tic6x-c64x-linux.dat $(regdat_sh)
  623.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c64x-linux.dat tic6x-c64x-linux.c
  624. tic6x-c62x-linux.c : $(srcdir)/../regformats/tic6x-c62x-linux.dat $(regdat_sh)
  625.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c62x-linux.dat tic6x-c62x-linux.c

  626. reg-sh.c : $(srcdir)/../regformats/reg-sh.dat $(regdat_sh)
  627.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-sh.dat reg-sh.c
  628. reg-sparc64.c : $(srcdir)/../regformats/reg-sparc64.dat $(regdat_sh)
  629.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-sparc64.dat reg-sparc64.c
  630. reg-spu.c : $(srcdir)/../regformats/reg-spu.dat $(regdat_sh)
  631.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-spu.dat reg-spu.c
  632. amd64.c : $(srcdir)/../regformats/i386/amd64.dat $(regdat_sh)
  633.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64.dat amd64.c
  634. amd64-linux.c : $(srcdir)/../regformats/i386/amd64-linux.dat $(regdat_sh)
  635.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-linux.dat amd64-linux.c
  636. amd64-avx.c : $(srcdir)/../regformats/i386/amd64-avx.dat $(regdat_sh)
  637.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx.dat amd64-avx.c
  638. amd64-avx-linux.c : $(srcdir)/../regformats/i386/amd64-avx-linux.dat $(regdat_sh)
  639.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx-linux.dat amd64-avx-linux.c
  640. amd64-avx512.c : $(srcdir)/../regformats/i386/amd64-avx512.dat $(regdat_sh)
  641.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx512.dat amd64-avx512.c
  642. amd64-avx512-linux.c : $(srcdir)/../regformats/i386/amd64-avx512-linux.dat $(regdat_sh)
  643.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx512-linux.dat amd64-avx512-linux.c
  644. amd64-mpx.c : $(srcdir)/../regformats/i386/amd64-mpx.dat $(regdat_sh)
  645.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-mpx.dat amd64-mpx.c
  646. amd64-mpx-linux.c : $(srcdir)/../regformats/i386/amd64-mpx-linux.dat $(regdat_sh)
  647.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-mpx-linux.dat amd64-mpx-linux.c
  648. x32.c : $(srcdir)/../regformats/i386/x32.dat $(regdat_sh)
  649.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32.dat x32.c
  650. x32-linux.c : $(srcdir)/../regformats/i386/x32-linux.dat $(regdat_sh)
  651.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-linux.dat x32-linux.c
  652. x32-avx.c : $(srcdir)/../regformats/i386/x32-avx.dat $(regdat_sh)
  653.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx.dat x32-avx.c
  654. x32-avx-linux.c : $(srcdir)/../regformats/i386/x32-avx-linux.dat $(regdat_sh)
  655.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx-linux.dat x32-avx-linux.c
  656. x32-avx512.c : $(srcdir)/../regformats/i386/x32-avx512.dat $(regdat_sh)
  657.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx512.dat x32-avx512.c
  658. x32-avx512-linux.c : $(srcdir)/../regformats/i386/x32-avx512-linux.dat $(regdat_sh)
  659.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx512-linux.dat x32-avx512-linux.c
  660. reg-xtensa.c : $(srcdir)/../regformats/reg-xtensa.dat $(regdat_sh)
  661.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-xtensa.dat reg-xtensa.c
  662. reg-tilegx.c : $(srcdir)/../regformats/reg-tilegx.dat $(regdat_sh)
  663.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-tilegx.dat reg-tilegx.c
  664. reg-tilegx32.c : $(srcdir)/../regformats/reg-tilegx32.dat $(regdat_sh)
  665.         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-tilegx32.dat reg-tilegx32.c

  666. #
  667. # Dependency tracking.  Most of this is conditional on GNU Make being
  668. # found by configure; if GNU Make is not found, we fall back to a
  669. # simpler scheme.
  670. #

  671. ifeq ($(DEPMODE),depmode=gcc3)
  672. # Note that we put the dependencies into a .Tpo file, then move them
  673. # into place if the compile succeeds.  We need this because gcc does
  674. # not atomically write the dependency output file.
  675. override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \
  676.         -MF $(DEPDIR)/$(basename $(@F)).Tpo
  677. override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \
  678.         $(DEPDIR)/$(basename $(@F)).Po
  679. else
  680. override COMPILE.pre = source='$<' object='$@' libtool=no \
  681.         DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC)
  682. # depcomp handles atomicity for us, so we don't need a postcompile
  683. # step.
  684. override POSTCOMPILE =
  685. endif

  686. # A list of all the objects we might care about in this build, for
  687. # dependency tracking.
  688. all_object_files = $(OBS) $(GDBREPLAY_OBS)

  689. # Ensure that generated files are created early.  Use order-only
  690. # dependencies if available.  They require GNU make 3.80 or newer,
  691. # and the .VARIABLES variable was introduced at the same time.
  692. ifdef .VARIABLES
  693. $(all_object_files): | $(generated_files)
  694. else
  695. $(all_object_files) : $(generated_files)
  696. endif

  697. # Dependencies.
  698. -include $(patsubst %.o, $(DEPDIR)/%.Po, $(all_object_files))

  699. # This is the end of "Makefile.in".