2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
[deliverable/binutils-gdb.git] / gdb / gdbserver / Makefile.in
CommitLineData
6f0f660e 1# Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
7b6bb8da 2# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
dd24457d 3# Free Software Foundation, Inc.
c906108c
SS
4
5# This file is part of GDB.
6
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
32de4b9d 9# the Free Software Foundation; either version 3 of the License, or
c906108c 10# (at your option) any later version.
1b3f6016 11#
c906108c
SS
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
1b3f6016 16#
c906108c 17# You should have received a copy of the GNU General Public License
32de4b9d 18# along with this program. If not, see <http://www.gnu.org/licenses/>.
c906108c 19
d6e9fb05
JK
20prefix = @prefix@
21exec_prefix = @exec_prefix@
c906108c 22
d6e9fb05
JK
23host_alias = @host_alias@
24target_alias = @target_alias@
25program_transform_name = @program_transform_name@
26bindir = @bindir@
27libdir = @libdir@
c906108c
SS
28tooldir = $(libdir)/$(target_alias)
29
96e946ca 30datarootdir = @datarootdir@
d6e9fb05
JK
31datadir = @datadir@
32mandir = @mandir@
c906108c
SS
33man1dir = $(mandir)/man1
34man2dir = $(mandir)/man2
35man3dir = $(mandir)/man3
36man4dir = $(mandir)/man4
37man5dir = $(mandir)/man5
38man6dir = $(mandir)/man6
39man7dir = $(mandir)/man7
40man8dir = $(mandir)/man8
41man9dir = $(mandir)/man9
d6e9fb05 42infodir = @infodir@
085dd6e6 43htmldir = $(prefix)/html
d6e9fb05 44includedir = @includedir@
c906108c
SS
45
46SHELL = /bin/sh
de7c3b4a 47EXEEXT = @EXEEXT@
4f3e6fb7
YQ
48PWD_COMMAND = $${PWDCMD-pwd}
49RANLIB = @RANLIB@
c906108c 50
d6e9fb05
JK
51INSTALL = @INSTALL@
52INSTALL_PROGRAM = @INSTALL_PROGRAM@
53INSTALL_DATA = @INSTALL_DATA@
c906108c 54
84563040 55CC = @CC@
c906108c
SS
56
57# Directory containing source files. Don't clean up the spacing,
58# this exact string is matched for by the "configure" script.
d6e9fb05
JK
59srcdir = @srcdir@
60VPATH = @srcdir@
c906108c
SS
61
62# It is also possible that you will need to add -I/usr/include/sys to the
1b3f6016 63# CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
c906108c
SS
64# is where it should be according to Posix).
65
66# Set this up with gcc if you have gnu ld and the loader will print out
67# line numbers for undefinded refs.
68#CC-LD=gcc -static
69CC-LD=${CC}
70
71# Where is the "include" directory? Traditionally ../include or ./include
72INCLUDE_DIR = ${srcdir}/../../include
73INCLUDE_DEP = $$(INCLUDE_DIR)
74
0fb4aa4b
PA
75# Where is ust? These will be empty if ust was not available.
76ustlibs = @ustlibs@
77ustinc = @ustinc@
78
c906108c
SS
79# All the includes used for CFLAGS and for lint.
80# -I. for config files.
7ea81414
DJ
81# -I${srcdir} for our headers.
82# -I$(srcdir)/../regformats for regdef.h.
2aecd87f
DE
83INCLUDE_CFLAGS = -I. -I${srcdir} -I$(srcdir)/../common \
84 -I$(srcdir)/../regformats -I$(INCLUDE_DIR)
c906108c
SS
85
86# M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
87# from the config/ directory.
88GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS}
89#PROFILE_CFLAGS = -pg
90
d4596a3d
PA
91WARN_CFLAGS = @WARN_CFLAGS@
92WERROR_CFLAGS = @WERROR_CFLAGS@
0729219d 93
c906108c
SS
94# CFLAGS is specifically reserved for setting from the command line
95# when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
84563040
DJ
96CFLAGS = @CFLAGS@
97
c906108c 98# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
eff1410f 99INTERNAL_CFLAGS_BASE = ${CFLAGS} ${GLOBAL_CFLAGS} \
66b6e1dd 100 ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS}
eff1410f 101INTERNAL_WARN_CFLAGS = ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
102INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS)
c906108c
SS
103
104# LDFLAGS is specifically reserved for setting from the command line
105# when running make.
697f7479 106LDFLAGS = @LDFLAGS@
f6de3c42 107INTERNAL_LDFLAGS = $(LDFLAGS) @RDYNAMIC@
c906108c 108
c906108c
SS
109# All source files that go into linking GDB remote server.
110
73d37363 111SFILES= $(srcdir)/gdbreplay.c $(srcdir)/inferiors.c \
f6528abd
JK
112 $(srcdir)/mem-break.c $(srcdir)/proc-service.c \
113 $(srcdir)/proc-service.list $(srcdir)/regcache.c \
73d37363
DJ
114 $(srcdir)/remote-utils.c $(srcdir)/server.c $(srcdir)/target.c \
115 $(srcdir)/thread-db.c $(srcdir)/utils.c \
eb826dc6
MF
116 $(srcdir)/linux-arm-low.c $(srcdir)/linux-bfin-low.c \
117 $(srcdir)/linux-cris-low.c $(srcdir)/linux-crisv32-low.c \
aa5ca48f 118 ${srcdir}/i386-low.c $(srcdir)/i387-fp.c \
73d37363 119 $(srcdir)/linux-ia64-low.c $(srcdir)/linux-low.c \
7cfbc4a0 120 $(srcdir)/linux-m32r-low.c \
73d37363 121 $(srcdir)/linux-m68k-low.c $(srcdir)/linux-mips-low.c \
5b0a002e 122 $(srcdir)/linux-ppc-low.c \
eee84df1 123 $(srcdir)/linux-s390-low.c \
dfb64f85 124 $(srcdir)/linux-sh-low.c $(srcdir)/linux-sparc-low.c \
d0722149 125 $(srcdir)/linux-x86-low.c \
1525d545 126 $(srcdir)/linux-xtensa-low.c \
68070c10 127 $(srcdir)/win32-arm-low.c $(srcdir)/win32-i386-low.c \
59a016f0
PA
128 $(srcdir)/win32-low.c $(srcdir)/wincecompat.c \
129 $(srcdir)/hostio.c $(srcdir)/hostio-errno.c
c906108c 130
7ea81414 131DEPFILES = @GDBSERVER_DEPFILES@
c906108c 132
e28b3332
DJ
133LIBOBJS = @LIBOBJS@
134
4f3e6fb7
YQ
135LIBCOMMON_DIR = common
136LIBCOMMON = $(LIBCOMMON_DIR)/libcommon.a
137LIBCOMMON_SRC = $(srcdir)/$(LIBCOMMON_DIR)
138
64794aa4 139CLEANDIRS = $(LIBCOMMON_DIR)
e5141119 140REQUIRED_SUBDIRS = no-required-subdir-yet
64794aa4 141
7ea81414 142SOURCES = $(SFILES)
1b3f6016 143TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
c906108c 144
4f3e6fb7 145OBS = inferiors.o regcache.o remote-utils.o server.o target.o \
dd24457d 146 utils.o version.o \
219f2f23 147 mem-break.o hostio.o event-loop.o tracepoint.o \
fb1e4ffc 148 $(XML_BUILTIN) \
e28b3332 149 $(DEPFILES) $(LIBOBJS)
a417dc56 150GDBREPLAY_OBS = gdbreplay.o version.o
0d62e5e8 151GDBSERVER_LIBS = @GDBSERVER_LIBS@
b80864fb 152XM_CLIBS = @LIBS@
f6528abd 153CDEPS = $(srcdir)/proc-service.list
c906108c 154
fb1e4ffc
DJ
155# XML files to compile in to gdbserver, if any.
156XML_DIR = $(srcdir)/../features
fb1e4ffc
DJ
157XML_FILES = @srv_xmlfiles@
158XML_BUILTIN = @srv_xmlbuiltin@
159
fa593d66
PA
160IPA_DEPFILES = @IPA_DEPFILES@
161extra_libraries = @extra_libraries@
162
f474844c
JZ
163FLAGS_TO_PASS = \
164 "prefix=$(prefix)" \
165 "exec_prefix=$(exec_prefix)" \
166 "infodir=$(infodir)" \
167 "datarootdir=$(datarootdir)" \
168 "docdir=$(docdir)" \
169 "htmldir=$(htmldir)" \
170 "pdfdir=$(pdfdir)" \
171 "libdir=$(libdir)" \
172 "mandir=$(mandir)" \
173 "datadir=$(datadir)" \
174 "includedir=$(includedir)" \
175 "against=$(against)" \
176 "DESTDIR=$(DESTDIR)" \
177 "AR=$(AR)" \
178 "AR_FLAGS=$(AR_FLAGS)" \
179 "CC=$(CC)" \
180 "CFLAGS=$(CFLAGS)" \
181 "CXX=$(CXX)" \
182 "CXXFLAGS=$(CXXFLAGS)" \
183 "DLLTOOL=$(DLLTOOL)" \
184 "LDFLAGS=$(LDFLAGS)" \
185 "RANLIB=$(RANLIB)" \
186 "MAKEINFO=$(MAKEINFO)" \
187 "MAKEHTML=$(MAKEHTML)" \
188 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
189 "INSTALL=$(INSTALL)" \
190 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
191 "INSTALL_DATA=$(INSTALL_DATA)" \
192 "RUNTEST=$(RUNTEST)" \
193 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
194
c906108c
SS
195# Prevent Sun make from putting in the machine type. Setting
196# TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
197.c.o:
198 ${CC} -c ${INTERNAL_CFLAGS} $<
199
fa593d66 200all: gdbserver$(EXEEXT) gdbreplay$(EXEEXT) $(extra_libraries)
c906108c 201
4f3e6fb7 202$(LIBCOMMON): $(LIBCOMMON_DIR)/Makefile
7a762829 203 @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=common subdir_do
4f3e6fb7
YQ
204
205common/Makefile: configure-common config.status
206 CONFIG_FILES="common/Makefile" \
207 CONFIG_COMMANDS="depfiles" \
208 CONFIG_HEADERS= \
209 CONFIG_LINKS= \
210 $(SHELL) config.status
211
212configure-common:
213 @: $(MAKE); $(unstage)
214 @r=`${PWD_COMMAND}`; export r; \
215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
216 test ! -f common/Makefile || exit 0; \
217 $(SHELL) $(srcdir)/../../mkinstalldirs common ; \
218 $(HOST_EXPORTS) \
219 echo Configuring in common; \
220 cd "common" || exit 1; \
221 commondir="$$s/../common"; \
222 srcdiroption="--srcdir=$${commondir}"; \
223 $(SHELL) $${commondir}/configure --enable-gdbserver=yes \
224 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
225 --target=${target_alias} $${srcdiroption} \
226 || exit 1
227
c906108c 228# Traditionally "install" depends on "all". But it may be useful
1b3f6016 229# not to; for example, if the user has made some trivial change to a
c906108c
SS
230# source file and doesn't care about rebuilding or just wants to save the
231# time it takes for make to check that all is up to date.
232# install-only is intended to address that need.
f474844c
JZ
233install: all
234 @$(MAKE) $(FLAGS_TO_PASS) install-only
235
1b3f6016 236install-only:
c906108c
SS
237 n=`echo gdbserver | sed '$(program_transform_name)'`; \
238 if [ x$$n = x ]; then n=gdbserver; else true; fi; \
12ac6819 239 if [ x"$(IPA_DEPFILES)" != x ]; then \
fa593d66
PA
240 $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
241 $(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
242 fi; \
c938e9b0 243 $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir); \
68070c10 244 $(INSTALL_PROGRAM) gdbserver$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT); \
c938e9b0
L
245 $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(man1dir); \
246 $(INSTALL_DATA) $(srcdir)/gdbserver.1 $(DESTDIR)$(man1dir)/$$n.1
c906108c
SS
247
248uninstall: force
249 n=`echo gdbserver | sed '$(program_transform_name)'`; \
250 if [ x$$n = x ]; then n=gdbserver; else true; fi; \
f1048712 251 rm -f $(DESTDIR)/$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(man1dir)/$$n.1
c906108c
SS
252
253installcheck:
254check:
9453113a 255info dvi pdf:
c906108c 256install-info:
9453113a 257install-pdf:
085dd6e6
JM
258html:
259install-html:
c906108c
SS
260clean-info:
261
4f3e6fb7 262gdbserver$(EXEEXT): $(OBS) ${ADD_DEPS} ${CDEPS} $(LIBCOMMON)
68070c10
PA
263 rm -f gdbserver$(EXEEXT)
264 ${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbserver$(EXEEXT) $(OBS) \
4f3e6fb7 265 $(LIBCOMMON) $(GDBSERVER_LIBS) $(XM_CLIBS)
c906108c 266
a417dc56 267gdbreplay$(EXEEXT): $(GDBREPLAY_OBS)
68070c10 268 rm -f gdbreplay$(EXEEXT)
a417dc56 269 ${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbreplay$(EXEEXT) $(GDBREPLAY_OBS) \
c906108c
SS
270 $(XM_CLIBS)
271
0fb4aa4b 272IPA_OBJS=tracepoint-ipa.o utils-ipa.o regcache-ipa.o remote-utils-ipa.o ${IPA_DEPFILES}
fa593d66
PA
273
274IPA_LIB=libinproctrace.so
275
276$(IPA_LIB): $(IPA_OBJS) ${ADD_DEPS} ${CDEPS}
277 rm -f $(IPA_LIB)
278 ${CC-LD} -shared -fPIC -Wl,--no-undefined $(INTERNAL_CFLAGS) \
0fb4aa4b 279 $(INTERNAL_LDFLAGS) -o $(IPA_LIB) ${IPA_OBJS} -ldl -pthread
fa593d66 280
c906108c
SS
281# Put the proper machine-specific files first, so M-. on a machine
282# specific routine gets the one for the correct machine.
283# The xyzzy stuff below deals with empty DEPFILES
284TAGS: ${TAGFILES}
2c0fc042 285 etags `find ${srcdir}/../config -name $(DEPRECATED_TM_FILE) -print` \
c906108c
SS
286 `find ${srcdir}/../config -name ${XM_FILE} -print` \
287 `find ${srcdir}/../config -name ${NAT_FILE} -print` \
288 `for i in yzzy ${DEPFILES}; do \
289 if [ x$$i != xyzzy ]; then \
290 echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \
291 fi; \
292 done` \
293 ${TAGFILES}
294tags: TAGS
295
296clean:
64794aa4 297 @$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(CLEANDIRS)" subdir_do
c906108c 298 rm -f *.o ${ADD_FILES} *~
dd24457d 299 rm -f version.c
de7c3b4a 300 rm -f gdbserver$(EXEEXT) gdbreplay$(EXEEXT) core make.log
fa593d66 301 rm -f $(IPA_LIB)
eb826dc6 302 rm -f reg-arm.c reg-bfin.c i386.c reg-ia64.c reg-m32r.c reg-m68k.c
90884b2b
L
303 rm -f reg-sh.c reg-sparc.c reg-spu.c amd64.c i386-linux.c
304 rm -f reg-cris.c reg-crisv32.c amd64-linux.c reg-xtensa.c
58d6951d
DJ
305 rm -f arm-with-iwmmxt.c
306 rm -f arm-with-vfpv2.c arm-with-vfpv3.c arm-with-neon.c
307 rm -f mips-linux.c mips64-linux.c
0482b03b 308 rm -f powerpc-32.c powerpc-32l.c powerpc-64l.c powerpc-e500l.c
f4d9bade
UW
309 rm -f powerpc-altivec32l.c powerpc-cell32l.c powerpc-vsx32l.c
310 rm -f powerpc-altivec64l.c powerpc-cell64l.c powerpc-vsx64l.c
2c4ad781
TJB
311 rm -f powerpc-isa205-32l.c powerpc-isa205-64l.c
312 rm -f powerpc-isa205-altivec32l.c powerpc-isa205-vsx32l.c powerpc-isa205-altivec64l.c
313 rm -f powerpc-isa205-vsx64l.c
7803799a 314 rm -f s390-linux32.c s390-linux64.c s390x-linux64.c
2c4ad781 315 rm -f xml-builtin.c stamp-xml
1570b33e
L
316 rm -f i386-avx.c i386-avx-linux.c
317 rm -f amd64-avx.c amd64-avx-linux.c
3a13a53b 318 rm -f i386-mmx.c i386-mmx-linux.c
c906108c 319
a59d1c82 320maintainer-clean realclean distclean: clean
64794aa4 321 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(CLEANDIRS)" subdir_do
a59d1c82 322 rm -f nm.h tm.h xm.h config.status config.h stamp-h config.log
c906108c
SS
323 rm -f Makefile
324
c3a3ccc7
DJ
325config.h: stamp-h ; @true
326stamp-h: config.in config.status
e0e76420 327 CONFIG_FILES="" CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
0729219d 328
64794aa4
JB
329subdir_do: force
330 @for i in $(DODIRS); do \
331 case $$i in \
332 $(REQUIRED_SUBDIRS)) \
333 if [ ! -f ./$$i/Makefile ] ; then \
334 echo "Missing $$i/Makefile" >&2 ; \
335 exit 1 ; \
336 fi ;; \
337 esac ; \
338 if [ -f ./$$i/Makefile ] ; then \
339 if (cd ./$$i; \
340 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
341 else exit 1 ; fi ; \
342 else true ; fi ; \
343 done
344
7ea81414 345Makefile: Makefile.in config.status
0729219d 346 CONFIG_HEADERS="" $(SHELL) ./config.status
c906108c 347
93652174 348config.status: configure configure.srv
d6e9fb05
JK
349 $(SHELL) ./config.status --recheck
350
c906108c
SS
351force:
352
dd24457d
DJ
353version.c: Makefile $(srcdir)/../version.in
354 rm -f version.c-tmp version.c
355 echo '#include "server.h"' >> version.c-tmp
356 echo 'const char version[] = "'"`sed q ${srcdir}/../version.in`"'";' >> version.c-tmp
357 echo 'const char host_name[] = "$(host_alias)";' >> version.c-tmp
358 mv version.c-tmp version.c
359version.o: version.c $(server_h)
c906108c 360
fb1e4ffc
DJ
361xml-builtin.c: stamp-xml; @true
362stamp-xml: $(XML_DIR)/feature_to_c.sh Makefile $(XML_FILES)
363 rm -f xml-builtin.tmp
364 $(SHELL) $(XML_DIR)/feature_to_c.sh xml-builtin.tmp $(XML_FILES)
365 $(SHELL) $(srcdir)/../../move-if-change xml-builtin.tmp xml-builtin.c
366 echo stamp > stamp-xml
367
9b4b61c8 368.PRECIOUS: xml-builtin.c
fb1e4ffc 369
c906108c
SS
370# GNU Make has an annoying habit of putting *all* the Makefile variables
371# into the environment, unless you include this target as a circumvention.
372# Rumor is that this will be fixed (and this target can be removed)
373# in GNU Make 4.0.
374.NOEXPORT:
375
376# GNU Make 3.63 has a different problem: it keeps tacking command line
377# overrides onto the definition of $(MAKE). This variable setting
378# will remove them.
379MAKEOVERRIDES=
380
0050a760 381gdb_proc_service_h = $(srcdir)/gdb_proc_service.h
0c74b2a7 382regdat_sh = $(srcdir)/../regformats/regdat.sh
0a30fbc4
DJ
383regdef_h = $(srcdir)/../regformats/regdef.h
384regcache_h = $(srcdir)/regcache.h
a19cae16 385signals_def = $(srcdir)/../../include/gdb/signals.def
310444ac 386signals_h = $(srcdir)/../../include/gdb/signals.h $(signals_def)
611cb4a5 387server_h = $(srcdir)/server.h $(regcache_h) config.h $(srcdir)/target.h \
a19cae16 388 $(srcdir)/mem-break.h $(srcdir)/../common/gdb_signals.h \
310444ac 389 $(signals_h)
0a30fbc4 390
67cc2626
PA
391linux_low_h = $(srcdir)/linux-low.h
392
8ed54b31
JB
393lynx_low_h = $(srcdir)/lynx-low.h $(srcdir)/server.h
394
a8ae7dc0
AR
395nto_low_h = $(srcdir)/nto-low.h
396
0fb4aa4b
PA
397UST_CFLAGS = $(ustinc) -DCONFIG_UST_GDB_INTEGRATION
398
fa593d66
PA
399# Note, we only build the IPA if -fvisibility=hidden is supported in
400# the first place.
0fb4aa4b 401IPAGENT_CFLAGS = $(CPPFLAGS) $(INTERNAL_CFLAGS) $(UST_CFLAGS) \
fa593d66
PA
402 -fPIC -DGDBSERVER -DIN_PROCESS_AGENT \
403 -fvisibility=hidden
404
405# In-process agent object rules
94d5e490 406tracepoint-ipa.o: tracepoint.c $(server_h) $(srcdir)/../common/ax.def
fa593d66
PA
407 $(CC) -c $(IPAGENT_CFLAGS) $< -o tracepoint-ipa.o
408utils-ipa.o: utils.c $(server_h)
409 $(CC) -c $(IPAGENT_CFLAGS) $< -o utils-ipa.o
410remote-utils-ipa.o: remote-utils.c $(server_h)
411 $(CC) -c $(IPAGENT_CFLAGS) $< -o remote-utils-ipa.o
412regcache-ipa.o: regcache.c $(server_h)
413 $(CC) -c $(IPAGENT_CFLAGS) $< -o regcache-ipa.o
414i386-linux-ipa.o : i386-linux.c $(regdef_h)
415 $(CC) -c $(IPAGENT_CFLAGS) $< -o i386-linux-ipa.o
416linux-i386-ipa.o: linux-i386-ipa.c $(server_h)
417 $(CC) -c $(IPAGENT_CFLAGS) $< -o linux-i386-ipa.o
418linux-amd64-ipa.o: linux-amd64-ipa.c $(server_h)
419 $(CC) -c $(IPAGENT_CFLAGS) $< -o linux-amd64-ipa.o
420amd64-linux-ipa.o : amd64-linux.c $(regdef_h)
421 $(CC) -c $(IPAGENT_CFLAGS) $< -o amd64-linux-ipa.o
422
bd99dc85 423event-loop.o: event-loop.c $(server_h)
a6b151f1 424hostio.o: hostio.c $(server_h)
59a016f0 425hostio-errno.o: hostio-errno.c $(server_h)
ce3a066d 426inferiors.o: inferiors.c $(server_h)
611cb4a5 427mem-break.o: mem-break.c $(server_h)
0d62e5e8 428proc-service.o: proc-service.c $(server_h) $(gdb_proc_service_h)
ce3a066d 429regcache.o: regcache.c $(server_h) $(regdef_h)
7ea81414 430remote-utils.o: remote-utils.c terminal.h $(server_h)
310444ac 431server.o: server.c $(server_h)
ce3a066d 432target.o: target.c $(server_h)
67cc2626 433thread-db.o: thread-db.c $(server_h) $(linux_low_h) $(gdb_proc_service_h)
94d5e490 434tracepoint.o: tracepoint.c $(server_h) $(srcdir)/../common/ax.def
0a30fbc4 435utils.o: utils.c $(server_h)
6e23a804 436gdbreplay.o: gdbreplay.c config.h
0a30fbc4 437
eff1410f 438# We build memmem.c without -Werror because this file is not under
439# our control. On LynxOS, the compiler generates some warnings
440# because str-two-way.h uses a constant (MAX_SIZE) whose definition
441# makes it ambiguous whether it is signed or unsigned ("warning: this
442# decimal constant is unsigned only in ISO C90").
e28b3332 443memmem.o: ../gnulib/memmem.c
eff1410f 444 $(CC) -o memmem.o -c $(CPPFLAGS) $(INTERNAL_WARN_CFLAGS) $<
e28b3332 445
bb0116a4
JB
446# We build vasprintf with -DHAVE_CONFIG_H because we want that unit to
447# include our config.h file. Otherwise, some system headers do not get
448# included, and the compiler emits a warning about implicitly defined
449# functions (missing declaration).
450vasprintf.o: $(srcdir)/../../libiberty/vasprintf.c
451 $(CC) -o vasprintf.o -c $(CPPFLAGS) $(INTERNAL_CFLAGS) -DHAVE_CONFIG_H $<
452vsnprintf.o: $(srcdir)/../../libiberty/vsnprintf.c
453 $(CC) -o vsnprintf.o -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $<
454
aa5ca48f
DE
455i386_low_h = $(srcdir)/i386-low.h
456
457i386-low.o: i386-low.c $(i386_low_h) $(server_h) $(target_h)
458
58caa3dc
DJ
459i387-fp.o: i387-fp.c $(server_h)
460
58caa3dc 461linux-low.o: linux-low.c $(linux_low_h) $(server_h)
0d62e5e8
DJ
462 $(CC) -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $< @USE_THREAD_DB@
463
9308fc88
DJ
464linux-arm-low.o: linux-arm-low.c $(linux_low_h) $(server_h) \
465 $(gdb_proc_service_h)
eb826dc6 466linux-bfin-low.o: linux-bfin-low.c $(linux_low_h) $(server_h)
45b134e5
OF
467linux-cris-low.o: linux-cris-low.c $(linux_low_h) $(server_h)
468linux-crisv32-low.o: linux-crisv32-low.c $(linux_low_h) $(server_h)
58caa3dc 469linux-ia64-low.o: linux-ia64-low.c $(linux_low_h) $(server_h)
7cfbc4a0 470linux-m32r-low.o: linux-m32r-low.c $(linux_low_h) $(server_h)
21b0f40c
DJ
471linux-mips-low.o: linux-mips-low.c $(linux_low_h) $(server_h) \
472 $(gdb_proc_service_h)
58caa3dc 473linux-ppc-low.o: linux-ppc-low.c $(linux_low_h) $(server_h)
265f716b 474linux-s390-low.o: linux-s390-low.c $(linux_low_h) $(server_h)
58caa3dc 475linux-sh-low.o: linux-sh-low.c $(linux_low_h) $(server_h)
d0722149 476linux-x86-low.o: linux-x86-low.c $(linux_low_h) $(server_h) \
aa5ca48f 477 $(gdb_proc_service_h) $(i386_low_h)
1525d545 478linux-xtensa-low.o: linux-xtensa-low.c xtensa-xtregs.c $(linux_low_h) $(server_h)
0a30fbc4 479
8ed54b31
JB
480lynx-low.o: lynx-low.c $(server_h) $(target_h) $(lynx_low_h)
481lynx-ppc-low.o: lynx-ppc-low.c $(server_h) $(lynx_low_h)
a8ae7dc0
AR
482nto-low.o: nto-low.c $(server_h) $(nto_low_h)
483nto-x86-low.o: nto-x86-low.c $(server_h) $(nto_low_h) $(regdef_h) $(regcache_h)
484
a385171d
PA
485win32_low_h = $(srcdir)/win32-low.h
486
487win32-low.o: win32-low.c $(win32_low_h) $(server_h) $(regdef_h) $(regcache_h)
488
489win32-arm-low.o: win32-arm-low.c $(win32_low_h) $(server_h)
aa5ca48f 490win32-i386-low.o: win32-i386-low.c $(win32_low_h) $(server_h) $(i386_low_h)
b80864fb 491
a13e2c95
UW
492spu-low.o: spu-low.c $(server_h)
493
0c74b2a7
DJ
494reg-arm.o : reg-arm.c $(regdef_h)
495reg-arm.c : $(srcdir)/../regformats/reg-arm.dat $(regdat_sh)
75f83163 496 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-arm.dat reg-arm.c
fb1e4ffc
DJ
497arm-with-iwmmxt.o : arm-with-iwmmxt.c $(regdef_h)
498arm-with-iwmmxt.c : $(srcdir)/../regformats/arm-with-iwmmxt.dat $(regdat_sh)
75f83163 499 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-iwmmxt.dat arm-with-iwmmxt.c
58d6951d
DJ
500arm-with-vfpv2.o : arm-with-vfpv2.c $(regdef_h)
501arm-with-vfpv2.c : $(srcdir)/../regformats/arm-with-vfpv2.dat $(regdat_sh)
502 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-vfpv2.dat arm-with-vfpv2.c
503arm-with-vfpv3.o : arm-with-vfpv3.c $(regdef_h)
504arm-with-vfpv3.c : $(srcdir)/../regformats/arm-with-vfpv3.dat $(regdat_sh)
505 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-vfpv3.dat arm-with-vfpv3.c
506arm-with-neon.o : arm-with-neon.c $(regdef_h)
507arm-with-neon.c : $(srcdir)/../regformats/arm-with-neon.dat $(regdat_sh)
508 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/arm-with-neon.dat arm-with-neon.c
eb826dc6
MF
509reg-bfin.o : reg-bfin.c $(regdef_h)
510reg-bfin.c : $(srcdir)/../regformats/reg-bfin.dat $(regdat_sh)
511 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-bfin.dat reg-bfin.c
45b134e5
OF
512reg-cris.o : reg-cris.c $(regdef_h)
513reg-cris.c : $(srcdir)/../regformats/reg-cris.dat $(regdat_sh)
75f83163 514 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-cris.dat reg-cris.c
45b134e5
OF
515reg-crisv32.o : reg-crisv32.c $(regdef_h)
516reg-crisv32.c : $(srcdir)/../regformats/reg-crisv32.dat $(regdat_sh)
75f83163 517 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-crisv32.dat reg-crisv32.c
90884b2b
L
518i386.o : i386.c $(regdef_h)
519i386.c : $(srcdir)/../regformats/i386/i386.dat $(regdat_sh)
520 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386.dat i386.c
521i386-linux.o : i386-linux.c $(regdef_h)
522i386-linux.c : $(srcdir)/../regformats/i386/i386-linux.dat $(regdat_sh)
523 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-linux.dat i386-linux.c
1570b33e
L
524i386-avx.o : i386-avx.c $(regdef_h)
525i386-avx.c : $(srcdir)/../regformats/i386/i386-avx.dat $(regdat_sh)
526 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx.dat i386-avx.c
527i386-avx-linux.o : i386-avx-linux.c $(regdef_h)
528i386-avx-linux.c : $(srcdir)/../regformats/i386/i386-avx-linux.dat $(regdat_sh)
529 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-avx-linux.dat i386-avx-linux.c
3a13a53b
L
530i386-mmx.o : i386-mmx.c $(regdef_h)
531i386-mmx.c : $(srcdir)/../regformats/i386/i386-mmx.dat $(regdat_sh)
532 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mmx.dat i386-mmx.c
533i386-mmx-linux.o : i386-mmx-linux.c $(regdef_h)
534i386-mmx-linux.c : $(srcdir)/../regformats/i386/i386-mmx-linux.dat $(regdat_sh)
535 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/i386-mmx-linux.dat i386-mmx-linux.c
0c74b2a7
DJ
536reg-ia64.o : reg-ia64.c $(regdef_h)
537reg-ia64.c : $(srcdir)/../regformats/reg-ia64.dat $(regdat_sh)
75f83163 538 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-ia64.dat reg-ia64.c
7cfbc4a0
KI
539reg-m32r.o : reg-m32r.c $(regdef_h)
540reg-m32r.c : $(srcdir)/../regformats/reg-m32r.dat $(regdat_sh)
75f83163 541 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-m32r.dat reg-m32r.c
0c74b2a7
DJ
542reg-m68k.o : reg-m68k.c $(regdef_h)
543reg-m68k.c : $(srcdir)/../regformats/reg-m68k.dat $(regdat_sh)
75f83163 544 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-m68k.dat reg-m68k.c
9ac544ce
MK
545reg-cf.o : reg-cf.c $(regdef_h)
546reg-cf.c : $(srcdir)/../regformats/reg-cf.dat $(regdat_sh)
547 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-cf.dat reg-cf.c
117ce543
DJ
548mips-linux.o : mips-linux.c $(regdef_h)
549mips-linux.c : $(srcdir)/../regformats/mips-linux.dat $(regdat_sh)
75f83163 550 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips-linux.dat mips-linux.c
117ce543
DJ
551mips64-linux.o : mips64-linux.c $(regdef_h)
552mips64-linux.c : $(srcdir)/../regformats/mips64-linux.dat $(regdat_sh)
75f83163 553 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips64-linux.dat mips64-linux.c
0482b03b
JB
554powerpc-32.o : powerpc-32.c $(regdef_h)
555powerpc-32.c : $(srcdir)/../regformats/rs6000/powerpc-32.dat $(regdat_sh)
556 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32.dat powerpc-32.c
7284e1be
UW
557powerpc-32l.o : powerpc-32l.c $(regdef_h)
558powerpc-32l.c : $(srcdir)/../regformats/rs6000/powerpc-32l.dat $(regdat_sh)
559 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32l.dat powerpc-32l.c
560powerpc-altivec32l.o : powerpc-altivec32l.c $(regdef_h)
561powerpc-altivec32l.c : $(srcdir)/../regformats/rs6000/powerpc-altivec32l.dat $(regdat_sh)
562 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-altivec32l.dat powerpc-altivec32l.c
f4d9bade
UW
563powerpc-cell32l.o : powerpc-cell32l.c $(regdef_h)
564powerpc-cell32l.c : $(srcdir)/../regformats/rs6000/powerpc-cell32l.dat $(regdat_sh)
565 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-cell32l.dat powerpc-cell32l.c
677c5bb1
LM
566powerpc-vsx32l.o : powerpc-vsx32l.c $(regdef_h)
567powerpc-vsx32l.c : $(srcdir)/../regformats/rs6000/powerpc-vsx32l.dat $(regdat_sh)
568 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-vsx32l.dat powerpc-vsx32l.c
2c4ad781
TJB
569powerpc-isa205-32l.o : powerpc-isa205-32l.c $(regdef_h)
570powerpc-isa205-32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-32l.dat $(regdat_sh)
571 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-32l.dat powerpc-isa205-32l.c
572powerpc-isa205-altivec32l.o : powerpc-isa205-altivec32l.c $(regdef_h)
573powerpc-isa205-altivec32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec32l.dat $(regdat_sh)
574 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec32l.dat powerpc-isa205-altivec32l.c
575powerpc-isa205-vsx32l.o : powerpc-isa205-vsx32l.c $(regdef_h)
576powerpc-isa205-vsx32l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx32l.dat $(regdat_sh)
577 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx32l.dat powerpc-isa205-vsx32l.c
7284e1be
UW
578powerpc-e500l.o : powerpc-e500l.c $(regdef_h)
579powerpc-e500l.c : $(srcdir)/../regformats/rs6000/powerpc-e500l.dat $(regdat_sh)
580 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-e500l.dat powerpc-e500l.c
581powerpc-64l.o : powerpc-64l.c $(regdef_h)
582powerpc-64l.c : $(srcdir)/../regformats/rs6000/powerpc-64l.dat $(regdat_sh)
583 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-64l.dat powerpc-64l.c
584powerpc-altivec64l.o : powerpc-altivec64l.c $(regdef_h)
585powerpc-altivec64l.c : $(srcdir)/../regformats/rs6000/powerpc-altivec64l.dat $(regdat_sh)
586 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-altivec64l.dat powerpc-altivec64l.c
f4d9bade
UW
587powerpc-cell64l.o : powerpc-cell64l.c $(regdef_h)
588powerpc-cell64l.c : $(srcdir)/../regformats/rs6000/powerpc-cell64l.dat $(regdat_sh)
589 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-cell64l.dat powerpc-cell64l.c
677c5bb1
LM
590powerpc-vsx64l.o : powerpc-vsx64l.c $(regdef_h)
591powerpc-vsx64l.c : $(srcdir)/../regformats/rs6000/powerpc-vsx64l.dat $(regdat_sh)
592 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-vsx64l.dat powerpc-vsx64l.c
2c4ad781
TJB
593powerpc-isa205-64l.o : powerpc-isa205-64l.c $(regdef_h)
594powerpc-isa205-64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-64l.dat $(regdat_sh)
595 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-64l.dat powerpc-isa205-64l.c
596powerpc-isa205-altivec64l.o : powerpc-isa205-altivec64l.c $(regdef_h)
597powerpc-isa205-altivec64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec64l.dat $(regdat_sh)
598 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-altivec64l.dat powerpc-isa205-altivec64l.c
599powerpc-isa205-vsx64l.o : powerpc-isa205-vsx64l.c $(regdef_h)
600powerpc-isa205-vsx64l.c : $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx64l.dat $(regdat_sh)
601 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-isa205-vsx64l.dat powerpc-isa205-vsx64l.c
7803799a
UW
602s390-linux32.o : s390-linux32.c $(regdef_h)
603s390-linux32.c : $(srcdir)/../regformats/s390-linux32.dat $(regdat_sh)
604 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux32.dat s390-linux32.c
605s390-linux64.o : s390-linux64.c $(regdef_h)
606s390-linux64.c : $(srcdir)/../regformats/s390-linux64.dat $(regdat_sh)
607 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64.dat s390-linux64.c
608s390x-linux64.o : s390x-linux64.c $(regdef_h)
609s390x-linux64.c : $(srcdir)/../regformats/s390x-linux64.dat $(regdat_sh)
610 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64.dat s390x-linux64.c
0c74b2a7
DJ
611reg-sh.o : reg-sh.c $(regdef_h)
612reg-sh.c : $(srcdir)/../regformats/reg-sh.dat $(regdat_sh)
75f83163 613 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-sh.dat reg-sh.c
dfb64f85
DJ
614reg-sparc64.o : reg-sparc64.c $(regdef_h)
615reg-sparc64.c : $(srcdir)/../regformats/reg-sparc64.dat $(regdat_sh)
616 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-sparc64.dat reg-sparc64.c
a13e2c95
UW
617reg-spu.o : reg-spu.c $(regdef_h)
618reg-spu.c : $(srcdir)/../regformats/reg-spu.dat $(regdat_sh)
75f83163 619 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-spu.dat reg-spu.c
90884b2b
L
620amd64.o : amd64.c $(regdef_h)
621amd64.c : $(srcdir)/../regformats/i386/amd64.dat $(regdat_sh)
622 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64.dat amd64.c
623amd64-linux.o : amd64-linux.c $(regdef_h)
624amd64-linux.c : $(srcdir)/../regformats/i386/amd64-linux.dat $(regdat_sh)
625 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-linux.dat amd64-linux.c
1570b33e
L
626amd64-avx.o : amd64-avx.c $(regdef_h)
627amd64-avx.c : $(srcdir)/../regformats/i386/amd64-avx.dat $(regdat_sh)
628 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx.dat amd64-avx.c
629amd64-avx-linux.o : amd64-avx-linux.c $(regdef_h)
630amd64-avx-linux.c : $(srcdir)/../regformats/i386/amd64-avx-linux.dat $(regdat_sh)
631 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/i386/amd64-avx-linux.dat amd64-avx-linux.c
1525d545
MG
632reg-xtensa.o : reg-xtensa.c $(regdef_h)
633reg-xtensa.c : $(srcdir)/../regformats/reg-xtensa.dat $(regdat_sh)
634 $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-xtensa.dat reg-xtensa.c
c906108c 635# This is the end of "Makefile.in".
This page took 0.811488 seconds and 4 git commands to generate.