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