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