Move print-utils.h to common-defs.h
[deliverable/binutils-gdb.git] / gdb / gdbserver / Makefile.in
CommitLineData
ecd75fc8 1# Copyright (C) 1989-2014 Free Software Foundation, Inc.
c906108c
SS
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
32de4b9d 7# the Free Software Foundation; either version 3 of the License, or
c906108c 8# (at your option) any later version.
1b3f6016 9#
c906108c
SS
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.
1b3f6016 14#
c906108c 15# You should have received a copy of the GNU General Public License
32de4b9d 16# along with this program. If not, see <http://www.gnu.org/licenses/>.
c906108c 17
d6e9fb05
JK
18prefix = @prefix@
19exec_prefix = @exec_prefix@
c906108c 20
bd885420
YQ
21host_alias = @host_noncanonical@
22target_alias = @target_noncanonical@
d6e9fb05
JK
23program_transform_name = @program_transform_name@
24bindir = @bindir@
25libdir = @libdir@
c906108c
SS
26tooldir = $(libdir)/$(target_alias)
27
96e946ca 28datarootdir = @datarootdir@
d6e9fb05
JK
29datadir = @datadir@
30mandir = @mandir@
c906108c
SS
31man1dir = $(mandir)/man1
32man2dir = $(mandir)/man2
33man3dir = $(mandir)/man3
34man4dir = $(mandir)/man4
35man5dir = $(mandir)/man5
36man6dir = $(mandir)/man6
37man7dir = $(mandir)/man7
38man8dir = $(mandir)/man8
39man9dir = $(mandir)/man9
d6e9fb05 40infodir = @infodir@
085dd6e6 41htmldir = $(prefix)/html
d6e9fb05 42includedir = @includedir@
c906108c 43
a8347a2a 44SHELL = @SHELL@
de7c3b4a 45EXEEXT = @EXEEXT@
c906108c 46
d6e9fb05
JK
47INSTALL = @INSTALL@
48INSTALL_PROGRAM = @INSTALL_PROGRAM@
49INSTALL_DATA = @INSTALL_DATA@
c9a1864a 50RANLIB = @RANLIB@
c906108c 51
84563040 52CC = @CC@
e1d2394b
MS
53AR = @AR@
54AR_FLAGS = rc
c906108c 55
61c125b9
TT
56# Dependency tracking information.
57DEPMODE = @CCDEPMODE@
58DEPDIR = @DEPDIR@
59depcomp = $(SHELL) $(srcdir)/../depcomp
60
61# Note that these are overridden by GNU make-specific code below if
62# GNU make is used. The overrides implement dependency tracking.
63COMPILE.pre = $(CC)
64COMPILE.post = -c -o $@
65COMPILE = $(COMPILE.pre) $(INTERNAL_CFLAGS) $(COMPILE.post)
66POSTCOMPILE = @true
67
c906108c
SS
68# Directory containing source files. Don't clean up the spacing,
69# this exact string is matched for by the "configure" script.
d6e9fb05 70srcdir = @srcdir@
c9a1864a
YQ
71abs_top_srcdir=@abs_top_srcdir@
72abs_srcdir=@abs_srcdir@
d6e9fb05 73VPATH = @srcdir@
c906108c
SS
74
75# It is also possible that you will need to add -I/usr/include/sys to the
1b3f6016 76# CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
c906108c
SS
77# is where it should be according to Posix).
78
79# Set this up with gcc if you have gnu ld and the loader will print out
80# line numbers for undefinded refs.
81#CC-LD=gcc -static
82CC-LD=${CC}
83
84# Where is the "include" directory? Traditionally ../include or ./include
85INCLUDE_DIR = ${srcdir}/../../include
86INCLUDE_DEP = $$(INCLUDE_DIR)
87
0b04e523
TT
88LIBIBERTY_BUILDDIR = build-libiberty-gdbserver
89LIBIBERTY = $(LIBIBERTY_BUILDDIR)/libiberty.a
90
0fb4aa4b
PA
91# Where is ust? These will be empty if ust was not available.
92ustlibs = @ustlibs@
93ustinc = @ustinc@
94
c9a1864a 95# gnulib
c971b7fa
PA
96GNULIB_BUILDDIR = build-gnulib-gdbserver
97LIBGNU = $(GNULIB_BUILDDIR)/import/libgnu.a
98INCGNU = -I$(srcdir)/../gnulib/import -I$(GNULIB_BUILDDIR)/import
ecedbe58 99
c9a1864a
YQ
100# Generated headers in the gnulib directory. These must be listed
101# so that they are generated before other files are compiled.
c971b7fa 102GNULIB_H = $(GNULIB_BUILDDIR)/import/string.h @GNULIB_STDINT_H@
c9a1864a 103
c906108c
SS
104# All the includes used for CFLAGS and for lint.
105# -I. for config files.
7ea81414
DJ
106# -I${srcdir} for our headers.
107# -I$(srcdir)/../regformats for regdef.h.
96d7229d
LM
108#
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".
112#
2aecd87f 113INCLUDE_CFLAGS = -I. -I${srcdir} -I$(srcdir)/../common \
66af0f44 114 -I$(srcdir)/../regformats -I$(srcdir)/.. -I$(INCLUDE_DIR) \
57c4b50b 115 $(INCGNU)
c906108c
SS
116
117# M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
118# from the config/ directory.
119GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS}
120#PROFILE_CFLAGS = -pg
121
d4596a3d
PA
122WARN_CFLAGS = @WARN_CFLAGS@
123WERROR_CFLAGS = @WERROR_CFLAGS@
0729219d 124
d3ce09f5
SS
125WARN_CFLAGS_NO_FORMAT = `echo " $(WARN_CFLAGS) " \
126 | sed "s/ -Wformat-nonliteral / -Wno-format-nonliteral /g"`
127
c906108c
SS
128# CFLAGS is specifically reserved for setting from the command line
129# when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
84563040
DJ
130CFLAGS = @CFLAGS@
131
c906108c 132# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
eff1410f 133INTERNAL_CFLAGS_BASE = ${CFLAGS} ${GLOBAL_CFLAGS} \
66b6e1dd 134 ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS}
eff1410f 135INTERNAL_WARN_CFLAGS = ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
7d4e5717 136INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) -DGDBSERVER
c906108c
SS
137
138# LDFLAGS is specifically reserved for setting from the command line
139# when running make.
697f7479 140LDFLAGS = @LDFLAGS@
f6de3c42 141INTERNAL_LDFLAGS = $(LDFLAGS) @RDYNAMIC@
c906108c 142
c906108c
SS
143# All source files that go into linking GDB remote server.
144
bf4c19f7 145SFILES= $(srcdir)/gdbreplay.c $(srcdir)/inferiors.c $(srcdir)/dll.c \
f6528abd
JK
146 $(srcdir)/mem-break.c $(srcdir)/proc-service.c \
147 $(srcdir)/proc-service.list $(srcdir)/regcache.c \
73d37363 148 $(srcdir)/remote-utils.c $(srcdir)/server.c $(srcdir)/target.c \
87ce2a04 149 $(srcdir)/thread-db.c $(srcdir)/utils.c $(srcdir)/debug.c \
eb826dc6
MF
150 $(srcdir)/linux-arm-low.c $(srcdir)/linux-bfin-low.c \
151 $(srcdir)/linux-cris-low.c $(srcdir)/linux-crisv32-low.c \
aa5ca48f 152 ${srcdir}/i386-low.c $(srcdir)/i387-fp.c \
73d37363 153 $(srcdir)/linux-ia64-low.c $(srcdir)/linux-low.c \
7cfbc4a0 154 $(srcdir)/linux-m32r-low.c \
73d37363 155 $(srcdir)/linux-m68k-low.c $(srcdir)/linux-mips-low.c \
68f5f838 156 $(srcdir)/linux-nios2-low.c \
5b0a002e 157 $(srcdir)/linux-ppc-low.c \
eee84df1 158 $(srcdir)/linux-s390-low.c \
dfb64f85 159 $(srcdir)/linux-sh-low.c $(srcdir)/linux-sparc-low.c \
d0722149 160 $(srcdir)/linux-x86-low.c \
1525d545 161 $(srcdir)/linux-xtensa-low.c \
65f479b6 162 $(srcdir)/linux-tile-low.c \
68070c10 163 $(srcdir)/win32-arm-low.c $(srcdir)/win32-i386-low.c \
59a016f0 164 $(srcdir)/win32-low.c $(srcdir)/wincecompat.c \
d26e3629 165 $(srcdir)/hostio.c $(srcdir)/hostio-errno.c \
e6712ff1 166 $(srcdir)/common/vec.c $(srcdir)/common/gdb_vecs.c \
d26e3629 167 $(srcdir)/common/common-utils.c $(srcdir)/common/xml-utils.c \
125f8a3d
GB
168 $(srcdir)/nat/linux-osdata.c $(srcdir)/common/ptid.c \
169 $(srcdir)/common/buffer.c $(srcdir)/nat/linux-btrace.c \
33b60d58 170 $(srcdir)/common/filestuff.c $(srcdir)/target/waitstatus.c \
125f8a3d 171 $(srcdir)/nat/mips-linux-watch.c $(srcdir)/common/print-utils.c \
ef87c8bb 172 $(srcdir)/common/rsp-low.c $(srcdir)/common/errors.c
c906108c 173
7ea81414 174DEPFILES = @GDBSERVER_DEPFILES@
c906108c 175
e28b3332
DJ
176LIBOBJS = @LIBOBJS@
177
7ea81414 178SOURCES = $(SFILES)
1b3f6016 179TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
c906108c 180
3360c0bf 181OBS = agent.o ax.o inferiors.o regcache.o remote-utils.o server.o signals.o \
87ce2a04 182 target.o waitstatus.o utils.o debug.o version.o vec.o gdb_vecs.o \
3360c0bf
LM
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 \
ef87c8bb
GB
185 tdesc.o print-utils.o rsp-low.o errors.o $(XML_BUILTIN) $(DEPFILES) \
186 $(LIBOBJS)
a417dc56 187GDBREPLAY_OBS = gdbreplay.o version.o
0d62e5e8 188GDBSERVER_LIBS = @GDBSERVER_LIBS@
b80864fb 189XM_CLIBS = @LIBS@
f6528abd 190CDEPS = $(srcdir)/proc-service.list
c906108c 191
fb1e4ffc
DJ
192# XML files to compile in to gdbserver, if any.
193XML_DIR = $(srcdir)/../features
fb1e4ffc
DJ
194XML_FILES = @srv_xmlfiles@
195XML_BUILTIN = @srv_xmlbuiltin@
196
fa593d66
PA
197IPA_DEPFILES = @IPA_DEPFILES@
198extra_libraries = @extra_libraries@
199
0b04e523 200SUBDIRS = $(GNULIB_BUILDDIR) $(LIBIBERTY_BUILDDIR)
c971b7fa
PA
201CLEANDIRS = $(SUBDIRS)
202
203# List of subdirectories in the build tree that must exist.
204# This is used to force build failures in existing trees when
205# a new directory is added.
206# The format here is for the `case' shell command.
0b04e523 207REQUIRED_SUBDIRS = $(GNULIB_BUILDDIR) | $(LIBIBERTY_BUILDDIR)
c971b7fa 208
f474844c
JZ
209FLAGS_TO_PASS = \
210 "prefix=$(prefix)" \
211 "exec_prefix=$(exec_prefix)" \
212 "infodir=$(infodir)" \
213 "datarootdir=$(datarootdir)" \
214 "docdir=$(docdir)" \
215 "htmldir=$(htmldir)" \
216 "pdfdir=$(pdfdir)" \
217 "libdir=$(libdir)" \
218 "mandir=$(mandir)" \
219 "datadir=$(datadir)" \
220 "includedir=$(includedir)" \
221 "against=$(against)" \
222 "DESTDIR=$(DESTDIR)" \
223 "AR=$(AR)" \
224 "AR_FLAGS=$(AR_FLAGS)" \
225 "CC=$(CC)" \
226 "CFLAGS=$(CFLAGS)" \
227 "CXX=$(CXX)" \
228 "CXXFLAGS=$(CXXFLAGS)" \
229 "DLLTOOL=$(DLLTOOL)" \
230 "LDFLAGS=$(LDFLAGS)" \
231 "RANLIB=$(RANLIB)" \
232 "MAKEINFO=$(MAKEINFO)" \
233 "MAKEHTML=$(MAKEHTML)" \
234 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
235 "INSTALL=$(INSTALL)" \
236 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
237 "INSTALL_DATA=$(INSTALL_DATA)" \
238 "RUNTEST=$(RUNTEST)" \
239 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
240
fd9bb8b8
PA
241# All generated files which can be included by another file.
242generated_files = config.h $(GNULIB_H)
243
c906108c 244.c.o:
61c125b9
TT
245 $(COMPILE) $<
246 $(POSTCOMPILE)
c906108c 247
fa593d66 248all: gdbserver$(EXEEXT) gdbreplay$(EXEEXT) $(extra_libraries)
c971b7fa 249 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
c906108c
SS
250
251# Traditionally "install" depends on "all". But it may be useful
1b3f6016 252# not to; for example, if the user has made some trivial change to a
c906108c
SS
253# source file and doesn't care about rebuilding or just wants to save the
254# time it takes for make to check that all is up to date.
255# install-only is intended to address that need.
f474844c
JZ
256install: all
257 @$(MAKE) $(FLAGS_TO_PASS) install-only
258
1b3f6016 259install-only:
c906108c
SS
260 n=`echo gdbserver | sed '$(program_transform_name)'`; \
261 if [ x$$n = x ]; then n=gdbserver; else true; fi; \
12ac6819 262 if [ x"$(IPA_DEPFILES)" != x ]; then \
fa593d66
PA
263 $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
264 $(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
265 fi; \
c938e9b0 266 $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir); \
480b27bf 267 $(INSTALL_PROGRAM) gdbserver$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
0b04e523
TT
268 # Note that we run install and not install-only, as the latter
269 # is not part of GNU standards and in particular not provided
270 # in libiberty.
271 @$(MAKE) $(FLAGS_TO_PASS) DO=install "DODIRS=$(SUBDIRS)" subdir_do
c906108c
SS
272
273uninstall: force
274 n=`echo gdbserver | sed '$(program_transform_name)'`; \
275 if [ x$$n = x ]; then n=gdbserver; else true; fi; \
f1048712 276 rm -f $(DESTDIR)/$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(man1dir)/$$n.1
c971b7fa 277 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
c906108c
SS
278
279installcheck:
280check:
9453113a 281info dvi pdf:
c906108c 282install-info:
9453113a 283install-pdf:
085dd6e6
JM
284html:
285install-html:
c9a1864a 286clean-info: force
c971b7fa 287 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
c906108c 288
0b04e523 289gdbserver$(EXEEXT): $(OBS) ${ADD_DEPS} ${CDEPS} $(LIBGNU) $(LIBIBERTY)
68070c10
PA
290 rm -f gdbserver$(EXEEXT)
291 ${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbserver$(EXEEXT) $(OBS) \
0b04e523 292 $(LIBGNU) $(LIBIBERTY) $(GDBSERVER_LIBS) $(XM_CLIBS)
c9a1864a 293
0b04e523
TT
294$(LIBGNU) $(LIBIBERTY) $(GNULIB_H): all-lib
295all-lib: $(GNULIB_BUILDDIR)/Makefile $(LIBIBERTY_BUILDDIR)/Makefile
296 @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS="$(SUBDIRS)" subdir_do
c9a1864a 297.PHONY: all-lib
c906108c 298
0b04e523 299gdbreplay$(EXEEXT): $(GDBREPLAY_OBS) $(LIBGNU) $(LIBIBERTY)
68070c10 300 rm -f gdbreplay$(EXEEXT)
a417dc56 301 ${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbreplay$(EXEEXT) $(GDBREPLAY_OBS) \
0b04e523 302 $(XM_CLIBS) $(LIBGNU) $(LIBIBERTY)
c906108c 303
ef87c8bb
GB
304IPA_OBJS=ax-ipa.o tracepoint-ipa.o format-ipa.o utils-ipa.o \
305 regcache-ipa.o remote-utils-ipa.o common-utils-ipa.o \
306 tdesc-ipa.o print-utils-ipa.o rsp-low-ipa.o errors-ipa.o \
307 ${IPA_DEPFILES}
fa593d66
PA
308
309IPA_LIB=libinproctrace.so
310
311$(IPA_LIB): $(IPA_OBJS) ${ADD_DEPS} ${CDEPS}
312 rm -f $(IPA_LIB)
313 ${CC-LD} -shared -fPIC -Wl,--no-undefined $(INTERNAL_CFLAGS) \
0fb4aa4b 314 $(INTERNAL_LDFLAGS) -o $(IPA_LIB) ${IPA_OBJS} -ldl -pthread
fa593d66 315
c906108c
SS
316# Put the proper machine-specific files first, so M-. on a machine
317# specific routine gets the one for the correct machine.
318# The xyzzy stuff below deals with empty DEPFILES
319TAGS: ${TAGFILES}
2c0fc042 320 etags `find ${srcdir}/../config -name $(DEPRECATED_TM_FILE) -print` \
c906108c
SS
321 `find ${srcdir}/../config -name ${XM_FILE} -print` \
322 `find ${srcdir}/../config -name ${NAT_FILE} -print` \
323 `for i in yzzy ${DEPFILES}; do \
324 if [ x$$i != xyzzy ]; then \
325 echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \
326 fi; \
327 done` \
328 ${TAGFILES}
329tags: TAGS
330
331clean:
332 rm -f *.o ${ADD_FILES} *~
dd24457d 333 rm -f version.c
de7c3b4a 334 rm -f gdbserver$(EXEEXT) gdbreplay$(EXEEXT) core make.log
fa593d66 335 rm -f $(IPA_LIB)
9b25f2d3 336 rm -f aarch64.c
eb826dc6 337 rm -f reg-arm.c reg-bfin.c i386.c reg-ia64.c reg-m32r.c reg-m68k.c
90884b2b
L
338 rm -f reg-sh.c reg-sparc.c reg-spu.c amd64.c i386-linux.c
339 rm -f reg-cris.c reg-crisv32.c amd64-linux.c reg-xtensa.c
e1f58301 340 rm -f reg-tilegx.c reg-tilegx32.c
58d6951d
DJ
341 rm -f arm-with-iwmmxt.c
342 rm -f arm-with-vfpv2.c arm-with-vfpv3.c arm-with-neon.c
343 rm -f mips-linux.c mips64-linux.c
68f5f838 344 rm -f nios2-linux.c
0482b03b 345 rm -f powerpc-32.c powerpc-32l.c powerpc-64l.c powerpc-e500l.c
f4d9bade
UW
346 rm -f powerpc-altivec32l.c powerpc-cell32l.c powerpc-vsx32l.c
347 rm -f powerpc-altivec64l.c powerpc-cell64l.c powerpc-vsx64l.c
2c4ad781
TJB
348 rm -f powerpc-isa205-32l.c powerpc-isa205-64l.c
349 rm -f powerpc-isa205-altivec32l.c powerpc-isa205-vsx32l.c powerpc-isa205-altivec64l.c
350 rm -f powerpc-isa205-vsx64l.c
7803799a 351 rm -f s390-linux32.c s390-linux64.c s390x-linux64.c
4ac33720
UW
352 rm -f s390-linux32v1.c s390-linux32v2.c s390-linux64v1.c
353 rm -f s390-linux64v2.c s390x-linux64v1.c s390x-linux64v2.c
354 rm -f s390-te-linux32.c s390-te-linux64.c
58dbd541 355 rm -f tic6x-c64xp-linux.c tic6x-c64x-linux.c tic6x-c62x-linux.c
2c4ad781 356 rm -f xml-builtin.c stamp-xml
1570b33e 357 rm -f i386-avx.c i386-avx-linux.c
a196ebeb 358 rm -f i386-mpx.c i386-mpx-linux.c
01f9f808 359 rm -f i386-avx512.c i386-avx512-linux.c
1570b33e 360 rm -f amd64-avx.c amd64-avx-linux.c
a196ebeb 361 rm -f amd64-mpx.c amd64-mpx-linux.c
01f9f808 362 rm -f amd64-avx512.c amd64-avx512-linux.c
3a13a53b 363 rm -f i386-mmx.c i386-mmx-linux.c
4d47af5c
L
364 rm -f x32.c x32-linux.c
365 rm -f x32-avx.c x32-avx-linux.c
01f9f808 366 rm -f x32-avx512.c x32-avx512-linux.c
c971b7fa 367 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
c906108c 368
a59d1c82 369maintainer-clean realclean distclean: clean
c971b7fa
PA
370 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
371 rm -rf $(GNULIB_BUILDDIR)
372 rm -f Makefile config.status config.h stamp-h config.log
373 rm -f Makefile
374
375subdir_do: force
376 @for i in $(DODIRS); do \
377 case $$i in \
378 $(REQUIRED_SUBDIRS)) \
379 if [ ! -f ./$$i/Makefile ] ; then \
380 echo "Missing $$i/Makefile" >&2 ; \
381 exit 1 ; \
382 fi ;; \
383 esac ; \
384 if [ -f ./$$i/Makefile ] ; then \
385 if (cd ./$$i; \
386 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
387 else exit 1 ; fi ; \
388 else true ; fi ; \
389 done
c906108c 390
c3a3ccc7
DJ
391config.h: stamp-h ; @true
392stamp-h: config.in config.status
e0e76420 393 CONFIG_FILES="" CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
0729219d 394
7ea81414 395Makefile: Makefile.in config.status
0729219d 396 CONFIG_HEADERS="" $(SHELL) ./config.status
c906108c 397
c971b7fa
PA
398$(GNULIB_BUILDDIR)/Makefile: $(srcdir)/../gnulib/Makefile.in config.status
399 @cd $(GNULIB_BUILDDIR); CONFIG_FILES="Makefile" \
c9a1864a
YQ
400 CONFIG_COMMANDS="depfiles" \
401 CONFIG_HEADERS= \
402 CONFIG_LINKS= \
c971b7fa 403 $(SHELL) config.status
c9a1864a 404
270c9937 405config.status: configure configure.srv $(srcdir)/../../bfd/development.sh
d6e9fb05
JK
406 $(SHELL) ./config.status --recheck
407
c9a1864a
YQ
408# automatic rebuilding in automake-generated Makefiles requires
409# this rule in the toplevel Makefile, which, with GNU make, causes
410# the desired updates through the implicit regeneration of the Makefile
411# and all of its prerequisites.
412am--refresh:
413 @:
414
c906108c
SS
415force:
416
d6c2da54 417version.c: Makefile $(srcdir)/../version.in $(srcdir)/../../bfd/version.h $(srcdir)/../common/create-version.sh
01208463 418 $(SHELL) $(srcdir)/../common/create-version.sh $(srcdir)/.. \
bd885420 419 $(host_alias) $(target_alias) version.c
c906108c 420
fb1e4ffc
DJ
421xml-builtin.c: stamp-xml; @true
422stamp-xml: $(XML_DIR)/feature_to_c.sh Makefile $(XML_FILES)
423 rm -f xml-builtin.tmp
424 $(SHELL) $(XML_DIR)/feature_to_c.sh xml-builtin.tmp $(XML_FILES)
425 $(SHELL) $(srcdir)/../../move-if-change xml-builtin.tmp xml-builtin.c
426 echo stamp > stamp-xml
427
9b4b61c8 428.PRECIOUS: xml-builtin.c
fb1e4ffc 429
c906108c
SS
430# GNU Make has an annoying habit of putting *all* the Makefile variables
431# into the environment, unless you include this target as a circumvention.
432# Rumor is that this will be fixed (and this target can be removed)
433# in GNU Make 4.0.
434.NOEXPORT:
435
436# GNU Make 3.63 has a different problem: it keeps tacking command line
437# overrides onto the definition of $(MAKE). This variable setting
438# will remove them.
439MAKEOVERRIDES=
440
0c74b2a7 441regdat_sh = $(srcdir)/../regformats/regdat.sh
7a60ad40 442
0fb4aa4b
PA
443UST_CFLAGS = $(ustinc) -DCONFIG_UST_GDB_INTEGRATION
444
fa593d66
PA
445# Note, we only build the IPA if -fvisibility=hidden is supported in
446# the first place.
0fb4aa4b 447IPAGENT_CFLAGS = $(CPPFLAGS) $(INTERNAL_CFLAGS) $(UST_CFLAGS) \
3ba6ad0f 448 -fPIC -DIN_PROCESS_AGENT \
fa593d66
PA
449 -fvisibility=hidden
450
61c125b9
TT
451IPAGENT_COMPILE = $(COMPILE.pre) $(IPAGENT_CFLAGS) $(COMPILE.post)
452
fa593d66 453# In-process agent object rules
61c125b9
TT
454ax-ipa.o: ax.c
455 $(IPAGENT_COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
456 $(POSTCOMPILE)
457tracepoint-ipa.o: tracepoint.c
458 $(IPAGENT_COMPILE) $<
459 $(POSTCOMPILE)
460utils-ipa.o: utils.c
461 $(IPAGENT_COMPILE) $<
462 $(POSTCOMPILE)
463format-ipa.o: ../common/format.c
464 $(IPAGENT_COMPILE) $<
465 $(POSTCOMPILE)
466common-utils-ipa.o: ../common/common-utils.c
467 $(IPAGENT_COMPILE) $<
468 $(POSTCOMPILE)
469remote-utils-ipa.o: remote-utils.c
470 $(IPAGENT_COMPILE) $<
471 $(POSTCOMPILE)
472regcache-ipa.o: regcache.c
473 $(IPAGENT_COMPILE) $<
474 $(POSTCOMPILE)
475i386-linux-ipa.o: i386-linux.c
476 $(IPAGENT_COMPILE) $<
477 $(POSTCOMPILE)
478linux-i386-ipa.o: linux-i386-ipa.c
479 $(IPAGENT_COMPILE) $<
480 $(POSTCOMPILE)
481linux-amd64-ipa.o: linux-amd64-ipa.c
482 $(IPAGENT_COMPILE) $<
483 $(POSTCOMPILE)
484amd64-linux-ipa.o: amd64-linux.c
485 $(IPAGENT_COMPILE) $<
486 $(POSTCOMPILE)
3aee8918
PA
487tdesc-ipa.o: tdesc.c
488 $(IPAGENT_COMPILE) $<
489 $(POSTCOMPILE)
01fd3ea5
TT
490print-utils-ipa.o: ../common/print-utils.c
491 $(IPAGENT_COMPILE) $<
492 $(POSTCOMPILE)
0759a81e
YQ
493rsp-low-ipa.o: ../common/rsp-low.c
494 $(IPAGENT_COMPILE) $<
495 $(POSTCOMPILE)
ef87c8bb
GB
496errors-ipa.o: ../common/errors.c
497 $(IPAGENT_COMPILE) $<
498 $(POSTCOMPILE)
61c125b9
TT
499
500ax.o: ax.c
501 $(COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
502 $(POSTCOMPILE)
503
504signals.o: ../common/signals.c
505 $(COMPILE) $<
506 $(POSTCOMPILE)
01fd3ea5
TT
507print-utils.o: ../common/print-utils.c
508 $(COMPILE) $<
509 $(POSTCOMPILE)
9c3d6531
TT
510rsp-low.o: ../common/rsp-low.c
511 $(COMPILE) $<
512 $(POSTCOMPILE)
61c125b9
TT
513common-utils.o: ../common/common-utils.c
514 $(COMPILE) $<
515 $(POSTCOMPILE)
516vec.o: ../common/vec.c
517 $(COMPILE) $<
518 $(POSTCOMPILE)
519gdb_vecs.o: ../common/gdb_vecs.c
520 $(COMPILE) $<
521 $(POSTCOMPILE)
522xml-utils.o: ../common/xml-utils.c
523 $(COMPILE) $<
524 $(POSTCOMPILE)
61c125b9
TT
525ptid.o: ../common/ptid.c
526 $(COMPILE) $<
527 $(POSTCOMPILE)
528buffer.o: ../common/buffer.c
529 $(COMPILE) $<
530 $(POSTCOMPILE)
531format.o: ../common/format.c
532 $(COMPILE) $<
533 $(POSTCOMPILE)
614c279d
TT
534filestuff.o: ../common/filestuff.c
535 $(COMPILE) $<
536 $(POSTCOMPILE)
61c125b9
TT
537agent.o: ../common/agent.c
538 $(COMPILE) $<
539 $(POSTCOMPILE)
ef87c8bb
GB
540errors.o: ../common/errors.c
541 $(COMPILE) $<
542 $(POSTCOMPILE)
33b60d58 543waitstatus.o: ../target/waitstatus.c
3360c0bf
LM
544 $(COMPILE) $<
545 $(POSTCOMPILE)
2fa291ac 546
125f8a3d
GB
547# Native object files rules from ../nat
548
549i386-dregs.o: ../nat/i386-dregs.c
8e7e9910
PA
550 $(COMPILE) $<
551 $(POSTCOMPILE)
125f8a3d 552linux-btrace.o: ../nat/linux-btrace.c
8e7e9910
PA
553 $(COMPILE) $<
554 $(POSTCOMPILE)
125f8a3d
GB
555linux-osdata.o: ../nat/linux-osdata.c
556 $(COMPILE) $<
557 $(POSTCOMPILE)
558linux-procfs.o: ../nat/linux-procfs.c
559 $(COMPILE) $<
560 $(POSTCOMPILE)
561linux-ptrace.o: ../nat/linux-ptrace.c
3a8ee006
GB
562 $(COMPILE) $<
563 $(POSTCOMPILE)
96d7229d
LM
564linux-waitpid.o: ../nat/linux-waitpid.c
565 $(COMPILE) $<
566 $(POSTCOMPILE)
125f8a3d
GB
567mips-linux-watch.o: ../nat/mips-linux-watch.c
568 $(COMPILE) $<
569 $(POSTCOMPILE)
96d7229d 570
176eb98c
MS
571aarch64.c : $(srcdir)/../regformats/aarch64.dat $(regdat_sh)
572 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/aarch64.dat aarch64.c
0c74b2a7 573reg-arm.c : $(srcdir)/../regformats/reg-arm.dat $(regdat_sh)
75f83163 574 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-arm.dat reg-arm.c
fb1e4ffc 575arm-with-iwmmxt.c : $(srcdir)/../regformats/arm-with-iwmmxt.dat $(regdat_sh)
75f83163 576 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-iwmmxt.dat arm-with-iwmmxt.c
58d6951d
DJ
577arm-with-vfpv2.c : $(srcdir)/../regformats/arm-with-vfpv2.dat $(regdat_sh)
578 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-vfpv2.dat arm-with-vfpv2.c
58d6951d
DJ
579arm-with-vfpv3.c : $(srcdir)/../regformats/arm-with-vfpv3.dat $(regdat_sh)
580 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-vfpv3.dat arm-with-vfpv3.c
58d6951d
DJ
581arm-with-neon.c : $(srcdir)/../regformats/arm-with-neon.dat $(regdat_sh)
582 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-neon.dat arm-with-neon.c
eb826dc6
MF
583reg-bfin.c : $(srcdir)/../regformats/reg-bfin.dat $(regdat_sh)
584 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-bfin.dat reg-bfin.c
45b134e5 585reg-cris.c : $(srcdir)/../regformats/reg-cris.dat $(regdat_sh)
75f83163 586 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-cris.dat reg-cris.c
45b134e5 587reg-crisv32.c : $(srcdir)/../regformats/reg-crisv32.dat $(regdat_sh)
75f83163 588 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-crisv32.dat reg-crisv32.c
90884b2b
L
589i386.c : $(srcdir)/../regformats/i386/i386.dat $(regdat_sh)
590 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386.dat i386.c
90884b2b
L
591i386-linux.c : $(srcdir)/../regformats/i386/i386-linux.dat $(regdat_sh)
592 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-linux.dat i386-linux.c
1570b33e
L
593i386-avx.c : $(srcdir)/../regformats/i386/i386-avx.dat $(regdat_sh)
594 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx.dat i386-avx.c
1570b33e
L
595i386-avx-linux.c : $(srcdir)/../regformats/i386/i386-avx-linux.dat $(regdat_sh)
596 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx-linux.dat i386-avx-linux.c
01f9f808 597i386-avx512.c : $(srcdir)/../regformats/i386/i386-avx512.dat $(regdat_sh)
2b577b92 598 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx512.dat i386-avx512.c
01f9f808
MS
599i386-avx512-linux.c : $(srcdir)/../regformats/i386/i386-avx512-linux.dat $(regdat_sh)
600 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx512-linux.dat i386-avx512-linux.c
a196ebeb
WT
601i386-mpx.c : $(srcdir)/../regformats/i386/i386-mpx.dat $(regdat_sh)
602 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mpx.dat i386-mpx.c
603i386-mpx-linux.c : $(srcdir)/../regformats/i386/i386-mpx-linux.dat $(regdat_sh)
604 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mpx-linux.dat i386-mpx-linux.c
3a13a53b
L
605i386-mmx.c : $(srcdir)/../regformats/i386/i386-mmx.dat $(regdat_sh)
606 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mmx.dat i386-mmx.c
3a13a53b
L
607i386-mmx-linux.c : $(srcdir)/../regformats/i386/i386-mmx-linux.dat $(regdat_sh)
608 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mmx-linux.dat i386-mmx-linux.c
0c74b2a7 609reg-ia64.c : $(srcdir)/../regformats/reg-ia64.dat $(regdat_sh)
75f83163 610 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-ia64.dat reg-ia64.c
7cfbc4a0 611reg-m32r.c : $(srcdir)/../regformats/reg-m32r.dat $(regdat_sh)
75f83163 612 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-m32r.dat reg-m32r.c
0c74b2a7 613reg-m68k.c : $(srcdir)/../regformats/reg-m68k.dat $(regdat_sh)
75f83163 614 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-m68k.dat reg-m68k.c
9ac544ce
MK
615reg-cf.c : $(srcdir)/../regformats/reg-cf.dat $(regdat_sh)
616 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-cf.dat reg-cf.c
117ce543 617mips-linux.c : $(srcdir)/../regformats/mips-linux.dat $(regdat_sh)
75f83163 618 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips-linux.dat mips-linux.c
1faeff08
MR
619mips-dsp-linux.c : $(srcdir)/../regformats/mips-dsp-linux.dat $(regdat_sh)
620 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips-dsp-linux.dat mips-dsp-linux.c
117ce543 621mips64-linux.c : $(srcdir)/../regformats/mips64-linux.dat $(regdat_sh)
75f83163 622 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips64-linux.dat mips64-linux.c
1faeff08
MR
623mips64-dsp-linux.c : $(srcdir)/../regformats/mips64-dsp-linux.dat $(regdat_sh)
624 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips64-dsp-linux.dat mips64-dsp-linux.c
68f5f838
SL
625nios2-linux.c : $(srcdir)/../regformats/nios2-linux.dat $(regdat_sh)
626 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/nios2-linux.dat nios2-linux.c
0482b03b
JB
627powerpc-32.c : $(srcdir)/../regformats/rs6000/powerpc-32.dat $(regdat_sh)
628 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32.dat powerpc-32.c
7284e1be
UW
629powerpc-32l.c : $(srcdir)/../regformats/rs6000/powerpc-32l.dat $(regdat_sh)
630 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32l.dat powerpc-32l.c
7284e1be
UW
631powerpc-altivec32l.c : $(srcdir)/../regformats/rs6000/powerpc-altivec32l.dat $(regdat_sh)
632 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-altivec32l.dat powerpc-altivec32l.c
f4d9bade
UW
633powerpc-cell32l.c : $(srcdir)/../regformats/rs6000/powerpc-cell32l.dat $(regdat_sh)
634 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-cell32l.dat powerpc-cell32l.c
677c5bb1
LM
635powerpc-vsx32l.c : $(srcdir)/../regformats/rs6000/powerpc-vsx32l.dat $(regdat_sh)
636 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-vsx32l.dat powerpc-vsx32l.c
2c4ad781
TJB
637powerpc-isa205-32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-32l.dat $(regdat_sh)
638 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-32l.dat powerpc-isa205-32l.c
2c4ad781
TJB
639powerpc-isa205-altivec32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec32l.dat $(regdat_sh)
640 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec32l.dat powerpc-isa205-altivec32l.c
2c4ad781
TJB
641powerpc-isa205-vsx32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx32l.dat $(regdat_sh)
642 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx32l.dat powerpc-isa205-vsx32l.c
7284e1be
UW
643powerpc-e500l.c : $(srcdir)/../regformats/rs6000/powerpc-e500l.dat $(regdat_sh)
644 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-e500l.dat powerpc-e500l.c
7284e1be
UW
645powerpc-64l.c : $(srcdir)/../regformats/rs6000/powerpc-64l.dat $(regdat_sh)
646 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-64l.dat powerpc-64l.c
7284e1be
UW
647powerpc-altivec64l.c : $(srcdir)/../regformats/rs6000/powerpc-altivec64l.dat $(regdat_sh)
648 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-altivec64l.dat powerpc-altivec64l.c
f4d9bade
UW
649powerpc-cell64l.c : $(srcdir)/../regformats/rs6000/powerpc-cell64l.dat $(regdat_sh)
650 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-cell64l.dat powerpc-cell64l.c
677c5bb1
LM
651powerpc-vsx64l.c : $(srcdir)/../regformats/rs6000/powerpc-vsx64l.dat $(regdat_sh)
652 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-vsx64l.dat powerpc-vsx64l.c
2c4ad781
TJB
653powerpc-isa205-64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-64l.dat $(regdat_sh)
654 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-64l.dat powerpc-isa205-64l.c
2c4ad781
TJB
655powerpc-isa205-altivec64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec64l.dat $(regdat_sh)
656 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec64l.dat powerpc-isa205-altivec64l.c
2c4ad781
TJB
657powerpc-isa205-vsx64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx64l.dat $(regdat_sh)
658 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx64l.dat powerpc-isa205-vsx64l.c
7803799a
UW
659s390-linux32.c : $(srcdir)/../regformats/s390-linux32.dat $(regdat_sh)
660 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32.dat s390-linux32.c
c642a434
UW
661s390-linux32v1.c : $(srcdir)/../regformats/s390-linux32v1.dat $(regdat_sh)
662 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32v1.dat s390-linux32v1.c
c642a434
UW
663s390-linux32v2.c : $(srcdir)/../regformats/s390-linux32v2.dat $(regdat_sh)
664 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32v2.dat s390-linux32v2.c
7803799a
UW
665s390-linux64.c : $(srcdir)/../regformats/s390-linux64.dat $(regdat_sh)
666 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64.dat s390-linux64.c
c642a434
UW
667s390-linux64v1.c : $(srcdir)/../regformats/s390-linux64v1.dat $(regdat_sh)
668 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64v1.dat s390-linux64v1.c
c642a434
UW
669s390-linux64v2.c : $(srcdir)/../regformats/s390-linux64v2.dat $(regdat_sh)
670 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64v2.dat s390-linux64v2.c
4ac33720
UW
671s390-te-linux64.c : $(srcdir)/../regformats/s390-te-linux64.dat $(regdat_sh)
672 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-te-linux64.dat s390-te-linux64.c
7803799a
UW
673s390x-linux64.c : $(srcdir)/../regformats/s390x-linux64.dat $(regdat_sh)
674 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64.dat s390x-linux64.c
c642a434
UW
675s390x-linux64v1.c : $(srcdir)/../regformats/s390x-linux64v1.dat $(regdat_sh)
676 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64v1.dat s390x-linux64v1.c
c642a434
UW
677s390x-linux64v2.c : $(srcdir)/../regformats/s390x-linux64v2.dat $(regdat_sh)
678 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64v2.dat s390x-linux64v2.c
4ac33720
UW
679s390x-te-linux64.c : $(srcdir)/../regformats/s390x-te-linux64.dat $(regdat_sh)
680 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-te-linux64.dat s390x-te-linux64.c
58dbd541 681
58dbd541
YQ
682tic6x-c64xp-linux.c : $(srcdir)/../regformats/tic6x-c64xp-linux.dat $(regdat_sh)
683 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c64xp-linux.dat tic6x-c64xp-linux.c
58dbd541
YQ
684tic6x-c64x-linux.c : $(srcdir)/../regformats/tic6x-c64x-linux.dat $(regdat_sh)
685 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c64x-linux.dat tic6x-c64x-linux.c
58dbd541
YQ
686tic6x-c62x-linux.c : $(srcdir)/../regformats/tic6x-c62x-linux.dat $(regdat_sh)
687 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c62x-linux.dat tic6x-c62x-linux.c
688
0c74b2a7 689reg-sh.c : $(srcdir)/../regformats/reg-sh.dat $(regdat_sh)
75f83163 690 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-sh.dat reg-sh.c
dfb64f85
DJ
691reg-sparc64.c : $(srcdir)/../regformats/reg-sparc64.dat $(regdat_sh)
692 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-sparc64.dat reg-sparc64.c
a13e2c95 693reg-spu.c : $(srcdir)/../regformats/reg-spu.dat $(regdat_sh)
75f83163 694 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-spu.dat reg-spu.c
90884b2b
L
695amd64.c : $(srcdir)/../regformats/i386/amd64.dat $(regdat_sh)
696 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64.dat amd64.c
90884b2b
L
697amd64-linux.c : $(srcdir)/../regformats/i386/amd64-linux.dat $(regdat_sh)
698 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-linux.dat amd64-linux.c
1570b33e
L
699amd64-avx.c : $(srcdir)/../regformats/i386/amd64-avx.dat $(regdat_sh)
700 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx.dat amd64-avx.c
1570b33e
L
701amd64-avx-linux.c : $(srcdir)/../regformats/i386/amd64-avx-linux.dat $(regdat_sh)
702 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx-linux.dat amd64-avx-linux.c
01f9f808
MS
703amd64-avx512.c : $(srcdir)/../regformats/i386/amd64-avx512.dat $(regdat_sh)
704 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx512.dat amd64-avx512.c
705amd64-avx512-linux.c : $(srcdir)/../regformats/i386/amd64-avx512-linux.dat $(regdat_sh)
706 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx512-linux.dat amd64-avx512-linux.c
707amd64-mpx.c : $(srcdir)/../regformats/i386/amd64-mpx.dat $(regdat_sh)
708 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-mpx.dat amd64-mpx.c
a196ebeb
WT
709amd64-mpx-linux.c : $(srcdir)/../regformats/i386/amd64-mpx-linux.dat $(regdat_sh)
710 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-mpx-linux.dat amd64-mpx-linux.c
4d47af5c
L
711x32.c : $(srcdir)/../regformats/i386/x32.dat $(regdat_sh)
712 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32.dat x32.c
4d47af5c
L
713x32-linux.c : $(srcdir)/../regformats/i386/x32-linux.dat $(regdat_sh)
714 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-linux.dat x32-linux.c
4d47af5c
L
715x32-avx.c : $(srcdir)/../regformats/i386/x32-avx.dat $(regdat_sh)
716 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx.dat x32-avx.c
4d47af5c
L
717x32-avx-linux.c : $(srcdir)/../regformats/i386/x32-avx-linux.dat $(regdat_sh)
718 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx-linux.dat x32-avx-linux.c
01f9f808
MS
719x32-avx512.c : $(srcdir)/../regformats/i386/x32-avx512.dat $(regdat_sh)
720 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx512.dat x32-avx512.c
721x32-avx512-linux.c : $(srcdir)/../regformats/i386/x32-avx512-linux.dat $(regdat_sh)
722 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/x32-avx512-linux.dat x32-avx512-linux.c
1525d545
MG
723reg-xtensa.c : $(srcdir)/../regformats/reg-xtensa.dat $(regdat_sh)
724 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-xtensa.dat reg-xtensa.c
65f479b6
PA
725reg-tilegx.c : $(srcdir)/../regformats/reg-tilegx.dat $(regdat_sh)
726 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-tilegx.dat reg-tilegx.c
e1f58301
JW
727reg-tilegx32.c : $(srcdir)/../regformats/reg-tilegx32.dat $(regdat_sh)
728 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-tilegx32.dat reg-tilegx32.c
61c125b9
TT
729
730#
731# Dependency tracking. Most of this is conditional on GNU Make being
732# found by configure; if GNU Make is not found, we fall back to a
733# simpler scheme.
734#
735
736@GMAKE_TRUE@ifeq ($(DEPMODE),depmode=gcc3)
737# Note that we put the dependencies into a .Tpo file, then move them
738# into place if the compile succeeds. We need this because gcc does
739# not atomically write the dependency output file.
740@GMAKE_TRUE@override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \
741@GMAKE_TRUE@ -MF $(DEPDIR)/$(basename $(@F)).Tpo
742@GMAKE_TRUE@override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \
743@GMAKE_TRUE@ $(DEPDIR)/$(basename $(@F)).Po
744@GMAKE_TRUE@else
745@GMAKE_TRUE@override COMPILE.pre = source='$<' object='$@' libtool=no \
746@GMAKE_TRUE@ DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC)
747# depcomp handles atomicity for us, so we don't need a postcompile
748# step.
749@GMAKE_TRUE@override POSTCOMPILE =
750@GMAKE_TRUE@endif
751
752# A list of all the objects we might care about in this build, for
753# dependency tracking.
754all_object_files = $(OBS) $(GDBREPLAY_OBS)
755
756# Ensure that generated files are created early. Use order-only
757# dependencies if available. They require GNU make 3.80 or newer,
758# and the .VARIABLES variable was introduced at the same time.
759@GMAKE_TRUE@ifdef .VARIABLES
760@GMAKE_TRUE@$(all_object_files): | $(generated_files)
761@GMAKE_TRUE@else
762$(all_object_files) : $(generated_files)
763@GMAKE_TRUE@endif
764
765# Dependencies.
766@GMAKE_TRUE@-include $(patsubst %.o, $(DEPDIR)/%.Po, $(all_object_files))
767
c906108c 768# This is the end of "Makefile.in".
This page took 1.571155 seconds and 4 git commands to generate.