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