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