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