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