1 # Copyright (C) 1989-2017 Free Software Foundation, Inc.
3 # This file is part of GDB.
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.
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.
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/>.
18 # Please keep lists in this file sorted alphabetically, with one item per line.
19 # See gdb/Makefile.in for guidelines on ordering files and directories.
22 exec_prefix = @
exec_prefix@
24 host_alias
= @host_noncanonical@
25 target_alias
= @target_noncanonical@
26 program_transform_name
= @program_transform_name@
29 tooldir
= $(libdir)/$(target_alias
)
31 datarootdir
= @datarootdir@
34 man1dir = $(mandir)/man1
35 man2dir = $(mandir)/man2
36 man3dir = $(mandir)/man3
37 man4dir = $(mandir)/man4
38 man5dir = $(mandir)/man5
39 man6dir = $(mandir)/man6
40 man7dir = $(mandir)/man7
41 man8dir = $(mandir)/man8
42 man9dir = $(mandir)/man9
44 htmldir
= $(prefix)/html
45 includedir = @
includedir@
51 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
52 INSTALL_DATA
= @INSTALL_DATA@
57 CXX_DIALECT
= @CXX_DIALECT@
61 # Dependency tracking information.
64 depcomp
= $(SHELL
) $(srcdir)/..
/depcomp
66 # Note that these are overridden by GNU make-specific code below if
67 # GNU make is used. The overrides implement dependency tracking.
68 COMPILE.pre
= $(CXX
) $(CXX_DIALECT
)
69 COMPILE.post
= -c
-o
$@
70 COMPILE
= $(COMPILE.pre
) $(INTERNAL_CFLAGS
) $(COMPILE.post
)
73 # Directory containing source files. Don't clean up the spacing,
74 # this exact string is matched for by the "configure" script.
76 abs_top_srcdir
= @abs_top_srcdir@
77 abs_srcdir
= @abs_srcdir@
80 # It is also possible that you will need to add -I/usr/include/sys to the
81 # CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
82 # is where it should be according to Posix).
84 # Set this up with gcc if you have gnu ld and the loader will print out
85 # line numbers for undefinded refs.
87 CC_LD
= $(CXX
) $(CXX_DIALECT
)
89 # Where is the "include" directory? Traditionally ../include or ./include
90 INCLUDE_DIR
= ${srcdir}/..
/..
/include
91 INCLUDE_DEP
= $$(INCLUDE_DIR
)
93 LIBIBERTY_BUILDDIR
= build-libiberty-gdbserver
94 LIBIBERTY
= $(LIBIBERTY_BUILDDIR
)/libiberty.a
96 # Where is ust? These will be empty if ust was not available.
101 GNULIB_BUILDDIR
= build-gnulib-gdbserver
102 LIBGNU
= $(GNULIB_BUILDDIR
)/import
/libgnu.a
103 INCGNU
= -I
$(srcdir)/..
/gnulib
/import
-I
$(GNULIB_BUILDDIR
)/import
105 # Generated headers in the gnulib directory. These must be listed
106 # so that they are generated before other files are compiled.
107 GNULIB_H
= $(GNULIB_BUILDDIR
)/import
/string.h @GNULIB_STDINT_H@
109 # All the includes used for CFLAGS and for lint.
110 # -I. for config files.
111 # -I${srcdir} for our headers.
112 # -I$(srcdir)/../regformats for regdef.h.
114 # We do not include ../target or ../nat in here because headers
115 # in those directories should be included with the subdirectory.
116 # e.g.: "target/wait.h".
118 INCLUDE_CFLAGS
= -I.
-I
${srcdir} -I
$(srcdir)/..
/common \
119 -I
$(srcdir)/..
/regformats
-I
$(srcdir)/..
-I
$(INCLUDE_DIR
) \
122 # M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
123 # from the config/ directory.
124 GLOBAL_CFLAGS
= ${MT_CFLAGS} ${MH_CFLAGS}
125 #PROFILE_CFLAGS = -pg
127 WARN_CFLAGS
= @WARN_CFLAGS@
128 WERROR_CFLAGS
= @WERROR_CFLAGS@
130 WARN_CFLAGS_NO_FORMAT
= `echo " $(WARN_CFLAGS) " \
131 | sed "s/ -Wformat-nonliteral / -Wno-format-nonliteral /g"`
133 # These are specifically reserved for setting from the command line
134 # when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
136 CXXFLAGS
= @CXXFLAGS@
137 CPPFLAGS
= @CPPFLAGS@
139 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
140 INTERNAL_CFLAGS_BASE
= ${CXXFLAGS} ${GLOBAL_CFLAGS} \
141 ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CPPFLAGS}
142 INTERNAL_WARN_CFLAGS
= ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS
)
143 INTERNAL_CFLAGS
= ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS
) -DGDBSERVER
145 # LDFLAGS is specifically reserved for setting from the command line
148 INTERNAL_LDFLAGS
= $(LDFLAGS
) @RDYNAMIC@
150 # All source files that go into linking GDB remote server.
155 $(srcdir)/gdbreplay.c \
157 $(srcdir)/hostio-errno.c \
158 $(srcdir)/i387-fp.c \
159 $(srcdir)/inferiors.c \
160 $(srcdir)/linux-aarch64-low.c \
161 $(srcdir)/linux-arm-low.c \
162 $(srcdir)/linux-bfin-low.c \
163 $(srcdir)/linux-cris-low.c \
164 $(srcdir)/linux-crisv32-low.c \
165 $(srcdir)/linux-ia64-low.c \
166 $(srcdir)/linux-low.c \
167 $(srcdir)/linux-m32r-low.c \
168 $(srcdir)/linux-m68k-low.c \
169 $(srcdir)/linux-mips-low.c \
170 $(srcdir)/linux-nios2-low.c \
171 $(srcdir)/linux-ppc-low.c \
172 $(srcdir)/linux-s390-low.c \
173 $(srcdir)/linux-sh-low.c \
174 $(srcdir)/linux-sparc-low.c \
175 $(srcdir)/linux-tile-low.c \
176 $(srcdir)/linux-x86-low.c \
177 $(srcdir)/linux-xtensa-low.c \
178 $(srcdir)/mem-break.c \
179 $(srcdir)/proc-service.c \
180 $(srcdir)/proc-service.list \
181 $(srcdir)/regcache.c \
182 $(srcdir)/remote-utils.c \
186 $(srcdir)/thread-db.c \
188 $(srcdir)/win32-arm-low.c \
189 $(srcdir)/win32-i386-low.c \
190 $(srcdir)/win32-low.c \
191 $(srcdir)/wincecompat.c \
192 $(srcdir)/x86-low.c \
193 $(srcdir)/arch
/arm.c \
194 $(srcdir)/arch
/arm-get-next-pcs.c \
195 $(srcdir)/arch
/arm-linux.c \
196 $(srcdir)/common
/btrace-common.c \
197 $(srcdir)/common
/buffer.c \
198 $(srcdir)/common
/cleanups.c \
199 $(srcdir)/common
/common-debug.c \
200 $(srcdir)/common
/common-exceptions.c \
201 $(srcdir)/common
/common-regcache.c \
202 $(srcdir)/common
/common-utils.c \
203 $(srcdir)/common
/errors.c \
204 $(srcdir)/common
/environ.c \
205 $(srcdir)/common
/fileio.c \
206 $(srcdir)/common
/filestuff.c \
207 $(srcdir)/common
/gdb_vecs.c \
208 $(srcdir)/common
/new-op.c \
209 $(srcdir)/common
/print-utils.c \
210 $(srcdir)/common
/ptid.c \
211 $(srcdir)/common
/rsp-low.c \
212 $(srcdir)/common
/vec.c \
213 $(srcdir)/common
/xml-utils.c \
214 $(srcdir)/nat
/linux-btrace.c \
215 $(srcdir)/nat
/linux-namespaces.c \
216 $(srcdir)/nat
/linux-osdata.c \
217 $(srcdir)/nat
/linux-personality.c \
218 $(srcdir)/nat
/mips-linux-watch.c \
219 $(srcdir)/nat
/ppc-linux.c \
220 $(srcdir)/target
/waitstatus.c
222 DEPFILES
= @GDBSERVER_DEPFILES@
227 TAGFILES
= $(SOURCES
) ${HFILES} ${ALLPARAM} ${POSSLIBS}
236 common-exceptions.o \
260 signals-state-save-restore.o \
274 GDBREPLAY_OBS
= gdbreplay.o version.o
275 GDBSERVER_LIBS
= @GDBSERVER_LIBS@
277 CDEPS
= $(srcdir)/proc-service.list
279 # XML files to compile in to gdbserver, if any.
280 XML_DIR
= $(srcdir)/..
/features
281 XML_FILES
= @srv_xmlfiles@
282 XML_BUILTIN
= @srv_xmlbuiltin@
284 IPA_DEPFILES
= @IPA_DEPFILES@
285 extra_libraries
= @extra_libraries@
287 SUBDIRS
= $(GNULIB_BUILDDIR
) $(LIBIBERTY_BUILDDIR
)
288 CLEANDIRS
= $(SUBDIRS
)
290 # List of subdirectories in the build tree that must exist.
291 # This is used to force build failures in existing trees when
292 # a new directory is added.
293 # The format here is for the `case' shell command.
294 REQUIRED_SUBDIRS
= $(GNULIB_BUILDDIR
) |
$(LIBIBERTY_BUILDDIR
)
298 "exec_prefix=$(exec_prefix)" \
299 "infodir=$(infodir)" \
300 "datarootdir=$(datarootdir)" \
302 "htmldir=$(htmldir)" \
306 "datadir=$(datadir)" \
307 "includedir=$(includedir)" \
308 "against=$(against)" \
309 "DESTDIR=$(DESTDIR)" \
311 "AR_FLAGS=$(AR_FLAGS)" \
315 "CXXFLAGS=$(CXXFLAGS)" \
316 "DLLTOOL=$(DLLTOOL)" \
317 "LDFLAGS=$(LDFLAGS)" \
319 "MAKEINFO=$(MAKEINFO)" \
320 "MAKEHTML=$(MAKEHTML)" \
321 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
322 "INSTALL=$(INSTALL)" \
323 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
324 "INSTALL_DATA=$(INSTALL_DATA)" \
325 "RUNTEST=$(RUNTEST)" \
326 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
328 # All generated files which can be included by another file.
329 generated_files
= config.h
$(GNULIB_H
)
331 all: gdbserver
$(EXEEXT
) gdbreplay
$(EXEEXT
) $(extra_libraries
)
332 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
334 # Traditionally "install" depends on "all". But it may be useful
335 # not to; for example, if the user has made some trivial change to a
336 # source file and doesn't care about rebuilding or just wants to save the
337 # time it takes for make to check that all is up to date.
338 # install-only is intended to address that need.
340 @
$(MAKE
) $(FLAGS_TO_PASS
) install-only
343 n
=`echo gdbserver | sed '$(program_transform_name)'`; \
344 if
[ x
$$n = x
]; then n
=gdbserver
; else true
; fi
; \
345 if
[ x
"$(IPA_DEPFILES)" != x
]; then \
346 $(SHELL
) $(srcdir)/..
/..
/mkinstalldirs
$(DESTDIR
)$(libdir); \
347 $(INSTALL_PROGRAM
) $(IPA_LIB
) $(DESTDIR
)$(libdir)/$(IPA_LIB
); \
349 $(SHELL
) $(srcdir)/..
/..
/mkinstalldirs
$(DESTDIR
)$(bindir); \
350 $(INSTALL_PROGRAM
) gdbserver
$(EXEEXT
) $(DESTDIR
)$(bindir)/$$n$(EXEEXT
)
351 # Note that we run install and not install-only, as the latter
352 # is not part of GNU standards and in particular not provided
354 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=install "DODIRS=$(SUBDIRS)" subdir_do
357 n
=`echo gdbserver | sed '$(program_transform_name)'`; \
358 if
[ x
$$n = x
]; then n
=gdbserver
; else true
; fi
; \
359 rm -f
$(DESTDIR
)/$(bindir)/$$n$(EXEEXT
) $(DESTDIR
)$(man1dir)/$$n.1
360 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
370 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
372 gdbserver
$(EXEEXT
): $(OBS
) ${ADD_DEPS} ${CDEPS} $(LIBGNU
) $(LIBIBERTY
)
373 rm -f gdbserver
$(EXEEXT
)
374 $(CC_LD
) $(INTERNAL_CFLAGS
) $(INTERNAL_LDFLAGS
) -o gdbserver
$(EXEEXT
) $(OBS
) \
375 $(LIBGNU
) $(LIBIBERTY
) $(GDBSERVER_LIBS
) $(XM_CLIBS
)
377 $(LIBGNU
) $(LIBIBERTY
) $(GNULIB_H
): all-lib
378 all-lib
: $(GNULIB_BUILDDIR
)/Makefile
$(LIBIBERTY_BUILDDIR
)/Makefile
379 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=all DODIRS
="$(SUBDIRS)" subdir_do
382 gdbreplay
$(EXEEXT
): $(GDBREPLAY_OBS
) $(LIBGNU
) $(LIBIBERTY
)
383 rm -f gdbreplay
$(EXEEXT
)
384 $(CC_LD
) $(INTERNAL_CFLAGS
) $(INTERNAL_LDFLAGS
) -o gdbreplay
$(EXEEXT
) $(GDBREPLAY_OBS
) \
385 $(XM_CLIBS
) $(LIBGNU
) $(LIBIBERTY
)
387 IPA_OBJS
= ax-ipa.o tracepoint-ipa.o format-ipa.o utils-ipa.o \
388 regcache-ipa.o remote-utils-ipa.o common-utils-ipa.o \
389 tdesc-ipa.o print-utils-ipa.o rsp-low-ipa.o errors-ipa.o \
392 IPA_LIB
= libinproctrace.so
394 $(IPA_LIB
): $(IPA_OBJS
) ${ADD_DEPS} ${CDEPS}
396 $(CC_LD
) -shared
-fPIC
-Wl
,--soname
=$(IPA_LIB
) -Wl
,--no-undefined
$(INTERNAL_CFLAGS
) \
397 $(INTERNAL_LDFLAGS
) -o
$(IPA_LIB
) ${IPA_OBJS} -ldl
-pthread
399 # Put the proper machine-specific files first, so M-. on a machine
400 # specific routine gets the one for the correct machine.
401 # The xyzzy stuff below deals with empty DEPFILES
403 etags
`find ${srcdir}/../config -name $(DEPRECATED_TM_FILE) -print` \
404 `find ${srcdir}/../config -name ${XM_FILE} -print` \
405 `find ${srcdir}/../config -name ${NAT_FILE} -print` \
406 `for i in yzzy ${DEPFILES}; do \
407 if [ x$$i != xyzzy ]; then \
408 echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \
415 rm -f
*.o
${ADD_FILES} *~
417 rm -f gdbserver
$(EXEEXT
) gdbreplay
$(EXEEXT
) core make.log
420 rm -f reg-arm.c reg-bfin.c i386.c reg-ia64.c reg-m32r.c reg-m68k.c
421 rm -f reg-sh.c reg-sparc.c reg-spu.c amd64.c i386-linux.c
422 rm -f reg-cris.c reg-crisv32.c amd64-linux.c reg-xtensa.c
423 rm -f reg-tilegx.c reg-tilegx32.c
424 rm -f arm-with-iwmmxt.c
425 rm -f arm-with-vfpv2.c arm-with-vfpv3.c arm-with-neon.c
426 rm -f mips-linux.c mips-dsp-linux.c
427 rm -f mips64-linux.c mips64-dsp-linux.c
429 rm -f powerpc-32.c powerpc-32l.c powerpc-64l.c powerpc-e500l.c
430 rm -f powerpc-altivec32l.c powerpc-cell32l.c powerpc-vsx32l.c
431 rm -f powerpc-altivec64l.c powerpc-cell64l.c powerpc-vsx64l.c
432 rm -f powerpc-isa205-32l.c powerpc-isa205-64l.c
433 rm -f powerpc-isa205-altivec32l.c powerpc-isa205-vsx32l.c powerpc-isa205-altivec64l.c
434 rm -f powerpc-isa205-vsx64l.c
435 rm -f s390-linux32.c s390-linux64.c s390x-linux64.c
436 rm -f s390-linux32v1.c s390-linux32v2.c s390-linux64v1.c
437 rm -f s390-linux64v2.c s390x-linux64v1.c s390x-linux64v2.c
438 rm -f s390-te-linux64.c s390x-te-linux64.c
439 rm -f s390-vx-linux64.c s390x-vx-linux64.c
440 rm -f s390-tevx-linux64.c s390x-tevx-linux64.c
441 rm -f tic6x-c64xp-linux.c tic6x-c64x-linux.c tic6x-c62x-linux.c
442 rm -f xml-builtin.c stamp-xml
443 rm -f i386-avx.c i386-avx-linux.c
444 rm -f i386-mpx.c i386-mpx-linux.c
445 rm -f i386-avx-mpx.c i386-avx-mpx-linux.c
446 rm -f i386-avx-avx512.c i386-avx-avx512-linux.c
447 rm -f i386-avx-mpx-avx512-pku.c i386-avx-mpx-avx512-pku-linux.c
448 rm -f amd64-avx.c amd64-avx-linux.c
449 rm -f amd64-mpx.c amd64-mpx-linux.c
450 rm -f amd64-avx-mpx.c amd64-avx-mpx-linux.c
451 rm -f amd64-avx-avx512.c amd64-avx-avx512-linux.c
452 rm -f amd64-avx-mpx-avx512-pku.c amd64-avx-mpx-avx512-pku-linux.c
453 rm -f i386-mmx.c i386-mmx-linux.c
454 rm -f x32.c x32-linux.c
455 rm -f x32-avx.c x32-avx-linux.c
456 rm -f x32-avx-avx512.c x32-avx-avx512-linux.c
457 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
459 maintainer-clean
realclean distclean: clean
460 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
461 rm -rf
$(GNULIB_BUILDDIR
)
462 rm -f Makefile config.status config.h stamp-h config.log
466 @for i in
$(DODIRS
); do \
468 $(REQUIRED_SUBDIRS
)) \
469 if
[ ! -f .
/$$i/Makefile
] ; then \
470 echo
"Missing $$i/Makefile" >&2 ; \
474 if
[ -f .
/$$i/Makefile
] ; then \
476 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
481 config.h
: stamp-h
; @true
482 stamp-h
: config.in config.status
483 CONFIG_FILES
="" CONFIG_HEADERS
=config.h
:config.in
$(SHELL
) .
/config.status
485 Makefile
: Makefile.in config.status
486 CONFIG_HEADERS
="" $(SHELL
) .
/config.status
488 $(GNULIB_BUILDDIR
)/Makefile
: $(srcdir)/..
/gnulib
/Makefile.in config.status
489 @cd
$(GNULIB_BUILDDIR
); CONFIG_FILES
="Makefile" \
490 CONFIG_COMMANDS
="depfiles" \
493 $(SHELL
) config.status
495 config.status
: configure configure.srv
$(srcdir)/..
/..
/bfd
/development.sh
496 $(SHELL
) .
/config.status
--recheck
498 # automatic rebuilding in automake-generated Makefiles requires
499 # this rule in the toplevel Makefile, which, with GNU make, causes
500 # the desired updates through the implicit regeneration of the Makefile
501 # and all of its prerequisites.
507 version.c
: Makefile
$(srcdir)/..
/version.in
$(srcdir)/..
/..
/bfd
/version.h
$(srcdir)/..
/common
/create-version.sh
508 $(SHELL
) $(srcdir)/..
/common
/create-version.sh
$(srcdir)/.. \
509 $(host_alias
) $(target_alias
) version.c
511 xml-builtin.c
: stamp-xml
; @true
512 stamp-xml
: $(XML_DIR
)/feature_to_c.sh Makefile
$(XML_FILES
)
513 rm -f xml-builtin.tmp
514 $(SHELL
) $(XML_DIR
)/feature_to_c.sh xml-builtin.tmp
$(XML_FILES
)
515 $(SHELL
) $(srcdir)/..
/..
/move-if-change xml-builtin.tmp xml-builtin.c
516 echo stamp
> stamp-xml
518 .PRECIOUS
: xml-builtin.c
520 # GNU Make has an annoying habit of putting *all* the Makefile variables
521 # into the environment, unless you include this target as a circumvention.
522 # Rumor is that this will be fixed (and this target can be removed)
526 # GNU Make 3.63 has a different problem: it keeps tacking command line
527 # overrides onto the definition of $(MAKE). This variable setting
531 regdat_sh
= $(srcdir)/..
/regformats
/regdat.sh
533 UST_CFLAGS
= $(ustinc
) -DCONFIG_UST_GDB_INTEGRATION
535 # Note, we only build the IPA if -fvisibility=hidden is supported in
537 IPAGENT_CFLAGS
= $(INTERNAL_CFLAGS
) $(UST_CFLAGS
) \
538 -fPIC
-DIN_PROCESS_AGENT \
541 IPAGENT_COMPILE
= $(COMPILE.pre
) $(IPAGENT_CFLAGS
) $(COMPILE.post
)
543 # In-process agent object rules
545 $(IPAGENT_COMPILE
) $(WARN_CFLAGS_NO_FORMAT
) $<
547 tracepoint-ipa.o
: tracepoint.c
548 $(IPAGENT_COMPILE
) $<
551 $(IPAGENT_COMPILE
) $<
553 format-ipa.o
: ..
/common
/format.c
554 $(IPAGENT_COMPILE
) $<
556 common-utils-ipa.o
: ..
/common
/common-utils.c
557 $(IPAGENT_COMPILE
) $<
559 remote-utils-ipa.o
: remote-utils.c
560 $(IPAGENT_COMPILE
) $<
562 regcache-ipa.o
: regcache.c
563 $(IPAGENT_COMPILE
) $<
565 i386-linux-ipa.o
: i386-linux.c
566 $(IPAGENT_COMPILE
) $<
568 i386-mmx-linux-ipa.o
: i386-mmx-linux.c
569 $(IPAGENT_COMPILE
) $<
571 i386-avx-linux-ipa.o
: i386-avx-linux.c
572 $(IPAGENT_COMPILE
) $<
574 i386-mpx-linux-ipa.o
: i386-mpx-linux.c
575 $(IPAGENT_COMPILE
) $<
577 i386-avx-mpx-linux-ipa.o
: i386-avx-mpx-linux.c
578 $(IPAGENT_COMPILE
) $<
580 i386-avx-avx512-linux-ipa.o
: i386-avx-avx512-linux.c
581 $(IPAGENT_COMPILE
) $<
583 i386-avx-mpx-avx512-pku-linux-ipa.o
: i386-avx-mpx-avx512-pku-linux.c
584 $(IPAGENT_COMPILE
) $<
586 linux-i386-ipa.o
: linux-i386-ipa.c
587 $(IPAGENT_COMPILE
) $<
589 linux-amd64-ipa.o
: linux-amd64-ipa.c
590 $(IPAGENT_COMPILE
) $<
592 amd64-linux-ipa.o
: amd64-linux.c
593 $(IPAGENT_COMPILE
) $<
595 amd64-avx-linux-ipa.o
: amd64-avx-linux.c
596 $(IPAGENT_COMPILE
) $<
598 amd64-mpx-linux-ipa.o
: amd64-mpx-linux.c
599 $(IPAGENT_COMPILE
) $<
601 amd64-avx-mpx-linux-ipa.o
: amd64-avx-mpx-linux.c
602 $(IPAGENT_COMPILE
) $<
604 amd64-avx-avx512-linux-ipa.o
: amd64-avx-avx512-linux.c
605 $(IPAGENT_COMPILE
) $<
607 amd64-avx-mpx-avx512-pku-linux-ipa.o
: amd64-avx-mpx-avx512-pku-linux.c
608 $(IPAGENT_COMPILE
) $<
610 linux-aarch64-ipa.o
: linux-aarch64-ipa.c
611 $(IPAGENT_COMPILE
) $<
613 aarch64-ipa.o
: aarch64.c
614 $(IPAGENT_COMPILE
) $<
616 linux-s390-ipa.o
: linux-s390-ipa.c
617 $(IPAGENT_COMPILE
) $<
619 s390-linux32-ipa.o
: s390-linux32.c
620 $(IPAGENT_COMPILE
) $<
622 s390-linux32v1-ipa.o
: s390-linux32v1.c
623 $(IPAGENT_COMPILE
) $<
625 s390-linux32v2-ipa.o
: s390-linux32v2.c
626 $(IPAGENT_COMPILE
) $<
628 s390-linux64-ipa.o
: s390-linux64.c
629 $(IPAGENT_COMPILE
) $<
631 s390-linux64v1-ipa.o
: s390-linux64v1.c
632 $(IPAGENT_COMPILE
) $<
634 s390-linux64v2-ipa.o
: s390-linux64v2.c
635 $(IPAGENT_COMPILE
) $<
637 s390-te-linux64-ipa.o
: s390-te-linux64.c
638 $(IPAGENT_COMPILE
) $<
640 s390-vx-linux64-ipa.o
: s390-vx-linux64.c
641 $(IPAGENT_COMPILE
) $<
643 s390-tevx-linux64-ipa.o
: s390-tevx-linux64.c
644 $(IPAGENT_COMPILE
) $<
646 s390x-linux64-ipa.o
: s390x-linux64.c
647 $(IPAGENT_COMPILE
) $<
649 s390x-linux64v1-ipa.o
: s390x-linux64v1.c
650 $(IPAGENT_COMPILE
) $<
652 s390x-linux64v2-ipa.o
: s390x-linux64v2.c
653 $(IPAGENT_COMPILE
) $<
655 s390x-te-linux64-ipa.o
: s390x-te-linux64.c
656 $(IPAGENT_COMPILE
) $<
658 s390x-vx-linux64-ipa.o
: s390x-vx-linux64.c
659 $(IPAGENT_COMPILE
) $<
661 s390x-tevx-linux64-ipa.o
: s390x-tevx-linux64.c
662 $(IPAGENT_COMPILE
) $<
664 linux-ppc-ipa.o
: linux-ppc-ipa.c
665 $(IPAGENT_COMPILE
) $<
667 powerpc-32l-ipa.o
: powerpc-32l.c
668 $(IPAGENT_COMPILE
) $<
670 powerpc-altivec32l-ipa.o
: powerpc-altivec32l.c
671 $(IPAGENT_COMPILE
) $<
673 powerpc-cell32l-ipa.o
: powerpc-cell32l.c
674 $(IPAGENT_COMPILE
) $<
676 powerpc-vsx32l-ipa.o
: powerpc-vsx32l.c
677 $(IPAGENT_COMPILE
) $<
679 powerpc-isa205-32l-ipa.o
: powerpc-isa205-32l.c
680 $(IPAGENT_COMPILE
) $<
682 powerpc-isa205-altivec32l-ipa.o
: powerpc-isa205-altivec32l.c
683 $(IPAGENT_COMPILE
) $<
685 powerpc-isa205-vsx32l-ipa.o
: powerpc-isa205-vsx32l.c
686 $(IPAGENT_COMPILE
) $<
688 powerpc-e500l-ipa.o
: powerpc-e500l.c
689 $(IPAGENT_COMPILE
) $<
691 powerpc-64l-ipa.o
: powerpc-64l.c
692 $(IPAGENT_COMPILE
) $<
694 powerpc-altivec64l-ipa.o
: powerpc-altivec64l.c
695 $(IPAGENT_COMPILE
) $<
697 powerpc-cell64l-ipa.o
: powerpc-cell64l.c
698 $(IPAGENT_COMPILE
) $<
700 powerpc-vsx64l-ipa.o
: powerpc-vsx64l.c
701 $(IPAGENT_COMPILE
) $<
703 powerpc-isa205-64l-ipa.o
: powerpc-isa205-64l.c
704 $(IPAGENT_COMPILE
) $<
706 powerpc-isa205-altivec64l-ipa.o
: powerpc-isa205-altivec64l.c
707 $(IPAGENT_COMPILE
) $<
709 powerpc-isa205-vsx64l-ipa.o
: powerpc-isa205-vsx64l.c
710 $(IPAGENT_COMPILE
) $<
713 $(IPAGENT_COMPILE
) $<
715 print-utils-ipa.o
: ..
/common
/print-utils.c
716 $(IPAGENT_COMPILE
) $<
718 rsp-low-ipa.o
: ..
/common
/rsp-low.c
719 $(IPAGENT_COMPILE
) $<
721 errors-ipa.o
: ..
/common
/errors.c
722 $(IPAGENT_COMPILE
) $<
724 x32-linux-ipa.o
: x32-linux.c
725 $(IPAGENT_COMPILE
) $<
727 x32-avx-linux-ipa.o
: x32-avx-linux.c
728 $(IPAGENT_COMPILE
) $<
730 x32-avx512-linux-ipa.o
: x32-avx512-linux.c
731 $(IPAGENT_COMPILE
) $<
735 $(COMPILE
) $(WARN_CFLAGS_NO_FORMAT
) $<
738 # Arch object files rules form ../arch
743 arm-linux.o
: ..
/arch
/arm-linux.c
746 arm-get-next-pcs.o
: ..
/arch
/arm-get-next-pcs.c
750 # Architecture specific object files rules from ../arch
752 aarch64-insn.o
: ..
/arch
/aarch64-insn.c
756 # Rules for objects that go in the gdbserver binary.
774 # Rules for register format descriptions.
776 %.c
: ..
/regformats
/%.dat |
$(regdat_sh
)
777 $(SHELL
) $(regdat_sh
) $< $@
779 %.c
: ..
/regformats
/arm
/%.dat |
$(regdat_sh
)
780 $(SHELL
) $(regdat_sh
) $< $@
782 %.c
: ..
/regformats
/i386
/%.dat |
$(regdat_sh
)
783 $(SHELL
) $(regdat_sh
) $< $@
785 %.c
: ..
/regformats
/rs6000
/%.dat |
$(regdat_sh
)
786 $(SHELL
) $(regdat_sh
) $< $@
789 # Dependency tracking.
792 ifeq ($(DEPMODE
),depmode
=gcc3
)
793 # Note that we put the dependencies into a .Tpo file, then move them
794 # into place if the compile succeeds. We need this because gcc does
795 # not atomically write the dependency output file.
796 override COMPILE.post
= -c
-o
$@
-MT
$@
-MMD
-MP \
797 -MF
$(DEPDIR
)/$(basename $(@F
)).Tpo
798 override POSTCOMPILE
= @mv
$(DEPDIR
)/$(basename $(@F
)).Tpo \
799 $(DEPDIR
)/$(basename $(@F
)).Po
801 override COMPILE.pre
= source
='$<' object
='$@' libtool
=no \
802 DEPDIR
=$(DEPDIR
) $(DEPMODE
) $(depcomp
) $(CC
)
803 # depcomp handles atomicity for us, so we don't need a postcompile
805 override POSTCOMPILE
=
808 # A list of all the objects we might care about in this build, for
809 # dependency tracking.
810 all_object_files
= $(OBS
) $(GDBREPLAY_OBS
) $(IPA_OBJS
)
812 # Ensure that generated files are created early. Use order-only
813 # dependencies if available. They require GNU make 3.80 or newer,
814 # and the .VARIABLES variable was introduced at the same time.
816 $(all_object_files
): |
$(generated_files
)
818 $(all_object_files
) : $(generated_files
)
822 -include $(patsubst %.o
, $(DEPDIR
)/%.Po
, $(all_object_files
))
824 # Disable implicit make rules.
825 include $(srcdir)/..
/disable-implicit-rules.mk
827 # This is the end of "Makefile.in".