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