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