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