2002-08-21 Andrew Cagney <ac131313@redhat.com>
[external/binutils.git] / gdb / Makefile.in
1 # Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
2 # 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3
4 # This file is part of GDB.
5
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20 prefix = @prefix@
21 exec_prefix = @exec_prefix@
22
23 host_alias = @host_alias@
24 target_alias = @target_alias@
25 program_transform_name = @program_transform_name@
26 bindir = @bindir@
27 libdir = @libdir@
28 tooldir = $(libdir)/$(target_alias)
29
30 datadir = @datadir@
31 mandir = @mandir@
32 man1dir = $(mandir)/man1
33 man2dir = $(mandir)/man2
34 man3dir = $(mandir)/man3
35 man4dir = $(mandir)/man4
36 man5dir = $(mandir)/man5
37 man6dir = $(mandir)/man6
38 man7dir = $(mandir)/man7
39 man8dir = $(mandir)/man8
40 man9dir = $(mandir)/man9
41 infodir = @infodir@
42 htmldir = $(prefix)/html
43 includedir = @includedir@
44
45 # This can be referenced by `INTLDEPS' as computed by CY_GNU_GETTEXT.
46 top_builddir = .
47
48 SHELL = @SHELL@
49 EXEEXT = @EXEEXT@
50
51 AWK = @AWK@
52 LN_S = @LN_S@
53
54 INSTALL = @INSTALL@
55 INSTALL_PROGRAM = @INSTALL_PROGRAM@
56 INSTALL_DATA = @INSTALL_DATA@
57
58 AR = @AR@
59 AR_FLAGS = qv
60 RANLIB = @RANLIB@
61 DLLTOOL = @DLLTOOL@
62 WINDRES = @WINDRES@
63 MIG = @MIG@
64
65 # Flags that describe where you can find the termcap library.
66 # This can be overridden in the host Makefile fragment file.
67 TERMCAP = @TERM_LIB@
68
69 # If you are compiling with GCC, make sure that either 1) You have the
70 # fixed include files where GCC can reach them, or 2) You use the
71 # -traditional flag.  Otherwise the ioctl calls in inflow.c
72 # will be incorrectly compiled.  The "fixincludes" script in the gcc
73 # distribution will fix your include files up.
74 CC=@CC@
75
76 # Directory containing source files.
77 srcdir = @srcdir@
78 VPATH = @srcdir@
79
80 YACC=@YACC@
81
82 # This is used to rebuild ada-lex.c from ada-lex.l.  If the program is 
83 # not defined, but ada-lex.c is present, compilation will continue,
84 # possibly with a warning.
85 FLEX = flex
86
87 YLWRAP = $(srcdir)/../ylwrap
88
89 # where to find makeinfo, preferably one designed for texinfo-2
90 MAKEINFO=makeinfo
91
92 MAKEHTML = texi2html
93
94 MAKEHTMLFLAGS = -glossary -menu -split_chapter
95
96 # Set this up with gcc if you have gnu ld and the loader will print out
97 # line numbers for undefined references.
98 #CC_LD=gcc -static
99 CC_LD=$(CC)
100
101 # Where is our "include" directory?  Typically $(srcdir)/../include.
102 # This is essentially the header file directory for the library
103 # routines in libiberty.
104 INCLUDE_DIR =  $(srcdir)/../include
105 INCLUDE_CFLAGS = -I$(INCLUDE_DIR)
106
107 # Where is the "-liberty" library?  Typically in ../libiberty.
108 LIBIBERTY = ../libiberty/libiberty.a
109
110 # Configured by the --with-mmalloc option to configure.
111 MMALLOC = @MMALLOC@
112 MMALLOC_CFLAGS = @MMALLOC_CFLAGS@
113
114 # Configured by the --with-uiout option to configure.
115 UIOUT_CFLAGS = @UIOUT_CFLAGS@
116
117 # Where is the BFD library?  Typically in ../bfd.
118 BFD_DIR = ../bfd
119 BFD = $(BFD_DIR)/libbfd.a
120 BFD_SRC = $(srcdir)/$(BFD_DIR)
121 BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
122
123 # Where is the READLINE library?  Typically in ../readline.
124 READLINE_DIR = ../readline
125 READLINE = $(READLINE_DIR)/libreadline.a
126 READLINE_SRC = $(srcdir)/$(READLINE_DIR)
127 READLINE_CFLAGS = -I$(READLINE_SRC)/..
128
129 WARN_CFLAGS = @WARN_CFLAGS@
130 WERROR_CFLAGS = @WERROR_CFLAGS@
131 GDB_WARN_CFLAGS = $(WARN_CFLAGS)
132 GDB_WERROR_CFLAGS = $(WERROR_CFLAGS)
133
134 # Where is the INTL library?  Typically in ../intl.
135 INTL_DIR = ../intl
136 INTL = @INTLLIBS@
137 INTL_DEPS = @INTLDEPS@
138 INTL_SRC = $(srcdir)/$(INTL_DIR)
139 INTL_CFLAGS = -I$(INTL_DIR) -I$(INTL_SRC)
140
141 #
142 # CLI sub directory definitons
143 #
144 SUBDIR_CLI_OBS = \
145         cli-dump.o \
146         cli-decode.o cli-script.o cli-cmds.o cli-setshow.o cli-utils.o
147 SUBDIR_CLI_SRCS = \
148         cli/cli-dump.c \
149         cli/cli-decode.c cli/cli-script.c cli/cli-cmds.c cli/cli-setshow.c \
150         cli/cli-utils.c
151 SUBDIR_CLI_DEPS =
152 SUBDIR_CLI_INITS = \
153         $(SUBDIR_CLI_SRCS)
154 SUBDIR_CLI_LDFLAGS=
155 SUBDIR_CLI_CFLAGS=
156 SUBDIR_CLI_ALL=
157 SUBDIR_CLI_CLEAN=
158 SUBDIR_CLI_INSTALL=
159 SUBDIR_CLI_UNINSTALL=
160
161 #
162 # MI sub directory definitons
163 #
164 SUBDIR_MI_OBS = \
165         mi-out.o mi-console.o \
166         mi-cmds.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o \
167         mi-cmd-disas.o \
168         mi-main.o mi-parse.o mi-getopt.o
169 SUBDIR_MI_SRCS = \
170         mi/mi-out.c mi/mi-console.c \
171         mi/mi-cmds.c \
172         mi/mi-cmd-var.c mi/mi-cmd-break.c mi/mi-cmd-stack.c \
173         mi/mi-cmd-disas.c \
174         mi/mi-main.c mi/mi-parse.c mi/mi-getopt.c
175 SUBDIR_MI_DEPS =
176 SUBDIR_MI_INITS = \
177         $(SUBDIR_MI_SRCS)
178 SUBDIR_MI_LDFLAGS=
179 SUBDIR_MI_CFLAGS= \
180         -DMI_OUT=1
181 SUBDIR_MI_ALL=
182 SUBDIR_MI_CLEAN=
183 SUBDIR_MI_INSTALL=
184 SUBDIR_MI_UNINSTALL=
185
186 #
187 # TUI sub directory definitions
188 #
189 SUBDIR_TUI_OBS = \
190         tui-file.o tui.o tuiData.o tuiSource.o tuiStack.o tuiIO.o \
191         tuiGeneralWin.o tuiLayout.o tuiWin.o tuiCommand.o \
192         tuiDisassem.o tuiSourceWin.o tuiRegs.o tuiDataWin.o \
193         tui-out.o tui-hooks.o
194 SUBDIR_TUI_SRCS = \
195         tui/tui-file.c tui/tui.c tui/tuiData.c tui/tuiSource.c \
196         tui/tuiStack.c tui/tuiIO.c \
197         tui/tuiGeneralWin.c tui/tuiLayout.c \
198         tui/tuiWin.c tui/tuiCommand.c \
199         tui/tuiDisassem.c tui/tuiSourceWin.c \
200         tui/tuiRegs.c tui/tuiDataWin.c tui/tui-out.c tui/tui-hooks.c
201 SUBDIR_TUI_DEPS =
202 SUBDIR_TUI_INITS = \
203         $(SUBDIR_TUI_SRCS)
204 SUBDIR_TUI_LDFLAGS=
205 SUBDIR_TUI_CFLAGS= \
206         -DTUI=1 -I${srcdir}/tui
207 SUBDIR_TUI_ALL=
208 SUBDIR_TUI_CLEAN=
209 SUBDIR_TUI_INSTALL=
210 SUBDIR_TUI_UNINSTALL=
211
212
213
214 # Opcodes currently live in one of two places.  Either they are in the
215 # opcode library, typically ../opcodes, or they are in a header file
216 # in INCLUDE_DIR.
217 # Where is the "-lopcodes" library, with (some of) the opcode tables and
218 # disassemblers?
219 OPCODES_DIR = ../opcodes
220 OPCODES_SRC = $(srcdir)/$(OPCODES_DIR)
221 OPCODES = $(OPCODES_DIR)/libopcodes.a
222 # Where are the other opcode tables which only have header file
223 # versions?
224 OP_INCLUDE = $(INCLUDE_DIR)/opcode
225 OPCODES_CFLAGS = -I$(OP_INCLUDE)
226
227 # The simulator is usually nonexistent; targets that include one
228 # should set this to list all the .o or .a files to be linked in.
229 SIM =
230
231 WIN32LIBS = @WIN32LIBS@
232
233 # Where is the TCL library?  Typically in ../tcl.
234 LIB_INSTALL_DIR = $(libdir)
235 # This variable is needed when doing dynamic linking.
236 LIB_RUNTIME_DIR = $(libdir)
237 TCL = @TCL_LD_SEARCH_FLAGS@ @TCL_BUILD_LIB_SPEC@
238 TCL_CFLAGS = @TCLHDIR@
239 TCL_DEPS = @TCL_DEPS@
240 GDBTKLIBS = @GDBTKLIBS@
241 # Extra flags that the GDBTK files need:
242 GDBTK_CFLAGS = @GDBTK_CFLAGS@
243
244 # Where is the TK library?  Typically in ../tk.
245 TK = @TK_BUILD_LIB_SPEC@
246 TK_CFLAGS = @TKHDIR@ @TK_BUILD_INCLUDES@
247 TK_DEPS = @TK_DEPS@
248
249 # Where is Itcl?  Typically in ../itcl/itcl.
250 ITCL_CFLAGS = @ITCLHDIR@
251 ITCL = @ITCLLIB@
252 ITCL_DEPS = @ITCL_DEPS@ 
253
254 # Where is Itk?  Typically in ../itcl/itk.
255 ITK_CFLAGS = @ITKHDIR@
256 ITK = @ITKLIB@
257 ITK_DEPS = @ITK_DEPS@ 
258
259 # Where is Tix?  Typically in ../tix.
260 TIX_CFLAGS = @TIXHDIR@
261 TIX = @TIXLIB@
262 TIX_DEPS = @TIX_DEPS@
263
264 X11_CFLAGS = @TK_XINCLUDES@
265 X11_LDFLAGS =
266 X11_LIBS =
267
268 WIN32LDAPP = @WIN32LDAPP@
269
270 LIBGUI = @LIBGUI@
271 GUI_CFLAGS_X = @GUI_CFLAGS_X@
272 IDE_CFLAGS=$(GUI_CFLAGS_X) $(IDE_CFLAGS_X)
273
274 # The version of gdbtk we're building. This should be kept
275 # in sync with GDBTK_VERSION and friends in gdbtk.h.
276 GDBTK_VERSION = 1.0
277 GDBTK_LIBRARY = $(datadir)/insight$(GDBTK_VERSION)
278
279 # Gdbtk requires an absolute path to the source directory or
280 # the testsuite won't run properly.
281 GDBTK_SRC_DIR = @GDBTK_SRC_DIR@
282
283 SUBDIR_GDBTK_OBS = \
284         gdbtk.o gdbtk-bp.o gdbtk-cmds.o gdbtk-hooks.o \
285         gdbtk-register.o gdbtk-stack.o gdbtk-varobj.o gdbtk-wrapper.o
286 SUBDIR_GDBTK_SRCS = \
287         gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-bp.c \
288         gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c \
289         gdbtk/generic/gdbtk-register.c gdbtk/generic/gdbtk-stack.c \
290         gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c
291 SUBDIR_GDBTK_DEPS = \
292         $(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)
293 SUBDIR_GDBTK_INITS = gdbtk/generic/gdbtk.c
294 SUBDIR_GDBTK_LDFLAGS=
295 SUBDIR_GDBTK_CFLAGS= -DGDBTK
296 SUBDIR_GDBTK_ALL=
297 SUBDIR_GDBTK_CLEAN=
298 SUBDIR_GDBTK_INSTALL= install-gdbtk
299 SUBDIR_GDBTK_UNINSTALL= 
300
301 CONFIG_OBS= @CONFIG_OBS@
302 CONFIG_LIB_OBS= @CONFIG_LIB_OBS@
303 CONFIG_SRCS= @CONFIG_SRCS@
304 CONFIG_DEPS= @CONFIG_DEPS@
305 CONFIG_INITS= @CONFIG_INITS@
306 CONFIG_LDFLAGS = @CONFIG_LDFLAGS@
307 ENABLE_CFLAGS= @ENABLE_CFLAGS@
308 CONFIG_ALL= @CONFIG_ALL@
309 CONFIG_CLEAN= @CONFIG_CLEAN@
310 CONFIG_CLEAN= @CONFIG_CLEAN@
311 CONFIG_INSTALL = @CONFIG_INSTALL@
312 CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
313
314 # -I. for config files.
315 # -I$(srcdir) for gdb internal headers.
316 # -I$(srcdir)/config for more generic config files.
317
318 # It is also possible that you will need to add -I/usr/include/sys if
319 # your system doesn't have fcntl.h in /usr/include (which is where it
320 # should be according to Posix).
321 DEFS = @DEFS@
322 GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/config -DLOCALEDIR="\"$(prefix)/share/locale\"" $(DEFS)
323
324 # M{H,T}_CFLAGS, if defined, have host- and target-dependent CFLAGS
325 # from the config directory.
326 GLOBAL_CFLAGS = $(MT_CFLAGS) $(MH_CFLAGS)
327 #PROFILE_CFLAGS = -pg
328
329 # CFLAGS is specifically reserved for setting from the command line
330 # when running make.  I.E.  "make CFLAGS=-Wmissing-prototypes".
331 CFLAGS = @CFLAGS@
332
333 # Need to pass this to testsuite for "make check".  Probably should be
334 # consistent with top-level Makefile.in and gdb/testsuite/Makefile.in
335 # so "make check" has the same result no matter where it is run.
336 CXXFLAGS = -g -O
337
338 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
339 INTERNAL_WARN_CFLAGS = \
340         $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
341         $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
342         $(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) \
343         $(INTL_CFLAGS) $(ENABLE_CFLAGS) $(UIOUT_CFLAGS) \
344         $(GDB_WARN_CFLAGS)
345 INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS)
346
347 # LDFLAGS is specifically reserved for setting from the command line
348 # when running make.
349 LDFLAGS = @LDFLAGS@
350
351 # Profiling options need to go here to work.
352 # I think it's perfectly reasonable for a user to set -pg in CFLAGS
353 # and have it work; that's why CFLAGS is here.
354 INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) $(MH_LDFLAGS) $(LDFLAGS) $(CONFIG_LDFLAGS) @HLDFLAGS@
355 HLDENV = @HLDENV@
356
357 # If your system is missing alloca(), or, more likely, it's there but
358 # it doesn't work, then refer to libiberty.
359
360 # Libraries and corresponding dependencies for compiling gdb.
361 # {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
362 # TERMCAP comes after readline, since readline depends on it.
363 # MMALLOC comes after anything else that might want an allocation function.
364 # LIBIBERTY appears twice on purpose.
365 # If you have the Cygnus libraries installed,
366 # you can use 'CLIBS=$(INSTALLED_LIBS)' 'CDEPS='
367 INSTALLED_LIBS=-lbfd -lreadline -lopcodes -liberty \
368         $(TERMCAP) $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \
369         -lmmalloc -lintl -liberty
370 CLIBS = $(SIM) $(BFD) $(READLINE) $(OPCODES) $(INTL) $(LIBIBERTY) \
371         $(TERMCAP) $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \
372         $(MMALLOC) $(LIBIBERTY) $(WIN32LIBS)
373 CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE) \
374         $(OPCODES) $(MMALLOC) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS)
375
376 ADD_FILES = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
377 ADD_DEPS = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
378
379 DIST=gdb
380
381 LINT=/usr/5bin/lint
382 LINTFLAGS= $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
383         $(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) \
384         $(INTL_CFLAGS)
385
386 RUNTEST = `if [ -f $${rootsrc}/../dejagnu/runtest ] ; then \
387                 echo $${rootsrc}/../dejagnu/runtest ; else echo runtest; \
388            fi`
389
390 RUNTESTFLAGS=
391
392 # This is ser-unix.o for any system which supports a v7/BSD/SYSV/POSIX
393 # interface to the serial port.  Hopefully if get ported to OS/2, VMS,
394 # etc., then there will be (as part of the C library or perhaps as
395 # part of libiberty) a POSIX interface.  But at least for now the
396 # host-dependent makefile fragment might need to use something else
397 # besides ser-unix.o
398 SER_HARDWIRE = @SER_HARDWIRE@
399
400 # The `remote' debugging target is supported for most architectures,
401 # but not all (e.g. 960)
402 REMOTE_OBS = remote.o dcache.o remote-utils.o tracepoint.o ax-general.o ax-gdb.o
403
404 # This is remote-sim.o if a simulator is to be linked in.
405 SIM_OBS =
406
407 ANNOTATE_OBS = annotate.o
408
409 # Host and target-dependent makefile fragments come in here.
410 @host_makefile_frag@
411 @target_makefile_frag@
412 # End of host and target-dependent makefile fragments
413
414 # Possibly ignore the simulator.  If the simulator is being ignored, 
415 # these expand into SIM= and SIM_OBJ=, overriding the entries from 
416 # target_makefile_frag
417 #
418 @IGNORE_SIM@
419 @IGNORE_SIM_OBS@
420
421 FLAGS_TO_PASS = \
422         "prefix=$(prefix)" \
423         "exec_prefix=$(exec_prefix)" \
424         "infodir=$(infodir)" \
425         "libdir=$(libdir)" \
426         "mandir=$(mandir)" \
427         "datadir=$(datadir)" \
428         "includedir=$(includedir)" \
429         "against=$(against)" \
430         "AR=$(AR)" \
431         "AR_FLAGS=$(AR_FLAGS)" \
432         "CC=$(CC)" \
433         "CFLAGS=$(CFLAGS)" \
434         "CXX=$(CXX)" \
435         "CXXFLAGS=$(CXXFLAGS)" \
436         "DLLTOOL=$(DLLTOOL)" \
437         "RANLIB=$(RANLIB)" \
438         "MAKEINFO=$(MAKEINFO)" \
439         "MAKEHTML=$(MAKEHTML)" \
440         "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
441         "INSTALL=$(INSTALL)" \
442         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
443         "INSTALL_DATA=$(INSTALL_DATA)" \
444         "RUNTEST=$(RUNTEST)" \
445         "RUNTESTFLAGS=$(RUNTESTFLAGS)"
446
447 # Flags that we pass when building the testsuite.
448
449 # empty for native, $(target_alias)/ for cross
450 target_subdir = @target_subdir@
451
452 CC_FOR_TARGET = ` \
453   if [ -f $${rootme}/../gcc/xgcc ] ; then \
454     if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \
455       echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -idirafter $${rootme}/$(target_subdir)newlib/targ-include -idirafter $${rootsrc}/../$(target_subdir)newlib/libc/include -nostdinc -B$${rootme}/../$(target_subdir)newlib/; \
456     else \
457       echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
458     fi; \
459   else \
460     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
461       echo $(CC); \
462     else \
463       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
464     fi; \
465   fi`
466
467 CXX = gcc
468 CXX_FOR_TARGET = ` \
469   if [ -f $${rootme}/../gcc/xgcc ] ; then \
470     if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \
471       echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -idirafter $${rootme}/$(target_subdir)newlib/targ-include -idirafter $${rootsrc}/../$(target_subdir)newlib/libc/include -nostdinc -B$${rootme}/../$(target_subdir)newlib/; \
472     else \
473       echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
474     fi; \
475   else \
476     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
477       echo $(CXX); \
478     else \
479       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
480     fi; \
481   fi`
482
483 # OBSOLETE CHILLFLAGS = $(CFLAGS)
484 # OBSOLETE CHILL = gcc
485 # OBSOLETE CHILL_FOR_TARGET = ` \
486 # OBSOLETE   if [ -f $${rootme}/../gcc/Makefile ] ; then \
487 # OBSOLETE     echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -L$${rootme}/../gcc/ch/runtime/; \
488 # OBSOLETE   else \
489 # OBSOLETE     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
490 # OBSOLETE       echo $(CC); \
491 # OBSOLETE     else \
492 # OBSOLETE       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
493 # OBSOLETE     fi; \
494 # OBSOLETE   fi`
495 # OBSOLETE CHILL_LIB = ` \
496 # OBSOLETE   if [ -f $${rootme}/../gcc/ch/runtime/libchill.a ] ; then \
497 # OBSOLETE     echo $${rootme}/../gcc/ch/runtime/chillrt0.o \
498 # OBSOLETE       $${rootme}/../gcc/ch/runtime/libchill.a; \
499 # OBSOLETE   else \
500 # OBSOLETE       echo -lchill; \
501 # OBSOLETE   fi`
502
503 # The use of $$(x_FOR_TARGET) reduces the command line length by not
504 # duplicating the lengthy definition.
505 TARGET_FLAGS_TO_PASS = \
506         "prefix=$(prefix)" \
507         "exec_prefix=$(exec_prefix)" \
508         "against=$(against)" \
509         'CC=$$(CC_FOR_TARGET)' \
510         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
511         "CFLAGS=$(CFLAGS)" \
512         'CXX=$$(CXX_FOR_TARGET)' \
513         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
514         "CXXFLAGS=$(CXXFLAGS)" \
515         "INSTALL=$(INSTALL)" \
516         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
517         "INSTALL_DATA=$(INSTALL_DATA)" \
518         "MAKEINFO=$(MAKEINFO)" \
519         "MAKEHTML=$(MAKEHTML)" \
520         "RUNTEST=$(RUNTEST)" \
521         "RUNTESTFLAGS=$(RUNTESTFLAGS)"
522
523 # All source files that go into linking GDB.
524 # Links made at configuration time should not be specified here, since
525 # SFILES is used in building the distribution archive.
526
527 SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
528         ax-general.c ax-gdb.c bcache.c blockframe.c breakpoint.c \
529         buildsym.c c-exp.y c-lang.c c-typeprint.c c-valprint.c \
530         coffread.c \
531         complaints.c completer.c corefile.c cp-valprint.c dbxread.c \
532         demangle.c dwarfread.c dwarf2read.c elfread.c environ.c eval.c \
533         event-loop.c event-top.c \
534         expprint.c f-exp.y f-lang.c f-typeprint.c f-valprint.c \
535         findvar.c regcache.c gdbarch.c arch-utils.c gdbtypes.c osabi.c \
536         inf-loop.c infcmd.c inflow.c infrun.c language.c \
537         kod.c kod-cisco.c \
538         ui-out.c cli-out.c \
539         varobj.c wrapper.c \
540         jv-exp.y jv-lang.c jv-valprint.c jv-typeprint.c \
541         m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c main.c maint.c \
542         memattr.c mem-break.c minsyms.c mipsread.c nlmread.c objfiles.c \
543         p-exp.y p-lang.c p-typeprint.c p-valprint.c parse.c \
544         macrotab.c macroexp.c macrocmd.c macroscope.c \
545         printcmd.c remote.c remote-nrom.c scm-exp.c scm-lang.c \
546         scm-valprint.c source.c stabsread.c stack.c symfile.c \
547         symmisc.c symtab.c linespec.c target.c thread.c top.c tracepoint.c \
548         typeprint.c utils.c valarith.c valops.c valprint.c values.c \
549         serial.c ser-unix.c mdebugread.c \
550         tui/tui.c tui/tui.h tui/tuiCommand.c tui/tuiCommand.h \
551         tui/tuiData.c tui/tuiData.h tui/tuiDataWin.c tui/tuiDataWin.h \
552         tui/tuiDisassem.c tui/tuiDisassem.h tui/tuiGeneralWin.c \
553         tui/tuiGeneralWin.h tui/tuiIO.c tui/tuiIO.h tui/tuiLayout.c \
554         tui/tuiLayout.h tui/tuiRegs.c tui/tuiRegs.h tui/tuiSource.c \
555         tui/tuiSource.h tui/tuiSourceWin.c tui/tuiSourceWin.h \
556         tui/tuiStack.c tui/tuiStack.h tui/tuiWin.c tui/tuiWin.h \
557         tui/tui-file.h tui/tui-file.c tui/tui-out.c tui/tui-hooks.c \
558         ui-file.h ui-file.c \
559         frame.c doublest.c \
560         builtin-regs.c std-regs.c \
561         gnu-v2-abi.c gnu-v3-abi.c hpacc-abi.c cp-abi.c
562
563 LINTFILES = $(SFILES) $(YYFILES) $(CONFIG_SRCS) init.c
564
565 # "system" headers.  Using these in dependencies is a rather personal
566 # choice. (-rich, summer 1993)
567 # (Why would we not want to depend on them?  If one of these changes in a 
568 # non-binary-compatible way, it is a real pain to remake the right stuff
569 # without these dependencies -kingdon, 13 Mar 1994)
570 aout_aout64_h = $(INCLUDE_DIR)/aout/aout64.h
571 aout_stabs_gnu_h =      $(INCLUDE_DIR)/aout/stabs_gnu.h
572 getopt_h =      $(INCLUDE_DIR)/getopt.h
573 floatformat_h = $(INCLUDE_DIR)/floatformat.h
574 bfd_h =         $(BFD_DIR)/bfd.h
575 callback_h =    $(INCLUDE_DIR)/gdb/callback.h
576 coff_sym_h =    $(INCLUDE_DIR)/coff/sym.h
577 coff_symconst_h =       $(INCLUDE_DIR)/coff/symconst.h
578 coff_ecoff_h =  $(INCLUDE_DIR)/coff/ecoff.h
579 dis_asm_h =     $(INCLUDE_DIR)/dis-asm.h 
580 elf_sh_h =      $(INCLUDE_DIR)/elf/sh.h
581 elf_bfd_h =     $(BFD_SRC)/elf-bfd.h
582 libaout_h =     $(BFD_SRC)/libaout.h
583 remote_sim_h =  $(INCLUDE_DIR)/gdb/remote-sim.h
584 demangle_h =    $(INCLUDE_DIR)/demangle.h
585 obstack_h =     $(INCLUDE_DIR)/obstack.h
586 opcode_m68hc11_h = $(INCLUDE_DIR)/opcode/m68hc11.h
587 sh_opc_h =      $(OPCODES_SRC)/sh-opc.h
588 gdb_sim_arm_h = $(INCLUDE_DIR)/gdb/sim-arm.h
589 gdb_sim_d10v_h = $(INCLUDE_DIR)/gdb/sim-d10v.h
590 gdb_sim_sh_h =  $(INCLUDE_DIR)/gdb/sim-sh.h
591 splay_tree_h =  $(INCLUDE_DIR)/splay-tree.h
592
593 readline_headers = \
594         $(READLINE_SRC)/chardefs.h \
595         $(READLINE_SRC)/history.h \
596         $(READLINE_SRC)/keymaps.h \
597         $(READLINE_SRC)/readline.h
598
599 xm_h =          @xm_h@
600 tm_h =          @tm_h@
601 nm_h =          @nm_h@
602
603 #
604 # gdb/ header files
605 #
606
607 acconfig_h = acconfig.h
608 ada_lang_h = ada-lang.h $(value_h) $(gdbtypes_h)
609 alpha_tdep_h = alpha-tdep.h $(osabi_h)
610 alphabsd_tdep_h = alphabsd-tdep.h
611 annotate_h = annotate.h $(symtab_h) $(gdbtypes_h)
612 arch_utils_h = arch-utils.h
613 arm_tdep_h = arm-tdep.h $(osabi_h)
614 ax_gdb_h = ax-gdb.h
615 ax_h = ax.h $(doublest_h)
616 bcache_h = bcache.h
617 breakpoint_h = breakpoint.h $(frame_h) $(value_h) $(gdb_events_h)
618 buildsym_h = buildsym.h
619 builtin_regs_h = builtin-regs.h
620 c_lang_h = c-lang.h $(value_h) $(macroexp_h)
621 call_cmds_h = call-cmds.h
622 ch_lang_h = ch-lang.h
623 cli_out_h = cli-out.h
624 coff_solib_h = coff-solib.h
625 command_h = command.h
626 complaints_h = complaints.h
627 completer_h = completer.h
628 cp_abi_h = cp-abi.h
629 dcache_h = dcache.h
630 defs_h = defs.h $(config_h) $(gdb_locale_h) $(gdb_signals_h) $(ansidecl_h) \
631         $(libiberty_h) $(progress_h) $(bfd_h) $(tui_h) $(ui_file_h) $(xm_h) \
632         $(nm_h) $(tm_h) $(fopen_same_h) $(gdbarch_h) $(arch_utils_h)
633 doublest_h = doublest.h $(floatformat_h)
634 dst_h = dst.h
635 dwarf2cfi_h = dwarf2cfi.h
636 environ_h = environ.h
637 event_loop_h = event-loop.h
638 event_top_h = event-top.h
639 expression_h = expression.h $(symtab_h) $(doublest_h)
640 f_lang_h = f-lang.h
641 frame_h = frame.h
642 gdb_events_h = gdb-events.h
643 gdb_stabs_h = gdb-stabs.h
644 gdb_h = gdb.h
645 gdb_assert_h = gdb_assert.h
646 gdb_dirent_h = gdb_dirent.h
647 gdb_locale_h = gdb_locale.h
648 gdb_obstack_h = gdb_obstack.h $(obstack_h)
649 gdb_proc_service_h = gdb_proc_service.h $(gregset_h)
650 gdb_regex_h = gdb_regex.h $(xregex_h)
651 gdb_stat_h = gdb_stat.h
652 gdb_string_h = gdb_string.h
653 gdb_thread_db_h = gdb_thread_db.h
654 gdb_vfork_h = gdb_vfork.h
655 gdb_wait_h = gdb_wait.h
656 gdbarch_h = gdbarch.h $(dis_asm_h) $(value_h) $(inferior_h)
657 gdbcmd_h = gdbcmd.h $(command_h) $(ui_out_h)
658 gdbcore_h = gdbcore.h $(bfd_h)
659 gdbthread_h = gdbthread.h $(breakpoint_h)
660 gdbtypes_h = gdbtypes.h
661 gnu_nat_h = gnu-nat.h
662 gregset_h = gregset.h
663 i386_linux_tdep_h = i386-linux-tdep.h
664 i386_tdep_h = i386-tdep.h $(osabi_h)
665 i387_tdep_h = i387-tdep.h
666 inf_loop_h = inf-loop.h
667 inferior_h = inferior.h $(breakpoint_h) $(target_h)
668 jv_lang_h = jv-lang.h
669 kod_h = kod.h
670 language_h = language.h
671 linespec_h = linespec.h
672 m2_lang_h = m2-lang.h
673 macroexp_h = macroexp.h
674 macroscope_h = macroscope.h $(macrotab_h) $(symtab_h)
675 macrotab_h = macrotab.h
676 memattr_h = memattr.h
677 minimon_h = minimon.h
678 mipsnbsd_tdep_h = mipsnbsd-tdep.h
679 monitor_h = monitor.h
680 nbsd_tdep_h = nbsd-tdep.h
681 ns32k_tdep_h = ns32k-tdep.h $(osabi_h)
682 objfiles_h = objfiles.h $(gdb_obstack_h) $(symfile_h)
683 ocd_h = ocd.h
684 osabi_h = osabi.h
685 p_lang_h = p-lang.h
686 pa64solib_h = pa64solib.h
687 parser_defs_h = parser-defs.h $(doublest_h)
688 ppc_tdep_h = ppc-tdep.h $(osabi_h)
689 ppcnbsd_tdep_h = ppcnbsd-tdep.h
690 proc_utils_h = proc-utils.h
691 regcache_h = regcache.h
692 remote_utils_h = remote-utils.h $(target_h)
693 remote_h = remote.h
694 scm_lang_h = scm-lang.h $(scm_tags_h)
695 scm_tags_h = scm-tags.h
696 ser_unix_h = ser-unix.h
697 serial_h = serial.h
698 sh_tdep_h = sh-tdep.h $(osabi_h)
699 shnbsd_tdep_h = shnbsd-tdep.h
700 sim_regno_h = sim-regno.h
701 solib_svr4_h = solib-svr4.h
702 solib_h = solib.h
703 solist_h = solist.h
704 somsolib_h = somsolib.h
705 source_h = source.h
706 sparcnbsd_tdep_h = sparcnbsd-tdep.h
707 srec_h = srec.h
708 stabsread_h = stabsread.h
709 symfile_h = symfile.h
710 symtab_h = symtab.h
711 target_h = target.h $(bfd_h) $(symtab_h) $(dcache_h) $(memattr_h)
712 terminal_h = terminal.h
713 top_h = top.h
714 tracepoint_h = tracepoint.h
715 typeprint_h = typeprint.h
716 ui_file_h = ui-file.h
717 ui_out_h = ui-out.h
718 valprint_h = valprint.h
719 value_h = value.h $(doublest_h) $(symtab_h) $(gdbtypes_h) $(expression_h)
720 varobj_h = varobj.h $(symtab_h) $(gdbtypes_h)
721 vax_tdep_h = vax-tdep.h $(osabi_h)
722 version_h = version.h
723 wince_stub_h = wince-stub.h
724 wrapper_h = wrapper.h $(gdb_h)
725 x86_64_tdep_h = x86-64-tdep.h $(i386_tdep_h)
726 xcoffsolib_h = xcoffsolib.h
727 xmodem_h = xmodem.h
728
729 #
730 # gdb/cli/ headers
731 #
732
733 cli_cmds_h = $(srcdir)/cli/cli-cmds.h
734 cli_decode_h = $(srcdir)/cli/cli-decode.h $(gdb_regex_h) $(command_h)
735 cli_dump_h = $(srcdir)/cli/cli-dump.h
736 cli_script_h = $(srcdir)/cli/cli-script.h
737 cli_setshow_h = $(srcdir)/cli/cli-setshow.h
738 cli_utils_h = $(srcdir)/cli/cli-utils.h
739
740 #
741 # gdb/mi/ headers
742 #
743
744 mi_cmds_h = $(srcdir)/mi/mi-cmds.h
745 mi_console_h = $(srcdir)/mi/mi-console.h
746 mi_getopt_h = $(srcdir)/mi/mi-getopt.h
747 mi_out_h = $(srcdir)/mi/mi-out.h
748 mi_parse_h = $(srcdir)/mi/mi-parse.h
749
750 #
751 # gdb/tui/ headers
752 #
753
754 tui_file_h = $(srcdir)/tui/tui-file.h
755 tui_h = $(srcdir)/tui/tui.h $(ansidecl_h)
756 tuiCommand_h = $(srcdir)/tui/tuiCommand.h
757 tuiData_h = $(srcdir)/tui/tuiData.h
758 tuiDataWin_h = $(srcdir)/tui/tuiDataWin.h
759 tuiDisassem_h = $(srcdir)/tui/tuiDisassem.h
760 tuiGeneralWin_h = $(srcdir)/tui/tuiGeneralWin.h
761 tuiIO_h = $(srcdir)/tui/tuiIO.h
762 tuiLayout_h = $(srcdir)/tui/tuiLayout.h
763 tuiRegs_h = $(srcdir)/tui/tuiRegs.h
764 tuiSource_h = $(srcdir)/tui/tuiSource.h $(defs_h)
765 tuiSourceWin_h = $(srcdir)/tui/tuiSourceWin.h
766 tuiStack_h = $(srcdir)/tui/tuiStack.h
767 tuiWin_h = $(srcdir)/tui/tuiWin.h
768
769 # Header files that need to have srcdir added.  Note that in the cases
770 # where we use a macro like $(gdbcmd_h), things are carefully arranged
771 # so that each .h file is listed exactly once (M-x tags-search works
772 # wrong if TAGS has files twice).  Because this is tricky to get
773 # right, it is probably easiest just to list .h files here directly.
774
775 HFILES_NO_SRCDIR = bcache.h buildsym.h call-cmds.h coff-solib.h defs.h \
776         environ.h $(gdbcmd_h) gdb.h gdbcore.h \
777         gdb-stabs.h $(inferior_h) language.h minimon.h monitor.h \
778         objfiles.h parser-defs.h serial.h solib.h \
779         symfile.h stabsread.h target.h terminal.h typeprint.h xcoffsolib.h \
780         macrotab.h macroexp.h macroscope.h \
781         c-lang.h f-lang.h \
782         jv-lang.h \
783         m2-lang.h  p-lang.h \
784         complaints.h valprint.h \
785         nindy-share/b.out.h \
786         nindy-share/block_io.h nindy-share/coff.h \
787         nindy-share/env.h nindy-share/stop.h \
788         vx-share/dbgRpcLib.h vx-share/ptrace.h vx-share/vxTypes.h \
789         vx-share/vxWorks.h vx-share/wait.h vx-share/xdr_ld.h \
790         vx-share/xdr_ptrace.h vx-share/xdr_rdb.h gdbthread.h \
791         dcache.h remote-utils.h top.h somsolib.h
792
793 # Header files that already have srcdir in them, or which are in objdir.
794
795 HFILES_WITH_SRCDIR = ../bfd/bfd.h
796
797
798 # GDB "info" files, which should be included in their entirety
799 INFOFILES = gdb.info*
800
801 REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar
802
803 # {X,T,NAT}DEPFILES are something of a pain in that it's hard to
804 # default their values the way we do for SER_HARDWIRE; in the future
805 # maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other
806 # variables analogous to SER_HARDWIRE which get defaulted in this
807 # Makefile.in
808
809 DEPFILES = $(TDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) \
810            $(REMOTE_OBS) $(SIM_OBS) $(CONFIG_LIB_OBS)
811
812 SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES) $(CONFIG_SRCS)
813 # Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
814 # and it's more useful to see it in the .y file.
815 TAGFILES_NO_SRCDIR = $(SFILES) $(HFILES_NO_SRCDIR) $(ALLDEPFILES) \
816         $(SUBDIR_CLI_SRCS)
817 TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR)
818
819 COMMON_OBS = version.o blockframe.o breakpoint.o findvar.o regcache.o \
820         source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o \
821         symtab.o symfile.o symmisc.o linespec.o infcmd.o infrun.o \
822         expprint.o environ.o stack.o thread.o \
823         macrotab.o macrocmd.o macroexp.o macroscope.o \
824         event-loop.o event-top.o inf-loop.o completer.o \
825         gdbarch.o arch-utils.o gdbtypes.o osabi.o copying.o $(DEPFILES) \
826         memattr.o mem-break.o target.o parse.o language.o $(YYOBJ) buildsym.o \
827         builtin-regs.o std-regs.o \
828         signals.o \
829         kod.o kod-cisco.o \
830         gdb-events.o \
831         exec.o bcache.o objfiles.o minsyms.o maint.o demangle.o \
832         dbxread.o coffread.o elfread.o \
833         dwarfread.o dwarf2read.o mipsread.o stabsread.o corefile.o \
834         c-lang.o f-lang.o \
835         ui-out.o cli-out.o \
836         varobj.o wrapper.o \
837         jv-lang.o jv-valprint.o jv-typeprint.o \
838         m2-lang.o p-lang.o p-typeprint.o p-valprint.o \
839         scm-exp.o scm-lang.o scm-valprint.o complaints.o typeprint.o \
840         c-typeprint.o f-typeprint.o m2-typeprint.o \
841         c-valprint.o cp-valprint.o f-valprint.o m2-valprint.o \
842         nlmread.o serial.o mdebugread.o top.o utils.o \
843         ui-file.o \
844         frame.o doublest.o \
845         gnu-v2-abi.o gnu-v3-abi.o hpacc-abi.o cp-abi.o
846
847 OBS = $(COMMON_OBS) $(ANNOTATE_OBS)
848
849 TSOBS = inflow.o
850
851 SUBDIRS = @SUBDIRS@
852
853 # For now, shortcut the "configure GDB for fewer languages" stuff.
854 YYFILES = c-exp.tab.c \
855         ada-exp.tab.c \
856         jv-exp.tab.c \
857         f-exp.tab.c m2-exp.tab.c p-exp.tab.c
858 YYOBJ = c-exp.tab.o \
859         jv-exp.tab.o \
860         f-exp.tab.o m2-exp.tab.o p-exp.tab.o
861
862 # Things which need to be built when making a distribution.
863
864 DISTSTUFF = $(YYFILES)
865
866 # Prevent Sun make from putting in the machine type.  Setting
867 # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
868 .c.o:
869         $(CC) -c $(INTERNAL_CFLAGS) $<
870
871 all: gdb$(EXEEXT) $(CONFIG_ALL)
872         @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
873
874 installcheck:
875
876 # The check target can not use subdir_do, because subdir_do does not
877 # use TARGET_FLAGS_TO_PASS.
878 check: force
879         @if [ -f testsuite/Makefile ]; then \
880           rootme=`pwd`; export rootme; \
881           rootsrc=`cd $(srcdir); pwd`; export rootsrc; \
882           cd testsuite; \
883           $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \
884         else true; fi
885
886 info dvi install-info clean-info html install-html: force
887         @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
888
889 gdb.z:gdb.1
890         nroff -man $(srcdir)/gdb.1 | col -b > gdb.t 
891         pack gdb.t ; rm -f gdb.t
892         mv gdb.t.z gdb.z
893
894 # Traditionally "install" depends on "all".  But it may be useful
895 # not to; for example, if the user has made some trivial change to a 
896 # source file and doesn't care about rebuilding or just wants to save the
897 # time it takes for make to check that all is up to date.
898 # install-only is intended to address that need.
899 install: all install-only
900 install-only: $(CONFIG_INSTALL)
901         transformed_name=`t='$(program_transform_name)'; \
902                           echo gdb | sed -e $$t` ; \
903                 if test "x$$transformed_name" = x; then \
904                   transformed_name=gdb ; \
905                 else \
906                   true ; \
907                 fi ; \
908                 $(srcdir)/../mkinstalldirs $(bindir) ; \
909                 $(INSTALL_PROGRAM) gdb$(EXEEXT) $(bindir)/$$transformed_name$(EXEEXT) ; \
910                 $(srcdir)/../mkinstalldirs $(man1dir) ; \
911                 $(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$transformed_name.1
912         @$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do 
913
914 uninstall: force $(CONFIG_UNINSTALL)
915         transformed_name=`t='$(program_transform_name)'; \
916                           echo gdb | sed -e $$t` ; \
917                 if test "x$$transformed_name" = x; then \
918                   transformed_name=gdb ; \
919                 else \
920                   true ; \
921                 fi ; \
922                 rm -f $(bindir)/$$transformed_name$(EXEEXT) $(man1dir)/$$transformed_name.1
923         rm -rf $(GDBTK_LIBRARY)
924         @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do 
925
926 install-gdbtk:
927         $(SHELL) $(srcdir)/../mkinstalldirs $(GDBTK_LIBRARY) ; \
928         $(SHELL) $(srcdir)/../mkinstalldirs $(libdir)/insight$(GDBTK_VERSION) ; \
929         $(INSTALL_DATA) $(srcdir)/gdbtk/plugins/plugins.tcl $(libdir)/insight$(GDBTK_VERSION)/plugins.tcl ; \
930         $(SHELL) $(srcdir)/../mkinstalldirs \
931                 $(GDBTK_LIBRARY)/images \
932                 $(GDBTK_LIBRARY)/images2 ; \
933         $(SHELL) $(srcdir)/../mkinstalldirs $(GDBTK_LIBRARY)/help \
934                 $(GDBTK_LIBRARY)/help/images \
935                 $(GDBTK_LIBRARY)/help/trace ; \
936         cd $(srcdir)/gdbtk/library ; \
937         for i in *.tcl *.itcl *.ith *.itb images/*.gif images2/*.gif images/icons.txt images2/icons.txt tclIndex help/*.html  help/trace/*.html help/trace/index.toc help/images/*.gif; \
938           do \
939                 $(INSTALL_DATA) $$i $(GDBTK_LIBRARY)/$$i ; \
940           done ;
941
942 # We do this by grepping through sources.  If that turns out to be too slow,
943 # maybe we could just require every .o file to have an initialization routine
944 # of a given name (top.o -> _initialize_top, etc.).
945 #
946 # Formatting conventions:  The name of the _initialize_* routines must start
947 # in column zero, and must not be inside #if.
948 #
949 # Note that the set of files with init functions might change, or the names
950 # of the functions might change, so this files needs to depend on all the
951 # object files that will be linked into gdb.
952 #
953 # FIXME: There are 2 problems with this approach. First, if the INIT_FILES
954 # list includes a file twice (because of some mistake somewhere else) 
955 # the _initialize_* function will be included twice in init.c. Second, 
956 # init.c may force unnecessary files to be linked in.
957
958 # FIXME: cagney/2002-06-09: gdb/564: gdb/563: Force the order so that
959 # the first call is to _initialize_gdbtypes.  This is a hack to ensure
960 # that all the architecture dependant global builtin_type_* variables
961 # are initialized before anything else (per-architecture code is
962 # called in the same order that it is registered).  The ``correct
963 # fix'' is to have all the builtin types made part of the architecture
964 # and initialize them on-demand (using gdbarch_data) just like
965 # everything else.  The catch is that other modules still take the
966 # address of these builtin types forcing them to be variables, sigh!
967
968 INIT_FILES = $(OBS) $(TSOBS) $(CONFIG_OBS) $(CONFIG_INITS)
969 init.c: $(INIT_FILES)
970         @echo Making init.c
971         @rm -f init.c-tmp init.l-tmp
972         @-echo $(INIT_FILES) | \
973         tr ' ' '\012' | \
974         sed -e '/^Onindy.o/d' \
975             -e '/^init.o/d' \
976             -e '/^nindy.o/d' \
977             -e '/ttyflush.o/d' \
978             -e '/xdr_ld.o/d' \
979             -e '/xdr_ptrace.o/d' \
980             -e '/xdr_rdb.o/d' \
981             -e '/udr.o/d' \
982             -e '/udip2soc.o/d' \
983             -e '/udi2go32.o/d' \
984             -e '/version.o/d' \
985             -e '/^[a-z0-9A-Z_]*_[SU].o/d' \
986             -e '/[a-z0-9A-Z_]*-exp.tab.o/d' \
987             -e 's/\.o/.c/' \
988             -e 's,signals\.c,signals/signals\.c,' \
989             -e 's|\([^  ][^     ]*\)|$(srcdir)/\1|g' | \
990         while read f; do grep '^_initialize_[a-z_0-9A-Z]* *(' $$f 2>/dev/null; done | \
991         sed -e 's/^.*://' -e 's/^\([a-z_0-9A-Z]*\).*/\1/' | \
992         ( echo _initialize_gdbtypes ; grep -v '^_initialize_gdbtypes$$' ) > init.l-tmp
993         @echo '/* Do not modify this file.  */' >>init.c-tmp
994         @echo '/* It is created automatically by the Makefile.  */'>>init.c-tmp
995         @echo '#include "defs.h"' >>init.c-tmp
996         @echo '#include "call-cmds.h"' >>init.c-tmp
997         @sed -e 's/\(.*\)/extern initialize_file_ftype \1;/' <init.l-tmp >>init.c-tmp
998         @echo 'void' >>init.c-tmp
999         @echo 'initialize_all_files (void)' >>init.c-tmp
1000         @echo '{' >>init.c-tmp
1001         @sed -e 's/\(.*\)/  \1 ();/' <init.l-tmp >>init.c-tmp
1002         @echo '}' >>init.c-tmp
1003         @rm init.l-tmp
1004         @mv init.c-tmp init.c
1005
1006 .PRECIOUS: init.c
1007
1008 init.o: init.c $(defs_h) $(call_cmds_h)
1009
1010 # Removing the old gdb first works better if it is running, at least on SunOS.
1011 gdb$(EXEEXT): main.o libgdb.a $(CONFIG_OBS) $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
1012         rm -f gdb$(EXEEXT)
1013         $(HLDENV) $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) -o gdb$(EXEEXT) \
1014         main.o libgdb.a $(CONFIG_OBS) $(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS)\
1015         $(LOADLIBES)
1016
1017 nlm:    force
1018         rootme=`pwd`; export rootme; $(MAKE) $(TARGET_FLAGS_TO_PASS) DO=all DODIRS=nlm subdir_do
1019
1020 # Create a library of the gdb object files and build GDB by linking
1021 # against that.
1022 #
1023 # init.o is very important.  It pulls in the rest of GDB.
1024 LIBGDB_OBS= $(OBS) $(TSOBS) $(ADD_FILES) init.o
1025 libgdb.a: $(LIBGDB_OBS)
1026         -rm -f libgdb.a
1027         $(AR) q libgdb.a $(LIBGDB_OBS)
1028         $(RANLIB) libgdb.a
1029
1030 saber_gdb: $(SFILES) $(DEPFILES) copying.c version.c
1031         #setopt load_flags $(CFLAGS) $(BFD_CFLAGS) -DHOST_SYS=SUN4_SYS
1032         #load ./init.c $(SFILES)
1033         #unload $(srcdir)/c-exp.y
1034         #unload $(srcdir)/jv-exp.y
1035         #unload $(srcdir)/m2-exp.y
1036         #unload $(srcdir)/p-exp.y
1037         #unload vx-share/*.h
1038         #unload nindy-share/[A-Z]*
1039         #load c-exp.tab.c
1040         #load jv-exp.tab.c
1041         #load m2-exp.tab.c
1042         #load p-exp.tab.c
1043         #load copying.c version.c
1044         #load ../opcodes/libopcodes.a
1045         #load ../libiberty/libiberty.a
1046         #load ../bfd/libbfd.a
1047         #load ../readline/libreadline.a
1048         #load ../mmalloc/libmmalloc.a
1049         #load ../intl/libintl.a
1050         #load -ltermcap 
1051         #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
1052         echo "Load .c corresponding to:" $(DEPFILES)
1053
1054
1055 # A Mach 3.0 program to force gdb back to command level
1056
1057 stop-gdb: stop-gdb.o
1058         ${CC_LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o stop-gdb \
1059         stop-gdb.o $(CLIBS) $(LOADLIBES)
1060
1061 # This is useful when debugging GDB, because some Unix's don't let you run GDB
1062 # on itself without copying the executable.  So "make gdb1" will make
1063 # gdb and put a copy in gdb1, and you can run it with "gdb gdb1".
1064 # Removing gdb1 before the copy is the right thing if gdb1 is open
1065 # in another process.
1066 gdb1$(EXEEXT): gdb$(EXEEXT)
1067         rm -f gdb1$(EXEEXT)
1068         cp gdb$(EXEEXT) gdb1$(EXEEXT)
1069
1070 # FIXME. These are not generated by "make depend" because they only are there
1071 # for some machines.
1072 # But these rules don't do what we want; we want to hack the foo.o: tm.h
1073 # dependency to do the right thing.
1074 tm-sun3.h tm-hp300bsd.h tm-altos.h: tm-m68k.h
1075 tm-hp300hpux.h tm-sun2.h tm-3b1.h: tm-m68k.h
1076 xm-i386-sv32.h: xm-i386.h
1077 tm-i386gas.h: tm-i386.h
1078 tm-sun4os4.h: tm-sparc.h
1079 xm-vaxult.h: xm-vax.h
1080 xm-vaxbsd.h: xm-vax.h
1081
1082 # Put the proper machine-specific files first, so M-. on a machine
1083 # specific routine gets the one for the correct machine.  (FIXME: those
1084 # files go in twice; we should be removing them from the main list).
1085
1086 # TAGS depends on all the files that go into it so you can rebuild TAGS
1087 # with `make TAGS' and not have to say `rm TAGS' first.
1088
1089 TAGS: $(TAGFILES_NO_SRCDIR) $(TAGFILES_WITH_SRCDIR)
1090         @echo Making TAGS
1091         @etags $(srcdir)/$(TM_FILE) \
1092           $(srcdir)/$(XM_FILE) \
1093           $(srcdir)/$(NAT_FILE) \
1094         `(for i in $(DEPFILES) $(TAGFILES_NO_SRCDIR); do \
1095                 echo $(srcdir)/$$i ; \
1096         done ; for i in $(TAGFILES_WITH_SRCDIR); do \
1097                 echo $$i ; \
1098         done) | sed -e 's/\.o$$/\.c/'` \
1099         `find $(srcdir)/config -name '*.h' -print`
1100
1101 tags: TAGS
1102
1103 clean mostlyclean: $(CONFIG_CLEAN)
1104         @$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(SUBDIRS)" subdir_do 
1105         rm -f *.o *.a $(ADD_FILES) *~ init.c-tmp init.l-tmp version.c-tmp
1106         rm -f init.c version.c
1107         rm -f gdb$(EXEEXT) core make.log
1108         rm -f gdb[0-9]$(EXEEXT)
1109
1110 # This used to depend on c-exp.tab.c m2-exp.tab.c TAGS
1111 # I believe this is wrong; the makefile standards for distclean just
1112 # describe removing files; the only sort of "re-create a distribution"
1113 # functionality described is if the distributed files are unmodified.
1114 # NB: While GDBSERVER might be configured on native systems, it isn't
1115 # always included in SUBDIRS.  Remove the gdbserver files explictly.
1116 distclean: clean
1117         @$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(SUBDIRS)" subdir_do 
1118         rm -f gdbserver/config.status gdbserver/config.log
1119         rm -f gdbserver/tm.h gdbserver/xm.h gdbserver/nm.h
1120         rm -f gdbserver/Makefile gdbserver/config.cache
1121         rm -f nm.h tm.h xm.h config.status config.h stamp-h .gdbinit
1122         rm -f y.output yacc.acts yacc.tmp y.tab.h
1123         rm -f config.log config.cache
1124         rm -f Makefile
1125
1126 maintainer-clean: local-maintainer-clean do-maintainer-clean distclean
1127 realclean: maintainer-clean
1128
1129 local-maintainer-clean:
1130         @echo "This command is intended for maintainers to use;"
1131         @echo "it deletes files that may require special tools to rebuild."
1132         rm -f c-exp.tab.c \
1133                 ada-lex.c ada-exp.tab.c \
1134                 jv-exp.tab \
1135                 f-exp.tab.c m2-exp.tab.c p-exp.tab.c
1136         rm -f TAGS $(INFOFILES)
1137         rm -f $(YYFILES)
1138         rm -f nm.h tm.h xm.h config.status
1139
1140 do-maintainer-clean:
1141         @$(MAKE) $(FLAGS_TO_PASS) DO=maintainer-clean "DODIRS=$(SUBDIRS)" \
1142                 subdir_do
1143
1144 diststuff: $(DISTSTUFF)
1145         cd doc; $(MAKE) $(MFLAGS) diststuff
1146
1147 subdir_do: force
1148         @for i in $(DODIRS); do \
1149                 if [ -f ./$$i/Makefile ] ; then \
1150                         if (cd ./$$i; \
1151                                 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
1152                         else exit 1 ; fi ; \
1153                 else true ; fi ; \
1154         done
1155
1156 Makefile: Makefile.in config.status @frags@
1157         $(SHELL) config.status
1158
1159 config.h: stamp-h ; @true
1160 stamp-h: config.in config.status
1161         CONFIG_HEADERS=config.h:config.in $(SHELL) config.status
1162
1163 config.status: configure
1164         $(SHELL) config.status --recheck
1165
1166 force:
1167
1168 # Documentation!
1169 # GDB QUICK REFERENCE (TeX dvi file, CM fonts)
1170 doc/refcard.dvi:
1171         cd doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS)
1172
1173 # GDB QUICK REFERENCE (PostScript output, common PS fonts)
1174 doc/refcard.ps:
1175         cd doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS)
1176
1177 # GDB MANUAL: TeX dvi file
1178 doc/gdb.dvi:
1179         cd doc; $(MAKE) gdb.dvi $(FLAGS_TO_PASS)
1180
1181 # GDB MANUAL: info file
1182 doc/gdb.info:
1183         cd doc; $(MAKE) gdb.info $(FLAGS_TO_PASS)
1184
1185 # Make copying.c from COPYING
1186 $(srcdir)/copying.c: @MAINTAINER_MODE_TRUE@ \
1187                 $(srcdir)/COPYING $(srcdir)/copying.awk
1188         awk -f $(srcdir)/copying.awk \
1189                 < $(srcdir)/COPYING > $(srcdir)/copying.tmp
1190         mv $(srcdir)/copying.tmp $(srcdir)/copying.c
1191
1192 version.c: Makefile version.in
1193         rm -f version.c-tmp version.c
1194         echo '#include "version.h"' >> version.c-tmp
1195         echo 'const char version[] = "'"`sed q ${srcdir}/version.in`"'";' >> version.c-tmp
1196         echo 'const char host_name[] = "$(host_alias)";' >> version.c-tmp
1197         echo 'const char target_name[] = "$(target_alias)";' >> version.c-tmp
1198         mv version.c-tmp version.c
1199 version.o: version.c $(version_h)
1200
1201 # c-exp.tab.c is generated in objdir from c-exp.y if it doesn't exist
1202 # in srcdir, then compiled in objdir to c-exp.tab.o.
1203
1204 # If we said c-exp.tab.c rather than ./c-exp.tab.c some makes
1205 # would sometimes re-write it into $(srcdir)/c-exp.tab.c.
1206
1207 # Remove bogus decls for malloc/realloc/free which conflict with everything
1208 # else.  Strictly speaking c-exp.tab.c should therefore depend on
1209 # Makefile.in, but that was a pretty big annoyance.
1210 c-exp.tab.c: c-exp.y
1211         $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/c-exp.y  y.tab.c c-exp.tmp -- $(YFLAGS) 
1212         -sed -e '/extern.*malloc/d' \
1213              -e '/extern.*realloc/d' \
1214              -e '/extern.*free/d' \
1215              -e '/include.*malloc.h/d' \
1216              -e 's/malloc/xmalloc/g' \
1217              -e 's/realloc/xrealloc/g' \
1218              -e '/^#line.*y.tab.c/d' \
1219           < c-exp.tmp > c-exp.new
1220         -rm c-exp.tmp
1221         mv c-exp.new ./c-exp.tab.c
1222
1223 jv-exp.tab.o: jv-exp.tab.c
1224 jv-exp.tab.c: jv-exp.y
1225         $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/jv-exp.y  y.tab.c jv-exp.tmp -- $(YFLAGS) 
1226         -sed -e '/extern.*malloc/d' \
1227              -e '/extern.*realloc/d' \
1228              -e '/extern.*free/d' \
1229              -e '/include.*malloc.h/d' \
1230              -e 's/malloc/xmalloc/g' \
1231              -e 's/realloc/xrealloc/g' \
1232              -e '/^#line.*y.tab.c/d' \
1233           < jv-exp.tmp > jv-exp.new
1234         -rm jv-exp.tmp
1235         mv jv-exp.new ./jv-exp.tab.c
1236
1237 f-exp.tab.o: f-exp.tab.c
1238 f-exp.tab.c: f-exp.y c-exp.tab.c
1239         $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/f-exp.y  y.tab.c f-exp.tmp -- $(YFLAGS) 
1240         -sed -e '/extern.*malloc/d' \
1241              -e '/extern.*realloc/d' \
1242              -e '/extern.*free/d' \
1243              -e '/include.*malloc.h/d' \
1244              -e 's/malloc/xmalloc/g' \
1245              -e 's/realloc/xrealloc/g' \
1246              -e '/^#line.*y.tab.c/d' \
1247           < f-exp.tmp > f-exp.new
1248         -rm f-exp.tmp
1249         mv f-exp.new ./f-exp.tab.c
1250
1251 # m2-exp.tab.c is generated in objdir from m2-exp.y if it doesn't exist
1252 # in srcdir, then compiled in objdir to m2-exp.tab.o.
1253 # Remove bogus decls for malloc/realloc/free which conflict with everything
1254 # else.
1255 m2-exp.tab.o: m2-exp.tab.c
1256 m2-exp.tab.c: m2-exp.y
1257         $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/m2-exp.y  y.tab.c m2-exp.tmp -- $(YFLAGS) 
1258         -sed -e '/extern.*malloc/d' \
1259              -e '/extern.*realloc/d' \
1260              -e '/extern.*free/d' \
1261              -e '/include.*malloc.h/d' \
1262              -e 's/malloc/xmalloc/g' \
1263              -e 's/realloc/xrealloc/g' \
1264              -e '/^#line.*y.tab.c/d' \
1265           < m2-exp.tmp > m2-exp.new
1266         -rm m2-exp.tmp
1267         mv m2-exp.new ./m2-exp.tab.c
1268
1269 # ada-exp.tab.c is generated in objdir from ada-exp.y if it doesn't exist
1270 # in srcdir, then compiled in objdir to ada-exp.tab.o.
1271 # Remove bogus decls for malloc/realloc/free which conflict with everything
1272 # else.
1273 ada-exp.tab.c: ada-exp.y 
1274         $(YACC) $(YFLAGS) $(srcdir)/ada-exp.y
1275         -sed -e '/extern.*malloc/d' \
1276         -e '/extern.*realloc/d' \
1277         -e '/extern.*free/d' \
1278         -e '/include.*malloc.h/d' \
1279         -e 's/malloc/xmalloc/g' \
1280         -e 's/realloc/xrealloc/g' \
1281         < y.tab.c > ada-exp.new
1282         -rm y.tab.c
1283         mv ada-exp.new ./ada-exp.tab.c
1284
1285 ada-lex.c: ada-lex.l
1286         @if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \
1287             echo $(FLEX) -Isit $(srcdir)/ada-lex.l ">" ada-lex.c; \
1288             $(FLEX) -Isit $(srcdir)/ada-lex.l > ada-lex.c; \
1289         elif [ ! -f ada-lex.c -a ! -f $(srcdir)/ada-lex.c ]; then \
1290             echo "ada-lex.c missing and flex not available."; \
1291             false; \
1292         elif [ ! -f ada-lex.c ]; then \
1293             echo "Warning: ada-lex.c older than ada-lex.l and flex not available."; \
1294         fi
1295
1296 # p-exp.tab.c is generated in objdir from p-exp.y if it doesn't exist
1297 # in srcdir, then compiled in objdir to p-exp.tab.o.
1298 # Remove bogus decls for malloc/realloc/free which conflict with everything
1299 # else.
1300 p-exp.tab.o: p-exp.tab.c
1301 p-exp.tab.c: p-exp.y
1302         $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/p-exp.y  y.tab.c p-exp.tmp -- $(YFLAGS)
1303         -sed -e '/extern.*malloc/d' \
1304              -e '/extern.*realloc/d' \
1305              -e '/extern.*free/d' \
1306              -e '/include.*malloc.h/d' \
1307              -e 's/malloc/xmalloc/g' \
1308              -e 's/realloc/xrealloc/g' \
1309              -e '/^#line.*y.tab.c/d' \
1310           < p-exp.tmp > p-exp.new
1311         -rm p-exp.tmp
1312         mv p-exp.new ./p-exp.tab.c
1313
1314 # These files are updated atomically, so make never has to remove them
1315 .PRECIOUS: m2-exp.tab.c f-exp.tab.c c-exp.tab.c
1316 .PRECIOUS: jv-exp.tab.c p-exp.tab.c ada-exp.tab.c
1317
1318 lint: $(LINTFILES)
1319         $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \
1320            `echo $(DEPFILES) | sed 's/\.o /\.c /g'`
1321
1322 gdb.cxref: $(SFILES)
1323         cxref -I. $(SFILES) >gdb.cxref
1324
1325 force_update:
1326
1327 # GNU Make has an annoying habit of putting *all* the Makefile variables
1328 # into the environment, unless you include this target as a circumvention.
1329 # Rumor is that this will be fixed (and this target can be removed)
1330 # in GNU Make 4.0.
1331 .NOEXPORT:
1332
1333 # GNU Make 3.63 has a different problem: it keeps tacking command line
1334 # overrides onto the definition of $(MAKE).  This variable setting
1335 # will remove them.
1336 MAKEOVERRIDES=
1337
1338 ## This is ugly, but I don't want GNU make to put these variables in
1339 ## the environment.  Older makes will see this as a set of targets
1340 ## with no dependencies and no actions.
1341 # OBSOLETE unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
1342
1343 ALLDEPFILES = a68v-nat.c \
1344         aix-thread.c \
1345         alpha-nat.c alphabsd-nat.c \
1346         alpha-tdep.c alpha-linux-tdep.c alphabsd-tdep.c alphanbsd-tdep.c \
1347         alpha-osf1-tdep.c alphafbsd-tdep.c \
1348         arm-linux-nat.c arm-linux-tdep.c arm-tdep.c \
1349         armnbsd-nat.c armnbsd-tdep.c \
1350         avr-tdep.c \
1351         coff-solib.c \
1352         core-sol2.c core-regset.c core-aout.c corelow.c \
1353         dcache.c delta68-nat.c dpx2-nat.c exec.c fork-child.c \
1354         go32-nat.c h8300-tdep.c h8500-tdep.c \
1355         hp300ux-nat.c hppa-tdep.c hppab-nat.c hppah-nat.c hpread.c \
1356         i386-tdep.c i386b-nat.c i386v-nat.c i386-linux-nat.c \
1357         i386v4-nat.c i386ly-tdep.c \
1358         i386bsd-nat.c i386bsd-tdep.c i386fbsd-nat.c \
1359         i387-tdep.c \
1360         i386-linux-tdep.c i386-nat.c \
1361         i386gnu-nat.c i386gnu-tdep.c \
1362         i960-tdep.c \
1363         ia64-linux-nat.c ia64-linux-tdep.c ia64-tdep.c \
1364         infptrace.c inftarg.c irix4-nat.c irix5-nat.c \
1365         lynx-nat.c m3-nat.c \
1366         m68hc11-tdep.c \
1367         m68k-tdep.c \
1368         mcore-tdep.c \
1369         mips-linux-nat.c mips-linux-tdep.c \
1370         mips-nat.c \
1371         mips-irix-tdep.c \
1372         mips-tdep.c mipsm3-nat.c mipsv4-nat.c \
1373         mipsnbsd-nat.c mipsnbsd-tdep.c \
1374         nbsd-tdep.c \
1375         nindy-share/Onindy.c nindy-share/nindy.c \
1376         nindy-share/ttyflush.c nindy-tdep.c \
1377         ns32k-tdep.c solib-osf.c \
1378         somread.c somsolib.c $(HPREAD_SOURCE) \
1379         ppc-sysv-tdep.o ppc-linux-nat.c ppc-linux-tdep.c \
1380         ppcnbsd-nat.o ppcnbsd-tdep.o \
1381         procfs.c \
1382         remote-array.c remote-e7000.c \
1383         remote-es.c remote-hms.c remote-mips.c \
1384         remote-nindy.c remote-rdp.c remote-sim.c \
1385         remote-st.c remote-utils.c dcache.c \
1386         remote-vx.c \
1387         rs6000-nat.c rs6000-tdep.c \
1388         s390-tdep.c s390-nat.c \
1389         ser-go32.c ser-pipe.c ser-tcp.c \
1390         sh-tdep.c shnbsd-tdep.c shnbsd-nat.c \
1391         solib.c solib-irix.c solib-svr4.c solib-sunos.c sparc-linux-nat.c \
1392         sparc-nat.c \
1393         sparc64nbsd-nat.c sparcnbsd-nat.c sparcnbsd-tdep.c \
1394         sparc-tdep.c sparcl-tdep.c sun3-nat.c \
1395         symm-tdep.c symm-nat.c \
1396         vax-tdep.c \
1397         vx-share/xdr_ld.c vx-share/xdr_ptrace.c vx-share/xdr_rdb.c \
1398         win32-nat.c \
1399         xcoffread.c xcoffsolib.c \
1400         xstormy16-tdep.c \
1401         z8k-tdep.c
1402
1403 # Some files need explict build rules (due to -Werror problems) or due
1404 # to sub-directory fun 'n' games.
1405
1406 # Provide explicit rule/dependency - works for more makes.
1407 copying.o: $(srcdir)/copying.c
1408         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/copying.c
1409
1410 hpux-thread.o: $(srcdir)/hpux-thread.c
1411         $(CC) -c $(INTERNAL_CFLAGS) -I$(srcdir)/osf-share \
1412                 -I$(srcdir)/osf-share/HP800 -I/usr/include/dce \
1413                 $(srcdir)/hpux-thread.c
1414
1415 # FIXME: Procfs.o gets -Wformat errors because things like pid_t don't
1416 # match output format strings.
1417 procfs.o: $(srcdir)/procfs.c
1418         $(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) $(srcdir)/procfs.c
1419
1420 v850ice.o: $(srcdir)/v850ice.c
1421         $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
1422                 $(TIX_CFLAGS) $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \
1423                 $(GDBTK_CFLAGS) \
1424                 $(srcdir)/v850ice.c
1425
1426 # FIXME: z8k-tdep.c calls _initialize_gdbtypes().  Since that isn't
1427 # declared -Wimplicit fails. It should be using the GDBARCH framework.
1428 # cagney 1999-09-02.
1429 z8k-tdep.o: $(srcdir)/z8k-tdep.c
1430         $(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) \
1431                 $(srcdir)/z8k-tdep.c
1432
1433 # The dependencies.  In aphabetic order.
1434
1435 a68v-nat.o: a68v-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) \
1436         $(regcache_h)
1437
1438 aix-thread.o: aix-thread.c $(defs_h) $(gdbcore_h) $(gdbthread_h) \
1439         $(inferior_h) $(target_h) $(regcache_h) $(gdbcmd_h) $(gdb_assert_h) \
1440         $(ppc_tdep_h) $(language_h)
1441
1442 ada-lang.o: ada-lang.c ada-lang.h c-lang.h $(defs_h) $(expression_h) \
1443         $(gdbtypes_h) $(inferior_h) language.h parser-defs.h $(symtab_h) \
1444         $(gdbcmd_h) $(ui_out_h) symfile.h objfiles.h $(gdbcore_h)
1445
1446 ada-tasks.o: ada-tasks.c ada-lang.h $(defs_h) language.h $(value_h) \
1447         $(command_h) $(value_h) $(gdbcore_h)
1448
1449 ada-typeprint.o: ada-typeprint.c ada-lang.h $(defs_h) $(expression_h) \
1450         $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) \
1451         target.h typeprint.h $(value_h) ada-lang.h
1452
1453 ada-valprint.o: ada-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1454         language.h $(symtab_h) valprint.h $(value_h) c-lang.h ada-lang.h \
1455         annotate.h
1456
1457 alpha-nat.o: alpha-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) $(target_h) \
1458         $(regcache_h) $(alpha_tdep_h)
1459
1460 alphabsd-nat.o: alphabsd-nat.c $(defs_h) $(inferior_h) $(regcache_h) \
1461         $(alpha_tdep_h) alphabsd-tdep.h
1462
1463 alpha-tdep.o: alpha-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1464         $(inferior_h) $(symtab_h) $(dis_asm_h) $(gdb_string_h) $(linespec_h) \
1465         $(regcache_h) $(doublest_h) $(BFD_SRC)/elf-bfd.h $(alpha_tdep_h)
1466
1467 alpha-linux-tdep.o: alpha-linux-tdep.c $(defs_h) $(value_h) $(alpha_tdep_h)
1468
1469 alpha-osf1-tdep.o: alpha-osf1-tdep.c $(defs_h) $(value_h) $(alpha_tdep_h)
1470
1471 alphabsd-tdep.o: alphabsd-tdep.c $(defs_h) $(regcache_h) alphabsd-tdep.h
1472
1473 alphafbsd-tdep.o: alphafbsd-tdep.c $(defs_h) $(value_h) $(alpha_tdep_h)
1474
1475 alphanbsd-tdep.o: alphanbsd-tdep.c $(defs_h) $(gdbcore_h) $(regcache_h) \
1476         $(value_h) $(alpha_tdep_h) solib-svr4.h alphabsd-tdep.h nbsd-tdep.h
1477
1478 annotate.o: annotate.c $(defs_h) $(annotate_h) $(value_h) $(target_h) $(gdbtypes_h)
1479
1480 arm-linux-nat.o: arm-linux-nat.c $(defs_h) $(inferior_h) $(gdbcore_h) \
1481         $(gdb_string_h) $(regcache_h) $(arm_tdep_h)
1482
1483 arm-linux-tdep.o: arm-linux-tdep.c $(defs_h) $(target_h) $(value_h) \
1484         $(gdbtypes_h) $(floatformat_h) $(regcache_h) $(doublest_h) $(arm_tdep_h)
1485
1486 arm-tdep.o: arm-tdep.c $(defs_h) $(frame_h) $(inferior_h) $(gdbcmd_h) \
1487         $(gdbcore_h) $(gdb_string_h) $(dis_asm_h) $(regcache_h) $(doublest_h) \
1488         $(value_h) $(arch_utils_h) $(solib_svr4_h) $(arm_tdep_h) \
1489         $(BFD_SRC)/elf-bfd.h $(INCLUDE_DIR)/coff/internal.h \
1490         $(INCLUDE_DIR)/elf/arm.h $(sim_arm_h) $(gdb_assert_h)
1491
1492 armnbsd-nat.o: armnbsd-nat.c $(defs_h) $(arm_tdep_h) $(inferior_h) \
1493         $(regcache_h) $(gdbcore_h)
1494
1495 armnbsd-tdep.o: armnbsd-tdep.c $(defs_h) $(arm_tdep_h) solib-svr4.h \
1496         nbsd-tdep.h
1497
1498 avr-tdep.o: avr-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
1499         $(symfile_h) $(arch_utils_h) $(regcache_h) $(gdb_string_h)
1500
1501 bcache.o: bcache.c $(defs_h) $(gdb_obstack_h) $(bcache_h) $(gdb_string_h)
1502
1503 blockframe.o: blockframe.c $(defs_h) $(gdbcore_h) $(inferior_h) \
1504         $(objfiles_h) $(symfile_h) $(target_h) $(regcache_h)
1505
1506 breakpoint.o: breakpoint.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1507         $(inferior_h) $(language_h) $(target_h) $(gdbthread_h) \
1508         $(gdb_string_h) $(gdb_events_h) $(linespec_h) $(ui_out_h) \
1509         $(completer_h) $(gdb_h)
1510
1511 buildsym.o: buildsym.c $(defs_h) $(bfd_h) $(gdb_obstack_h) $(symtab_h) \
1512         $(symfile_h) $(objfiles_h) $(gdbtypes_h) $(complaints_h) \
1513         $(gdb_string_h) $(expression_h) $(language_h) $(bcache_h) \
1514         $(filenames_h) $(macrotab_h) $(demangle_h) $(buildsym_h) $(stabsread_h)
1515
1516 builtin-regs.o: builtin-regs.c $(defs.h) $(builtin_regs_h) $(gdbtypes_h) \
1517         $(gdb_string_h) $(value_h) $(frame_h)
1518
1519 c-lang.o: c-lang.c $(c_lang_h) $(defs_h) $(expression_h) $(gdbtypes_h) \
1520         $(language_h) $(parser_defs_h) $(symtab_h) $(macroscope_h) \
1521         gdb_assert.h
1522
1523 c-typeprint.o: c-typeprint.c $(defs_h) $(gdb_obstack_h) $(bfd_h) $(symtab_h) \
1524         $(gdbtypes_h) $(expression_h) $(value_h) $(gdbcore_h) $(target_h) \
1525         $(language_h) $(demangle_h) $(c_lang_h) $(typeprint_h) $(cp_abi_h) \
1526         $(gdb_string_h)
1527
1528 c-valprint.o: c-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1529         $(language_h) $(symtab_h) $(valprint_h) $(value_h) $(cp_abi_h)
1530
1531 doublest.o: doublest.c $(defs_h) $(doublest_h) $(floatformat_h) $(gdbtypes_h) \
1532         $(gdb_assert_h) $(gdb_string_h)
1533
1534 f-lang.o: f-lang.c f-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
1535         $(language_h) $(parser_defs_h) $(symtab_h) $(gdb_string_h)
1536
1537 f-typeprint.o: f-typeprint.c $(defs_h) $(gdb_obstack_h) $(bfd_h) $(symtab_h) \
1538         $(gdbtypes_h) $(expression_h) $(value_h) $(gdbcore_h) $(target_h) \
1539         $(f_lang_h) $(gdb_string_h)
1540
1541 f-valprint.o: f-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1542         $(language_h) $(symtab_h) $(valprint_h) $(value_h) $(gdb_string_h)
1543
1544 # OBSOLETE ch-exp.o: ch-exp.c ch-lang.h $(defs_h) $(language_h) $(parser_defs_h) \
1545 # OBSOLETE      $(bfd_h) $(symfile_h) $(objfiles_h) $(value_h)
1546
1547 # OBSOLETE ch-lang.o: ch-lang.c ch-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
1548 # OBSOLETE      $(language_h) $(parser_defs_h) $(symtab_h)
1549
1550 # OBSOLETE ch-typeprint.o: ch-typeprint.c $(defs_h) $(gdb_obstack_h) $(bfd_h) \
1551 # OBSOLETE      $(symtab_h) $(gdbtypes_h) $(expression_h) $(value_h) $(gdbcore_h) \
1552 # OBSOLETE      $(target_h) $(language_h) $(ch_lang_h) $(typeprint_h) $(gdb_string_h)
1553
1554 # OBSOLETE ch-valprint.o: ch-valprint.c $(defs_h) $(gdb_obstack_h) $(symtab_h) \
1555 # OBSOLETE      $(gdbtypes_h) $(valprint_h) $(expression_h) $(value_h) $(language_h) \
1556 # OBSOLETE      $(demangle_h) $(c_lang_h) $(typeprint_h) $(ch_lang_h) $(annotate_h)
1557
1558 coff-solib.o: coff-solib.c $(defs_h)
1559
1560 coffread.o: coffread.c $(defs_h) $(symtab_h) $(gdbtypes_h) $(demangle_h) \
1561         $(breakpoint_h) $(bfd_h) $(gdb_obstack_h) $(gdb_string_h) \
1562         $(coff_internal_h) $(libcoff_h) $(symfile_h) $(objfiles_h) \
1563         $(buildsym_h) $(gdb_stabs_h) $(stabsread_h) $(complaints_h) \
1564         $(target_h) $(gdb_assert_h)
1565
1566 complaints.o: complaints.c $(complaints_h) $(defs_h) $(gdbcmd_h)
1567
1568 # Provide explicit rule/dependency - works for more makes.
1569 copying.o: $(srcdir)/copying.c $(defs_h) $(gdbcmd_h)
1570
1571 core-aout.o: core-aout.c $(defs_h) $(gdbcore_h) $(value_h) $(inferior_h) \
1572         $(regcache_h)
1573
1574 core-sol2.o: core-sol2.c $(command_h) $(defs_h) $(gdbcore_h) \
1575         $(inferior_h) $(target_h) $(gdb_string_h) $(regcache_h)
1576
1577 core-regset.o: core-regset.c $(command_h) $(defs_h) $(gdbcore_h) \
1578         $(inferior_h) $(target_h) $(gdb_string_h)
1579
1580 corefile.o: corefile.c $(dis_asm_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1581         $(inferior_h) $(target_h) $(language_h) $(gdb_string_h) \
1582         $(completer_h) $(symfile_h)
1583
1584 corelow.o: corelow.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1585         $(target_h) $(gdbthread_h) $(gdb_string_h) $(regcache_h)
1586
1587 gcore.o: gcore.c $(defs_h) $(cli_decode_h) $(inferior_h) $(gdbcore_h) \
1588         $(elf_bfd_h) $(symfile_h) $(objfiles_h)
1589
1590 linux-proc.o: linux-proc.c $(defs_h) $(inferior_h) $(regcache_h) $(gregset_h) \
1591         $(gdbcore_h) $(gdbthread_h) $(elf_bfd_h) $(cli_decode_h) \
1592         $(gdb_string_h)
1593
1594 cp-abi.o: cp-abi.c $(defs_h) $(value_h) $(cp_abi_h)
1595
1596 cp-valprint.o: cp-valprint.c $(defs_h) $(gdb_obstack_h) $(symtab_h) \
1597         $(gdbtypes_h) $(expression_h) $(value_h) $(command_h) $(gdbcmd_h) \
1598         $(demangle_h) $(annotate_h) $(gdb_string_h) $(c_lang_h) $(target_h) \
1599         $(cp_abi_h)
1600
1601 dcache.o: dcache.c $(dcache_h) $(defs_h) $(gdbcmd_h) $(gdb_string_h) \
1602         $(gdbcore_h) $(target_h)
1603
1604 d10v-tdep.o: d10v-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(gdbtypes_h) \
1605         $(gdbcmd_h) $(gdbcore_h) $(gdb_string_h) $(value_h) $(inferior_h) \
1606         $(dis_asm_h) $(symfile_h) $(objfiles_h) $(language_h) $(arch_utils_h) \
1607         $(regcache_h) $(floatformat_h) $(sim_d10v_h) $(sim_regno_h)
1608
1609 dbxread.o: dbxread.c $(defs_h) $(gdb_string_h) $(gdb_obstack_h) $(gdb_stat_h) \
1610         $(symtab_h) $(breakpoint_h) $(target_h) $(gdbcore_h) $(libaout_h) \
1611         $(symfile_h) $(objfiles_h) $(buildsym_h) $(stabsread_h) \
1612         $(gdb_stabs_h) $(demangle_h) $(language_h) $(complaints_h) \
1613         $(cp_abi_h) $(aout_aout64_h) $(aout_stab_gnu_h)
1614
1615 delta68-nat.o: delta68-nat.c $(defs_h)
1616
1617 demangle.o: demangle.c $(defs_h) $(gdbcmd_h) $(gdb_string_h)
1618
1619 dink32-rom.o: dink32-rom.c $(monitor_h) $(bfd_h) $(gdb_wait_h) $(defs_h) \
1620         $(gdbcmd_h) $(inferior_h) $(target_h) $(serial_h) $(terminal_h) \
1621         $(symfile_h) $(regcache_h)
1622
1623 dpx2-nat.o: dpx2-nat.c $(defs_h) $(gdbcore_h) $(gdb_string_h)
1624
1625 # OBSOLETE dstread.o: dstread.c $(defs_h) $(symtab_h) $(gdbtypes_h) $(breakpoint_h) \
1626 # OBSOLETE      $(bfd_h) $(symfile_h) $(objfiles_h) $(buildsym_h) $(gdb_obstack_h) \
1627 # OBSOLETE      $(gdb_string_h) $(dst_h)
1628
1629 dwarf2cfi.o: dwarf2cfi.c $(defs_h) $(symtab_h) $(symfile_h) $(objfiles_h) \
1630         $(target_h) $(inferior_h) $(regcache_h) $(dwarf2cfi_h)
1631
1632 dwarfread.o: dwarfread.c $(bfd_h) $(buildsym_h) $(complaints_h) $(defs_h) \
1633         $(expression_h) $(gdbtypes_h) $(language_h) $(objfiles_h) \
1634         $(symfile_h) $(symtab_h) $(gdb_string_h)
1635
1636 dwarf2read.o: dwarf2read.c $(bfd_h) $(buildsym_h) $(defs_h) \
1637         $(expression_h) $(gdbtypes_h) $(language_h) $(objfiles_h) \
1638         $(symfile_h) $(symtab_h) $(gdb_string_h) $(macrotab_h)
1639
1640 elfread.o: elfread.c $(bfd_h) $(buildsym_h) $(complaints_h) $(defs_h) \
1641         $(gdb_stabs_h) $(objfiles_h) $(symfile_h) $(symtab_h) $(gdb_string_h) \
1642         $(BFD_SRC)/elf-bfd.h $(INCLUDE_DIR)/elf/mips.h
1643
1644 environ.o: environ.c $(defs_h) environ.h $(gdbcore_h) $(gdb_string_h)
1645
1646 eval.o: eval.c $(bfd_h) $(defs_h) $(expression_h) $(frame_h) \
1647         $(gdbtypes_h) $(language_h) $(symtab_h) $(target_h) $(value_h) \
1648         $(gdb_string_h) $(cp_abi_h)
1649
1650 event-loop.o: event-loop.c $(defs_h) $(top_h) $(event_loop_h) $(event_top_h)
1651
1652 event-top.o: event-top.c $(top_h) $(readline_headers) \
1653       $(defs_h) $(inferior_h) $(event_loop_h) $(event_top_h) $(terminal_h) \
1654         $(gdbcmd_h) $(target_h) $(cli_decode_h)
1655
1656 inf-loop.o: inf-loop.c $(defs_h) $(inferior_h) $(inf_loop_h) $(event_loop_h) \
1657          $(event_top_h)
1658
1659 exec.o: exec.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
1660         $(target_h) $(language_h) $(gdb_string_h) $(completer_h) $(value_h)
1661
1662 expprint.o: expprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1663         $(language_h) $(parser_defs_h) $(symtab_h) $(value_h)
1664
1665 fbsd-proc.o: fbsd-proc.c $(defs_h) $(gdbcore_h) $(inferior_h) $(gdb_string_h) \
1666         $(elf_bfd_h) $(gregset_h)
1667
1668 findvar.o: findvar.c $(defs_h) $(gdbcore_h) $(inferior_h) $(target_h) \
1669         $(gdb_string_h) $(regcache_h) $(builtin_regs_h)
1670
1671 frame.o: frame.c $(defs_h) $(frame_h) $(target_h) $(value_h) $(inferior_h) \
1672         $(regcache_h)
1673
1674 frv-tdep.o: frv-tdep.c $(defs_h) $(inferior_h) $(symfile_h) $(gdbcore_h) \
1675         $(arch_utils_h) $(regcache_h)
1676
1677 regcache.o: regcache.c $(defs_h) $(inferior_h) $(target_h) $(gdbarch_h) \
1678         $(gdbcmd_h) $(regcache_h) $(gdb_assert_h) $(gdb_string_h) $(gdbcmd_h)
1679
1680 fork-child.o: fork-child.c $(gdb_wait_h) $(defs_h) $(gdbcore_h) \
1681         $(inferior_h) $(target_h) $(terminal_h) $(gdbthread_h) $(gdb_string_h)
1682
1683 v850ice.o: v850ice.c $(defs_h) $(symtab_h) $(inferior_h) $(command_h) \
1684         $(frame_h) $(breakpoint_h) $(gdbcore_h) $(value_h) $(symfile_h) \
1685         $(gdb_string_h) $(target_h) $(objfiles_h) $(regcache_h)
1686
1687 v850-tdep.o: v850-tdep.c $(defs_h) $(frame_h) $(inferior_h) $(target_h) \
1688         $(value_h) $(bfd_h) $(gdb_string_h) $(gdbcore_h) $(symfile_h) \
1689         $(arch_utils_h) $(regcache_h) $(symtab_h)
1690
1691 tracepoint.o: tracepoint.c $(defs_h) $(symtab_h) $(frame_h) $(tracepoint_h) \
1692         $(gdbtypes_h) $(expression_h) $(gdbcmd_h) $(value_h) $(target_h) \
1693         $(language_h) $(gdb_string_h) $(readline_headers) $(remote_h) \
1694         $(linespec_h) $(regcache_h) $(completer_h)
1695
1696 gdbarch.o: gdbarch.c $(defs_h) $(arch_utils_h) $(gdbcmd_h) $(inferior_h) \
1697         $(gdb_string_h) $(symtab_h) $(frame_h) $(inferior_h) $(breakpoint_h) \
1698         $(gdb_wait_h) $(gdbcore_h) $(gdbcmd_h) $(target_h) $(gdbthread_h) \
1699         $(annotate_h) $(symfile_h) $(value_h) $(symcat_h) $(floatformat_h) \
1700         $(gdb_assert_h) $(gdb_string_h) $(gdb_events_h)
1701
1702 arch-utils.o: arch-utils.c $(defs_h) $(bfd_h) $(gdbcmd_h) \
1703         $(arch_utils_h) $(gdb_assert_h) $(inferior_h) \
1704         $(gdb_string_h) $(symtab.h) $(frame_h) $(breakpoint_h) $(gdb_wait_h) \
1705         $(gdbcore_h) $(target_h) $(annotate_h) $(regcache_h) $(gdb_assert_h) \
1706         $(version_h) $(floatformat_h) $(sim_regno_h)
1707
1708 gdbtypes.o: gdbtypes.c $(bfd_h) $(complaints_h) $(defs_h) $(expression_h) \
1709         $(gdbtypes_h) $(language_h) $(objfiles_h) $(symfile_h) $(symtab_h) \
1710         $(target_h) $(value_h) $(gdb_string_h) $(wrapper_h) $(cp_abi_h)
1711
1712 osabi.o: osabi.c $(defs_h) $(BFD_SRC)/elf-bfd.h
1713
1714 go32-nat.o: go32-nat.c $(defs_h) $(inferior_h) $(gdb_wait_h) $(gdbcore_h) \
1715         $(command_h) $(floatformat_h) $(target_h) i387-tdep.h $(regcache_h)
1716
1717 gnu-nat.o: process_reply_S.h exc_request_S.h notify_S.h msg_reply_S.h \
1718         exc_request_U.h msg_U.h gnu-nat.h
1719
1720 gnu-v2-abi.o: gnu-v2-abi.c $(defs_h) $(gdb_string_h) $(symtab_h) \
1721         $(gdbtypes_h) $(value_h) $(demangle_h) $(cp_abi_h) 
1722
1723 gnu-v3-abi.o: gnu-v3-abi.c $(defs_h) $(value_h) $(cp_abi_h) $(demangle_h) \
1724         $(gdb_assert_h) $(gdb_string_h)
1725  
1726 h8300-tdep.o: h8300-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(dis_asm_h) \
1727         $(gdbcmd_h) $(gdbtypes_h) $(gdbcore_h) $(gdb_string_h) $(value_h) \
1728         $(regcache_h)
1729
1730 h8500-tdep.o: h8500-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(gdbtypes_h) \
1731         $(gdbcmd_h) $(value_h) $(dis_asm_h) $(gdbcore_h) $(regcache_h)
1732
1733 hp300ux-nat.o: hp300ux-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) $(regcache_h)
1734
1735 hpacc-abi.o: hpacc-abi.c $(defs_h) $(cp_abi_h) $(gdb_string_h) $(gdbtypes_h) \
1736         $(value_h) $(gdbcore_h)
1737
1738 hppa-tdep.o: hppa-tdep.c $(gdb_wait_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1739         $(inferior_h) $(objfiles_h) $(symfile_h) $(target_h) $(regcache_h) \
1740         $(completer_h)
1741
1742 hppab-nat.o: hppab-nat.c $(bfd_h) $(defs_h) $(inferior_h) $(target_h) \
1743         $(regcache_h)
1744
1745 hppah-nat.o: hppah-nat.c $(bfd_h) $(defs_h) $(inferior_h) $(target_h) \
1746         $(regcache_h)
1747
1748 i386gnu-tdep.o: $(defs_h) $(i386_tdep_h)
1749
1750 i386gnu-nat.o: gnu-nat.h
1751
1752 i386-tdep.o: i386-tdep.c $(defs_h) $(gdb_string_h) $(frame_h)   \
1753         $(inferior_h) $(gdbcore_h) $(target_h) $(floatformat_h) \
1754         $(symtab_h) $(gdbcmd_h) $(command_h) $(arch_utils_h) $(regcache_h) \
1755         $(doublest_h) $(value_h)
1756
1757 i386-nat.o: i386-nat.c $(defs_h) $(breakpoint_h) $(command_h) $(gdbcmd_h)
1758
1759 # OBSOLETE i386aix-nat.o: i386aix-nat.c $(defs_h) $(frame_h) $(inferior_h) \
1760 # OBSOLETE      $(language_h) $(gdbcore_h) $(floatformat_h) $(target_h) $(regcache_h)
1761
1762 i386b-nat.o: i386b-nat.c $(defs_h) $(regcache_h)
1763
1764 i386bsd-tdep.o: i386bsd-tdep.c $(defs_h) $(frame_h) $(gdb_core_h) \
1765         $(regcache_h)
1766
1767 i386bsd-nat.o: i386bsd-nat.c $(defs_h) $(inferior_h) $(regcache_h)
1768
1769 i386fbsd-nat.o: i386fbsd-nat.c $(defs_h) $(inferior_h) $(regcache_h)
1770
1771 i386ly-nat.o: i386ly-nat.c $(defs_h) $(frame_h) $(inferior_h) $(target_h)
1772
1773 i386ly-tdep.o: i386ly-tdep.c $(defs_h) $(inferior_h) $(target_h) $(gdbcore_h) \
1774         $(regcache_h)
1775
1776 # OBSOLETE i386m3-nat.o: i386m3-nat.c $(defs_h) $(inferior_h) $(floatformat_h) $(target_h) \
1777 # OBSOLETE      $(regcache_h)
1778
1779 # OBSOLETE i386mach-nat.o: i386mach-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) \
1780 # OBSOLETE      $(regcache_h)
1781
1782 i386v-nat.o: i386v-nat.c $(floatformat_h) $(defs_h) $(gdbcore_h) \
1783         $(inferior_h) $(language_h) $(target_h)
1784
1785 i386-linux-nat.o: i386-linux-nat.c $(defs_h) $(inferior_h) $(gdbcore_h) \
1786         $(symtab_h) $(symfile_h) $(objfiles_h) $(regcache_h) \
1787         $(i386_linux_tdep_h) $(i386_tdep_h) $(i387_tdep_h)
1788
1789 i386-linux-tdep.o: i386-linux-tdep.c $(defs_h) $(gdbcore_h) $(frame_h) \
1790         $(value_h) $(regcache_h)
1791
1792 i386v4-nat.o: i386v4-nat.c $(defs_h) $(regcache_h)
1793
1794 i387-tdep.o: i387-tdep.c $(floatformat_h) $(defs_h) $(gdbcore_h) \
1795         $(inferior_h) $(language_h) $(regcache_h) $(doublest_h) i386-tdep.h
1796
1797 i960-tdep.o: i960-tdep.c $(defs_h) $(symtab_h) $(value_h) $(frame_h) \
1798         $(floatformat_h) $(target_h) $(gdbcore_h) $(inferior_h) $(regcache_h)
1799
1800 ia64-linux-nat.o: ia64-linux-nat.c  $(defs_h) $(inferior_h) $(target_h) \
1801         $(gdbcore_h) $(regcache_h)
1802
1803 ia64-linux-tdep.o: ia64-linux-tdep.c $(defs_h) $(arch_utils_h)
1804
1805 ia64-tdep.o: ia64-tdep.c $(defs_h) $(inferior_h) $(symfile_h) $(gdbcore_h) \
1806         $(arch_utils_h) $(floatformat_h) $(objfiles_h) $(value_h) \
1807         $(INCLUDE_DIR)/elf/common.h $(regcache_h) $(doublest_h)
1808
1809 infcmd.o: infcmd.c $(defs_h) environ.h $(gdbcmd_h) $(gdbcore_h) \
1810         $(inferior_h) $(target_h) $(language_h) $(symfile_h) $(gdb_string_h) \
1811         $(ui_out_h) $(completer_h) $(regcache_h)
1812
1813 inflow.o: inflow.c $(bfd_h) $(command_h) $(defs_h) $(inferior_h) \
1814         $(target_h) $(terminal_h) $(gdbthread_h) $(gdb_string_h)
1815
1816 infptrace.o: infptrace.c $(defs_h) $(gdbcore_h) $(inferior_h) $(target_h) \
1817         $(gdb_string_h) $(gdb_wait_h) $(command_h) $(regcache_h)
1818
1819 infrun.o: infrun.c $(gdb_wait_h) $(defs_h) $(gdbcmd_h) $(cli_script_h) \
1820         $(gdbcore_h) $(value_h) \
1821         $(inferior_h) $(target_h) $(gdbthread_h) $(gdb_string_h) $(event_loop_h) \
1822         $(event_top_h) $(regcache_h)
1823
1824 inftarg.o: inftarg.c $(gdb_wait_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1825         $(target_h) $(terminal_h) $(command_h)
1826
1827 irix4-nat.o: irix4-nat.c $(defs_h) $(inferior_h) $(gdbcore_h) $(regcache_h)
1828 irix5-nat.o: irix5-nat.c $(defs_h) $(inferior_h) $(gdbcore_h) $(target_h) \
1829         $(symtab_h) $(symfile_h) $(objfiles_h) $(command_h) $(frame_h) \
1830         $(gdb_regex_h) $(language_h) $(gdb_string_h) $(regcache_h)
1831
1832 jv-lang.o: jv-lang.c $(bfd_h) $(defs_h) $(symtab_h) $(gdbtypes_h) \
1833         $(expression_h) $(parser_defs_h) $(language_h) $(symfile_h) \
1834         $(objfiles_h) $(gdb_string_h) $(value_h) $(c_lang_h) jv-lang.h \
1835         $(gdbcore_h)
1836
1837 jv-typeprint.o: jv-typeprint.c $(bfd_h) $(defs_h) $(symtab_h) $(gdbtypes_h) \
1838         $(value_h) $(demangle_h) jv-lang.h $(gdb_string_h) \
1839         $(typeprint_h) $(c_lang_h) $(cp_abi_h)
1840
1841 jv-valprint.o: jv-valprint.c $(bfd_h) $(defs_h) $(symtab_h) $(gdbtypes_h) \
1842         $(expression_h) $(value_h) $(demangle_h) $(valprint_h) \
1843         $(language_h) jv-lang.h $(c_lang_h) gdbcore.h $(annotate_h)
1844
1845 kod.o: kod.c $(defs_h) $(command_h) $(gdbcmd_h) $(target_h) $(gdb_string_h) \
1846         kod.h
1847
1848 kod-cisco.o: kod-cisco.c $(defs_h) $(gdb_string_h) kod.h
1849
1850 language.o: language.c $(bfd_h) $(defs_h) $(expression_h) $(frame_h) \
1851         $(gdbcmd_h) $(gdbtypes_h) $(language_h) $(parser_defs_h) $(symtab_h) \
1852         $(target_h) $(value_h) $(gdb_string_h)
1853
1854 lynx-nat.o: lynx-nat.c $(defs_h) $(frame_h) $(inferior_h) $(gdbcore_h) \
1855         $(target_h) $(regcache_h)
1856
1857 m2-lang.o: m2-lang.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1858         $(language_h) m2-lang.h $(parser_defs_h) $(symtab_h)
1859
1860 m2-typeprint.o: m2-typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1861         $(gdbcore_h) $(gdbtypes_h) $(language_h) m2-lang.h $(symtab_h) \
1862         $(target_h) $(value_h) $(gdb_string_h)
1863
1864 m2-valprint.o: m2-valprint.c $(defs_h) $(gdbtypes_h) $(symtab_h) \
1865         $(valprint_h) m2-lang.h
1866
1867 m3-nat.o: m3-nat.c $(defs_h) $(inferior_h) $(value_h) $(language_h) \
1868         $(target_h) $(gdb_wait_h) $(gdbcmd_h) $(gdbcore_h) $(regcache_h)
1869
1870 m32r-tdep.o: m32r-tdep.c $(defs_h) $(frame_h) $(inferior_h) $(target_h) \
1871         $(value_h) $(bfd_h) $(gdb_string_h) $(gdbcore_h) $(symfile_h) \
1872         $(regcache_h)
1873
1874 p-lang.o: p-lang.c p-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
1875         $(language_h) $(parser_defs_h) $(symtab_h) $(gdb_string_h)
1876
1877 p-typeprint.o: p-typeprint.c $(defs_h) $(gdb_obstack_h) $(bfd_h) $(symtab_h) \
1878         $(gdbtypes_h) $(expression_h) $(value_h) $(gdbcore_h) $(target_h) \
1879         $(language_h) $(p_lang_h) $(typeprint_h) $(gdb_string_h)
1880
1881 p-valprint.o: p-valprint.c $(defs_h) $(gdb_obstack_h) $(symtab_h) \
1882         $(gdbtypes_h) $(expression_h) $(value_h) $(command_h) $(gdbcmd_h) \
1883         $(gdbcore_h) $(demangle_h) $(valprint_h) $(typeprint_h) $(language_h) \
1884         $(target_h) $(annotate_h) $(p_lang_h) $(cp_abi_h)
1885
1886 m68hc11-tdep.o: m68hc11-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(gdbtypes_h) \
1887         $(gdbcmd_h) $(gdbcore_h) $(gdb_string_h) $(value_h) $(inferior_h) \
1888         $(dis_asm_h) $(symfile_h) $(objfiles_h) $(arch_utils_h) $(regcache_h) \
1889         $(target_h) $(opcode_m68hc11_h)
1890
1891 m68k-tdep.o: m68k-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(value_h) \
1892         $(gdbcore_h) $(gdb_string_h) $(regcache_h)
1893
1894 m68kly-nat.o: m68kly-nat.c $(defs_h) $(frame_h) $(inferior_h) $(target_h)
1895
1896 m68klinux-nat.o: m68klinux-nat.c $(defs_h) $(frame_h) $(inferior_h) \
1897         $(language_h) $(gdbcore_h) $(floatformat_h) $(target_h) $(regcache_h)
1898
1899 mac-nat.o: mac-nat.c $(defs_h) $(gdb_string_h) $(regcache_h)
1900
1901 main.o: main.c $(top_h) $(defs_h) $(gdb_string_h) $(event_loop_h) \
1902         $(symfile_h)  $(gdbcore_h) $(ui_out_h) $(inferior_h)
1903
1904 maint.o: maint.c $(defs_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) \
1905         $(language_h) $(expression_h) $(objfiles_h) $(symfile_h) \
1906         $(cli_decode_h)
1907
1908 mcore-tdep.o: mcore-tdep.c $(defs_h) $(frame_h) $(gdbcmd_h) $(value_h) \
1909         $(symtab_h) $(symfile_h) $(gdbcore_h) $(inferior_h)
1910
1911 mcore-rom.o: mcore-rom.c $(defs_h) $(gdbcore_h) $(target_h) $(monitor_h) \
1912         $(gdb_string_h) $(regcache_h) $(serial_h)
1913
1914 mdebugread.o: mdebugread.c $(defs_h) $(symtab_h) $(gdbtypes_h) $(gdbcore_h) \
1915         $(symfile_h) $(objfiles_h) $(gdb_obstack_h) $(buildsym_h) \
1916         $(stabsread_h) $(complaints_h) $(demangle_h) $(gdb_assert_h) \
1917         $(coff_sym_h) $(coff_symconst_h) $(gdb_stat_h) $(gdb_string_h) \
1918         $(bfd_h) $(coff_ecoff_h) $(libaout_h) $(aout_aout64_h) \
1919         $(aout_stab_gnu_h) $(expression_h) $(language_h)
1920
1921 mipsm3-nat.o: mipsm3-nat.c $(defs_h) $(inferior_h) $(regcache_h)
1922
1923 # OBSOLETE # os9kread assumes that sizeof(char*) <= sizeof(int).  This looses on
1924 # OBSOLETE # 64 bit targets where often, sizeof(int)=4 but sizeof(char*)=9.
1925 # OBSOLETE os9kread.o: os9kread.c $(buildsym_h) $(complaints_h) $(bfd_h) $(defs_h) \
1926 # OBSOLETE              $(expression_h) $(gdb_stabs_h) $(gdbcore_h) $(gdbtypes_h) \
1927 # OBSOLETE              $(language_h) $(objfiles_h) $(stabsread_h) $(symfile_h) \
1928 # OBSOLETE              $(symtab_h) $(target_h) $(gdb_string_h)
1929 # OBSOLETE      $(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) \
1930 # OBSOLETE              $(srcdir)/os9kread.c
1931
1932 mem-break.o: mem-break.c $(defs_h) $(symtab_h) $(breakpoint_h) $(inferior_h) \
1933         $(target_h)
1934
1935 memattr.o: memattr.c $(defs_h) $(command_h) $(gdbcmd_h) $(memattr_h) \
1936         $(target_h) $(value_h) $(language_h) $(gdb_string_h)
1937
1938 minsyms.o: minsyms.c $(bfd_h) $(defs_h) $(objfiles_h) $(symfile_h) \
1939         $(symtab_h) $(gdb_string_h) $(value_h) $(cp_abi_h)
1940
1941 mips-linux-nat.o: mips-linux-nat.c $(defs_h)
1942
1943 mips-linux-tdep.o: mips-linux-tdep.c $(defs_h) $(gdbcore_h) $(target_h) \
1944         solib-svr4.h
1945
1946 mips-nat.o: mips-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) $(regcache_h)
1947
1948 mips-irix-tdep.o: mips-irix-tdep.c $(defs_h) osabi.h $(BFD_SRC)/elf-bfd.h
1949
1950 mips-tdep.o: mips-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1951         $(arch_utils_h) $(regcache_h) \
1952         $(inferior_h) $(language_h) $(objfiles_h) $(symfile_h) \
1953         $(gdb_string_h) osabi.h
1954
1955 mipsread.o: mipsread.c $(buildsym_h) $(complaints_h) $(bfd_h) $(defs_h) \
1956         $(expression_h) $(gdb_stabs_h) $(gdbcore_h) $(gdbtypes_h) \
1957         $(language_h) $(objfiles_h) $(stabsread_h) $(symfile_h) $(symtab_h) \
1958         $(gdb_string_h)
1959
1960 mipsv4-nat.o: mipsv4-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) $(target_h) \
1961         $(regcache_h)
1962
1963 mipsnbsd-nat.o: mipsnbsd-nat.c $(defs_h) $(inferior_h) $(regcache_h) \
1964         mipsnbsd-tdep.h
1965
1966 mipsnbsd-tdep.o: mipsnbsd-tdep.c $(defs_h) $(gdbcore_h) $(regcache_h) \
1967         $(target_h) $(value_h) osabi.h solib-svr4.h mipsnbsd-tdep.h
1968
1969 mn10200-tdep.o: mn10200-tdep.c $(defs_h) $(frame_h) $(inferior_h) $(target_h) \
1970         $(value_h) $(bfd_h) $(gdb_string_h) $(gdbcore_h) $(symfile_h) \
1971         $(regcache_h)
1972
1973 mn10300-tdep.o: mn10300-tdep.c $(defs_h) $(frame_h) $(inferior_h) $(target_h) \
1974         $(value_h) $(bfd_h) $(gdb_string_h) $(gdbcore_h) $(symfile_h) \
1975         $(regcache_h) $(arch_utils_h)
1976
1977 monitor.o: monitor.c $(monitor_h) $(bfd_h) $(defs_h) $(gdbcmd_h) \
1978         $(inferior_h) $(target_h) $(serial_h) $(terminal_h) $(gdb_string_h) \
1979         $(regcache_h)
1980
1981 nbsd-tdep.o: nbsd-tdep.c $(defs_h) solib-svr4.h
1982
1983 nlmread.o: nlmread.c $(bfd_h) $(buildsym_h) $(complaints_h) $(defs_h) \
1984         $(gdb_stabs_h) $(objfiles_h) $(symfile_h) $(symtab_h) $(stabsread_h) \
1985         $(gdb_string_h)
1986
1987 nindy-tdep.o: nindy-tdep.c $(defs_h) $(frame_h) $(symtab_h)  $(gdbcore_h)
1988
1989 ns32k-tdep.o: ns32k-tdep.c $(bfd_h) $(dis_asm_h) $(defs_h)
1990
1991 objfiles.o: objfiles.c $(defs_h) $(bfd_h) $(symtab_h) $(symfile_h) \
1992         $(objfiles_h) $(gdb_stabs_h) $(target_h) $(bcache_h) $(gdb_stat_h) \
1993         $(gdb_obstack_h) $(gdb_string_h) $(breakpoint_h) $(mmalloc_h)
1994
1995 solib-osf.o: solib-osf.c $(defs_h) $(inferior_h) $(symtab_h) $(objfiles_h) \
1996         $(symfile_h) $(target_h) $(gdb_string_h) $(solist_h)
1997
1998 somread.o: somread.c $(bfd_h) $(buildsym_h) $(complaints_h) $(defs_h) \
1999         $(gdb_stabs_h) $(objfiles_h) $(symfile_h) $(symtab_h) $(gdb_string_h)
2000
2001 somsolib.o: somsolib.c $(defs_h) $(regcache_h)
2002
2003 std-regs.o: std-regs.c $(defs_h) $(builtin_regs_h) $(frame_h) $(gdbtypes_h) \
2004         $(value_h) $(gdb_string_h)
2005
2006 pa64solib.o: pa64solib.c $(defs_h) $(regcache_h)
2007
2008 hpux-thread.o: hpux-thread.c $(defs_h) $(gdbthread_h) $(target_h) inferior.h \
2009         $(regcache_h)
2010
2011 hpread.o: hpread.c $(bfd_h) $(buildsym_h) $(complaints_h) $(defs_h) \
2012         $(demangle_h) $(gdb_stabs_h) $(gdbtypes_h) $(objfiles_h) \
2013         $(symfile_h) $(syms_h) $(symtab_h) $(gdb_string_h) \
2014         $(INCLUDE_DIR)/hp-symtab.h
2015
2016 parse.o: parse.c $(command_h) $(defs_h) $(expression_h) $(frame_h) \
2017         $(gdbtypes_h) $(language_h) $(parser_defs_h) $(symtab_h) $(value_h) \
2018         $(gdb_string_h) $(linespec_h) $(doublest_h)
2019
2020 ppc-bdm.o: ppc-bdm.c $(defs_h) $(gdbcore_h) $(gdb_string_h) $(frame_h) \
2021         $(inferior_h) $(bfd_h) $(symfile_h) $(target_h) $(gdbcmd_h) \
2022         $(objfiles_h) $(gdb_stabs_h) $(serial_h) ocd.h $(regcache_h)
2023
2024 ppc-linux-nat.o: ppc-linux-nat.c $(defs_h) $(gdbcore_h) $(frame_h) \
2025         $(inferior_h) $(target_h) $(regcache_h) $(ppc_tdep_h)
2026
2027 ppc-linux-tdep.o: ppc-linux-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \
2028         $(target_h) $(ppc_tdep_h) $(regcache_h) $(value_h)
2029
2030 ppc-sysv-tdep.o: ppc-sysv-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \
2031         $(value_h) $(regcache_h) $(ppc_tdep_h)
2032
2033 ppcnbsd-nat.o: ppcnbsd-nat.c $(defs_h) $(inferior_h) $(ppc_tdep_h) \
2034         ppcnbsd-tdep.h
2035
2036 ppcnbsd-tdep.o: ppcnbsd-tdep.c $(defs_h) $(gdbcore_h) $(regcache_h) \
2037         $(target_h) $(breakpoint_h) $(value_h) $(ppc_tdep_t) ppcnbsd-tdep.h \
2038         nbsd-tdep.h
2039
2040 ppcbug-rom.o: ppcbug-rom.c $(monitor_h) $(bfd_h) $(gdb_wait_h) $(defs_h) \
2041         $(gdbcmd_h) $(inferior_h) $(target_h) $(serial_h) $(terminal_h) \
2042         $(regcache_h)
2043
2044 printcmd.o: printcmd.c $(breakpoint_h) $(defs_h) $(expression_h) \
2045         $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) $(language_h) $(objfiles_h) \
2046         $(symfile_h) $(symtab_h) $(target_h) $(gdb_string_h) $(ui_out_h) \
2047         $(completer_h)
2048
2049 # FIXME: Procfs.o gets -Wformat errors because things like pid_t don't
2050 # match output format strings.
2051 procfs.o: procfs.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
2052         $(target_h) $(gdb_string_h) $(gdbthread_h) proc-utils.h
2053
2054 proc-api.o: proc-api.c $(defs_h) $(gdbcmd_h) proc-utils.h $(completer_h)
2055
2056 proc-events.o: proc-events.c $(defs_h)
2057
2058 proc-flags.o: proc-flags.c $(defs_h)
2059
2060 proc-why.o: proc-why.c $(defs_h) proc-utils.h
2061
2062 sol-thread.o: sol-thread.c $(defs_h) $(gdbthread_h) $(target_h) $(inferior_h) \
2063         $(gdbcmd_h) $(regcache_h)
2064
2065 linux-proc.o: linux-proc.c $(defs_h)
2066
2067 thread-db.o: thread-db.c $(defs_h) $(gdb_assert_h) gdb_proc_service.h \
2068         gdb_thread_db.h $(bfd_h) $(gdbthread_h) $(inferior_h) $(symfile_h) \
2069         $(objfiles_h) $(target_h) $(regcache_h)
2070
2071 lin-lwp.o: lin-lwp.c $(defs_h) $(gdb_assert_h) $(gdb_wait_h) $(gdbthread_h) \
2072         $(inferior_h) $(target_h) $(gdbcmd_h) $(regcache_h)
2073
2074 proc-service.o: proc-service.c $(defs_h) $(inferior_h) gdb_proc_service.h \
2075         $(symtab_h) $(target_h) gregset.h
2076
2077 remote-array.o: remote-array.c $(defs_h) $(gdbcore_h) $(target_h) \
2078       $(gdb_string_h) $(command_h) $(serial_h) $(monitor_h) $(remote_utils_h) \
2079         $(version_h) $(regcache_h)
2080
2081 remote-rdi.o: remote-rdi.c $(defs_h) $(gdbcore_h) \
2082         $(inferior_h) $(gdb_string_h) $(completer_h) $(arm_tdep_h)
2083
2084 remote-rdp.o: remote-rdp.c $(defs_h) $(gdbcore_h) \
2085         $(inferior_h) $(gdb_string_h) $(arm_tdep_h) $(callback_h)
2086
2087 remote-e7000.o: remote-e7000.c $(defs_h) $(gdbcore_h) $(target_h) \
2088         $(serial_h) $(gdb_string_h) $(regcache_h)
2089
2090 remote-es.o: remote-es.c $(bfd_h) $(command_h) $(defs_h) \
2091         $(inferior_h) $(remote_utils_h) $(terminal_h) $(gdb_string_h) \
2092         $(symfile_h) $(regcache_h) $(value_h)
2093
2094 remote-est.o: remote-est.c $(defs_h) $(gdbcore_h) \
2095         $(inferior_h) $(serial_h) $(target_h) $(terminal_h) $(regcache_h)
2096
2097 remote-hms.o: remote-hms.c $(defs_h) $(gdbcore_h) \
2098         $(inferior_h) $(serial_h) $(target_h) $(terminal_h) $(regcache_h)
2099
2100 remote-mips.o: remote-mips.c $(defs_h) $(gdbcmd_h) \
2101         $(gdbcore_h) $(inferior_h) $(serial_h) $(symfile_h) $(target_h) \
2102         $(regcache_h)
2103
2104 remote-nindy.o: remote-nindy.c $(floatformat_h) $(command_h) \
2105         $(defs_h) $(gdbcore_h) $(inferior_h) \
2106         nindy-share/env.h nindy-share/stop.h $(remote_utils_h) \
2107         $(symfile_h) $(regcache_h)
2108
2109 # OBSOLETE remote-os9k.o: remote-os9k.c $(defs_h) $(gdbcore_h) \
2110 # OBSOLETE      $(command_h) $(monitor_h) $(remote_utils_h) $(symtab_h) $(symfile_h) \
2111 # OBSOLETE      $(objfiles_h) $(gdb_stabs_h) $(gdb_string_h) $(regcache_h)
2112
2113 remote-sds.o: remote-sds.c $(bfd_h) $(defs_h) $(gdbcmd_h) \
2114         $(inferior_h) $(remote_utils_h) $(symfile_h) $(terminal_h) \
2115         $(gdb_string_h) $(regcache_h)
2116
2117 remote-sim.o: remote-sim.c $(defs_h) $(inferior_h) $(value_h) $(gdb_string_h) \
2118         $(terminal_h) $(target_h) $(gdbcore_h) $(callback_h) \
2119         $(remote_sim_h) $(remote_utils_h) $(command_h) $(regcache_h) \
2120         $(sim_regno_h)
2121
2122 remote-st.o: remote-st.c $(defs_h) $(gdbcore_h) $(serial_h) \
2123         $(target_h) $(gdb_string_h) $(regcache_h)
2124
2125 remote-vx.o: remote-vx.c $(complaints_h) $(defs_h) $(gdbcmd_h) \
2126         $(gdbcore_h) $(inferior_h) $(target_h) vx-share/dbgRpcLib.h \
2127         vx-share/ptrace.h vx-share/xdr_ld.h vx-share/xdr_ptrace.h \
2128         vx-share/xdr_rdb.h $(gdb_stabs_h) $(objfiles_h) $(symfile_h) $(bfd_h) \
2129         $(gdb_string_h) $(regcache_h)
2130
2131 remote-vx29k.o: remote-vx29k.c $(complaints_h) $(defs_h) $(gdbcmd_h) \
2132         $(gdbcore_h) $(inferior_h) $(target_h) vx-share/dbgRpcLib.h \
2133         vx-share/ptrace.h vx-share/xdr_ld.h vx-share/xdr_ptrace.h \
2134         vx-share/xdr_rdb.h $(gdb_string_h) $(regcache_h)
2135
2136 ocd.o: ocd.c ocd.h $(gdbcore_h) $(gdb_string_h) $(frame_h) $(inferior_h) \
2137         $(bfd_h) $(symfile_h) $(target_h) $(gdbcmd_h) $(objfiles_h) \
2138         $(gdb_stabs_h) $(dcache_h) $(serial_h) $(regcache_h)
2139
2140 remote-utils.o: remote-utils.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
2141         $(inferior_h) $(remote_utils_h) $(gdb_string_h) $(regcache_h)
2142
2143 remote.o: remote.c $(bfd_h) $(gdb_wait_h) $(defs_h) $(gdbcmd_h) \
2144         $(inferior_h) $(remote_utils_h) $(symfile_h) $(terminal_h) \
2145         $(gdb_string_h) $(event_loop_h) $(event_top_h) $(remote_h) \
2146         $(inf_loop_h) $(value_h)
2147
2148 remote-nrom.o: remote-nrom.c $(bfd_h) $(gdb_wait_h) $(defs_h) $(gdbcmd_h) \
2149         $(inferior_h) $(remote_utils_h) $(symfile_h) $(terminal_h)
2150
2151 rom68k-rom.o: rom68k-rom.c $(monitor_h) $(bfd_h) $(gdb_wait_h) $(defs_h) \
2152         $(gdbcmd_h) $(inferior_h) $(target_h) $(serial_h) $(terminal_h) \
2153         $(regcache_h) $(value_h)
2154
2155 rs6000-nat.o: rs6000-nat.c $(bfd_h) $(defs_h) $(inferior_h) $(target_h) \
2156         $(gdbcore_h) $(xcoffsolib_h) $(symfile_h) $(objfiles_h) \
2157         $(gdb_stabs_h) $(regcache_h) $(arch_utils_h) $(language_h) \
2158         $(ppc_tdep_h)
2159
2160 rs6000-tdep.o: rs6000-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \
2161         $(target_h) $(ppc_tdep_h) $(regcache_h) $(value_h) $(parser_defs_h)
2162
2163 s390-tdep.o: s390-tdep.c $(defs_h) $(arch_utils_h) $(frame_h) $(inferior_h) \
2164         $(symtab_h) $(target_h) $(gdbcore_h) $(gdbcmd_h) $(symfile_h) \
2165         $(objfiles_h) $(bfd_h) $(floatformat_h) $(regcache_h) $(value_h)
2166
2167 s390-nat.o: s390-nat.c $(defs_h) $(regcache_h)
2168
2169 scm-exp.o: $(defs_h) $(value_h) $(parser_defs_h) $(language_h) $(c_lang_h) \
2170         scm-lang.h scm-tags.h
2171
2172 scm-lang.o: $(defs_h) $(value_h) $(parser_defs_h) $(language_h) $(c_lang_h) \
2173         scm-lang.h scm-tags.h $(gdb_string_h) $(gdbcore_h)
2174
2175 scm-valprint.o: $(defs_h) $(value_h) $(parser_defs_h) $(language_h)  \
2176         scm-lang.h $(valprint_h) $(gdbcore_h)
2177
2178 ser-go32.o: ser-go32.c $(defs_h) $(serial_h) 
2179
2180 ser-pipe.o: ser-pipe.c $(defs_h) $(serial_h) $(gdb_string_h) $(ser_unix_h)
2181
2182 ser-tcp.o: ser-tcp.c $(defs_h) $(serial_h) $(gdb_string_h) $(ser_unix_h)
2183
2184 ser-unix.o: ser-unix.c $(defs_h) $(serial_h) $(ser_unix_h) 
2185
2186 serial.o: serial.c $(defs_h) $(serial_h) $(gdb_string_h)
2187
2188 sh-tdep.o: sh-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(symfile_h) \
2189         $(gdbtypes_h) $(gdbcmd_h) $(gdbcore_h) $(value_h) $(dis_asm_h) \
2190         $(inferior_h) $(gdb_string_h) $(arch_utils_h) $(floatformat_h) \
2191         $(regcache_h) $(doublest_h) $(sh_tdep_h) $(elf_bfd_h) $(solib_svr4_h) \
2192         $(elf_sh_h) $(gdb_sim_sh_h)
2193
2194 shnbsd-tdep.o: shnbsd-tdep.c $(defs_h) $(gdbcore_h) $(regcache_h) \
2195         $(value_h) $(sh_tdep_h) solib-svr4.h shnbsd-tdep.h nbsd-tdep.h
2196
2197 shnbsd-nat.o: shnbsd-nat.c $(defs_h) $(inferior_h) shnbsd-tdep.h
2198
2199 sh3-rom.o: sh3-rom.c $(monitor_h) $(bfd_h) $(gdb_wait_h) $(defs_h) $(gdbcmd_h) \
2200         $(inferior_h) $(target_h) $(serial_h) $(terminal_h) $(arch_utils_h) \
2201         $(regcache_h) $(sh_tdep_h)
2202
2203 mon960-rom.o: mon960-rom.c $(defs_h) $(gdbcore_h) $(target_h) $(monitor_h) \
2204         $(serial_h) $(srec_h) $(xmodem_h) $(symtab_h) $(symfile_h) \
2205         $(inferior_h)
2206
2207 solib.o: solib.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
2208         $(objfiles_h) $(gdb_regex_h) $(symfile_h) $(target_h) $(gdb_string_h) \
2209         $(solist_h) $(completer_h)
2210
2211 solib-irix.o: solib-irix.c $(defs_h) $(gdbcore_h) $(inferior_h) $(objfiles_h) \
2212         $(symfile_h) $(target_h) $(solist_h) solib-svr4.h
2213
2214 solib-sunos.o: solib-sunos.c $(defs_h) $(symfile_h) $(objfiles_h) \
2215         $(gdbcore_h) $(inferior_h) $(solist_h)
2216
2217 solib-svr4.o: solib-svr4.c $(defs_h) $(gdbcore_h) $(inferior_h) $(objfiles_h) \
2218         $(symfile_h) $(target_h) $(solist_h) solib-svr4.h
2219
2220 solib-legacy.o: solib-legacy.c $(defs_h) $(gdbcore_h) solib-svr4.h
2221
2222 source.o: source.c $(defs_h) $(expression_h) $(frame_h) $(gdbcmd_h) \
2223         $(gdbcore_h) $(language_h) $(objfiles_h) $(gdb_regex_h) $(symfile_h) \
2224         $(symtab_h) $(gdb_string_h) $(source_h) $(completer_h) $(linespec_h) \
2225         $(ui_out_h) $(value_h)
2226
2227 sparc-linux-nat.o: sparc-linux-nat.c $(defs_h) $(regcache_h)
2228
2229 sparc-nat.o: sparc-nat.c $(bfd_h) $(defs_h) $(inferior_h) $(gdbcore_h) \
2230         $(target_h) $(regcache_h)
2231
2232 sparc-tdep.o: sparc-tdep.c $(defs_h) $(arch_utils_h) $(frame_h) $(inferior_h) \
2233         $(target_h) $(value_h) $(bfd_h) $(gdb_string_h) $(regcache_h) \
2234         $(osabi_h) $(gregset_h) $(gdbcore_h) $(symfile_h)
2235
2236 sparcl-tdep.o: sparcl-tdep.c $(defs_h) $(gdbcore_h) $(target_h) $(regcache_h)
2237
2238 sparc64nbsd-nat.o: sparc64nbsd-nat.c $(defs_h) $(inferior_h) $(regcache_h) \
2239         sparcnbsd-tdep.h
2240
2241 sparcnbsd-nat.o: sparcnbsd-nat.c $(defs_h) $(inferior_h) $(regcache_h) \
2242         sparcnbsd-tdep.h 
2243
2244 sparcnbsd-tdep.o: sparcnbsd-tdep.c $(defs_h) $(gdbcore_h) $(regcache_h) \
2245         $(target_h) $(value_h) osabi.h sparcnbsd-tdep.h nbsd-tdep.h \
2246         solib-svr4.h
2247
2248 xstormy16-tdep.o: xstormy16-tdep.c $(defs_h) $(value_h) $(inferior_h) \
2249         $(symfile_h) $(arch_utils_h) $(regcache_h) $(gdbcore_h)
2250
2251 dsrec.o: dsrec.c $(defs_h) srec.h
2252
2253 stabsread.o: stabsread.c $(defs_h) $(gdb_string_h) $(bfd_h) $(gdb_obstack_h) \
2254         $(symtab_h) $(gdbtypes_h) $(expression_h) $(symfile_h) $(objfiles_h) \
2255         $(aout_stab_gnu_h) $(libaout_h) $(aout_aout64_h) $(gdb_stabs_h) \
2256         $(buildsym_h) $(complaints_h) $(demangle_h) $(language_h) \
2257         $(doublest_h) $(stabsread_h)
2258
2259 stack.o: stack.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
2260         $(language_h) $(target_h) $(gdb_string_h) $(ui_out_h)
2261
2262 ui-file.o: ui-file.c $(defs_h) ui-file.h
2263 tui-file.o: $(srcdir)/tui/tui-file.c $(defs_h) $(srcdir)/tui/tui-file.h \
2264         $(srcdir)/tui/tuiIO.h
2265
2266 ax-general.o: ax-general.c $(defs_h) $(ax_h) $(value_h)
2267
2268 ax-gdb.o: ax-gdb.c $(defs_h) $(symtab_h) $(symfile_h) $(gdbtypes_h) \
2269         $(value_h) $(expression_h) $(command_h) $(ax_h) $(gdbcmd_h) ax-gdb.h
2270
2271 sun3-nat.o: sun3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) $(regcache_h)
2272
2273 symfile.o: symfile.c $(defs_h) $(symtab_h) $(gdbtypes_h) $(gdbcore_h) \
2274         $(frame_h) $(target_h) $(value_h) $(symfile_h) $(objfiles_h) \
2275         $(gdbcmd_h) $(breakpoint_h) $(language_h) $(complaints_h) \
2276         $(demangle_h) $(inferior_h) $(gdb_stabs_h) $(gdb_obstack_h) \
2277         $(completer_h) $(bcache_h) $(gdb_string_h) $(gdb_stat_h)
2278
2279 symm-tdep.o: symm-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
2280
2281 symm-nat.o: symm-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) $(regcache_h)
2282
2283 symmisc.o: symmisc.c $(defs_h) $(symtab_h) $(gdbtypes_h) $(bfd_h) \
2284         $(symfile_h) $(objfiles_h) $(breakpoint_h) $(command_h) \
2285         $(gdb_obstack_h) $(language_h) $(bcache_h) $(gdb_string_h)
2286
2287 symtab.o: symtab.c $(defs_h) $(symtab_h) $(gdbtypes_h) $(gdbcore_h) \
2288         $(frame_h) $(target_h) $(value_h) $(symfile_h) $(objfiles_h) \
2289         $(gdbcmd_h) $(call_cmds_h) $(gdb_regex_h) $(expression_h) \
2290         $(language_h) $(demangle_h) $(inferior_h) $(linespec_h) \
2291         $(filenames_h) $(gdb_obstack_h) $(gdb_string_h) $(gdb_stat_h) \
2292         $(cp_abi_h)
2293
2294 linespec.o: linespec.c $(linespec_h) $(defs_h) $(frame_h) $(value_h) \
2295         $(objfiles_h) $(symfile_h) $(completer_h) $(symtab_h) \
2296         $(demangle_h) $(command_h) $(cp_abi_h)
2297
2298 macroexp.o: macroexp.c $(defs_h) $(gdb_obstack_h) $(bcache_h) $(macrotab_h) \
2299         $(macroexp_h) $(gdb_assert_h)
2300
2301 macrotab.o: macrotab.c $(defs_h) $(gdb_obstack_h) $(splay_tree_h) $(symtab_h) \
2302         $(symfile_h) $(objfiles_h) $(macrotab_h) $(gdb_assert_h) $(bcache_h) \
2303         $(complaints_h)
2304
2305 macroscope.o: macroscope.c $(defs_h) $(macroscope_h)
2306
2307 macrocmd.o: macrocmd.c $(defs_h) $(macrotab_h) $(macroexp_h) \
2308         $(macroscope_h) $(command_h) $(gdbcmd_h)
2309
2310 target.o: target.c $(bfd_h) $(defs_h) $(gdbcmd_h) $(inferior_h) \
2311         $(objfiles_h) $(symfile_h) $(target_h) $(gdb_string_h) $(regcache_h)
2312
2313 thread.o: thread.c $(defs_h) $(symtab_h) $(frame_h) $(inferior_h) \
2314         $(environ_h) $(value_h) $(target_h) $(gdbthread_h) $(command_h) \
2315         $(gdbcmd_h) $(regcache_h) $(gdb_h) $(ui_out_h)
2316
2317 completer.o: completer.c $(completer_h) $(gdbtypes_h) $(symtab_h) \
2318         $(defs_h) $(gdbcmd_h) $(expression_h) $(readline_headers) \
2319         $(cli_decode_h)
2320
2321 top.o: top.c $(top_h) $(bfd_h) $(getopt_h) $(readline_headers) $(call_cmds_h) \
2322         $(cli_cmds_h) $(cli_script_h) $(cli_setshow_h) \
2323         $(defs_h) $(gdbcmd_h) $(inferior_h) $(language_h) \
2324         $(remote_utils_h) $(gdb_string_h) $(event_loop_h) $(event_top_h) \
2325         $(completer_h) $(version_h) $(ui_out_h) $(doublest_h) \
2326         $(serial_h)
2327
2328 typeprint.o: typeprint.c $(defs_h) $(gdb_obstack_h) $(bfd_h) $(symtab_h) \
2329         $(gdbtypes_h) $(expression_h) $(value_h) $(gdbcore_h) $(command_h) \
2330         $(gdbcmd_h) $(target_h) $(language_h) $(cp_abi_h) $(gdb_string_h)
2331
2332 utils.o: utils.c $(bfd_h) $(defs_h) $(expression_h) $(gdbcmd_h) \
2333         $(language_h) $(target_h) $(terminal_h) $(readline_headers) \
2334         $(gdb_string_h) $(event_loop_h) $(event_top_h) $(inferior_h)
2335
2336 valarith.o: valarith.c $(bfd_h) $(defs_h) $(expression_h) \
2337         $(gdbtypes_h) $(language_h) $(symtab_h) $(target_h) $(value_h) \
2338         $(gdb_string_h) $(doublest_h)
2339
2340 valops.o: valops.c $(defs_h) $(gdbcore_h) $(inferior_h) $(target_h) \
2341         $(gdb_string_h) $(regcache_h) $(cp_abi_h) $(gdb_assert_h)
2342
2343 valprint.o: valprint.c $(defs_h) $(gdb_string_h) $(symtab_h) $(gdbtypes_h) \
2344         $(value_h) $(gdbcore_h) $(gdbcmd_h) $(target_h) $(obstack_h) \
2345         $(language_h) $(annotate_h) $(valprint_h) $(floatformat_h) \
2346         $(doublest_h)
2347
2348 values.o: values.c $(defs_h) $(expression_h) $(frame_h) $(gdbcmd_h) \
2349         $(gdbcore_h) $(gdbtypes_h) $(symtab_h) $(target_h) $(value_h) \
2350         $(gdb_string_h) scm-lang.h $(doublest_h) $(regcache_h)
2351
2352 vax-tdep.o: vax-tdep.c $(OP_INCLUDE)/vax.h $(defs_h) $(symtab_h) \
2353         $(arch_utils_h) $(inferior_h) $(vax_tdep_h)
2354
2355 x86-64-linux-tdep.o : x86-64-linux-tdep.c $(defs_h) $(inferior_h) \
2356         $(gdbcore_h) $(regcache_h) x86-64-tdep.h i386-tdep.h $(dwarf2cfi_h)
2357
2358 x86-64-tdep.o : x86-64-tdep.c $(defs_h) $(inferior_h) $(gdbcore_h) \
2359         $(gdbcmd_h) $(arch_utils_h) $(regcache_h) $(symfile_h) x86-64-tdep.h \
2360         i386-tdep.h $(dwarf2cfi_h) $(gdb_assert_h) $(objfiles_h)
2361
2362 x86-64-linux-nat.o : x86-64-linux-nat.c $(defs_h) $(inferior_h) \
2363         $(gdbcore_h) $(regcache_h) $(gdb_assert_h) x86-64-tdep.h \
2364         i386-tdep.h
2365
2366 win32-nat.o: win32-nat.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h) \
2367         $(gdb_string_h) $(regcache_h) $(completer_h)
2368
2369 xcoffread.o: xcoffread.c $(bfd_h) $(INCLUDE_DIR)/aout/stab.def \
2370         $(INCLUDE_DIR)/aout/stab_gnu.h $(INCLUDE_DIR)/coff/internal.h \
2371         $(INCLUDE_DIR)/coff/rs6000.h $(BFD_SRC)/libcoff.h $(buildsym_h) \
2372         $(complaints_h) $(defs_h) $(gdbtypes_h) $(objfiles_h) $(stabsread_h) \
2373         $(symfile_h) $(symtab_h) $(gdb_string_h)
2374
2375 xcoffsolib.o: xcoffsolib.c $(bfd_h) $(defs_h) $(xcoffsolib_h) $(inferior_h) \
2376         $(gdbcmd_h) $(symfile_h) $(frame_h) $(gdb_regex_h)
2377
2378 # FIXME: z8k-tdep.c calls _initialize_gdbtypes().  Since that isn't
2379 # declared -Wimplicit fails. It should be using the GDBARCH framework.
2380 # cagney 1999-09-02.
2381 z8k-tdep.o: z8k-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(gdbcmd_h) \
2382         $(gdbtypes_h) $(dis_asm_h) $(gdbcore_h) $(regcache_h)
2383
2384 c-exp.tab.o: c-exp.tab.c $(defs_h) $(gdb_string_h) $(expression_h) \
2385         $(value_h) $(parser_defs_h) $(language_h) $(c_lang_h) $(bfd_h) \
2386         $(symfile_h) $(objfiles_h)
2387
2388 jv-exp.tab.o: jv-exp.tab.c jv-lang.h $(defs_h) $(expression_h) \
2389         $(gdbtypes_h) $(language_h) $(parser_defs_h) $(symtab_h) $(value_h) \
2390         $(bfd_h) $(objfiles_h) $(symfile_h)
2391
2392 f-exp.tab.o: f-exp.tab.c f-lang.h $(defs_h) $(expression_h) \
2393         $(language_h) $(parser_defs_h) $(value_h) $(bfd_h) $(objfiles_h) \
2394         $(symfile_h)
2395
2396 m2-exp.tab.o: m2-exp.tab.c $(defs_h) $(expression_h) $(gdbtypes_h) \
2397         $(language_h) m2-lang.h $(parser_defs_h) $(symtab_h) $(value_h) \
2398         $(bfd_h) $(objfiles_h) $(symfile_h)
2399
2400 p-exp.tab.o: p-exp.tab.c $(defs_h) $(expression_h) $(gdbtypes_h) \
2401         $(language_h) p-lang.h $(parser_defs_h) $(symtab_h) $(value_h) \
2402         $(bfd_h) $(objfiles_h) $(symfile_h)
2403
2404 ada-exp.tab.o: ada-exp.tab.c ada-lex.c ada-lang.h \
2405         $(defs_h) $(expression_h) \
2406         $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h) \
2407         $(bfd_h) objfiles.h symfile.h
2408
2409 gdb-events.o: gdb-events.c $(gdb_events_h) $(defs_h) $(gdbcmd_h)
2410
2411 ui-out.o: ui-out.c $(defs_h) $(ui_out_h) $(expression_h) $(language_h)
2412 cli-out.o: cli-out.c $(defs_h) $(ui_out_h) $(cli_out_h)
2413
2414 varobj.o: varobj.c $(defs_h) $(value_h) $(expression_h) $(frame_h) \
2415         $(language_h) $(wrapper_h) $(gdbcmd_h) $(gdb_string_h) $(varobj_h)
2416
2417 wrapper.o: wrapper.c $(defs_h) $(frame_h) $(value_h) $(wrapper_h)
2418
2419 #
2420 # gdb/cli/ dependencies
2421 #
2422 # Need to explicitly specify the compile rule as make will do nothing
2423 # or try to compile the object file into the mi directory.
2424
2425 cli-cmds.o: $(srcdir)/cli/cli-cmds.c $(defs_h) $(completer_h) $(target_h) \
2426         $(gdb_wait_h) $(gdb_regex_h) $(gdb_string_h) $(filenames_h) \
2427         $(ui_out_h) $(top_h) $(cli_decode_h) $(cli_script_h) \
2428         $(cli_setshow_h) $(cli_cmds_h)
2429         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-cmds.c
2430 cli-decode.o: $(srcdir)/cli/cli-decode.c $(defs_h) $(symtab_h) \
2431         $(gdb_regex_h) $(gdb_string_h) $(ui_out_h) $(cli_cmds_h) \
2432         $(cli_decode_h) $(gdb_assert_h)
2433         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-decode.c
2434 cli-dump.o: $(srcdir)/cli/cli-dump.c $(defs_h) $(gdb_string_h) \
2435         $(cli_decode_h) $(cli_cmds_h) $(value_h) $(completer_h) \
2436         $(cli_dump_h) $(gdb_assert_h) $(target_h)
2437         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-dump.c
2438 cli-script.o: $(srcdir)/cli/cli-script.c $(defs_h) $(value_h) $(language_h) \
2439         $(ui_out_h) $(gdb_string_h) $(top_h) $(cli_cmds_h) $(cli_decode_h) \
2440         $(cli_script_h)
2441         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-script.c
2442 cli-setshow.o: $(srcdir)/cli/cli-setshow.c $(defs_h) $(value_h) \
2443         $(gdb_string_h) $(ui_out_h) $(cli_decode_h) $(cli_cmds_h) \
2444         $(cli_setshow_h)
2445         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-setshow.c
2446 cli-utils.o: $(srcdir)/cli/cli-utils.c $(defs_h) $(cli_utils_h)
2447         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-utils.c
2448
2449 #
2450 # GDBTK sub-directory
2451 #
2452 # Need to explicitly specify the compile rule as make will do nothing
2453 # or try to compile the object file into the mi directory.
2454
2455 gdbres.o: $(srcdir)/gdbtk/gdb.rc $(srcdir)/gdbtk/gdbtool.ico
2456         $(WINDRES) --include $(srcdir)/gdbtk $(srcdir)/gdbtk/gdb.rc gdbres.o
2457
2458 gdbtk.o: $(srcdir)/gdbtk/generic/gdbtk.c \
2459         $(srcdir)/gdbtk/generic/gdbtk.h $(defs_h) \
2460         $(symtab_h) $(inferior_h) $(command_h) \
2461         $(bfd_h) $(symfile_h) $(objfiles_h) $(target_h) $(gdb_string_h) \
2462         $(tracepoint_h) $(top_h) 
2463         $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
2464         $(ITK_CFLAGS) $(TIX_CFLAGS) \
2465         $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) $(GDBTK_CFLAGS)\
2466                 $(srcdir)/gdbtk/generic/gdbtk.c \
2467                 -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\" -DSRC_DIR=\"$(GDBTK_SRC_DIR)\"
2468
2469 gdbtk-bp.o: $(srcdir)/gdbtk/generic/gdbtk-bp.c \
2470                 $(srcdir)/gdbtk/generic/gdbtk.h \
2471                 $(srcdir)/gdbtk/generic/gdbtk-cmds.h \
2472                 $(defs_h) $(breakpoint_h) $(tracepoint_h) \
2473                 $(symfile_h) $(symtab_h) $(gdb_string_h)
2474         $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
2475         $(TIX_CFLAGS) $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS)   \
2476         $(GDBTK_CFLAGS) $(srcdir)/gdbtk/generic/gdbtk-bp.c \
2477         -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\"
2478
2479 gdbtk-cmds.o: $(srcdir)/gdbtk/generic/gdbtk-cmds.c \
2480         $(srcdir)/gdbtk/generic/gdbtk.h $(srcdir)/gdbtk/generic/gdbtk-cmds.h \
2481         $(defs_h) $(symtab_h) $(inferior_h)     \
2482         $(command_h) $(bfd_h) $(top_h) $(symfile_h) $(objfiles_h) $(target_h) \
2483         $(gdb_string_h) $(tracepoint_h) $(source_h) $(regcache_h)
2484         $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS)        \
2485         $(TIX_CFLAGS) $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS)          \
2486         $(GDBTK_CFLAGS) $(srcdir)/gdbtk/generic/gdbtk-cmds.c            \
2487         -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\"
2488
2489 gdbtk-hooks.o: $(srcdir)/gdbtk/generic/gdbtk-hooks.c \
2490         $(srcdir)/gdbtk/generic/gdbtk.h $(defs_h) \
2491         $(symtab_h) $(inferior_h) $(command_h) \
2492         $(bfd_h) $(symfile_h) $(objfiles_h) $(target_h) $(gdb_string_h) \
2493         $(tracepoint_h)
2494         $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) $(TIX_CFLAGS) \
2495         $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) $(GDBTK_CFLAGS)\
2496                 $(srcdir)/gdbtk/generic/gdbtk-hooks.c -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\"
2497
2498 gdbtk-register.o: $(srcdir)/gdbtk/generic/gdbtk-register.c \
2499                 $(srcdir)/gdbtk/generic/gdbtk.h \
2500                 $(srcdir)/gdbtk/generic/gdbtk-cmds.h \
2501                 $(defs_h) $(frame_h) $(value_h) $(gdb_string_h)
2502         $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
2503         $(TIX_CFLAGS) $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS)   \
2504         $(GDBTK_CFLAGS) $(srcdir)/gdbtk/generic/gdbtk-register.c \
2505         -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\"
2506
2507 gdbtk-stack.o: $(srcdir)/gdbtk/generic/gdbtk-stack.c \
2508         $(srcdir)/gdbtk/generic/gdbtk.h $(srcdir)/gdbtk/generic/gdbtk-cmds.h \
2509         $(srcdir)/gdbtk/generic/gdbtk-wrapper.h \
2510         $(defs_h) $(frame_h) $(value_h) $(target_h) $(breakpoint_h) \
2511         $(linespec_h)
2512         $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
2513         $(TIX_CFLAGS) $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS)   \
2514         $(GDBTK_CFLAGS) $(srcdir)/gdbtk/generic/gdbtk-stack.c \
2515         -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\"
2516
2517 gdbtk-varobj.o: $(srcdir)/gdbtk/generic/gdbtk-varobj.c \
2518                 $(srcdir)/gdbtk/generic/gdbtk.h \
2519                 $(defs_h) $(value_h) $(varobj_h) $(gdb_string_h)
2520         $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) $(TIX_CFLAGS) \
2521         $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) $(GDBTK_CFLAGS)\
2522                 $(srcdir)/gdbtk/generic/gdbtk-varobj.c
2523
2524 gdbtk-wrapper.o: $(srcdir)/gdbtk/generic/gdbtk-wrapper.c \
2525         $(srcdir)/gdbtk/generic/gdbtk-wrapper.h \
2526         $(defs_h) $(frame_h) $(value_h)
2527         $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(GDBTK_CFLAGS)\
2528                 $(srcdir)/gdbtk/generic/gdbtk-wrapper.c
2529
2530 #
2531 # gdb/mi/ dependencies
2532 #
2533 # Need to explicitly specify the compile rule as make will do nothing
2534 # or try to compile the object file into the mi directory.
2535
2536 mi-cmd-break.o: $(srcdir)/mi/mi-cmd-break.c $(defs_h) $(mi_cmds_h) \
2537         $(ui_out_h) $(mi_out_h) $(breakpoint_h) $(gdb_string_h) \
2538         $(mi_getopt_h) $(gdb_events_h) $(gdb_h)
2539         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-break.c
2540 mi-cmd-disas.o: $(srcdir)/mi/mi-cmd-disas.c $(defs_h) $(target_h) $(value_h) \
2541         $(mi_cmds_h) $(mi_getopt_h) $(ui_out_h) $(gdb_string_h)
2542         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-disas.c
2543 mi-cmd-stack.o: $(srcdir)/mi/mi-cmd-stack.c $(defs_h) $(target_h) $(frame_h) \
2544         $(value_h) $(mi_cmds_h) $(ui_out_h) $(symtab_h)
2545         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-stack.c
2546 mi-cmd-var.o: $(srcdir)/mi/mi-cmd-var.c $(defs_h) $(mi_cmds_h) $(ui_out_h) \
2547         $(mi_out_h) $(varobj_h) $(value_h) $(gdb_string_h)
2548         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-var.c
2549 mi-cmds.o: $(srcdir)/mi/mi-cmds.c $(defs_h) $(top_h) $(mi_cmds_h) \
2550         $(gdb_string_h)
2551         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmds.c
2552 mi-console.o: $(srcdir)/mi/mi-console.c $(defs_h) $(mi_console_h) \
2553         $(gdb_string_h)
2554         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-console.c
2555 mi-getopt.o: $(srcdir)/mi/mi-getopt.c $(defs_h) $(mi_getopt_h) \
2556         $(gdb_string_h)
2557         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-getopt.c
2558 mi-main.o: $(srcdir)/mi/mi-main.c $(defs_h) $(target_h) $(inferior_h) \
2559         $(gdb_string_h) $(top_h) $(gdbthread_h) $(mi_cmds_h) $(mi_parse_h) \
2560         $(mi_getopt_h) $(mi_console_h) $(ui_out_h) $(mi_out_h) \
2561         $(event_loop_h) $(event_top_h) $(gdbcore_h) $(value_h) $(regcache_h) \
2562         $(gdb_h)
2563         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-main.c
2564 mi-out.o: $(srcdir)/mi/mi-out.c $(defs_h) $(ui_out_h) $(mi_out_h)
2565         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-out.c
2566 mi-parse.o: $(srcdir)/mi/mi-parse.c $(defs_h) $(mi_cmds_h) $(mi_parse_h) \
2567         $(gdb_string_h)
2568         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-parse.c
2569
2570 #
2571 # nindy-share sub-directory
2572 #
2573 # Need to explicitly specify the compile rule as make will do nothing
2574 # or try to compile the object file into the mi directory.
2575
2576 Onindy.o: nindy-share/Onindy.c $(gdb_wait_h) nindy-share/block_io.h \
2577         nindy-share/env.h
2578         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/Onindy.c
2579
2580 nindy.o: nindy-share/nindy.c $(gdb_wait_h) nindy-share/block_io.h \
2581         nindy-share/env.h
2582         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/nindy.c
2583
2584 ttyflush.o: nindy-share/ttyflush.c $(srcdir)/nindy-share/ttyflush.c
2585         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/ttyflush.c
2586
2587 #
2588 # rdi-share sub-directory
2589 #
2590 # Need to explicitly specify the compile rule as make will do nothing
2591 # or try to compile the object file into the mi directory.
2592
2593 rdi-share/libangsd.a:   force
2594         @dir=rdi-share; \
2595         if [ -f ./$${dir}/Makefile ] ; then \
2596           r=`pwd`; export r; \
2597           srcroot=`cd $(srcdir); pwd`; export srcroot; \
2598           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
2599         else \
2600           true; \
2601         fi
2602
2603 #
2604 # Signals sub-directory
2605 #
2606 # Need to explicitly specify the compile rule as make will do nothing
2607 # or try to compile the object file into the mi directory.
2608
2609 signals.o: $(srcdir)/signals/signals.c $(defs_h) $(target_h)
2610         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/signals/signals.c
2611
2612 #
2613 # TUI dependencies
2614 #
2615 # Need to explicitly specify the compile rule as make will do nothing
2616 # or try to compile the object file into the mi directory.
2617
2618 tui-file.o: $(srcdir)/tui/tui-file.c $(defs_h) $(ui_file_h) $(tui_file_h) \
2619         $(tui_tuiIO_h) $(tui_h)
2620         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-file.c
2621 tui-hooks.o: $(srcdir)/tui/tui-hooks.c $(config_h) $(defs_h) $(symtab_h) \
2622         $(inferior_h) $(command_h) $(bfd_h) $(symfile_h) $(objfiles_h) \
2623         $(target_h) $(gdbcore_h) $(event_loop_h) $(frame_h) $(breakpoint_h) \
2624         $(gdb_events_h) $(tui_h) $(tuiData_h) $(tuiLayout_h) $(tuiIO_h) \
2625         $(tuiRegs_h) $(tuiWin_h) $(tuiStack_h) $(tuiDataWin_h) \
2626         $(tuiSourceWin_h)
2627         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-hooks.c
2628 tui-out.o: $(srcdir)/tui/tui-out.c $(defs_h) $(ui_out_h) $(tui_h) \
2629         $(gdb_string_h) $(gdb_assert_h)
2630         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-out.c
2631 tui.o: $(srcdir)/tui/tui.c $(config_h) $(defs_h) $(gdbcmd_h) $(tui_h) \
2632         $(tuiData_h) $(tuiLayout_h) $(tuiIO_h) $(tuiRegs_h) $(tuiStack_h) \
2633         $(tuiWin_h) $(tuiSourceWin_h) $(readline_h) $(target_h) $(frame_h) \
2634         $(breakpoint_h) $(inferior_h)
2635         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui.c
2636 tuiCommand.o: $(srcdir)/tui/tuiCommand.c $(config_h) $(defs_h) $(tui_h) \
2637         $(tuiData_h) $(tuiWin_h) $(tuiIO_h)
2638         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiCommand.c
2639 tuiData.o: $(srcdir)/tui/tuiData.c $(config_h) $(defs_h) $(tui_h) \
2640         $(tuiData_h) $(tuiGeneralWin_h)
2641         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiData.c
2642 tuiDataWin.o: $(srcdir)/tui/tuiDataWin.c $(config_h) $(defs_h) $(tui_h) \
2643         $(tuiData_h) $(tuiGeneralWin_h) $(tuiRegs_h)
2644         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiDataWin.c
2645 tuiDisassem.o: $(srcdir)/tui/tuiDisassem.c $(config_h) $(defs_h) $(symtab_h) \
2646         $(breakpoint_h) $(frame_h) $(value_h) $(tui_h) $(tuiData_h) \
2647         $(tuiWin_h) $(tuiLayout_h) $(tuiSourceWin_h) $(tuiStack_h) \
2648         $(tui_file_h)
2649         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiDisassem.c
2650 tuiGeneralWin.o: $(srcdir)/tui/tuiGeneralWin.c $(config_h) $(defs_h) \
2651         $(tui_h) $(tuiData_h) $(tuiGeneralWin_h) $(tuiWin_h)
2652         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiGeneralWin.c
2653 tuiIO.o: $(srcdir)/tui/tuiIO.c $(config_h) $(defs_h) $(terminal_h) \
2654         $(target_h) $(event_loop_h) $(command_h) $(top_h) $(readline_h) \
2655         $(tui_h) $(tuiData_h) $(tuiIO_h) $(tuiCommand_h) $(tuiWin_h) \
2656         $(tuiGeneralWin_h) $(tui_file_h) $(ui_out_h) $(cli_out_h)
2657         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiIO.c
2658 tuiLayout.o: $(srcdir)/tui/tuiLayout.c $(config_h) $(defs_h) $(command_h) \
2659         $(symtab_h) $(frame_h) $(tui_h) $(tuiData_h) $(tuiDataWin_h) \
2660         $(tuiGeneralWin_h) $(tuiStack_h) $(tuiRegs_h) $(tuiWin_h) \
2661         $(tuiSourceWin_h) $(tuiDisassem_h)
2662         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiLayout.c
2663 tuiRegs.o: $(srcdir)/tui/tuiRegs.c $(config_h) $(defs_h) $(tui_h) \
2664         $(tuiData_h) $(symtab_h) $(gdbtypes_h) $(gdbcmd_h) $(frame_h) \
2665         $(inferior_h) $(target_h) $(tuiLayout_h) $(tuiWin_h) $(tuiDataWin_h) \
2666         $(tuiGeneralWin_h) $(tui_file_h)
2667         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiRegs.c
2668 tuiSource.o: $(srcdir)/tui/tuiSource.c $(config_h) $(defs_h) $(symtab_h) \
2669         $(frame_h) $(breakpoint_h) $(source_h) $(symtab_h) $(tui_h) \
2670         $(tuiData_h) $(tuiStack_h) $(tuiSourceWin_h) $(tuiSource_h)
2671         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiSource.c
2672 tuiSourceWin.o: $(srcdir)/tui/tuiSourceWin.c $(config_h) $(defs_h) \
2673         $(symtab_h) $(frame_h) $(breakpoint_h) $(value_h) $(tui_h) \
2674         $(tuiData_h) $(tuiStack_h) $(tuiWin_h) $(tuiGeneralWin_h) \
2675         $(tuiSourceWin_h) $(tuiSource_h) $(tuiDisassem_h)
2676         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiSourceWin.c
2677 tuiStack.o: $(srcdir)/tui/tuiStack.c $(config_h) $(defs_h) $(symtab_h) \
2678         $(breakpoint_h) $(frame_h) $(command_h) $(tui_h) $(tuiData_h) \
2679         $(tuiStack_h) $(tuiGeneralWin_h) $(tuiSource_h) $(tuiSourceWin_h)
2680         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiStack.c
2681 tuiWin.o: $(srcdir)/tui/tuiWin.c $(config_h) $(defs_h) $(command_h) \
2682         $(symtab_h) $(breakpoint_h) $(frame_h) $(cli_cmds_h) $(tui_h) \
2683         $(tuiData_h) $(tuiGeneralWin_h) $(tuiStack_h) $(tuiRegs_h) \
2684         $(tuiDisassem_h) $(tuiSource_h) $(tuiSourceWin_h) $(tuiDataWin_h)
2685         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiWin.c
2686
2687 #
2688 # vx-share sub-directory
2689 #
2690
2691 xdr_ld.o: vx-share/xdr_ld.c $(defs_h) vx-share/vxTypes.h \
2692         vx-share/vxWorks.h vx-share/xdr_ld.h
2693         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_ld.c
2694
2695 xdr_ptrace.o: vx-share/xdr_ptrace.c $(defs_h) vx-share/vxTypes.h \
2696         vx-share/vxWorks.h vx-share/xdr_ptrace.h
2697         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_ptrace.c
2698
2699 xdr_rdb.o: vx-share/xdr_rdb.c $(defs_h) vx-share/vxTypes.h \
2700         vx-share/vxWorks.h vx-share/xdr_rdb.h
2701         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_rdb.c
2702
2703 ### end of the gdb Makefile.in.