1 # Copyright (C) 1989-2014 Free Software Foundation, Inc.
3 # This file is part of GDB.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 exec_prefix = @exec_prefix@
21 host_alias = @host_noncanonical@
22 target_alias = @target_noncanonical@
23 program_transform_name = @program_transform_name@
26 tooldir = $(libdir)/$(target_alias)
28 datarootdir = @datarootdir@
31 man1dir = $(mandir)/man1
32 man2dir = $(mandir)/man2
33 man3dir = $(mandir)/man3
34 man4dir = $(mandir)/man4
35 man5dir = $(mandir)/man5
36 man6dir = $(mandir)/man6
37 man7dir = $(mandir)/man7
38 man8dir = $(mandir)/man8
39 man9dir = $(mandir)/man9
41 htmldir = $(prefix)/html
42 includedir = @includedir@
48 INSTALL_PROGRAM = @INSTALL_PROGRAM@
49 INSTALL_DATA = @INSTALL_DATA@
56 # Dependency tracking information.
59 depcomp = $(SHELL) $(srcdir)/../depcomp
61 # Note that these are overridden by GNU make-specific code below if
62 # GNU make is used. The overrides implement dependency tracking.
64 COMPILE.post = -c -o $@
65 COMPILE = $(COMPILE.pre) $(INTERNAL_CFLAGS) $(COMPILE.post)
68 # Directory containing source files. Don't clean up the spacing,
69 # this exact string is matched for by the "configure" script.
71 abs_top_srcdir=@abs_top_srcdir@
72 abs_srcdir=@abs_srcdir@
75 # It is also possible that you will need to add -I/usr/include/sys to the
76 # CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
77 # is where it should be according to Posix).
79 # Set this up with gcc if you have gnu ld and the loader will print out
80 # line numbers for undefinded refs.
84 # Where is the "include" directory? Traditionally ../include or ./include
85 INCLUDE_DIR = ${srcdir}/../../include
86 INCLUDE_DEP = $$(INCLUDE_DIR)
88 LIBIBERTY_BUILDDIR = build-libiberty-gdbserver
89 LIBIBERTY = $(LIBIBERTY_BUILDDIR)/libiberty.a
91 # Where is ust? These will be empty if ust was not available.
96 GNULIB_BUILDDIR = build-gnulib-gdbserver
97 LIBGNU = $(GNULIB_BUILDDIR)/import/libgnu.a
98 INCGNU = -I$(srcdir)/../gnulib/import -I$(GNULIB_BUILDDIR)/import
100 # Generated headers in the gnulib directory. These must be listed
101 # so that they are generated before other files are compiled.
102 GNULIB_H = $(GNULIB_BUILDDIR)/import/string.h @GNULIB_STDINT_H@
104 # All the includes used for CFLAGS and for lint.
105 # -I. for config files.
106 # -I${srcdir} for our headers.
107 # -I$(srcdir)/../regformats for regdef.h.
109 # We do not include ../target or ../nat in here because headers
110 # in those directories should be included with the subdirectory.
111 # e.g.: "target/wait.h".
113 INCLUDE_CFLAGS = -I. -I${srcdir} -I$(srcdir)/../common \
114 -I$(srcdir)/../regformats -I$(srcdir)/.. -I$(INCLUDE_DIR) \
117 # M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
118 # from the config/ directory.
119 GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS}
120 #PROFILE_CFLAGS = -pg
122 WARN_CFLAGS = @WARN_CFLAGS@
123 WERROR_CFLAGS = @WERROR_CFLAGS@
125 WARN_CFLAGS_NO_FORMAT = `echo " $(WARN_CFLAGS) " \
126 | sed "s/ -Wformat-nonliteral / -Wno-format-nonliteral /g"`
128 # CFLAGS is specifically reserved for setting from the command line
129 # when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
132 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
133 INTERNAL_CFLAGS_BASE = ${CFLAGS} ${GLOBAL_CFLAGS} \
134 ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS}
135 INTERNAL_WARN_CFLAGS = ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
136 INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) -DGDBSERVER
138 # LDFLAGS is specifically reserved for setting from the command line
141 INTERNAL_LDFLAGS = $(LDFLAGS) @RDYNAMIC@
143 # All source files that go into linking GDB remote server.
145 SFILES= $(srcdir)/gdbreplay.c $(srcdir)/inferiors.c $(srcdir)/dll.c \
146 $(srcdir)/mem-break.c $(srcdir)/proc-service.c \
147 $(srcdir)/proc-service.list $(srcdir)/regcache.c \
148 $(srcdir)/remote-utils.c $(srcdir)/server.c $(srcdir)/target.c \
149 $(srcdir)/thread-db.c $(srcdir)/utils.c $(srcdir)/debug.c \
150 $(srcdir)/linux-arm-low.c $(srcdir)/linux-bfin-low.c \
151 $(srcdir)/linux-cris-low.c $(srcdir)/linux-crisv32-low.c \
152 ${srcdir}/i386-low.c $(srcdir)/i387-fp.c \
153 $(srcdir)/linux-ia64-low.c $(srcdir)/linux-low.c \
154 $(srcdir)/linux-m32r-low.c \
155 $(srcdir)/linux-m68k-low.c $(srcdir)/linux-mips-low.c \
156 $(srcdir)/linux-nios2-low.c \
157 $(srcdir)/linux-ppc-low.c \
158 $(srcdir)/linux-s390-low.c \
159 $(srcdir)/linux-sh-low.c $(srcdir)/linux-sparc-low.c \
160 $(srcdir)/linux-x86-low.c \
161 $(srcdir)/linux-xtensa-low.c \
162 $(srcdir)/linux-tile-low.c \
163 $(srcdir)/win32-arm-low.c $(srcdir)/win32-i386-low.c \
164 $(srcdir)/win32-low.c $(srcdir)/wincecompat.c \
165 $(srcdir)/hostio.c $(srcdir)/hostio-errno.c \
166 $(srcdir)/common/vec.c $(srcdir)/common/gdb_vecs.c \
167 $(srcdir)/common/common-utils.c $(srcdir)/common/xml-utils.c \
168 $(srcdir)/common/linux-osdata.c $(srcdir)/common/ptid.c \
169 $(srcdir)/common/buffer.c $(srcdir)/common/linux-btrace.c \
170 $(srcdir)/common/filestuff.c $(srcdir)/target/waitstatus.c \
171 $(srcdir)/common/mips-linux-watch.c $(srcdir)/common/print-utils.c \
172 $(srcdir)/common/rsp-low.c
174 DEPFILES = @GDBSERVER_DEPFILES@
179 TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
181 OBS = agent.o ax.o inferiors.o regcache.o remote-utils.o server.o signals.o \
182 target.o waitstatus.o utils.o debug.o version.o vec.o gdb_vecs.o \
183 mem-break.o hostio.o event-loop.o tracepoint.o xml-utils.o \
184 common-utils.o ptid.o buffer.o format.o filestuff.o dll.o notif.o \
185 tdesc.o print-utils.o rsp-low.o $(XML_BUILTIN) $(DEPFILES) $(LIBOBJS)
186 GDBREPLAY_OBS = gdbreplay.o version.o
187 GDBSERVER_LIBS = @GDBSERVER_LIBS@
189 CDEPS = $(srcdir)/proc-service.list
191 # XML files to compile in to gdbserver, if any.
192 XML_DIR = $(srcdir)/../features
193 XML_FILES = @srv_xmlfiles@
194 XML_BUILTIN = @srv_xmlbuiltin@
196 IPA_DEPFILES = @IPA_DEPFILES@
197 extra_libraries = @extra_libraries@
199 SUBDIRS = $(GNULIB_BUILDDIR) $(LIBIBERTY_BUILDDIR)
200 CLEANDIRS = $(SUBDIRS)
202 # List of subdirectories in the build tree that must exist.
203 # This is used to force build failures in existing trees when
204 # a new directory is added.
205 # The format here is for the `case' shell command.
206 REQUIRED_SUBDIRS = $(GNULIB_BUILDDIR) | $(LIBIBERTY_BUILDDIR)
210 "exec_prefix=$(exec_prefix)" \
211 "infodir=$(infodir)" \
212 "datarootdir=$(datarootdir)" \
214 "htmldir=$(htmldir)" \
218 "datadir=$(datadir)" \
219 "includedir=$(includedir)" \
220 "against=$(against)" \
221 "DESTDIR=$(DESTDIR)" \
223 "AR_FLAGS=$(AR_FLAGS)" \
227 "CXXFLAGS=$(CXXFLAGS)" \
228 "DLLTOOL=$(DLLTOOL)" \
229 "LDFLAGS=$(LDFLAGS)" \
231 "MAKEINFO=$(MAKEINFO)" \
232 "MAKEHTML=$(MAKEHTML)" \
233 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
234 "INSTALL=$(INSTALL)" \
235 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
236 "INSTALL_DATA=$(INSTALL_DATA)" \
237 "RUNTEST=$(RUNTEST)" \
238 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
240 # All generated files which can be included by another file.
241 generated_files = config.h $(GNULIB_H)
247 all: gdbserver$(EXEEXT) gdbreplay$(EXEEXT) $(extra_libraries)
248 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
250 # Traditionally "install" depends on "all". But it may be useful
251 # not to; for example, if the user has made some trivial change to a
252 # source file and doesn't care about rebuilding or just wants to save the
253 # time it takes for make to check that all is up to date.
254 # install-only is intended to address that need.
256 @$(MAKE) $(FLAGS_TO_PASS) install-only
259 n=`echo gdbserver | sed '$(program_transform_name)'`; \
260 if [ x$$n = x ]; then n=gdbserver; else true; fi; \
261 if [ x"$(IPA_DEPFILES)" != x ]; then \
262 $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
263 $(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
265 $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir); \
266 $(INSTALL_PROGRAM) gdbserver$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
267 # Note that we run install and not install-only, as the latter
268 # is not part of GNU standards and in particular not provided
270 @$(MAKE) $(FLAGS_TO_PASS) DO=install "DODIRS=$(SUBDIRS)" subdir_do
273 n=`echo gdbserver | sed '$(program_transform_name)'`; \
274 if [ x$$n = x ]; then n=gdbserver; else true; fi; \
275 rm -f $(DESTDIR)/$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(man1dir)/$$n.1
276 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
286 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
288 gdbserver$(EXEEXT): $(OBS) ${ADD_DEPS} ${CDEPS} $(LIBGNU) $(LIBIBERTY)
289 rm -f gdbserver$(EXEEXT)
290 ${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbserver$(EXEEXT) $(OBS) \
291 $(LIBGNU) $(LIBIBERTY) $(GDBSERVER_LIBS) $(XM_CLIBS)
293 $(LIBGNU) $(LIBIBERTY) $(GNULIB_H): all-lib
294 all-lib: $(GNULIB_BUILDDIR)/Makefile $(LIBIBERTY_BUILDDIR)/Makefile
295 @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS="$(SUBDIRS)" subdir_do
298 gdbreplay$(EXEEXT): $(GDBREPLAY_OBS) $(LIBGNU) $(LIBIBERTY)
299 rm -f gdbreplay$(EXEEXT)
300 ${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbreplay$(EXEEXT) $(GDBREPLAY_OBS) \
301 $(XM_CLIBS) $(LIBGNU) $(LIBIBERTY)
303 IPA_OBJS=ax-ipa.o tracepoint-ipa.o format-ipa.o utils-ipa.o regcache-ipa.o remote-utils-ipa.o common-utils-ipa.o tdesc-ipa.o print-utils-ipa.o rsp-low-ipa.o ${IPA_DEPFILES}
305 IPA_LIB=libinproctrace.so
307 $(IPA_LIB): $(IPA_OBJS) ${ADD_DEPS} ${CDEPS}
309 ${CC-LD} -shared -fPIC -Wl,--no-undefined $(INTERNAL_CFLAGS) \
310 $(INTERNAL_LDFLAGS) -o $(IPA_LIB) ${IPA_OBJS} -ldl -pthread
312 # Put the proper machine-specific files first, so M-. on a machine
313 # specific routine gets the one for the correct machine.
314 # The xyzzy stuff below deals with empty DEPFILES
316 etags `find ${srcdir}/../config -name $(DEPRECATED_TM_FILE) -print` \
317 `find ${srcdir}/../config -name ${XM_FILE} -print` \
318 `find ${srcdir}/../config -name ${NAT_FILE} -print` \
319 `for i in yzzy ${DEPFILES}; do \
320 if [ x$$i != xyzzy ]; then \
321 echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \
328 rm -f *.o ${ADD_FILES} *~
330 rm -f gdbserver$(EXEEXT) gdbreplay$(EXEEXT) core make.log
333 rm -f reg-arm.c reg-bfin.c i386.c reg-ia64.c reg-m32r.c reg-m68k.c
334 rm -f reg-sh.c reg-sparc.c reg-spu.c amd64.c i386-linux.c
335 rm -f reg-cris.c reg-crisv32.c amd64-linux.c reg-xtensa.c
336 rm -f reg-tilegx.c reg-tilegx32.c
337 rm -f arm-with-iwmmxt.c
338 rm -f arm-with-vfpv2.c arm-with-vfpv3.c arm-with-neon.c
339 rm -f mips-linux.c mips64-linux.c
341 rm -f powerpc-32.c powerpc-32l.c powerpc-64l.c powerpc-e500l.c
342 rm -f powerpc-altivec32l.c powerpc-cell32l.c powerpc-vsx32l.c
343 rm -f powerpc-altivec64l.c powerpc-cell64l.c powerpc-vsx64l.c
344 rm -f powerpc-isa205-32l.c powerpc-isa205-64l.c
345 rm -f powerpc-isa205-altivec32l.c powerpc-isa205-vsx32l.c powerpc-isa205-altivec64l.c
346 rm -f powerpc-isa205-vsx64l.c
347 rm -f s390-linux32.c s390-linux64.c s390x-linux64.c
348 rm -f s390-linux32v1.c s390-linux32v2.c s390-linux64v1.c
349 rm -f s390-linux64v2.c s390x-linux64v1.c s390x-linux64v2.c
350 rm -f s390-te-linux32.c s390-te-linux64.c
351 rm -f tic6x-c64xp-linux.c tic6x-c64x-linux.c tic6x-c62x-linux.c
352 rm -f xml-builtin.c stamp-xml
353 rm -f i386-avx.c i386-avx-linux.c
354 rm -f i386-mpx.c i386-mpx-linux.c
355 rm -f i386-avx512.c i386-avx512-linux.c
356 rm -f amd64-avx.c amd64-avx-linux.c
357 rm -f amd64-mpx.c amd64-mpx-linux.c
358 rm -f amd64-avx512.c amd64-avx512-linux.c
359 rm -f i386-mmx.c i386-mmx-linux.c
360 rm -f x32.c x32-linux.c
361 rm -f x32-avx.c x32-avx-linux.c
362 rm -f x32-avx512.c x32-avx512-linux.c
363 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
365 maintainer-clean realclean distclean: clean
366 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
367 rm -rf $(GNULIB_BUILDDIR)
368 rm -f Makefile config.status config.h stamp-h config.log
372 @for i in $(DODIRS); do \
374 $(REQUIRED_SUBDIRS)) \
375 if [ ! -f ./$$i/Makefile ] ; then \
376 echo "Missing $$i/Makefile" >&2 ; \
380 if [ -f ./$$i/Makefile ] ; then \
382 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
387 config.h: stamp-h ; @true
388 stamp-h: config.in config.status
389 CONFIG_FILES="" CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
391 Makefile: Makefile.in config.status
392 CONFIG_HEADERS="" $(SHELL) ./config.status
394 $(GNULIB_BUILDDIR)/Makefile: $(srcdir)/../gnulib/Makefile.in config.status
395 @cd $(GNULIB_BUILDDIR); CONFIG_FILES="Makefile" \
396 CONFIG_COMMANDS="depfiles" \
399 $(SHELL) config.status
401 config.status: configure configure.srv $(srcdir)/../../bfd/development.sh
402 $(SHELL) ./config.status --recheck
404 # automatic rebuilding in automake-generated Makefiles requires
405 # this rule in the toplevel Makefile, which, with GNU make, causes
406 # the desired updates through the implicit regeneration of the Makefile
407 # and all of its prerequisites.
413 version.c: Makefile $(srcdir)/../version.in $(srcdir)/../../bfd/version.h $(srcdir)/../common/create-version.sh
414 $(SHELL) $(srcdir)/../common/create-version.sh $(srcdir)/.. \
415 $(host_alias) $(target_alias) version.c
417 xml-builtin.c: stamp-xml; @true
418 stamp-xml: $(XML_DIR)/feature_to_c.sh Makefile $(XML_FILES)
419 rm -f xml-builtin.tmp
420 $(SHELL) $(XML_DIR)/feature_to_c.sh xml-builtin.tmp $(XML_FILES)
421 $(SHELL) $(srcdir)/../../move-if-change xml-builtin.tmp xml-builtin.c
422 echo stamp > stamp-xml
424 .PRECIOUS: xml-builtin.c
426 # GNU Make has an annoying habit of putting *all* the Makefile variables
427 # into the environment, unless you include this target as a circumvention.
428 # Rumor is that this will be fixed (and this target can be removed)
432 # GNU Make 3.63 has a different problem: it keeps tacking command line
433 # overrides onto the definition of $(MAKE). This variable setting
437 regdat_sh = $(srcdir)/../regformats/regdat.sh
439 UST_CFLAGS = $(ustinc) -DCONFIG_UST_GDB_INTEGRATION
441 # Note, we only build the IPA if -fvisibility=hidden is supported in
443 IPAGENT_CFLAGS = $(CPPFLAGS) $(INTERNAL_CFLAGS) $(UST_CFLAGS) \
444 -fPIC -DIN_PROCESS_AGENT \
447 IPAGENT_COMPILE = $(COMPILE.pre) $(IPAGENT_CFLAGS) $(COMPILE.post)
449 # In-process agent object rules
451 $(IPAGENT_COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
453 tracepoint-ipa.o: tracepoint.c
454 $(IPAGENT_COMPILE) $<
457 $(IPAGENT_COMPILE) $<
459 format-ipa.o: ../common/format.c
460 $(IPAGENT_COMPILE) $<
462 common-utils-ipa.o: ../common/common-utils.c
463 $(IPAGENT_COMPILE) $<
465 remote-utils-ipa.o: remote-utils.c
466 $(IPAGENT_COMPILE) $<
468 regcache-ipa.o: regcache.c
469 $(IPAGENT_COMPILE) $<
471 i386-linux-ipa.o: i386-linux.c
472 $(IPAGENT_COMPILE) $<
474 linux-i386-ipa.o: linux-i386-ipa.c
475 $(IPAGENT_COMPILE) $<
477 linux-amd64-ipa.o: linux-amd64-ipa.c
478 $(IPAGENT_COMPILE) $<
480 amd64-linux-ipa.o: amd64-linux.c
481 $(IPAGENT_COMPILE) $<
484 $(IPAGENT_COMPILE) $<
486 print-utils-ipa.o: ../common/print-utils.c
487 $(IPAGENT_COMPILE) $<
489 rsp-low-ipa.o: ../common/rsp-low.c
490 $(IPAGENT_COMPILE) $<
494 $(COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
497 signals.o: ../common/signals.c
500 print-utils.o: ../common/print-utils.c
503 rsp-low.o: ../common/rsp-low.c
506 linux-procfs.o: ../common/linux-procfs.c
509 linux-ptrace.o: ../common/linux-ptrace.c
512 common-utils.o: ../common/common-utils.c
515 vec.o: ../common/vec.c
518 gdb_vecs.o: ../common/gdb_vecs.c
521 xml-utils.o: ../common/xml-utils.c
524 linux-osdata.o: ../common/linux-osdata.c
527 ptid.o: ../common/ptid.c
530 buffer.o: ../common/buffer.c
533 format.o: ../common/format.c
536 filestuff.o: ../common/filestuff.c
539 agent.o: ../common/agent.c
542 waitstatus.o: ../target/waitstatus.c
546 linux-btrace.o: ../common/linux-btrace.c
550 mips-linux-watch.o: ../common/mips-linux-watch.c
554 # Native object files rules from ../nat
556 i386-dregs.o: ../nat/i386-dregs.c
560 linux-waitpid.o: ../nat/linux-waitpid.c
564 aarch64.c : $(srcdir)/../regformats/aarch64.dat $(regdat_sh)
565 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/aarch64.dat aarch64.c
566 reg-arm.c : $(srcdir)/../regformats/reg-arm.dat $(regdat_sh)
567 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-arm.dat reg-arm.c
568 arm-with-iwmmxt.c : $(srcdir)/../regformats/arm-with-iwmmxt.dat $(regdat_sh)
569 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-iwmmxt.dat arm-with-iwmmxt.c
570 arm-with-vfpv2.c : $(srcdir)/../regformats/arm-with-vfpv2.dat $(regdat_sh)
571 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-vfpv2.dat arm-with-vfpv2.c
572 arm-with-vfpv3.c : $(srcdir)/../regformats/arm-with-vfpv3.dat $(regdat_sh)
573 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-vfpv3.dat arm-with-vfpv3.c
574 arm-with-neon.c : $(srcdir)/../regformats/arm-with-neon.dat $(regdat_sh)
575 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-neon.dat arm-with-neon.c
576 reg-bfin.c : $(srcdir)/../regformats/reg-bfin.dat $(regdat_sh)
577 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-bfin.dat reg-bfin.c
578 reg-cris.c : $(srcdir)/../regformats/reg-cris.dat $(regdat_sh)
579 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-cris.dat reg-cris.c
580 reg-crisv32.c : $(srcdir)/../regformats/reg-crisv32.dat $(regdat_sh)
581 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-crisv32.dat reg-crisv32.c
582 i386.c : $(srcdir)/../regformats/i386/i386.dat $(regdat_sh)
583 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386.dat i386.c
584 i386-linux.c : $(srcdir)/../regformats/i386/i386-linux.dat $(regdat_sh)
585 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-linux.dat i386-linux.c
586 i386-avx.c : $(srcdir)/../regformats/i386/i386-avx.dat $(regdat_sh)
587 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx.dat i386-avx.c
588 i386-avx-linux.c : $(srcdir)/../regformats/i386/i386-avx-linux.dat $(regdat_sh)
589 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx-linux.dat i386-avx-linux.c
590 i386-avx512.c : $(srcdir)/../regformats/i386/i386-avx512.dat $(regdat_sh)
591 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx512.dat i386-avx512.c
592 i386-avx512-linux.c : $(srcdir)/../regformats/i386/i386-avx512-linux.dat $(regdat_sh)
593 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx512-linux.dat i386-avx512-linux.c
594 i386-mpx.c : $(srcdir)/../regformats/i386/i386-mpx.dat $(regdat_sh)
595 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mpx.dat i386-mpx.c
596 i386-mpx-linux.c : $(srcdir)/../regformats/i386/i386-mpx-linux.dat $(regdat_sh)
597 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mpx-linux.dat i386-mpx-linux.c
598 i386-mmx.c : $(srcdir)/../regformats/i386/i386-mmx.dat $(regdat_sh)
599 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mmx.dat i386-mmx.c
600 i386-mmx-linux.c : $(srcdir)/../regformats/i386/i386-mmx-linux.dat $(regdat_sh)
601 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mmx-linux.dat i386-mmx-linux.c
602 reg-ia64.c : $(srcdir)/../regformats/reg-ia64.dat $(regdat_sh)
603 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-ia64.dat reg-ia64.c
604 reg-m32r.c : $(srcdir)/../regformats/reg-m32r.dat $(regdat_sh)
605 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-m32r.dat reg-m32r.c
606 reg-m68k.c : $(srcdir)/../regformats/reg-m68k.dat $(regdat_sh)
607 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-m68k.dat reg-m68k.c
608 reg-cf.c : $(srcdir)/../regformats/reg-cf.dat $(regdat_sh)
609 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-cf.dat reg-cf.c
610 mips-linux.c : $(srcdir)/../regformats/mips-linux.dat $(regdat_sh)
611 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips-linux.dat mips-linux.c
612 mips-dsp-linux.c : $(srcdir)/../regformats/mips-dsp-linux.dat $(regdat_sh)
613 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips-dsp-linux.dat mips-dsp-linux.c
614 mips64-linux.c : $(srcdir)/../regformats/mips64-linux.dat $(regdat_sh)
615 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips64-linux.dat mips64-linux.c
616 mips64-dsp-linux.c : $(srcdir)/../regformats/mips64-dsp-linux.dat $(regdat_sh)
617 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips64-dsp-linux.dat mips64-dsp-linux.c
618 nios2-linux.c : $(srcdir)/../regformats/nios2-linux.dat $(regdat_sh)
619 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/nios2-linux.dat nios2-linux.c
620 powerpc-32.c : $(srcdir)/../regformats/rs6000/powerpc-32.dat $(regdat_sh)
621 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32.dat powerpc-32.c
622 powerpc-32l.c : $(srcdir)/../regformats/rs6000/powerpc-32l.dat $(regdat_sh)
623 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32l.dat powerpc-32l.c
624 powerpc-altivec32l.c : $(srcdir)/../regformats/rs6000/powerpc-altivec32l.dat $(regdat_sh)
625 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-altivec32l.dat powerpc-altivec32l.c
626 powerpc-cell32l.c : $(srcdir)/../regformats/rs6000/powerpc-cell32l.dat $(regdat_sh)
627 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-cell32l.dat powerpc-cell32l.c
628 powerpc-vsx32l.c : $(srcdir)/../regformats/rs6000/powerpc-vsx32l.dat $(regdat_sh)
629 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-vsx32l.dat powerpc-vsx32l.c
630 powerpc-isa205-32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-32l.dat $(regdat_sh)
631 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-32l.dat powerpc-isa205-32l.c
632 powerpc-isa205-altivec32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec32l.dat $(regdat_sh)
633 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec32l.dat powerpc-isa205-altivec32l.c
634 powerpc-isa205-vsx32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx32l.dat $(regdat_sh)
635 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx32l.dat powerpc-isa205-vsx32l.c
636 powerpc-e500l.c : $(srcdir)/../regformats/rs6000/powerpc-e500l.dat $(regdat_sh)
637 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-e500l.dat powerpc-e500l.c
638 powerpc-64l.c : $(srcdir)/../regformats/rs6000/powerpc-64l.dat $(regdat_sh)
639 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-64l.dat powerpc-64l.c
640 powerpc-altivec64l.c : $(srcdir)/../regformats/rs6000/powerpc-altivec64l.dat $(regdat_sh)
641 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-altivec64l.dat powerpc-altivec64l.c
642 powerpc-cell64l.c : $(srcdir)/../regformats/rs6000/powerpc-cell64l.dat $(regdat_sh)
643 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-cell64l.dat powerpc-cell64l.c
644 powerpc-vsx64l.c : $(srcdir)/../regformats/rs6000/powerpc-vsx64l.dat $(regdat_sh)
645 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-vsx64l.dat powerpc-vsx64l.c
646 powerpc-isa205-64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-64l.dat $(regdat_sh)
647 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-64l.dat powerpc-isa205-64l.c
648 powerpc-isa205-altivec64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec64l.dat $(regdat_sh)
649 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec64l.dat powerpc-isa205-altivec64l.c
650 powerpc-isa205-vsx64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx64l.dat $(regdat_sh)
651 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx64l.dat powerpc-isa205-vsx64l.c
652 s390-linux32.c : $(srcdir)/../regformats/s390-linux32.dat $(regdat_sh)
653 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32.dat s390-linux32.c
654 s390-linux32v1.c : $(srcdir)/../regformats/s390-linux32v1.dat $(regdat_sh)
655 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32v1.dat s390-linux32v1.c
656 s390-linux32v2.c : $(srcdir)/../regformats/s390-linux32v2.dat $(regdat_sh)
657 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32v2.dat s390-linux32v2.c
658 s390-linux64.c : $(srcdir)/../regformats/s390-linux64.dat $(regdat_sh)
659 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64.dat s390-linux64.c
660 s390-linux64v1.c : $(srcdir)/../regformats/s390-linux64v1.dat $(regdat_sh)
661 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64v1.dat s390-linux64v1.c
662 s390-linux64v2.c : $(srcdir)/../regformats/s390-linux64v2.dat $(regdat_sh)
663 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64v2.dat s390-linux64v2.c
664 s390-te-linux64.c : $(srcdir)/../regformats/s390-te-linux64.dat $(regdat_sh)
665 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-te-linux64.dat s390-te-linux64.c
666 s390x-linux64.c : $(srcdir)/../regformats/s390x-linux64.dat $(regdat_sh)
667 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64.dat s390x-linux64.c
668 s390x-linux64v1.c : $(srcdir)/../regformats/s390x-linux64v1.dat $(regdat_sh)
669 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64v1.dat s390x-linux64v1.c
670 s390x-linux64v2.c : $(srcdir)/../regformats/s390x-linux64v2.dat $(regdat_sh)
671 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64v2.dat s390x-linux64v2.c
672 s390x-te-linux64.c : $(srcdir)/../regformats/s390x-te-linux64.dat $(regdat_sh)
673 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-te-linux64.dat s390x-te-linux64.c
675 tic6x-c64xp-linux.c : $(srcdir)/../regformats/tic6x-c64xp-linux.dat $(regdat_sh)
676 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c64xp-linux.dat tic6x-c64xp-linux.c
677 tic6x-c64x-linux.c : $(srcdir)/../regformats/tic6x-c64x-linux.dat $(regdat_sh)
678 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c64x-linux.dat tic6x-c64x-linux.c
679 tic6x-c62x-linux.c : $(srcdir)/../regformats/tic6x-c62x-linux.dat $(regdat_sh)
680 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c62x-linux.dat tic6x-c62x-linux.c
682 reg-sh.c : $(srcdir)/../regformats/reg-sh.dat $(regdat_sh)
683 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-sh.dat reg-sh.c
684 reg-sparc64.c : $(srcdir)/../regformats/reg-sparc64.dat $(regdat_sh)
685 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-sparc64.dat reg-sparc64.c
686 reg-spu.c : $(srcdir)/../regformats/reg-spu.dat $(regdat_sh)
687 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-spu.dat reg-spu.c
688 amd64.c : $(srcdir)/../regformats/i386/amd64.dat $(regdat_sh)
689 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64.dat amd64.c
690 amd64-linux.c : $(srcdir)/../regformats/i386/amd64-linux.dat $(regdat_sh)
691 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-linux.dat amd64-linux.c
692 amd64-avx.c : $(srcdir)/../regformats/i386/amd64-avx.dat $(regdat_sh)
693 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx.dat amd64-avx.c
694 amd64-avx-linux.c : $(srcdir)/../regformats/i386/amd64-avx-linux.dat $(regdat_sh)
695 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx-linux.dat amd64-avx-linux.c
696 amd64-avx512.c : $(srcdir)/../regformats/i386/amd64-avx512.dat $(regdat_sh)
697 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx512.dat amd64-avx512.c
698 amd64-avx512-linux.c : $(srcdir)/../regformats/i386/amd64-avx512-linux.dat $(regdat_sh)
699 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx512-linux.dat amd64-avx512-linux.c
700 amd64-mpx.c : $(srcdir)/../regformats/i386/amd64-mpx.dat $(regdat_sh)
701 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-mpx.dat amd64-mpx.c
702 amd64-mpx-linux.c : $(srcdir)/../regformats/i386/amd64-mpx-linux.dat $(regdat_sh)
703 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-mpx-linux.dat amd64-mpx-linux.c
704 x32.c : $(srcdir)/../regformats/i386/x32.dat $(regdat_sh)
705 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32.dat x32.c
706 x32-linux.c : $(srcdir)/../regformats/i386/x32-linux.dat $(regdat_sh)
707 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-linux.dat x32-linux.c
708 x32-avx.c : $(srcdir)/../regformats/i386/x32-avx.dat $(regdat_sh)
709 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx.dat x32-avx.c
710 x32-avx-linux.c : $(srcdir)/../regformats/i386/x32-avx-linux.dat $(regdat_sh)
711 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx-linux.dat x32-avx-linux.c
712 x32-avx512.c : $(srcdir)/../regformats/i386/x32-avx512.dat $(regdat_sh)
713 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx512.dat x32-avx512.c
714 x32-avx512-linux.c : $(srcdir)/../regformats/i386/x32-avx512-linux.dat $(regdat_sh)
715 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx512-linux.dat x32-avx512-linux.c
716 reg-xtensa.c : $(srcdir)/../regformats/reg-xtensa.dat $(regdat_sh)
717 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-xtensa.dat reg-xtensa.c
718 reg-tilegx.c : $(srcdir)/../regformats/reg-tilegx.dat $(regdat_sh)
719 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-tilegx.dat reg-tilegx.c
720 reg-tilegx32.c : $(srcdir)/../regformats/reg-tilegx32.dat $(regdat_sh)
721 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-tilegx32.dat reg-tilegx32.c
724 # Dependency tracking. Most of this is conditional on GNU Make being
725 # found by configure; if GNU Make is not found, we fall back to a
729 @GMAKE_TRUE@ifeq ($(DEPMODE),depmode=gcc3)
730 # Note that we put the dependencies into a .Tpo file, then move them
731 # into place if the compile succeeds. We need this because gcc does
732 # not atomically write the dependency output file.
733 @GMAKE_TRUE@override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \
734 @GMAKE_TRUE@ -MF $(DEPDIR)/$(basename $(@F)).Tpo
735 @GMAKE_TRUE@override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \
736 @GMAKE_TRUE@ $(DEPDIR)/$(basename $(@F)).Po
738 @GMAKE_TRUE@override COMPILE.pre = source='$<' object='$@' libtool=no \
739 @GMAKE_TRUE@ DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC)
740 # depcomp handles atomicity for us, so we don't need a postcompile
742 @GMAKE_TRUE@override POSTCOMPILE =
745 # A list of all the objects we might care about in this build, for
746 # dependency tracking.
747 all_object_files = $(OBS) $(GDBREPLAY_OBS)
749 # Ensure that generated files are created early. Use order-only
750 # dependencies if available. They require GNU make 3.80 or newer,
751 # and the .VARIABLES variable was introduced at the same time.
752 @GMAKE_TRUE@ifdef .VARIABLES
753 @GMAKE_TRUE@$(all_object_files): | $(generated_files)
755 $(all_object_files) : $(generated_files)
759 @GMAKE_TRUE@-include $(patsubst %.o, $(DEPDIR)/%.Po, $(all_object_files))
761 # This is the end of "Makefile.in".