]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/gdbserver/Makefile.in
gdbserver/s390: Add fast tracepoint support.
[thirdparty/binutils-gdb.git] / gdb / gdbserver / Makefile.in
1 # Copyright (C) 1989-2016 Free Software Foundation, Inc.
2
3 # This file is part of GDB.
4
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.
9 #
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.
14 #
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/>.
17
18 prefix = @prefix@
19 exec_prefix = @exec_prefix@
20
21 host_alias = @host_noncanonical@
22 target_alias = @target_noncanonical@
23 program_transform_name = @program_transform_name@
24 bindir = @bindir@
25 libdir = @libdir@
26 tooldir = $(libdir)/$(target_alias)
27
28 datarootdir = @datarootdir@
29 datadir = @datadir@
30 mandir = @mandir@
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
40 infodir = @infodir@
41 htmldir = $(prefix)/html
42 includedir = @includedir@
43
44 SHELL = @SHELL@
45 EXEEXT = @EXEEXT@
46
47 INSTALL = @INSTALL@
48 INSTALL_PROGRAM = @INSTALL_PROGRAM@
49 INSTALL_DATA = @INSTALL_DATA@
50 RANLIB = @RANLIB@
51
52 # The name of the compiler to use.
53 COMPILER = @COMPILER@
54 # Set to CFLAGS or CXXFLAGS, depending on compiler/language.
55 COMPILER_CFLAGS = @COMPILER_CFLAGS@
56
57 CC = @CC@
58 CXX = @CXX@
59 AR = @AR@
60 AR_FLAGS = rc
61
62 # Dependency tracking information.
63 DEPMODE = @CCDEPMODE@
64 DEPDIR = @DEPDIR@
65 depcomp = $(SHELL) $(srcdir)/../depcomp
66
67 # Note that these are overridden by GNU make-specific code below if
68 # GNU make is used. The overrides implement dependency tracking.
69 COMPILE.pre = $(COMPILER)
70 COMPILE.post = -c -o $@
71 COMPILE = $(COMPILE.pre) $(INTERNAL_CFLAGS) $(COMPILE.post)
72 POSTCOMPILE = @true
73
74 # Directory containing source files. Don't clean up the spacing,
75 # this exact string is matched for by the "configure" script.
76 srcdir = @srcdir@
77 abs_top_srcdir=@abs_top_srcdir@
78 abs_srcdir=@abs_srcdir@
79 VPATH = @srcdir@
80
81 # It is also possible that you will need to add -I/usr/include/sys to the
82 # CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
83 # is where it should be according to Posix).
84
85 # Set this up with gcc if you have gnu ld and the loader will print out
86 # line numbers for undefinded refs.
87 #CC_LD=gcc -static
88 CC_LD=$(COMPILER)
89
90 # Where is the "include" directory? Traditionally ../include or ./include
91 INCLUDE_DIR = ${srcdir}/../../include
92 INCLUDE_DEP = $$(INCLUDE_DIR)
93
94 LIBIBERTY_BUILDDIR = build-libiberty-gdbserver
95 LIBIBERTY = $(LIBIBERTY_BUILDDIR)/libiberty.a
96
97 # Where is ust? These will be empty if ust was not available.
98 ustlibs = @ustlibs@
99 ustinc = @ustinc@
100
101 # gnulib
102 GNULIB_BUILDDIR = build-gnulib-gdbserver
103 LIBGNU = $(GNULIB_BUILDDIR)/import/libgnu.a
104 INCGNU = -I$(srcdir)/../gnulib/import -I$(GNULIB_BUILDDIR)/import
105
106 # Generated headers in the gnulib directory. These must be listed
107 # so that they are generated before other files are compiled.
108 GNULIB_H = $(GNULIB_BUILDDIR)/import/string.h @GNULIB_STDINT_H@
109
110 # All the includes used for CFLAGS and for lint.
111 # -I. for config files.
112 # -I${srcdir} for our headers.
113 # -I$(srcdir)/../regformats for regdef.h.
114 #
115 # We do not include ../target or ../nat in here because headers
116 # in those directories should be included with the subdirectory.
117 # e.g.: "target/wait.h".
118 #
119 INCLUDE_CFLAGS = -I. -I${srcdir} -I$(srcdir)/../common \
120 -I$(srcdir)/../regformats -I$(srcdir)/.. -I$(INCLUDE_DIR) \
121 $(INCGNU)
122
123 # M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
124 # from the config/ directory.
125 GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS}
126 #PROFILE_CFLAGS = -pg
127
128 WARN_CFLAGS = @WARN_CFLAGS@
129 WERROR_CFLAGS = @WERROR_CFLAGS@
130
131 WARN_CFLAGS_NO_FORMAT = `echo " $(WARN_CFLAGS) " \
132 | sed "s/ -Wformat-nonliteral / -Wno-format-nonliteral /g"`
133
134 # These are specifically reserved for setting from the command line
135 # when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
136 CFLAGS = @CFLAGS@
137 CXXFLAGS = @CXXFLAGS@
138 CPPFLAGS = @CPPFLAGS@
139
140 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
141 INTERNAL_CFLAGS_BASE = ${COMPILER_CFLAGS} ${GLOBAL_CFLAGS} \
142 ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CPPFLAGS}
143 INTERNAL_WARN_CFLAGS = ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
144 INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) -DGDBSERVER
145
146 # LDFLAGS is specifically reserved for setting from the command line
147 # when running make.
148 LDFLAGS = @LDFLAGS@
149 INTERNAL_LDFLAGS = $(LDFLAGS) @RDYNAMIC@
150
151 # All source files that go into linking GDB remote server.
152
153 SFILES= $(srcdir)/gdbreplay.c $(srcdir)/inferiors.c $(srcdir)/dll.c \
154 $(srcdir)/mem-break.c $(srcdir)/proc-service.c \
155 $(srcdir)/proc-service.list $(srcdir)/regcache.c \
156 $(srcdir)/remote-utils.c $(srcdir)/server.c $(srcdir)/target.c \
157 $(srcdir)/thread-db.c $(srcdir)/utils.c $(srcdir)/debug.c \
158 $(srcdir)/linux-aarch64-low.c \
159 $(srcdir)/linux-arm-low.c $(srcdir)/linux-bfin-low.c \
160 $(srcdir)/linux-cris-low.c $(srcdir)/linux-crisv32-low.c \
161 ${srcdir}/x86-low.c $(srcdir)/i387-fp.c \
162 $(srcdir)/linux-ia64-low.c $(srcdir)/linux-low.c \
163 $(srcdir)/linux-m32r-low.c \
164 $(srcdir)/linux-m68k-low.c $(srcdir)/linux-mips-low.c \
165 $(srcdir)/linux-nios2-low.c \
166 $(srcdir)/linux-ppc-low.c $(srcdir)/nat/ppc-linux.c \
167 $(srcdir)/linux-s390-low.c \
168 $(srcdir)/linux-sh-low.c $(srcdir)/linux-sparc-low.c \
169 $(srcdir)/linux-x86-low.c \
170 $(srcdir)/linux-xtensa-low.c \
171 $(srcdir)/linux-tile-low.c \
172 $(srcdir)/win32-arm-low.c $(srcdir)/win32-i386-low.c \
173 $(srcdir)/win32-low.c $(srcdir)/wincecompat.c \
174 $(srcdir)/hostio.c $(srcdir)/hostio-errno.c \
175 $(srcdir)/common/vec.c $(srcdir)/common/gdb_vecs.c \
176 $(srcdir)/common/common-utils.c $(srcdir)/common/xml-utils.c \
177 $(srcdir)/nat/linux-osdata.c $(srcdir)/common/ptid.c \
178 $(srcdir)/nat/linux-personality.c \
179 $(srcdir)/common/buffer.c $(srcdir)/nat/linux-btrace.c \
180 $(srcdir)/common/filestuff.c $(srcdir)/target/waitstatus.c \
181 $(srcdir)/nat/mips-linux-watch.c $(srcdir)/common/print-utils.c \
182 $(srcdir)/common/rsp-low.c $(srcdir)/common/errors.c \
183 $(srcdir)/common/common-debug.c $(srcdir)/common/cleanups.c \
184 $(srcdir)/common/common-exceptions.c $(srcdir)/symbol.c \
185 $(srcdir)/common/btrace-common.c \
186 $(srcdir)/common/fileio.c $(srcdir)/nat/linux-namespaces.c \
187 $(srcdir)/arch/arm.c $(srcdir)/common/common-regcache.c \
188 $(srcdir)/arch/arm-linux.c $(srcdir)/arch/arm-get-next-pcs.c
189
190 DEPFILES = @GDBSERVER_DEPFILES@
191
192 LIBOBJS = @LIBOBJS@
193
194 SOURCES = $(SFILES)
195 TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
196
197 OBS = agent.o ax.o inferiors.o regcache.o remote-utils.o server.o signals.o \
198 target.o waitstatus.o utils.o debug.o version.o vec.o gdb_vecs.o \
199 mem-break.o hostio.o event-loop.o tracepoint.o xml-utils.o \
200 common-utils.o ptid.o buffer.o format.o filestuff.o dll.o notif.o \
201 tdesc.o print-utils.o rsp-low.o errors.o common-debug.o cleanups.o \
202 common-exceptions.o symbol.o btrace-common.o fileio.o common-regcache.o \
203 $(XML_BUILTIN) $(DEPFILES) $(LIBOBJS)
204 GDBREPLAY_OBS = gdbreplay.o version.o
205 GDBSERVER_LIBS = @GDBSERVER_LIBS@
206 XM_CLIBS = @LIBS@
207 CDEPS = $(srcdir)/proc-service.list
208
209 # XML files to compile in to gdbserver, if any.
210 XML_DIR = $(srcdir)/../features
211 XML_FILES = @srv_xmlfiles@
212 XML_BUILTIN = @srv_xmlbuiltin@
213
214 IPA_DEPFILES = @IPA_DEPFILES@
215 extra_libraries = @extra_libraries@
216
217 SUBDIRS = $(GNULIB_BUILDDIR) $(LIBIBERTY_BUILDDIR)
218 CLEANDIRS = $(SUBDIRS)
219
220 # List of subdirectories in the build tree that must exist.
221 # This is used to force build failures in existing trees when
222 # a new directory is added.
223 # The format here is for the `case' shell command.
224 REQUIRED_SUBDIRS = $(GNULIB_BUILDDIR) | $(LIBIBERTY_BUILDDIR)
225
226 FLAGS_TO_PASS = \
227 "prefix=$(prefix)" \
228 "exec_prefix=$(exec_prefix)" \
229 "infodir=$(infodir)" \
230 "datarootdir=$(datarootdir)" \
231 "docdir=$(docdir)" \
232 "htmldir=$(htmldir)" \
233 "pdfdir=$(pdfdir)" \
234 "libdir=$(libdir)" \
235 "mandir=$(mandir)" \
236 "datadir=$(datadir)" \
237 "includedir=$(includedir)" \
238 "against=$(against)" \
239 "DESTDIR=$(DESTDIR)" \
240 "AR=$(AR)" \
241 "AR_FLAGS=$(AR_FLAGS)" \
242 "CC=$(CC)" \
243 "CFLAGS=$(CFLAGS)" \
244 "CXX=$(CXX)" \
245 "CXXFLAGS=$(CXXFLAGS)" \
246 "DLLTOOL=$(DLLTOOL)" \
247 "LDFLAGS=$(LDFLAGS)" \
248 "RANLIB=$(RANLIB)" \
249 "MAKEINFO=$(MAKEINFO)" \
250 "MAKEHTML=$(MAKEHTML)" \
251 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
252 "INSTALL=$(INSTALL)" \
253 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
254 "INSTALL_DATA=$(INSTALL_DATA)" \
255 "RUNTEST=$(RUNTEST)" \
256 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
257
258 # All generated files which can be included by another file.
259 generated_files = config.h $(GNULIB_H)
260
261 .c.o:
262 $(COMPILE) $<
263 $(POSTCOMPILE)
264
265 all: gdbserver$(EXEEXT) gdbreplay$(EXEEXT) $(extra_libraries)
266 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
267
268 # Traditionally "install" depends on "all". But it may be useful
269 # not to; for example, if the user has made some trivial change to a
270 # source file and doesn't care about rebuilding or just wants to save the
271 # time it takes for make to check that all is up to date.
272 # install-only is intended to address that need.
273 install: all
274 @$(MAKE) $(FLAGS_TO_PASS) install-only
275
276 install-only:
277 n=`echo gdbserver | sed '$(program_transform_name)'`; \
278 if [ x$$n = x ]; then n=gdbserver; else true; fi; \
279 if [ x"$(IPA_DEPFILES)" != x ]; then \
280 $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
281 $(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
282 fi; \
283 $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir); \
284 $(INSTALL_PROGRAM) gdbserver$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
285 # Note that we run install and not install-only, as the latter
286 # is not part of GNU standards and in particular not provided
287 # in libiberty.
288 @$(MAKE) $(FLAGS_TO_PASS) DO=install "DODIRS=$(SUBDIRS)" subdir_do
289
290 uninstall: force
291 n=`echo gdbserver | sed '$(program_transform_name)'`; \
292 if [ x$$n = x ]; then n=gdbserver; else true; fi; \
293 rm -f $(DESTDIR)/$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(man1dir)/$$n.1
294 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
295
296 installcheck:
297 check:
298 info dvi pdf:
299 install-info:
300 install-pdf:
301 html:
302 install-html:
303 clean-info: force
304 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
305
306 gdbserver$(EXEEXT): $(OBS) ${ADD_DEPS} ${CDEPS} $(LIBGNU) $(LIBIBERTY)
307 rm -f gdbserver$(EXEEXT)
308 $(CC_LD) $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbserver$(EXEEXT) $(OBS) \
309 $(LIBGNU) $(LIBIBERTY) $(GDBSERVER_LIBS) $(XM_CLIBS)
310
311 $(LIBGNU) $(LIBIBERTY) $(GNULIB_H): all-lib
312 all-lib: $(GNULIB_BUILDDIR)/Makefile $(LIBIBERTY_BUILDDIR)/Makefile
313 @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS="$(SUBDIRS)" subdir_do
314 .PHONY: all-lib
315
316 gdbreplay$(EXEEXT): $(GDBREPLAY_OBS) $(LIBGNU) $(LIBIBERTY)
317 rm -f gdbreplay$(EXEEXT)
318 $(CC_LD) $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbreplay$(EXEEXT) $(GDBREPLAY_OBS) \
319 $(XM_CLIBS) $(LIBGNU) $(LIBIBERTY)
320
321 IPA_OBJS=ax-ipa.o tracepoint-ipa.o format-ipa.o utils-ipa.o \
322 regcache-ipa.o remote-utils-ipa.o common-utils-ipa.o \
323 tdesc-ipa.o print-utils-ipa.o rsp-low-ipa.o errors-ipa.o \
324 ${IPA_DEPFILES}
325
326 IPA_LIB=libinproctrace.so
327
328 $(IPA_LIB): $(IPA_OBJS) ${ADD_DEPS} ${CDEPS}
329 rm -f $(IPA_LIB)
330 $(CC_LD) -shared -fPIC -Wl,--no-undefined $(INTERNAL_CFLAGS) \
331 $(INTERNAL_LDFLAGS) -o $(IPA_LIB) ${IPA_OBJS} -ldl -pthread
332
333 # Put the proper machine-specific files first, so M-. on a machine
334 # specific routine gets the one for the correct machine.
335 # The xyzzy stuff below deals with empty DEPFILES
336 TAGS: ${TAGFILES}
337 etags `find ${srcdir}/../config -name $(DEPRECATED_TM_FILE) -print` \
338 `find ${srcdir}/../config -name ${XM_FILE} -print` \
339 `find ${srcdir}/../config -name ${NAT_FILE} -print` \
340 `for i in yzzy ${DEPFILES}; do \
341 if [ x$$i != xyzzy ]; then \
342 echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \
343 fi; \
344 done` \
345 ${TAGFILES}
346 tags: TAGS
347
348 clean:
349 rm -f *.o ${ADD_FILES} *~
350 rm -f version.c
351 rm -f gdbserver$(EXEEXT) gdbreplay$(EXEEXT) core make.log
352 rm -f $(IPA_LIB)
353 rm -f aarch64.c
354 rm -f reg-arm.c reg-bfin.c i386.c reg-ia64.c reg-m32r.c reg-m68k.c
355 rm -f reg-sh.c reg-sparc.c reg-spu.c amd64.c i386-linux.c
356 rm -f reg-cris.c reg-crisv32.c amd64-linux.c reg-xtensa.c
357 rm -f reg-tilegx.c reg-tilegx32.c
358 rm -f arm-with-iwmmxt.c
359 rm -f arm-with-vfpv2.c arm-with-vfpv3.c arm-with-neon.c
360 rm -f mips-linux.c mips-dsp-linux.c
361 rm -f mips64-linux.c mips64-dsp-linux.c
362 rm -f nios2-linux.c
363 rm -f powerpc-32.c powerpc-32l.c powerpc-64l.c powerpc-e500l.c
364 rm -f powerpc-altivec32l.c powerpc-cell32l.c powerpc-vsx32l.c
365 rm -f powerpc-altivec64l.c powerpc-cell64l.c powerpc-vsx64l.c
366 rm -f powerpc-isa205-32l.c powerpc-isa205-64l.c
367 rm -f powerpc-isa205-altivec32l.c powerpc-isa205-vsx32l.c powerpc-isa205-altivec64l.c
368 rm -f powerpc-isa205-vsx64l.c
369 rm -f s390-linux32.c s390-linux64.c s390x-linux64.c
370 rm -f s390-linux32v1.c s390-linux32v2.c s390-linux64v1.c
371 rm -f s390-linux64v2.c s390x-linux64v1.c s390x-linux64v2.c
372 rm -f s390-te-linux64.c s390x-te-linux64.c
373 rm -f s390-vx-linux64.c s390x-vx-linux64.c
374 rm -f s390-tevx-linux64.c s390x-tevx-linux64.c
375 rm -f tic6x-c64xp-linux.c tic6x-c64x-linux.c tic6x-c62x-linux.c
376 rm -f xml-builtin.c stamp-xml
377 rm -f i386-avx.c i386-avx-linux.c
378 rm -f i386-mpx.c i386-mpx-linux.c
379 rm -f i386-avx512.c i386-avx512-linux.c
380 rm -f amd64-avx.c amd64-avx-linux.c
381 rm -f amd64-mpx.c amd64-mpx-linux.c
382 rm -f amd64-avx512.c amd64-avx512-linux.c
383 rm -f i386-mmx.c i386-mmx-linux.c
384 rm -f x32.c x32-linux.c
385 rm -f x32-avx.c x32-avx-linux.c
386 rm -f x32-avx512.c x32-avx512-linux.c
387 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
388
389 maintainer-clean realclean distclean: clean
390 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
391 rm -rf $(GNULIB_BUILDDIR)
392 rm -f Makefile config.status config.h stamp-h config.log
393 rm -f Makefile
394
395 subdir_do: force
396 @for i in $(DODIRS); do \
397 case $$i in \
398 $(REQUIRED_SUBDIRS)) \
399 if [ ! -f ./$$i/Makefile ] ; then \
400 echo "Missing $$i/Makefile" >&2 ; \
401 exit 1 ; \
402 fi ;; \
403 esac ; \
404 if [ -f ./$$i/Makefile ] ; then \
405 if (cd ./$$i; \
406 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
407 else exit 1 ; fi ; \
408 else true ; fi ; \
409 done
410
411 config.h: stamp-h ; @true
412 stamp-h: config.in config.status
413 CONFIG_FILES="" CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
414
415 Makefile: Makefile.in config.status
416 CONFIG_HEADERS="" $(SHELL) ./config.status
417
418 $(GNULIB_BUILDDIR)/Makefile: $(srcdir)/../gnulib/Makefile.in config.status
419 @cd $(GNULIB_BUILDDIR); CONFIG_FILES="Makefile" \
420 CONFIG_COMMANDS="depfiles" \
421 CONFIG_HEADERS= \
422 CONFIG_LINKS= \
423 $(SHELL) config.status
424
425 config.status: configure configure.srv $(srcdir)/../../bfd/development.sh
426 $(SHELL) ./config.status --recheck
427
428 # automatic rebuilding in automake-generated Makefiles requires
429 # this rule in the toplevel Makefile, which, with GNU make, causes
430 # the desired updates through the implicit regeneration of the Makefile
431 # and all of its prerequisites.
432 am--refresh:
433 @:
434
435 force:
436
437 version.c: Makefile $(srcdir)/../version.in $(srcdir)/../../bfd/version.h $(srcdir)/../common/create-version.sh
438 $(SHELL) $(srcdir)/../common/create-version.sh $(srcdir)/.. \
439 $(host_alias) $(target_alias) version.c
440
441 xml-builtin.c: stamp-xml; @true
442 stamp-xml: $(XML_DIR)/feature_to_c.sh Makefile $(XML_FILES)
443 rm -f xml-builtin.tmp
444 $(SHELL) $(XML_DIR)/feature_to_c.sh xml-builtin.tmp $(XML_FILES)
445 $(SHELL) $(srcdir)/../../move-if-change xml-builtin.tmp xml-builtin.c
446 echo stamp > stamp-xml
447
448 .PRECIOUS: xml-builtin.c
449
450 # GNU Make has an annoying habit of putting *all* the Makefile variables
451 # into the environment, unless you include this target as a circumvention.
452 # Rumor is that this will be fixed (and this target can be removed)
453 # in GNU Make 4.0.
454 .NOEXPORT:
455
456 # GNU Make 3.63 has a different problem: it keeps tacking command line
457 # overrides onto the definition of $(MAKE). This variable setting
458 # will remove them.
459 MAKEOVERRIDES=
460
461 regdat_sh = $(srcdir)/../regformats/regdat.sh
462
463 UST_CFLAGS = $(ustinc) -DCONFIG_UST_GDB_INTEGRATION
464
465 # Note, we only build the IPA if -fvisibility=hidden is supported in
466 # the first place.
467 IPAGENT_CFLAGS = $(INTERNAL_CFLAGS) $(UST_CFLAGS) \
468 -fPIC -DIN_PROCESS_AGENT \
469 -fvisibility=hidden
470
471 IPAGENT_COMPILE = $(COMPILE.pre) $(IPAGENT_CFLAGS) $(COMPILE.post)
472
473 # In-process agent object rules
474 ax-ipa.o: ax.c
475 $(IPAGENT_COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
476 $(POSTCOMPILE)
477 tracepoint-ipa.o: tracepoint.c
478 $(IPAGENT_COMPILE) $<
479 $(POSTCOMPILE)
480 utils-ipa.o: utils.c
481 $(IPAGENT_COMPILE) $<
482 $(POSTCOMPILE)
483 format-ipa.o: ../common/format.c
484 $(IPAGENT_COMPILE) $<
485 $(POSTCOMPILE)
486 common-utils-ipa.o: ../common/common-utils.c
487 $(IPAGENT_COMPILE) $<
488 $(POSTCOMPILE)
489 remote-utils-ipa.o: remote-utils.c
490 $(IPAGENT_COMPILE) $<
491 $(POSTCOMPILE)
492 regcache-ipa.o: regcache.c
493 $(IPAGENT_COMPILE) $<
494 $(POSTCOMPILE)
495 i386-linux-ipa.o: i386-linux.c
496 $(IPAGENT_COMPILE) $<
497 $(POSTCOMPILE)
498 i386-mmx-linux-ipa.o: i386-mmx-linux.c
499 $(IPAGENT_COMPILE) $<
500 $(POSTCOMPILE)
501 i386-avx-linux-ipa.o: i386-avx-linux.c
502 $(IPAGENT_COMPILE) $<
503 $(POSTCOMPILE)
504 i386-mpx-linux-ipa.o: i386-mpx-linux.c
505 $(IPAGENT_COMPILE) $<
506 $(POSTCOMPILE)
507 i386-avx512-linux-ipa.o: i386-avx512-linux.c
508 $(IPAGENT_COMPILE) $<
509 $(POSTCOMPILE)
510 linux-i386-ipa.o: linux-i386-ipa.c
511 $(IPAGENT_COMPILE) $<
512 $(POSTCOMPILE)
513 linux-amd64-ipa.o: linux-amd64-ipa.c
514 $(IPAGENT_COMPILE) $<
515 $(POSTCOMPILE)
516 amd64-linux-ipa.o: amd64-linux.c
517 $(IPAGENT_COMPILE) $<
518 $(POSTCOMPILE)
519 amd64-avx-linux-ipa.o: amd64-avx-linux.c
520 $(IPAGENT_COMPILE) $<
521 $(POSTCOMPILE)
522 amd64-mpx-linux-ipa.o: amd64-mpx-linux.c
523 $(IPAGENT_COMPILE) $<
524 $(POSTCOMPILE)
525 amd64-avx512-linux-ipa.o: amd64-avx512-linux.c
526 $(IPAGENT_COMPILE) $<
527 $(POSTCOMPILE)
528 linux-aarch64-ipa.o: linux-aarch64-ipa.c
529 $(IPAGENT_COMPILE) $<
530 $(POSTCOMPILE)
531 aarch64-ipa.o: aarch64.c
532 $(IPAGENT_COMPILE) $<
533 $(POSTCOMPILE)
534 linux-s390-ipa.o: linux-s390-ipa.c
535 $(IPAGENT_COMPILE) $<
536 $(POSTCOMPILE)
537 s390-linux32-ipa.o: s390-linux32.c
538 $(IPAGENT_COMPILE) $<
539 $(POSTCOMPILE)
540 s390-linux32v1-ipa.o: s390-linux32v1.c
541 $(IPAGENT_COMPILE) $<
542 $(POSTCOMPILE)
543 s390-linux32v2-ipa.o: s390-linux32v2.c
544 $(IPAGENT_COMPILE) $<
545 $(POSTCOMPILE)
546 s390-linux64-ipa.o: s390-linux64.c
547 $(IPAGENT_COMPILE) $<
548 $(POSTCOMPILE)
549 s390-linux64v1-ipa.o: s390-linux64v1.c
550 $(IPAGENT_COMPILE) $<
551 $(POSTCOMPILE)
552 s390-linux64v2-ipa.o: s390-linux64v2.c
553 $(IPAGENT_COMPILE) $<
554 $(POSTCOMPILE)
555 s390-te-linux64-ipa.o: s390-te-linux64.c
556 $(IPAGENT_COMPILE) $<
557 $(POSTCOMPILE)
558 s390-vx-linux64-ipa.o: s390-vx-linux64.c
559 $(IPAGENT_COMPILE) $<
560 $(POSTCOMPILE)
561 s390-tevx-linux64-ipa.o: s390-tevx-linux64.c
562 $(IPAGENT_COMPILE) $<
563 $(POSTCOMPILE)
564 s390x-linux64-ipa.o: s390x-linux64.c
565 $(IPAGENT_COMPILE) $<
566 $(POSTCOMPILE)
567 s390x-linux64v1-ipa.o: s390x-linux64v1.c
568 $(IPAGENT_COMPILE) $<
569 $(POSTCOMPILE)
570 s390x-linux64v2-ipa.o: s390x-linux64v2.c
571 $(IPAGENT_COMPILE) $<
572 $(POSTCOMPILE)
573 s390x-te-linux64-ipa.o: s390x-te-linux64.c
574 $(IPAGENT_COMPILE) $<
575 $(POSTCOMPILE)
576 s390x-vx-linux64-ipa.o: s390x-vx-linux64.c
577 $(IPAGENT_COMPILE) $<
578 $(POSTCOMPILE)
579 s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c
580 $(IPAGENT_COMPILE) $<
581 $(POSTCOMPILE)
582 tdesc-ipa.o: tdesc.c
583 $(IPAGENT_COMPILE) $<
584 $(POSTCOMPILE)
585 print-utils-ipa.o: ../common/print-utils.c
586 $(IPAGENT_COMPILE) $<
587 $(POSTCOMPILE)
588 rsp-low-ipa.o: ../common/rsp-low.c
589 $(IPAGENT_COMPILE) $<
590 $(POSTCOMPILE)
591 errors-ipa.o: ../common/errors.c
592 $(IPAGENT_COMPILE) $<
593 $(POSTCOMPILE)
594
595 ax.o: ax.c
596 $(COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
597 $(POSTCOMPILE)
598
599 signals.o: ../common/signals.c
600 $(COMPILE) $<
601 $(POSTCOMPILE)
602 print-utils.o: ../common/print-utils.c
603 $(COMPILE) $<
604 $(POSTCOMPILE)
605 rsp-low.o: ../common/rsp-low.c
606 $(COMPILE) $<
607 $(POSTCOMPILE)
608 common-utils.o: ../common/common-utils.c
609 $(COMPILE) $<
610 $(POSTCOMPILE)
611 posix-strerror.o: ../common/posix-strerror.c
612 $(COMPILE) $<
613 $(POSTCOMPILE)
614 mingw-strerror.o: ../common/mingw-strerror.c
615 $(COMPILE) $<
616 $(POSTCOMPILE)
617 vec.o: ../common/vec.c
618 $(COMPILE) $<
619 $(POSTCOMPILE)
620 gdb_vecs.o: ../common/gdb_vecs.c
621 $(COMPILE) $<
622 $(POSTCOMPILE)
623 xml-utils.o: ../common/xml-utils.c
624 $(COMPILE) $<
625 $(POSTCOMPILE)
626 ptid.o: ../common/ptid.c
627 $(COMPILE) $<
628 $(POSTCOMPILE)
629 buffer.o: ../common/buffer.c
630 $(COMPILE) $<
631 $(POSTCOMPILE)
632 format.o: ../common/format.c
633 $(COMPILE) $<
634 $(POSTCOMPILE)
635 filestuff.o: ../common/filestuff.c
636 $(COMPILE) $<
637 $(POSTCOMPILE)
638 agent.o: ../common/agent.c
639 $(COMPILE) $<
640 $(POSTCOMPILE)
641 errors.o: ../common/errors.c
642 $(COMPILE) $<
643 $(POSTCOMPILE)
644 common-debug.o: ../common/common-debug.c
645 $(COMPILE) $<
646 $(POSTCOMPILE)
647 cleanups.o: ../common/cleanups.c
648 $(COMPILE) $<
649 $(POSTCOMPILE)
650 common-exceptions.o: ../common/common-exceptions.c
651 $(COMPILE) $<
652 $(POSTCOMPILE)
653 waitstatus.o: ../target/waitstatus.c
654 $(COMPILE) $<
655 $(POSTCOMPILE)
656 fileio.o: ../common/fileio.c
657 $(COMPILE) $<
658 $(POSTCOMPILE)
659 common-regcache.o: ../common/common-regcache.c
660 $(COMPILE) $<
661 $(POSTCOMPILE)
662
663 # Arch object files rules form ../arch
664
665 arm.o: ../arch/arm.c
666 $(COMPILE) $<
667 $(POSTCOMPILE)
668 arm-linux.o: ../arch/arm-linux.c
669 $(COMPILE) $<
670 $(POSTCOMPILE)
671 arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c
672 $(COMPILE) $<
673 $(POSTCOMPILE)
674
675 # Native object files rules from ../nat
676
677 x86-dregs.o: ../nat/x86-dregs.c
678 $(COMPILE) $<
679 $(POSTCOMPILE)
680 amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c
681 $(COMPILE) $<
682 $(POSTCOMPILE)
683 linux-btrace.o: ../nat/linux-btrace.c
684 $(COMPILE) $<
685 $(POSTCOMPILE)
686 linux-osdata.o: ../nat/linux-osdata.c
687 $(COMPILE) $<
688 $(POSTCOMPILE)
689 linux-procfs.o: ../nat/linux-procfs.c
690 $(COMPILE) $<
691 $(POSTCOMPILE)
692 linux-ptrace.o: ../nat/linux-ptrace.c
693 $(COMPILE) $<
694 $(POSTCOMPILE)
695 linux-waitpid.o: ../nat/linux-waitpid.c
696 $(COMPILE) $<
697 $(POSTCOMPILE)
698 mips-linux-watch.o: ../nat/mips-linux-watch.c
699 $(COMPILE) $<
700 $(POSTCOMPILE)
701 ppc-linux.o: ../nat/ppc-linux.c
702 $(COMPILE) $<
703 $(POSTCOMPILE)
704 linux-personality.o: ../nat/linux-personality.c
705 $(COMPILE) $<
706 $(POSTCOMPILE)
707 aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c
708 $(COMPILE) $<
709 $(POSTCOMPILE)
710 aarch64-linux.o: ../nat/aarch64-linux.c
711 $(COMPILE) $<
712 $(POSTCOMPILE)
713 btrace-common.o: ../common/btrace-common.c
714 $(COMPILE) $<
715 $(POSTCOMPILE)
716 x86-linux.o: ../nat/x86-linux.c
717 $(COMPILE) $<
718 $(POSTCOMPILE)
719 x86-linux-dregs.o: ../nat/x86-linux-dregs.c
720 $(COMPILE) $<
721 $(POSTCOMPILE)
722 linux-namespaces.o: ../nat/linux-namespaces.c
723 $(COMPILE) $<
724 $(POSTCOMPILE)
725
726 # Architecture specific object files rules from ../arch
727
728 aarch64-insn.o: ../arch/aarch64-insn.c
729 $(COMPILE) $<
730 $(POSTCOMPILE)
731
732 aarch64.c : $(srcdir)/../regformats/aarch64.dat $(regdat_sh)
733 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/aarch64.dat aarch64.c
734 reg-arm.c : $(srcdir)/../regformats/reg-arm.dat $(regdat_sh)
735 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-arm.dat reg-arm.c
736 arm-with-iwmmxt.c : $(srcdir)/../regformats/arm-with-iwmmxt.dat $(regdat_sh)
737 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-iwmmxt.dat arm-with-iwmmxt.c
738 arm-with-vfpv2.c : $(srcdir)/../regformats/arm-with-vfpv2.dat $(regdat_sh)
739 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-vfpv2.dat arm-with-vfpv2.c
740 arm-with-vfpv3.c : $(srcdir)/../regformats/arm-with-vfpv3.dat $(regdat_sh)
741 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-vfpv3.dat arm-with-vfpv3.c
742 arm-with-neon.c : $(srcdir)/../regformats/arm-with-neon.dat $(regdat_sh)
743 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-neon.dat arm-with-neon.c
744 reg-bfin.c : $(srcdir)/../regformats/reg-bfin.dat $(regdat_sh)
745 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-bfin.dat reg-bfin.c
746 reg-cris.c : $(srcdir)/../regformats/reg-cris.dat $(regdat_sh)
747 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-cris.dat reg-cris.c
748 reg-crisv32.c : $(srcdir)/../regformats/reg-crisv32.dat $(regdat_sh)
749 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-crisv32.dat reg-crisv32.c
750 i386.c : $(srcdir)/../regformats/i386/i386.dat $(regdat_sh)
751 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386.dat i386.c
752 i386-linux.c : $(srcdir)/../regformats/i386/i386-linux.dat $(regdat_sh)
753 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-linux.dat i386-linux.c
754 i386-avx.c : $(srcdir)/../regformats/i386/i386-avx.dat $(regdat_sh)
755 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx.dat i386-avx.c
756 i386-avx-linux.c : $(srcdir)/../regformats/i386/i386-avx-linux.dat $(regdat_sh)
757 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx-linux.dat i386-avx-linux.c
758 i386-avx512.c : $(srcdir)/../regformats/i386/i386-avx512.dat $(regdat_sh)
759 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx512.dat i386-avx512.c
760 i386-avx512-linux.c : $(srcdir)/../regformats/i386/i386-avx512-linux.dat $(regdat_sh)
761 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx512-linux.dat i386-avx512-linux.c
762 i386-mpx.c : $(srcdir)/../regformats/i386/i386-mpx.dat $(regdat_sh)
763 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mpx.dat i386-mpx.c
764 i386-mpx-linux.c : $(srcdir)/../regformats/i386/i386-mpx-linux.dat $(regdat_sh)
765 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mpx-linux.dat i386-mpx-linux.c
766 i386-mmx.c : $(srcdir)/../regformats/i386/i386-mmx.dat $(regdat_sh)
767 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mmx.dat i386-mmx.c
768 i386-mmx-linux.c : $(srcdir)/../regformats/i386/i386-mmx-linux.dat $(regdat_sh)
769 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mmx-linux.dat i386-mmx-linux.c
770 reg-ia64.c : $(srcdir)/../regformats/reg-ia64.dat $(regdat_sh)
771 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-ia64.dat reg-ia64.c
772 reg-m32r.c : $(srcdir)/../regformats/reg-m32r.dat $(regdat_sh)
773 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-m32r.dat reg-m32r.c
774 reg-m68k.c : $(srcdir)/../regformats/reg-m68k.dat $(regdat_sh)
775 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-m68k.dat reg-m68k.c
776 reg-cf.c : $(srcdir)/../regformats/reg-cf.dat $(regdat_sh)
777 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-cf.dat reg-cf.c
778 mips-linux.c : $(srcdir)/../regformats/mips-linux.dat $(regdat_sh)
779 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips-linux.dat mips-linux.c
780 mips-dsp-linux.c : $(srcdir)/../regformats/mips-dsp-linux.dat $(regdat_sh)
781 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips-dsp-linux.dat mips-dsp-linux.c
782 mips64-linux.c : $(srcdir)/../regformats/mips64-linux.dat $(regdat_sh)
783 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips64-linux.dat mips64-linux.c
784 mips64-dsp-linux.c : $(srcdir)/../regformats/mips64-dsp-linux.dat $(regdat_sh)
785 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips64-dsp-linux.dat mips64-dsp-linux.c
786 nios2-linux.c : $(srcdir)/../regformats/nios2-linux.dat $(regdat_sh)
787 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/nios2-linux.dat nios2-linux.c
788 powerpc-32.c : $(srcdir)/../regformats/rs6000/powerpc-32.dat $(regdat_sh)
789 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32.dat powerpc-32.c
790 powerpc-32l.c : $(srcdir)/../regformats/rs6000/powerpc-32l.dat $(regdat_sh)
791 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32l.dat powerpc-32l.c
792 powerpc-altivec32l.c : $(srcdir)/../regformats/rs6000/powerpc-altivec32l.dat $(regdat_sh)
793 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-altivec32l.dat powerpc-altivec32l.c
794 powerpc-cell32l.c : $(srcdir)/../regformats/rs6000/powerpc-cell32l.dat $(regdat_sh)
795 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-cell32l.dat powerpc-cell32l.c
796 powerpc-vsx32l.c : $(srcdir)/../regformats/rs6000/powerpc-vsx32l.dat $(regdat_sh)
797 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-vsx32l.dat powerpc-vsx32l.c
798 powerpc-isa205-32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-32l.dat $(regdat_sh)
799 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-32l.dat powerpc-isa205-32l.c
800 powerpc-isa205-altivec32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec32l.dat $(regdat_sh)
801 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec32l.dat powerpc-isa205-altivec32l.c
802 powerpc-isa205-vsx32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx32l.dat $(regdat_sh)
803 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx32l.dat powerpc-isa205-vsx32l.c
804 powerpc-e500l.c : $(srcdir)/../regformats/rs6000/powerpc-e500l.dat $(regdat_sh)
805 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-e500l.dat powerpc-e500l.c
806 powerpc-64l.c : $(srcdir)/../regformats/rs6000/powerpc-64l.dat $(regdat_sh)
807 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-64l.dat powerpc-64l.c
808 powerpc-altivec64l.c : $(srcdir)/../regformats/rs6000/powerpc-altivec64l.dat $(regdat_sh)
809 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-altivec64l.dat powerpc-altivec64l.c
810 powerpc-cell64l.c : $(srcdir)/../regformats/rs6000/powerpc-cell64l.dat $(regdat_sh)
811 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-cell64l.dat powerpc-cell64l.c
812 powerpc-vsx64l.c : $(srcdir)/../regformats/rs6000/powerpc-vsx64l.dat $(regdat_sh)
813 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-vsx64l.dat powerpc-vsx64l.c
814 powerpc-isa205-64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-64l.dat $(regdat_sh)
815 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-64l.dat powerpc-isa205-64l.c
816 powerpc-isa205-altivec64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec64l.dat $(regdat_sh)
817 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec64l.dat powerpc-isa205-altivec64l.c
818 powerpc-isa205-vsx64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx64l.dat $(regdat_sh)
819 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx64l.dat powerpc-isa205-vsx64l.c
820 s390-linux32.c : $(srcdir)/../regformats/s390-linux32.dat $(regdat_sh)
821 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32.dat s390-linux32.c
822 s390-linux32v1.c : $(srcdir)/../regformats/s390-linux32v1.dat $(regdat_sh)
823 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32v1.dat s390-linux32v1.c
824 s390-linux32v2.c : $(srcdir)/../regformats/s390-linux32v2.dat $(regdat_sh)
825 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32v2.dat s390-linux32v2.c
826 s390-linux64.c : $(srcdir)/../regformats/s390-linux64.dat $(regdat_sh)
827 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64.dat s390-linux64.c
828 s390-linux64v1.c : $(srcdir)/../regformats/s390-linux64v1.dat $(regdat_sh)
829 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64v1.dat s390-linux64v1.c
830 s390-linux64v2.c : $(srcdir)/../regformats/s390-linux64v2.dat $(regdat_sh)
831 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64v2.dat s390-linux64v2.c
832 s390-te-linux64.c : $(srcdir)/../regformats/s390-te-linux64.dat $(regdat_sh)
833 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-te-linux64.dat s390-te-linux64.c
834 s390-vx-linux64.c : $(srcdir)/../regformats/s390-vx-linux64.dat $(regdat_sh)
835 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-vx-linux64.dat s390-vx-linux64.c
836 s390-tevx-linux64.c : $(srcdir)/../regformats/s390-tevx-linux64.dat $(regdat_sh)
837 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-tevx-linux64.dat s390-tevx-linux64.c
838 s390x-linux64.c : $(srcdir)/../regformats/s390x-linux64.dat $(regdat_sh)
839 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64.dat s390x-linux64.c
840 s390x-linux64v1.c : $(srcdir)/../regformats/s390x-linux64v1.dat $(regdat_sh)
841 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64v1.dat s390x-linux64v1.c
842 s390x-linux64v2.c : $(srcdir)/../regformats/s390x-linux64v2.dat $(regdat_sh)
843 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64v2.dat s390x-linux64v2.c
844 s390x-te-linux64.c : $(srcdir)/../regformats/s390x-te-linux64.dat $(regdat_sh)
845 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-te-linux64.dat s390x-te-linux64.c
846 s390x-vx-linux64.c : $(srcdir)/../regformats/s390x-vx-linux64.dat $(regdat_sh)
847 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-vx-linux64.dat s390x-vx-linux64.c
848 s390x-tevx-linux64.c : $(srcdir)/../regformats/s390x-tevx-linux64.dat $(regdat_sh)
849 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-tevx-linux64.dat s390x-tevx-linux64.c
850
851 tic6x-c64xp-linux.c : $(srcdir)/../regformats/tic6x-c64xp-linux.dat $(regdat_sh)
852 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c64xp-linux.dat tic6x-c64xp-linux.c
853 tic6x-c64x-linux.c : $(srcdir)/../regformats/tic6x-c64x-linux.dat $(regdat_sh)
854 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c64x-linux.dat tic6x-c64x-linux.c
855 tic6x-c62x-linux.c : $(srcdir)/../regformats/tic6x-c62x-linux.dat $(regdat_sh)
856 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c62x-linux.dat tic6x-c62x-linux.c
857
858 reg-sh.c : $(srcdir)/../regformats/reg-sh.dat $(regdat_sh)
859 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-sh.dat reg-sh.c
860 reg-sparc64.c : $(srcdir)/../regformats/reg-sparc64.dat $(regdat_sh)
861 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-sparc64.dat reg-sparc64.c
862 reg-spu.c : $(srcdir)/../regformats/reg-spu.dat $(regdat_sh)
863 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-spu.dat reg-spu.c
864 amd64.c : $(srcdir)/../regformats/i386/amd64.dat $(regdat_sh)
865 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64.dat amd64.c
866 amd64-linux.c : $(srcdir)/../regformats/i386/amd64-linux.dat $(regdat_sh)
867 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-linux.dat amd64-linux.c
868 amd64-avx.c : $(srcdir)/../regformats/i386/amd64-avx.dat $(regdat_sh)
869 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx.dat amd64-avx.c
870 amd64-avx-linux.c : $(srcdir)/../regformats/i386/amd64-avx-linux.dat $(regdat_sh)
871 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx-linux.dat amd64-avx-linux.c
872 amd64-avx512.c : $(srcdir)/../regformats/i386/amd64-avx512.dat $(regdat_sh)
873 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx512.dat amd64-avx512.c
874 amd64-avx512-linux.c : $(srcdir)/../regformats/i386/amd64-avx512-linux.dat $(regdat_sh)
875 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx512-linux.dat amd64-avx512-linux.c
876 amd64-mpx.c : $(srcdir)/../regformats/i386/amd64-mpx.dat $(regdat_sh)
877 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-mpx.dat amd64-mpx.c
878 amd64-mpx-linux.c : $(srcdir)/../regformats/i386/amd64-mpx-linux.dat $(regdat_sh)
879 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-mpx-linux.dat amd64-mpx-linux.c
880 x32.c : $(srcdir)/../regformats/i386/x32.dat $(regdat_sh)
881 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32.dat x32.c
882 x32-linux.c : $(srcdir)/../regformats/i386/x32-linux.dat $(regdat_sh)
883 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-linux.dat x32-linux.c
884 x32-avx.c : $(srcdir)/../regformats/i386/x32-avx.dat $(regdat_sh)
885 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx.dat x32-avx.c
886 x32-avx-linux.c : $(srcdir)/../regformats/i386/x32-avx-linux.dat $(regdat_sh)
887 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx-linux.dat x32-avx-linux.c
888 x32-avx512.c : $(srcdir)/../regformats/i386/x32-avx512.dat $(regdat_sh)
889 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx512.dat x32-avx512.c
890 x32-avx512-linux.c : $(srcdir)/../regformats/i386/x32-avx512-linux.dat $(regdat_sh)
891 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx512-linux.dat x32-avx512-linux.c
892 reg-xtensa.c : $(srcdir)/../regformats/reg-xtensa.dat $(regdat_sh)
893 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-xtensa.dat reg-xtensa.c
894 reg-tilegx.c : $(srcdir)/../regformats/reg-tilegx.dat $(regdat_sh)
895 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-tilegx.dat reg-tilegx.c
896 reg-tilegx32.c : $(srcdir)/../regformats/reg-tilegx32.dat $(regdat_sh)
897 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-tilegx32.dat reg-tilegx32.c
898
899 #
900 # Dependency tracking. Most of this is conditional on GNU Make being
901 # found by configure; if GNU Make is not found, we fall back to a
902 # simpler scheme.
903 #
904
905 @GMAKE_TRUE@ifeq ($(DEPMODE),depmode=gcc3)
906 # Note that we put the dependencies into a .Tpo file, then move them
907 # into place if the compile succeeds. We need this because gcc does
908 # not atomically write the dependency output file.
909 @GMAKE_TRUE@override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \
910 @GMAKE_TRUE@ -MF $(DEPDIR)/$(basename $(@F)).Tpo
911 @GMAKE_TRUE@override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \
912 @GMAKE_TRUE@ $(DEPDIR)/$(basename $(@F)).Po
913 @GMAKE_TRUE@else
914 @GMAKE_TRUE@override COMPILE.pre = source='$<' object='$@' libtool=no \
915 @GMAKE_TRUE@ DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC)
916 # depcomp handles atomicity for us, so we don't need a postcompile
917 # step.
918 @GMAKE_TRUE@override POSTCOMPILE =
919 @GMAKE_TRUE@endif
920
921 # A list of all the objects we might care about in this build, for
922 # dependency tracking.
923 all_object_files = $(OBS) $(GDBREPLAY_OBS) $(IPA_OBJS)
924
925 # Ensure that generated files are created early. Use order-only
926 # dependencies if available. They require GNU make 3.80 or newer,
927 # and the .VARIABLES variable was introduced at the same time.
928 @GMAKE_TRUE@ifdef .VARIABLES
929 @GMAKE_TRUE@$(all_object_files): | $(generated_files)
930 @GMAKE_TRUE@else
931 $(all_object_files) : $(generated_files)
932 @GMAKE_TRUE@endif
933
934 # Dependencies.
935 @GMAKE_TRUE@-include $(patsubst %.o, $(DEPDIR)/%.Po, $(all_object_files))
936
937 # This is the end of "Makefile.in".