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