Make setthetime() static per the prototype.
[dragonfly.git] / contrib / gdb / gdb / Makefile.in
1 # Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998
2 # 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 includedir = @includedir@
43
44 # This can be referenced by `INTLDEPS' as computed by CY_GNU_GETTEXT.
45 top_builddir = .
46
47 SHELL = @SHELL@
48 EXEEXT = @EXEEXT@
49
50 INSTALL = @INSTALL@
51 INSTALL_PROGRAM = @INSTALL_PROGRAM@
52 INSTALL_DATA = @INSTALL_DATA@
53
54 AR = @AR@
55 AR_FLAGS = qv
56 RANLIB = @RANLIB@
57 DLLTOOL = @DLLTOOL@
58 WINDRES = @WINDRES@
59
60 # If the user configured GDB to include the TUI, the name of the tui
61 # library goes here.
62 TUI_LIBRARY = @TUI_LIBRARY@
63
64 # If the user configured GDB to include the TUI, the all-tui 
65 # target goes here.
66 BUILD_TUI = @BUILD_TUI@
67
68 # Flags that describe where you can find the termcap library.
69 # This can be overridden in the host Makefile fragment file.
70 TERMCAP = @TERM_LIB@
71
72 # If you are compiling with GCC, make sure that either 1) You have the
73 # fixed include files where GCC can reach them, or 2) You use the
74 # -traditional flag.  Otherwise the ioctl calls in inflow.c
75 # will be incorrectly compiled.  The "fixincludes" script in the gcc
76 # distribution will fix your include files up.
77 CC=@CC@
78
79 # Directory containing source files.
80 srcdir = @srcdir@
81 VPATH = @srcdir@
82
83 YACC=@YACC@
84
85 YLWRAP = $(srcdir)/../ylwrap
86
87 # where to find makeinfo, preferably one designed for texinfo-2
88 MAKEINFO=makeinfo
89
90 # Set this up with gcc if you have gnu ld and the loader will print out
91 # line numbers for undefined references.
92 #CC_LD=gcc -static
93 CC_LD=$(CC)
94
95 # Where is our "include" directory?  Typically $(srcdir)/../include.
96 # This is essentially the header file directory for the library
97 # routines in libiberty.
98 INCLUDE_DIR =  $(srcdir)/../include
99 INCLUDE_CFLAGS = -I$(INCLUDE_DIR)
100
101 # Where is the "-liberty" library?  Typically in ../libiberty.
102 LIBIBERTY = ../libiberty/libiberty.a
103
104 # Configured by the --with-mmalloc option to configure.
105 MMALLOC = @MMALLOC@
106 MMALLOC_CFLAGS = @MMALLOC_CFLAGS@
107
108 # Where is the BFD library?  Typically in ../bfd.
109 BFD_DIR = ../bfd
110 BFD = $(BFD_DIR)/libbfd.a
111 BFD_SRC = $(srcdir)/$(BFD_DIR)
112 BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
113
114 # Where is the READLINE library?  Typically in ../readline.
115 READLINE_DIR = ../readline
116 READLINE = $(READLINE_DIR)/libreadline.a
117 READLINE_SRC = $(srcdir)/$(READLINE_DIR)
118 READLINE_CFLAGS = -I$(READLINE_SRC)/..
119
120 WARN_CFLAGS = @WARN_CFLAGS@
121
122 # Where is the INTL library?  Typically in ../intl.
123 INTL_DIR = ../intl
124 INTL = @INTLLIBS@
125 INTL_DEPS = @INTLDEPS@
126 INTL_SRC = $(srcdir)/$(INTL_DIR)
127 INTL_CFLAGS = -I$(INTL_DIR) -I$(INTL_SRC)
128
129 # Where is the TUI library?  Typically in tui/.
130 TUI_DIR=tui
131 TUI_SRC = $(srcdir)/$(TUI_DIR)
132 TUI_CFLAGS= -I$(TUI_SRC)
133
134 # Opcodes currently live in one of two places.  Either they are in the
135 # opcode library, typically ../opcodes, or they are in a header file
136 # in INCLUDE_DIR.
137 # Where is the "-lopcodes" library, with (some of) the opcode tables and
138 # disassemblers?
139 OPCODES = ../opcodes/libopcodes.a
140 # Where are the other opcode tables which only have header file
141 # versions?
142 OP_INCLUDE = $(INCLUDE_DIR)/opcode
143 OPCODES_CFLAGS = -I$(OP_INCLUDE)
144
145 # The simulator is usually nonexistent; targets that include one
146 # should set this to list all the .o or .a files to be linked in.
147 SIM =
148
149
150 ENABLE_CFLAGS= @ENABLE_CFLAGS@
151
152 # -I. for config files.
153 # -I$(srcdir) for gdb internal headers and possibly for gnu-regex.h also.
154 # -I$(srcdir)/config for more generic config files.
155
156 # It is also possible that you will need to add -I/usr/include/sys if
157 # your system doesn't have fcntl.h in /usr/include (which is where it
158 # should be according to Posix).
159 DEFS = @DEFS@
160 GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/config $(DEFS)
161
162 # M{H,T}_CFLAGS, if defined, have host- and target-dependent CFLAGS
163 # from the config directory.
164 GLOBAL_CFLAGS = $(MT_CFLAGS) $(MH_CFLAGS)
165 #PROFILE_CFLAGS = -pg
166
167 # CFLAGS is specifically reserved for setting from the command line
168 # when running make.  I.E.  "make CFLAGS=-Wmissing-prototypes".
169 CFLAGS = -g
170
171 # Need to pass this to testsuite for "make check".  Probably should be
172 # consistent with top-level Makefile.in and gdb/testsuite/Makefile.in
173 # so "make check" has the same result no matter where it is run.
174 CXXFLAGS = -g -O
175
176 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
177 INTERNAL_CFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
178         $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
179         $(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) \
180         $(INTL_CFLAGS) $(TUI_CFLAGS) $(ENABLE_CFLAGS) $(WARN_CFLAGS)
181
182 # LDFLAGS is specifically reserved for setting from the command line
183 # when running make.
184
185 # Profiling options need to go here to work.
186 # I think it's perfectly reasonable for a user to set -pg in CFLAGS
187 # and have it work; that's why CFLAGS is here.
188 INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) $(LDFLAGS) @CONFIG_LDFLAGS@ @HLDFLAGS@
189 HLDENV = @HLDENV@
190
191 # We are using our own version of REGEX now to be consistent across
192 # machines.
193 REGEX = gnu-regex.o
194 REGEX1 = gnu-regex.o
195
196 # If your system is missing alloca(), or, more likely, it's there but
197 # it doesn't work, then refer to libiberty.
198
199 # Libraries and corresponding dependencies for compiling gdb.
200 # {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
201 # TERMCAP comes after readline, since readline depends on it.
202 # MMALLOC comes after anything else that might want an allocation function.
203 # LIBIBERTY appears twice on purpose.
204 # If you have the Cygnus libraries installed,
205 # you can use 'CLIBS=$(INSTALLED_LIBS)' 'CDEPS='
206 INSTALLED_LIBS=-lbfd -lreadline -lopcodes -liberty \
207         $(TERMCAP) $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \
208         -lmmalloc -lintl -liberty
209 CLIBS = $(SIM) $(BFD) $(READLINE) $(OPCODES) $(INTL) $(LIBIBERTY) \
210         $(TERMCAP) $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \
211         $(MMALLOC) $(LIBIBERTY) $(WIN32LIBS)
212 CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE) \
213         $(OPCODES) $(MMALLOC) $(INTL_DEPS) $(LIBIBERTY) @CONFIG_DEPS@
214
215 ADD_FILES = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
216 ADD_DEPS = $(REGEX1) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
217
218 VERSION=4.18
219 DIST=gdb
220
221 LINT=/usr/5bin/lint
222 LINTFLAGS= $(BFD_CFLAGS)
223
224 RUNTEST = `if [ -f $${rootsrc}/../dejagnu/runtest ] ; then \
225                 echo $${rootsrc}/../dejagnu/runtest ; else echo runtest; \
226            fi`
227
228 RUNTESTFLAGS=
229
230 # This is ser-unix.o for any system which supports a v7/BSD/SYSV/POSIX
231 # interface to the serial port.  Hopefully if get ported to OS/2, VMS,
232 # etc., then there will be (as part of the C library or perhaps as
233 # part of libiberty) a POSIX interface.  But at least for now the
234 # host-dependent makefile fragment might need to use something else
235 # besides ser-unix.o
236 SER_HARDWIRE = ser-unix.o
237
238 # The `remote' debugging target is supported for most architectures,
239 # but not all (e.g. 960)
240 REMOTE_OBS = remote.o dcache.o remote-utils.o tracepoint.o ax-general.o ax-gdb.o
241
242 # This is remote-sim.o if a simulator is to be linked in.
243 SIM_OBS =
244
245 ANNOTATE_OBS = annotate.o
246
247 # Host and target-dependent makefile fragments come in here.
248 @host_makefile_frag@
249 @target_makefile_frag@
250 # End of host and target-dependent makefile fragments
251
252 FLAGS_TO_PASS = \
253         "prefix=$(prefix)" \
254         "exec_prefix=$(exec_prefix)" \
255         "against=$(against)" \
256         "AR=$(AR)" \
257         "AR_FLAGS=$(AR_FLAGS)" \
258         "CC=$(CC)" \
259         "CFLAGS=$(CFLAGS)" \
260         "CHILLFLAGS=$(CHILLFLAGS)" \
261         "CHILL=$(CHILL)" \
262         "CHILL_LIB=$(CHILL_LIB)" \
263         "CXX=$(CXX)" \
264         "CXXFLAGS=$(CXXFLAGS)" \
265         "DLLTOOL=$(DLLTOOL)" \
266         "RANLIB=$(RANLIB)" \
267         "MAKEINFO=$(MAKEINFO)" \
268         "INSTALL=$(INSTALL)" \
269         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
270         "INSTALL_DATA=$(INSTALL_DATA)" \
271         "RUNTEST=$(RUNTEST)" \
272         "RUNTESTFLAGS=$(RUNTESTFLAGS)"
273
274 # Flags that we pass when building the testsuite.
275
276 # empty for native, $(target_alias)/ for cross
277 target_subdir = @target_subdir@
278
279 CC_FOR_TARGET = ` \
280   if [ -f $${rootme}/../gcc/xgcc ] ; then \
281     if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \
282       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/; \
283     else \
284       echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
285     fi; \
286   else \
287     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
288       echo $(CC); \
289     else \
290       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
291     fi; \
292   fi`
293
294 CXX = gcc
295 CXX_FOR_TARGET = ` \
296   if [ -f $${rootme}/../gcc/xgcc ] ; then \
297     if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \
298       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/; \
299     else \
300       echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
301     fi; \
302   else \
303     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
304       echo $(CXX); \
305     else \
306       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
307     fi; \
308   fi`
309
310 CHILLFLAGS = $(CFLAGS)
311 CHILL = gcc
312 CHILL_FOR_TARGET = ` \
313   if [ -f $${rootme}/../gcc/Makefile ] ; then \
314     echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -L$${rootme}/../gcc/ch/runtime/; \
315   else \
316     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
317       echo $(CC); \
318     else \
319       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
320     fi; \
321   fi`
322 CHILL_LIB = ` \
323   if [ -f $${rootme}/../gcc/ch/runtime/libchill.a ] ; then \
324     echo $${rootme}/../gcc/ch/runtime/chillrt0.o \
325       $${rootme}/../gcc/ch/runtime/libchill.a; \
326   else \
327       echo -lchill; \
328   fi`
329
330 # The use of $$(x_FOR_TARGET) reduces the command line length by not
331 # duplicating the lengthy definition.
332 TARGET_FLAGS_TO_PASS = \
333         "prefix=$(prefix)" \
334         "exec_prefix=$(exec_prefix)" \
335         "against=$(against)" \
336         'CC=$$(CC_FOR_TARGET)' \
337         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
338         "CFLAGS=$(CFLAGS)" \
339         "CHILLFLAGS=$(CHILLFLAGS)" \
340         'CHILL=$$(CHILL_FOR_TARGET)' \
341         "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
342         "CHILL_LIB=$(CHILL_LIB)" \
343         'CXX=$$(CXX_FOR_TARGET)' \
344         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
345         "CXXFLAGS=$(CXXFLAGS)" \
346         "INSTALL=$(INSTALL)" \
347         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
348         "INSTALL_DATA=$(INSTALL_DATA)" \
349         "MAKEINFO=$(MAKEINFO)" \
350         "RUNTEST=$(RUNTEST)" \
351         "RUNTESTFLAGS=$(RUNTESTFLAGS)"
352
353 # All source files that go into linking GDB.
354 # Links made at configuration time should not be specified here, since
355 # SFILES is used in building the distribution archive.
356
357 SFILES = ax-general.c ax-gdb.c bcache.c blockframe.c breakpoint.c \
358         buildsym.c c-exp.y c-lang.c c-typeprint.c c-valprint.c \
359         ch-exp.c ch-lang.c ch-typeprint.c ch-valprint.c coffread.c \
360         command.c complaints.c corefile.c cp-valprint.c dbxread.c \
361         demangle.c dwarfread.c dwarf2read.c elfread.c environ.c eval.c \
362         expprint.c f-exp.y f-lang.c f-typeprint.c f-valprint.c \
363         findvar.c gdbarch.c gdbtypes.c infcmd.c inflow.c infrun.c language.c \
364         jv-exp.y jv-lang.c jv-valprint.c jv-typeprint.c \
365         m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c main.c maint.c \
366         mem-break.c minsyms.c mipsread.c nlmread.c objfiles.c parse.c \
367         printcmd.c remote.c remote-nrom.c scm-exp.c scm-lang.c \
368         scm-valprint.c source.c stabsread.c stack.c symfile.c \
369         symmisc.c symtab.c target.c thread.c top.c tracepoint.c \
370         typeprint.c utils.c valarith.c valops.c valprint.c values.c \
371         serial.c ser-unix.c mdebugread.c os9kread.c \
372         tui/tui.c tui/tui.h tui/tuiCommand.c tui/tuiCommand.h \
373         tui/tuiData.c tui/tuiData.h tui/tuiDataWin.c tui/tuiDataWin.h \
374         tui/tuiDisassem.c tui/tuiDisassem.h tui/tuiGeneralWin.c \
375         tui/tuiGeneralWin.h tui/tuiIO.c tui/tuiIO.h tui/tuiLayout.c \
376         tui/tuiLayout.h tui/tuiRegs.c tui/tuiRegs.h tui/tuiSource.c \
377         tui/tuiSource.h tui/tuiSourceWin.c tui/tuiSourceWin.h \
378         tui/tuiStack.c tui/tuiStack.h tui/tuiWin.c tui/tuiWin.h
379
380 LINTFILES = $(SFILES) $(YYFILES) @CONFIG_SRCS@ init.c
381
382 # "system" headers.  Using these in dependencies is a rather personal
383 # choice. (-rich, summer 1993)
384 # (Why would we not want to depend on them?  If one of these changes in a 
385 # non-binary-compatible way, it is a real pain to remake the right stuff
386 # without these dependencies -kingdon, 13 Mar 1994)
387 getopt_h =      $(INCLUDE_DIR)/getopt.h
388 floatformat_h = $(INCLUDE_DIR)/floatformat.h
389 bfd_h =         $(BFD_DIR)/bfd.h
390 wait_h =        $(INCLUDE_DIR)/wait.h
391 dis-asm_h =     $(INCLUDE_DIR)/dis-asm.h 
392 remote-sim_h =  $(INCLUDE_DIR)/remote-sim.h
393
394 dcache_h = dcache.h
395 remote_utils_h = $(dcache_h) serial.h target.h remote-utils.h $(remote-sim_h)
396
397
398 readline_headers = \
399         $(READLINE_SRC)/chardefs.h \
400         $(READLINE_SRC)/history.h \
401         $(READLINE_SRC)/keymaps.h \
402         $(READLINE_SRC)/readline.h
403
404 udiheaders = \
405         $(srcdir)/29k-share/udi/udiproc.h \
406         $(srcdir)/29k-share/udi/udiphcfg.h \
407         $(srcdir)/29k-share/udi/udiphunix.h \
408         $(srcdir)/29k-share/udi/udiptcfg.h \
409         $(srcdir)/29k-share/udi/udipt29k.h \
410         $(srcdir)/29k-share/udi/udisoc.h
411
412 gdbcore_h =     gdbcore.h $(bfd_h)
413
414 frame_h =       frame.h
415 symtab_h =      symtab.h bcache.h
416 gdbtypes_h =    gdbtypes.h
417 expression_h =  expression.h
418 value_h =       value.h $(symtab_h) $(gdbtypes_h) $(expression_h)
419
420 breakpoint_h =  breakpoint.h $(frame_h) $(value_h)
421
422 command_h =     command.h
423 gdbcmd_h =      gdbcmd.h $(command_h)
424
425 defs_h =        defs.h xm.h tm.h nm.h config.status config.h gdbarch.h
426
427 inferior_h =    inferior.h $(breakpoint_h)
428 tracepoint_h =  tracepoint.h
429 ax_h =          ax.h
430
431 # Header files that need to have srcdir added.  Note that in the cases
432 # where we use a macro like $(gdbcmd_h), things are carefully arranged
433 # so that each .h file is listed exactly once (M-x tags-search works
434 # wrong if TAGS has files twice).  Because this is tricky to get
435 # right, it is probably easiest just to list .h files here directly.
436
437 HFILES_NO_SRCDIR = bcache.h buildsym.h call-cmds.h coff-solib.h defs.h \
438         dst.h environ.h $(gdbcmd_h) gdbcore.h \
439         gdb-stabs.h hpread.h $(inferior_h) language.h minimon.h monitor.h \
440         objfiles.h parser-defs.h partial-stab.h serial.h signals.h solib.h \
441         symfile.h stabsread.h target.h terminal.h typeprint.h xcoffsolib.h \
442         c-lang.h ch-lang.h f-lang.h \
443         jv-lang.h \
444         m2-lang.h \
445         complaints.h valprint.h \
446         29k-share/udi/udiids.h 29k-share/udi_soc nindy-share/b.out.h \
447         nindy-share/block_io.h nindy-share/coff.h \
448         nindy-share/env.h nindy-share/stop.h \
449         vx-share/dbgRpcLib.h vx-share/ptrace.h vx-share/vxTypes.h \
450         vx-share/vxWorks.h vx-share/wait.h vx-share/xdr_ld.h \
451         vx-share/xdr_ptrace.h vx-share/xdr_rdb.h gdbthread.h \
452         dcache.h remote-utils.h top.h somsolib.h
453
454 # Header files that already have srcdir in them, or which are in objdir.
455
456 HFILES_WITH_SRCDIR = $(udiheaders) ../bfd/bfd.h
457
458
459 # GDB "info" files, which should be included in their entirety
460 INFOFILES = gdb.info*
461
462 REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar
463
464 POSSLIBS = gnu-regex.c gnu-regex.h
465
466 # {X,T,NAT}DEPFILES are something of a pain in that it's hard to
467 # default their values the way we do for SER_HARDWIRE; in the future
468 # maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other
469 # variables analogous to SER_HARDWIRE which get defaulted in this
470 # Makefile.in
471
472 DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) \
473            $(REMOTE_OBS) $(SIM_OBS) @CONFIG_OBS@
474
475 SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES) @CONFIG_SRCS@
476 # Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
477 # and it's more useful to see it in the .y file.
478 TAGFILES_NO_SRCDIR = $(SFILES) $(HFILES_NO_SRCDIR) $(ALLDEPFILES) \
479         $(POSSLIBS)
480 TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR)
481
482 COMMON_OBS = version.o blockframe.o breakpoint.o findvar.o stack.o thread.o \
483         source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o \
484         symtab.o symfile.o symmisc.o infcmd.o infrun.o command.o \
485         expprint.o environ.o gdbarch.o gdbtypes.o copying.o $(DEPFILES) \
486         mem-break.o target.o parse.o language.o $(YYOBJ) buildsym.o \
487         exec.o bcache.o objfiles.o minsyms.o maint.o demangle.o \
488         dbxread.o coffread.o elfread.o \
489         dwarfread.o dwarf2read.o mipsread.o stabsread.o corefile.o \
490         c-lang.o ch-exp.o ch-lang.o f-lang.o \
491         jv-lang.o jv-valprint.o jv-typeprint.o \
492         m2-lang.o \
493         scm-exp.o scm-lang.o scm-valprint.o complaints.o typeprint.o \
494         c-typeprint.o ch-typeprint.o f-typeprint.o m2-typeprint.o \
495         c-valprint.o cp-valprint.o ch-valprint.o f-valprint.o m2-valprint.o \
496         nlmread.o serial.o mdebugread.o os9kread.o top.o utils.o
497
498 OBS = $(COMMON_OBS) $(ANNOTATE_OBS) main.o
499
500 LIBGDB_OBS = 
501
502 TSOBS = inflow.o
503
504 NTSOBS = standalone.o
505
506 NTSSTART = kdb-start.o
507
508 SUBDIRS = doc \
509         testsuite \
510         nlm
511
512 # For now, shortcut the "configure GDB for fewer languages" stuff.
513 YYFILES = c-exp.tab.c \
514         jv-exp.tab.c \
515         f-exp.tab.c m2-exp.tab.c
516 YYOBJ = c-exp.tab.o \
517         jv-exp.tab.o \
518         f-exp.tab.o m2-exp.tab.o
519
520 # Things which need to be built when making a distribution.
521
522 DISTSTUFF = $(YYFILES)
523
524 # Prevent Sun make from putting in the machine type.  Setting
525 # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
526 .c.o:
527         $(CC) -c $(INTERNAL_CFLAGS) $<
528
529 all: gdb$(EXEEXT)
530         @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
531
532 installcheck:
533
534 # The check target can not use subdir_do, because subdir_do does not
535 # use TARGET_FLAGS_TO_PASS.
536 check: force
537         @if [ -f testsuite/Makefile ]; then \
538           rootme=`pwd`; export rootme; \
539           rootsrc=`cd $(srcdir); pwd`; export rootsrc; \
540           cd testsuite; \
541           $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \
542         else true; fi
543
544 info dvi install-info clean-info: force
545         @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
546
547 gdb.z:gdb.1
548         nroff -man $(srcdir)/gdb.1 | col -b > gdb.t 
549         pack gdb.t ; rm -f gdb.t
550         mv gdb.t.z gdb.z
551
552 # Traditionally "install" depends on "all".  But it may be useful
553 # not to; for example, if the user has made some trivial change to a 
554 # source file and doesn't care about rebuilding or just wants to save the
555 # time it takes for make to check that all is up to date.
556 # install-only is intended to address that need.
557 install: all install-only
558 install-only:
559         transformed_name=`t='$(program_transform_name)'; \
560                           echo gdb | sed -e $$t` ; \
561                 if test "x$$transformed_name" = x; then \
562                   transformed_name=gdb ; \
563                 else \
564                   true ; \
565                 fi ; \
566                 $(INSTALL_PROGRAM) gdb$(EXEEXT) $(bindir)/$$transformed_name$(EXEEXT) ; \
567                 $(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$transformed_name.1
568         @$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do 
569
570 uninstall: force
571         transformed_name=`t='$(program_transform_name)'; \
572                           echo gdb | sed -e $$t` ; \
573                 if test "x$$transformed_name" = x; then \
574                   transformed_name=gdb ; \
575                 else \
576                   true ; \
577                 fi ; \
578                 rm -f $(bindir)/$$transformed_name$(EXEEXT) $(man1dir)/$$transformed_name.1
579         @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do 
580
581 # We do this by grepping through sources.  If that turns out to be too slow,
582 # maybe we could just require every .o file to have an initialization routine
583 # of a given name (remote-udi.o -> _initialize_remote_udi, etc.).
584 #
585 # Formatting conventions:  The name of the _initialize_* routines must start
586 # in column zero, and must not be inside #if.
587 #
588 # Note that the set of files with init functions might change, or the names
589 # of the functions might change, so this files needs to depend on all the
590 # object files that will be linked into gdb.
591
592 init.c: $(OBS) $(TSOBS)
593         @echo Making init.c
594         @rm -f init.c-tmp
595         @echo '/* Do not modify this file.  */' >init.c-tmp
596         @echo '/* It is created automatically by the Makefile.  */'>>init.c-tmp
597         @echo '#include "ansidecl.h"' >>init.c-tmp
598         @echo 'extern void initialize_all_files PARAMS ((void));' >>init.c-tmp
599         @echo 'void initialize_all_files PARAMS ((void)) {' >>init.c-tmp
600         @-echo $(OBS) $(TSOBS) | \
601         tr ' ' '\012' | \
602         sed -e '/^Onindy.o/d' \
603             -e '/^nindy.o/d' \
604             -e '/ttyflush.o/d' \
605             -e '/xdr_ld.o/d' \
606             -e '/xdr_ptrace.o/d' \
607             -e '/xdr_rdb.o/d' \
608             -e '/udr.o/d' \
609             -e '/udip2soc.o/d' \
610             -e '/udi2go32.o/d' \
611             -e '/version.o/d' \
612             -e '/^[a-z0-9A-Z_]*_[SU].o/d' \
613             -e '/[a-z0-9A-Z_]*-exp.tab.o/d' \
614             -e 's/\.o/.c/' \
615             -e 's|\([^  ][^     ]*\)|$(srcdir)/\1|g' | \
616         while read f; do grep '^_initialize_[a-z_0-9A-Z]* *(' $$f 2>/dev/null; done | \
617         sed -e 's/^.*://' -e 's/^\([a-z_0-9A-Z]*\).*/  {extern void \1 PARAMS ((void)); \1 ();}/' >>init.c-tmp
618         @echo '}' >>init.c-tmp
619         @mv init.c-tmp init.c
620
621 .PRECIOUS: init.c
622
623 # Removing the old gdb first works better if it is running, at least on SunOS.
624 gdb$(EXEEXT): $(OBS) $(BUILD_TUI) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
625         rm -f gdb$(EXEEXT)
626         $(HLDENV) $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) -o gdb$(EXEEXT) \
627           init.o $(OBS) $(TSOBS) $(TUI_LIBRARY) $(ADD_FILES) $(CLIBS) $(LOADLIBES)
628
629 nlm:    force
630         rootme=`pwd`; export rootme; $(MAKE) $(TARGET_FLAGS_TO_PASS) DO=all DODIRS=nlm subdir_do
631
632 libgdb: libgdb-files $(LIBGDB_OBS)
633
634 # libproc is not listed here because all-libproc is a dependency of all-gui,
635 # not all-gdb, and thus might be built after us.
636 LIBGDBDEPS=$(COMMON_OBS) $(LIBGDB_OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
637 # libproc needs to be before libiberty for alloca.
638 LIBGDBFILES=$(COMMON_OBS) $(LIBGDB_OBS) $(TSOBS) ../libproc/libproc.a \
639   $(ADD_DEPS) $(CDEPS) init.o
640
641 libgdb-files: $(LIBGDBDEPS) Makefile.in
642         -rm -f libgdb-files
643         for i in $(LIBGDBFILES); do\
644                 echo $$i >> libgdb-files;\
645         done
646
647 saber_gdb: $(SFILES) $(DEPFILES) copying.c version.c
648         #setopt load_flags $(CFLAGS) $(BFD_CFLAGS) -DHOST_SYS=SUN4_SYS
649         #load ./init.c $(SFILES)
650         #unload $(srcdir)/c-exp.y
651         #unload $(srcdir)/jv-exp.y
652         #unload $(srcdir)/m2-exp.y
653         #unload vx-share/*.h
654         #unload nindy-share/[A-Z]*
655         #load c-exp.tab.c
656         #load jv-exp.tab.c
657         #load m2-exp.tab.c
658         #load copying.c version.c
659         #load ../opcodes/libopcodes.a
660         #load ../libiberty/libiberty.a
661         #load ../bfd/libbfd.a
662         #load ../readline/libreadline.a
663         #load ../mmalloc/libmmalloc.a
664         #load ../intl/libintl.a
665         #load -ltermcap 
666         #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
667         echo "Load .c corresponding to:" $(DEPFILES)
668
669
670 # A Mach 3.0 program to force gdb back to command level
671
672 stop-gdb: stop-gdb.o
673         ${CC_LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o stop-gdb \
674         stop-gdb.o $(CLIBS) $(LOADLIBES)
675
676 # This is useful when debugging GDB, because some Unix's don't let you run GDB
677 # on itself without copying the executable.  So "make gdb1" will make
678 # gdb and put a copy in gdb1, and you can run it with "gdb gdb1".
679 # Removing gdb1 before the copy is the right thing if gdb1 is open
680 # in another process.
681 gdb1$(EXEEXT): gdb$(EXEEXT)
682         rm -f gdb1$(EXEEXT)
683         cp gdb$(EXEEXT) gdb1$(EXEEXT)
684
685 # FIXME. These are not generated by "make depend" because they only are there
686 # for some machines.
687 # But these rules don't do what we want; we want to hack the foo.o: tm.h
688 # dependency to do the right thing.
689 tm-isi.h tm-sun3.h tm-news.h tm-hp300bsd.h tm-altos.h: tm-m68k.h
690 tm-hp300hpux.h tm-sun2.h tm-3b1.h: tm-m68k.h
691 xm-news1000.h: xm-news.h
692 xm-i386-sv32.h: xm-i386.h
693 tm-i386gas.h: tm-i386.h
694 xm-sun4os4.h: xm-sparc.h
695 tm-sun4os4.h: tm-sparc.h
696 xm-vaxult.h: xm-vax.h
697 xm-vaxbsd.h: xm-vax.h
698
699 kdb:    $(NTSSTART) $(OBS) $(NTSOBS) $(ADD_DEPS) $(CDEPS)
700         ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \
701           -lc $(CLIBS)
702
703 # Have the TUI library depend on a phony target, so we'll always
704 # recurse and make sure it's up to date.  If it is, then the file will
705 # be unchanged, and we won't rebuild it.
706 # .PHONY: check-tui
707 all-tui: 
708         @(cd tui; ${MAKE} ${FLAGS_TO_PASS} all)
709
710 # Put the proper machine-specific files first, so M-. on a machine
711 # specific routine gets the one for the correct machine.  (FIXME: those
712 # files go in twice; we should be removing them from the main list).
713
714 # TAGS depends on all the files that go into it so you can rebuild TAGS
715 # with `make TAGS' and not have to say `rm TAGS' first.
716
717 TAGS: $(TAGFILES_NO_SRCDIR) $(TAGFILES_WITH_SRCDIR)
718         @echo Making TAGS
719         @etags $(srcdir)/$(TM_FILE) \
720           $(srcdir)/$(XM_FILE) \
721           $(srcdir)/$(NAT_FILE) \
722         `(for i in $(DEPFILES) $(TAGFILES_NO_SRCDIR); do \
723                 echo $(srcdir)/$$i ; \
724         done ; for i in $(TAGFILES_WITH_SRCDIR); do \
725                 echo $$i ; \
726         done) | sed -e 's/\.o$$/\.c/'` \
727         `find $(srcdir)/config -name '*.h' -print`
728
729 tags: TAGS
730
731 clean mostlyclean:
732         @$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(SUBDIRS)" subdir_do 
733         rm -f *.o *.a $(ADD_FILES) *~ init.c-tmp
734         rm -f init.c version.c
735         rm -f gdb$(EXEEXT) core make.log libgdb-files
736         rm -f gdb[0-9]$(EXEEXT)
737
738 # This used to depend on c-exp.tab.c m2-exp.tab.c TAGS
739 # I believe this is wrong; the makefile standards for distclean just
740 # describe removing files; the only sort of "re-create a distribution"
741 # functionality described is if the distributed files are unmodified.
742 distclean: clean
743         @$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(SUBDIRS)" subdir_do 
744         rm -f nm.h tm.h xm.h config.status config.h stamp-h .gdbinit
745         rm -f y.output yacc.acts yacc.tmp y.tab.h
746         rm -f config.log config.cache
747         rm -f Makefile
748
749 maintainer-clean: local-maintainer-clean do-maintainer-clean distclean
750 realclean: maintainer-clean
751
752 local-maintainer-clean:
753         @echo "This command is intended for maintainers to use;"
754         @echo "it deletes files that may require special tools to rebuild."
755         rm -f c-exp.tab.c \
756                 jv-exp.tab \
757                 f-exp.tab.c m2-exp.tab.c
758         rm -f TAGS $(INFOFILES)
759         rm -f $(YYFILES)
760         rm -f nm.h tm.h xm.h config.status
761
762 do-maintainer-clean:
763         @$(MAKE) $(FLAGS_TO_PASS) DO=maintainer-clean "DODIRS=$(SUBDIRS)" \
764                 subdir_do
765
766 diststuff: $(DISTSTUFF)
767         cd doc; $(MAKE) $(MFLAGS) all-doc
768
769 subdir_do: force
770         @for i in $(DODIRS); do \
771                 if [ -f ./$$i/Makefile ] ; then \
772                         if (cd ./$$i; \
773                                 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
774                         else exit 1 ; fi ; \
775                 else true ; fi ; \
776         done
777
778 Makefile: Makefile.in config.status @frags@
779         $(SHELL) config.status
780
781 config.h: stamp-h ; @true
782 stamp-h: config.in config.status
783         CONFIG_HEADERS=config.h:config.in $(SHELL) config.status
784
785 config.status: configure
786         $(SHELL) config.status --recheck
787
788 force:
789
790 # Documentation!
791 # GDB QUICK REFERENCE (TeX dvi file, CM fonts)
792 doc/refcard.dvi:
793         cd doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS)
794
795 # GDB QUICK REFERENCE (PostScript output, common PS fonts)
796 doc/refcard.ps:
797         cd doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS)
798
799 # GDB MANUAL: TeX dvi file
800 doc/gdb.dvi:
801         cd doc; $(MAKE) gdb.dvi $(FLAGS_TO_PASS)
802
803 # GDB MANUAL: info file
804 doc/gdb.info:
805         cd doc; $(MAKE) gdb.info $(FLAGS_TO_PASS)
806
807 # Make copying.c from COPYING
808 copying.c: COPYING copying.awk
809         awk -f $(srcdir)/copying.awk < $(srcdir)/COPYING > copying.c
810
811 version.c: Makefile
812         echo 'char *version = "$(VERSION)";' >version.c
813         echo 'char *host_name = "$(host_alias)";' >> version.c
814         echo 'char *target_name = "$(target_alias)";' >> version.c
815
816 # c-exp.tab.c is generated in objdir from c-exp.y if it doesn't exist
817 # in srcdir, then compiled in objdir to c-exp.tab.o.
818
819 # If we said c-exp.tab.c rather than ./c-exp.tab.c some makes
820 # would sometimes re-write it into $(srcdir)/c-exp.tab.c.
821
822 # Remove bogus decls for malloc/realloc/free which conflict with everything
823 # else.  Strictly speaking c-exp.tab.c should therefore depend on
824 # Makefile.in, but that was a pretty big annoyance.
825 c-exp.tab.o: c-exp.tab.c
826 c-exp.tab.c: c-exp.y
827         $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/c-exp.y  y.tab.c c-exp.tmp -- $(YFLAGS) 
828         -sed -e '/extern.*malloc/d' \
829              -e '/extern.*realloc/d' \
830              -e '/extern.*free/d' \
831              -e '/include.*malloc.h/d' \
832              -e 's/malloc/xmalloc/g' \
833              -e 's/realloc/xrealloc/g' \
834              -e '/^#line.*y.tab.c/d' \
835           < c-exp.tmp > c-exp.new
836         -rm c-exp.tmp
837         mv c-exp.new ./c-exp.tab.c
838
839 jv-exp.tab.o: jv-exp.tab.c
840 jv-exp.tab.c: jv-exp.y
841         $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/jv-exp.y  y.tab.c jv-exp.tmp -- $(YFLAGS) 
842         -sed -e '/extern.*malloc/d' \
843              -e '/extern.*realloc/d' \
844              -e '/extern.*free/d' \
845              -e '/include.*malloc.h/d' \
846              -e 's/malloc/xmalloc/g' \
847              -e 's/realloc/xrealloc/g' \
848              -e '/^#line.*y.tab.c/d' \
849           < jv-exp.tmp > jv-exp.new
850         -rm jv-exp.tmp
851         mv jv-exp.new ./jv-exp.tab.c
852
853 f-exp.tab.o: f-exp.tab.c
854 f-exp.tab.c: f-exp.y c-exp.tab.c
855         $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/f-exp.y  y.tab.c f-exp.tmp -- $(YFLAGS) 
856         -sed -e '/extern.*malloc/d' \
857              -e '/extern.*realloc/d' \
858              -e '/extern.*free/d' \
859              -e '/include.*malloc.h/d' \
860              -e 's/malloc/xmalloc/g' \
861              -e 's/realloc/xrealloc/g' \
862              -e '/^#line.*y.tab.c/d' \
863           < f-exp.tmp > f-exp.new
864         -rm f-exp.tmp
865         mv f-exp.new ./f-exp.tab.c
866
867 # m2-exp.tab.c is generated in objdir from m2-exp.y if it doesn't exist
868 # in srcdir, then compiled in objdir to m2-exp.tab.o.
869 # Remove bogus decls for malloc/realloc/free which conflict with everything
870 # else.
871 m2-exp.tab.o: m2-exp.tab.c
872 m2-exp.tab.c: m2-exp.y
873         $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/m2-exp.y  y.tab.c m2-exp.tmp -- $(YFLAGS) 
874         -sed -e '/extern.*malloc/d' \
875              -e '/extern.*realloc/d' \
876              -e '/extern.*free/d' \
877              -e '/include.*malloc.h/d' \
878              -e 's/malloc/xmalloc/g' \
879              -e 's/realloc/xrealloc/g' \
880              -e '/^#line.*y.tab.c/d' \
881           < m2-exp.tmp > m2-exp.new
882         -rm m2-exp.tmp
883         mv m2-exp.new ./m2-exp.tab.c
884
885 # These files are updated atomically, so make never has to remove them
886 .PRECIOUS: m2-exp.tab.c f-exp.tab.c c-exp.tab.c
887 .PRECIOUS: jv-exp.tab.c
888
889 lint: $(LINTFILES)
890         $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \
891            `echo $(DEPFILES) | sed 's/\.o /\.c /g'`
892
893 gdb.cxref: $(SFILES)
894         cxref -I. $(SFILES) >gdb.cxref
895
896 force_update:
897
898 # GNU Make has an annoying habit of putting *all* the Makefile variables
899 # into the environment, unless you include this target as a circumvention.
900 # Rumor is that this will be fixed (and this target can be removed)
901 # in GNU Make 4.0.
902 .NOEXPORT:
903
904 # GNU Make 3.63 has a different problem: it keeps tacking command line
905 # overrides onto the definition of $(MAKE).  This variable setting
906 # will remove them.
907 MAKEOVERRIDES=
908
909 ## This is ugly, but I don't want GNU make to put these variables in
910 ## the environment.  Older makes will see this as a set of targets
911 ## with no dependencies and no actions.
912 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
913
914 ALLDEPFILES = 29k-share/udi/udip2soc.c 29k-share/udi/udr.c \
915         29k-share/udi/udi2go32.c \
916         a29k-tdep.c a68v-nat.c alpha-nat.c alpha-tdep.c \
917         altos-xdep.c arm-convert.s \
918         arm-tdep.c arm-xdep.c coff-solib.c \
919         convex-tdep.c convex-xdep.c \
920         core-sol2.c core-regset.c core-aout.c corelow.c \
921         dcache.c delta68-nat.c dpx2-nat.c dstread.c exec.c fork-child.c \
922         go32-xdep.c gould-tdep.c gould-xdep.c h8300-tdep.c h8500-tdep.c \
923         hp300ux-nat.c hppa-tdep.c hppab-nat.c hppah-nat.c \
924         hp-psymtab-read.c hp-symtab-read.c \
925         i386-tdep.c i386b-nat.c i386mach-nat.c i386v-nat.c \
926         i386aix-nat.c i386m3-nat.c i386v4-nat.c i386ly-tdep.c \
927         i387-tdep.c \
928         i960-tdep.c \
929         infptrace.c inftarg.c irix4-nat.c irix5-nat.c isi-xdep.c \
930         lynx-nat.c m3-nat.c \
931         m68k-tdep.c \
932         m88k-nat.c m88k-tdep.c mac-nat.c mips-nat.c \
933         mips-tdep.c mipsm3-nat.c mipsv4-nat.c news-xdep.c \
934         nindy-share/Onindy.c nindy-share/nindy.c \
935         nindy-share/ttyflush.c nindy-tdep.c \
936         ns32k-tdep.c ns32km3-nat.c osfsolib.c \
937         somread.c somsolib.c $(HPREAD_SOURCE) \
938         procfs.c pyr-tdep.c pyr-xdep.c \
939         remote-adapt.c remote-array.c remote-bug.c remote-e7000.c remote-eb.c \
940         remote-es.c remote-hms.c remote-mips.c \
941         remote-mm.c remote-nindy.c remote-os9k.c remote-rdp.c remote-sim.c \
942         remote-st.c remote-utils.c dcache.c \
943         remote-udi.c remote-vx.c remote-vx29k.c \
944         rs6000-nat.c rs6000-tdep.c \
945         ser-go32.c ser-ocd.c ser-tcp.c sh-tdep.c solib.c sparc-nat.c \
946         sparc-tdep.c sparcl-tdep.c sun3-nat.c sun386-nat.c \
947         symm-tdep.c symm-nat.c \
948         tahoe-tdep.c ultra3-nat.c ultra3-xdep.c umax-xdep.c \
949         vax-tdep.c \
950         vx-share/xdr_ld.c vx-share/xdr_ptrace.c vx-share/xdr_rdb.c \
951         win32-nat.c \
952         xcoffread.c xcoffsolib.c z8k-tdep.c
953
954 udip2soc.o: $(srcdir)/29k-share/udi/udip2soc.c $(udiheaders)
955         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udip2soc.c
956
957 udi2go32.o: $(srcdir)/29k-share/udi/udi2go32.c $(udiheaders)
958         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udi2go32.c
959
960 udr.o: $(srcdir)/29k-share/udi/udr.c $(udiheaders) 
961         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udr.c
962
963 a29k-tdep.o: a29k-tdep.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h)
964
965 a68v-nat.o: a68v-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
966
967 alpha-nat.o: alpha-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
968
969 alpha-tdep.o: alpha-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
970         $(inferior_h) $(symtab_h) $(dis-asm.h) gdb_string.h
971
972 altos-xdep.o: altos-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
973
974 annotate.o: annotate.c $(defs_h) annotate.h $(value_h) target.h $(gdbtypes_h)
975
976 arm-tdep.o: arm-tdep.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h) \
977         $(gdbcore_h)
978
979 bcache.o: bcache.c bcache.h $(defs_h)
980
981 blockframe.o: blockframe.c $(defs_h) $(gdbcore_h) $(inferior_h) \
982         objfiles.h symfile.h target.h
983
984 breakpoint.o: breakpoint.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
985         $(inferior_h) language.h target.h gdbthread.h gdb_string.h
986
987 buildsym.o: buildsym.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
988         objfiles.h symfile.h $(symtab_h) gdb_string.h
989
990 c-lang.o: c-lang.c c-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
991         language.h parser-defs.h $(symtab_h)
992
993 c-typeprint.o: c-typeprint.c c-lang.h $(defs_h) $(expression_h) \
994         $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) \
995         target.h typeprint.h $(value_h) gdb_string.h
996
997 c-valprint.o: c-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
998         language.h $(symtab_h) valprint.h $(value_h)
999
1000 f-lang.o: f-lang.c f-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
1001         language.h parser-defs.h $(symtab_h) gdb_string.h
1002
1003 f-typeprint.o: f-typeprint.c f-lang.h $(defs_h) $(expression_h) \
1004         $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) \
1005         target.h typeprint.h $(value_h) gdb_string.h
1006
1007 f-valprint.o: f-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1008         language.h $(symtab_h) valprint.h $(value_h) gdb_string.h
1009
1010 ch-exp.o: ch-exp.c ch-lang.h $(defs_h) language.h parser-defs.h $(bfd_h) symfile.h objfiles.h $(value_h)
1011
1012 ch-lang.o: ch-lang.c ch-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
1013         language.h parser-defs.h $(symtab_h)
1014
1015 ch-typeprint.o: ch-typeprint.c ch-lang.h $(defs_h) $(expression_h) \
1016         $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) \
1017         target.h $(value_h) typeprint.h gdb_string.h
1018
1019 ch-valprint.o: ch-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1020         language.h $(symtab_h) valprint.h $(value_h) c-lang.h
1021
1022 coff-solib.o: coff-solib.c $(defs_h)
1023
1024 coffread.o: coffread.c $(bfd_h) $(breakpoint_h) buildsym.h \
1025         complaints.h $(defs_h) $(expression_h) $(gdbtypes_h) objfiles.h \
1026         symfile.h $(symtab_h) gdb-stabs.h stabsread.h target.h \
1027         gdb_string.h
1028
1029 command.o: command.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1030         $(gdbtypes_h) $(symtab_h) $(value_h) gdb_string.h $(wait_h)
1031
1032 complaints.o: complaints.c complaints.h $(defs_h) $(gdbcmd_h)
1033
1034 convex-tdep.o: convex-tdep.c $(wait_h) $(defs_h) $(gdbcmd_h) \
1035         $(gdbcore_h) $(inferior_h)
1036
1037 convex-xdep.o: convex-xdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1038         $(inferior_h)
1039
1040 copying.o: copying.c $(defs_h) $(gdbcmd_h)
1041
1042 core-aout.o: core-aout.c $(defs_h) $(gdbcore_h) $(value_h) $(inferior_h)
1043
1044 core-sol2.o: core-sol2.c $(command_h) $(defs_h) $(gdbcore_h) \
1045         $(inferior_h) target.h gdb_string.h
1046
1047 core-regset.o: core-regset.c $(command_h) $(defs_h) $(gdbcore_h) \
1048         $(inferior_h) target.h gdb_string.h
1049
1050 corefile.o: corefile.c $(dis-asm_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1051         $(inferior_h) target.h language.h gdb_string.h
1052
1053 corelow.o: corelow.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1054         target.h gdbthread.h gdb_string.h
1055
1056 cp-valprint.o: cp-valprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1057         $(gdbtypes_h) $(symtab_h) $(value_h) gdb_string.h
1058
1059 dcache.o: dcache.c $(dcache_h) $(defs_h) $(gdbcmd_h) gdb_string.h $(gdbcore_h)
1060
1061 dbxread.o: dbxread.c $(breakpoint_h) buildsym.h $(command_h) \
1062         complaints.h $(defs_h) $(expression_h) gdb-stabs.h $(gdbcore_h) \
1063         $(gdbtypes_h) language.h objfiles.h partial-stab.h stabsread.h \
1064         symfile.h $(symtab_h) target.h gdb_string.h
1065
1066 delta68-nat.o: delta68-nat.c $(defs_h)
1067
1068 demangle.o: demangle.c $(defs_h) $(gdbcmd_h) gdb_string.h
1069
1070 dink32-rom.o: dink32-rom.c monitor.h $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1071         $(inferior_h) target.h serial.h terminal.h
1072
1073 dpx2-nat.o: dpx2-nat.c $(defs_h) $(gdbcore_h) gdb_string.h
1074
1075 dstread.o: dstread.c gdb_string.h
1076
1077 dwarfread.o: dwarfread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1078         $(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
1079         $(symtab_h) gdb_string.h
1080
1081 dwarf2read.o: dwarf2read.c $(bfd_h) buildsym.h $(defs_h) \
1082         $(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
1083         $(symtab_h) gdb_string.h
1084
1085 elfread.o: elfread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1086         gdb-stabs.h objfiles.h symfile.h $(symtab_h) gdb_string.h \
1087         $(BFD_SRC)/elf-bfd.h $(INCLUDE_DIR)/elf/mips.h
1088
1089 environ.o: environ.c $(defs_h) environ.h $(gdbcore_h) gdb_string.h
1090
1091 eval.o: eval.c $(bfd_h) $(defs_h) $(expression_h) $(frame_h) \
1092         $(gdbtypes_h) language.h $(symtab_h) target.h $(value_h) \
1093         gdb_string.h
1094
1095 exec.o: exec.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
1096         target.h language.h gdb_string.h
1097
1098 expprint.o: expprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1099         language.h parser-defs.h $(symtab_h) $(value_h)
1100
1101 findvar.o: findvar.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h \
1102         gdb_string.h
1103
1104 fork-child.o: fork-child.c $(wait_h) $(defs_h) $(gdbcore_h) \
1105         $(inferior_h) target.h terminal.h gdbthread.h gdb_string.h
1106
1107 tracepoint.o: tracepoint.c $(defs_h) $(symtab_h) $(frame_h) $(tracepoint_h) \
1108         $(gdbtypes_h) $(expression_h) $(gdbcmd_h) $(value_h) target.h \
1109         language.h gdb_string.h $(readline_headers)
1110
1111 gdbarch.o: gdbarch.c $(defs_h) $(bfd_h) $(gdbcmd_h)
1112
1113 gdbtypes.o: gdbtypes.c $(bfd_h) complaints.h $(defs_h) $(expression_h) \
1114         $(gdbtypes_h) language.h objfiles.h symfile.h $(symtab_h) target.h \
1115         $(value_h) gdb_string.h
1116
1117 gnu-nat.o: process_reply_S.h exc_request_S.h notify_S.h msg_reply_S.h \
1118         exc_request_U.h msg_U.h gnu-nat.h
1119
1120 go32-xdep.o: go32-xdep.c
1121
1122 # OBSOLETE gould-tdep.o: gould-tdep.c $(OP_INCLUDE)/np1.h $(defs_h) $(frame_h) \
1123 # OBSOLETE      $(gdbcore_h) $(symtab_h)
1124
1125 # OBSOLETE gould-xdep.o: gould-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1126
1127 h8300-tdep.o: h8300-tdep.c $(defs_h) $(frame_h) $(symtab_h)
1128
1129 h8500-tdep.o: h8500-tdep.c $(bfd_h) $(dis-asm_h) $(defs_h) \
1130         $(expression_h) $(frame_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) \
1131         $(value_h)
1132
1133 hp300ux-nat.o: hp300ux-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1134
1135 hppa-tdep.o: hppa-tdep.c $(wait_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1136         $(inferior_h) objfiles.h symfile.h target.h
1137
1138 hppab-nat.o: hppab-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
1139
1140 hppah-nat.o: hppah-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
1141
1142 i386gnu-nat.o: gnu-nat.h
1143
1144 i386-tdep.o: i386-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h \
1145         gdb_string.h
1146
1147 i386aix-nat.o: i386aix-nat.c $(defs_h) $(frame_h) $(inferior_h) \
1148         language.h $(gdbcore_h) $(floatformat_h) target.h
1149
1150 i386b-nat.o: i386b-nat.c $(defs_h) 
1151
1152 i386ly-nat.o: i386ly-nat.c $(defs_h) $(frame_h) $(inferior_h) target.h
1153
1154 i386ly-tdep.o: i386ly-tdep.c $(defs_h) $(inferior_h) target.h $(gdbcore_h)
1155
1156 i386m3-nat.o: i386m3-nat.c $(defs_h) $(inferior_h) $(floatformat_h) target.h
1157
1158 i386mach-nat.o: i386mach-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) 
1159
1160 i386v-nat.o: i386v-nat.c $(floatformat_h) $(defs_h) $(gdbcore_h) \
1161         $(inferior_h) language.h target.h
1162
1163 i386v4-nat.o: i386v4-nat.c $(defs_h)
1164
1165 i387-tdep.o: i387-tdep.c $(floatformat_h) $(defs_h) $(gdbcore_h) \
1166         $(inferior_h) language.h
1167
1168 i960-tdep.o: i960-tdep.c $(floatformat_h) $(defs_h) $(expression_h) \
1169         $(frame_h) $(gdbtypes_h) $(symtab_h) $(value_h) $(gdbcore_h)
1170
1171 infcmd.o: infcmd.c $(defs_h) environ.h $(gdbcmd_h) $(gdbcore_h) \
1172         $(inferior_h) target.h language.h gdb_string.h
1173
1174 inflow.o: inflow.c $(bfd_h) $(command_h) $(defs_h) $(inferior_h) \
1175         signals.h target.h terminal.h gdbthread.h gdb_string.h
1176
1177 infptrace.o: infptrace.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h \
1178         gdb_string.h $(wait_h) $(command_h)
1179
1180 infrun.o: infrun.c $(wait_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1181         $(inferior_h) target.h gdbthread.h gdb_string.h
1182
1183 inftarg.o: inftarg.c $(wait_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1184         target.h terminal.h $(command_h)
1185
1186 irix4-nat.o: irix4-nat.c $(defs_h) $(inferior_h) $(gdbcore_h)
1187 irix5-nat.o: irix5-nat.c $(defs_h) $(inferior_h) $(gdbcore_h) target.h \
1188         $(symtab_h) symfile.h objfiles.h $(command_h) $(frame_h) gnu-regex.h \
1189         language.h gdb_string.h
1190
1191 isi-xdep.o: isi-xdep.c
1192
1193 jv-lang.o: jv-lang.c $(bfd_h) $(defs_h) $(symtab_h) $(gdbtypes_h) \
1194         $(expression_h) parser-defs.h language.h symfile.h objfiles.h \
1195         gdb_string.h $(value_h) c-lang.h jv-lang.h $(gdbcore_h)
1196
1197 jv-typeprint.o: jv-typeprint.c $(bfd_h) $(defs_h) $(symtab_h) $(gdbtypes_h) \
1198         $(value_h) $(INCLUDE_DIR)/demangle.h jv-lang.h gdb_string.h \
1199         typeprint.h
1200
1201 jv-valprint.o: jv-valprint.c $(bfd_h) $(defs_h) $(symtab_h) $(gdbtypes_h) \
1202         $(expression_h) $(value_h) $(INCLUDE_DIR)/demangle.h valprint.h \
1203         language.h jv-lang.h c-lang.h
1204
1205 language.o: language.c $(bfd_h) $(defs_h) $(expression_h) $(frame_h) \
1206         $(gdbcmd_h) $(gdbtypes_h) language.h parser-defs.h $(symtab_h) \
1207         target.h $(value_h) gdb_string.h
1208
1209 lynx-nat.o: lynx-nat.c $(defs_h) $(frame_h) $(inferior_h) $(gdbcore_h) \
1210         target.h
1211
1212 m2-lang.o: m2-lang.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1213         language.h m2-lang.h parser-defs.h $(symtab_h)
1214
1215 m2-typeprint.o: m2-typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1216         $(gdbcore_h) $(gdbtypes_h) language.h m2-lang.h $(symtab_h) target.h \
1217         $(value_h) gdb_string.h
1218
1219 m2-valprint.o: m2-valprint.c $(defs_h) $(gdbtypes_h) $(symtab_h) \
1220         valprint.h m2-lang.h
1221
1222 m3-nat.o: m3-nat.c $(defs_h) $(inferior_h) $(value_h) language.h target.h \
1223         $(wait_h) $(gdbcmd_h) $(gdbcore_h)
1224
1225 m68k-tdep.o: m68k-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(value_h) \
1226         $(gdbcore_h) gdb_string.h
1227
1228 m68kly-nat.o: m68kly-nat.c $(defs_h) $(frame_h) $(inferior_h) target.h
1229
1230 m68klinux-nat.o: m68klinux-nat.c $(defs_h) $(frame_h) $(inferior_h) \
1231         $(language_h) $(gdbcore_h) $(floatformat_h) target.h
1232
1233 m88k-nat.o: m88k-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1234
1235 m88k-tdep.o: m88k-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1236
1237 mac-nat.o: mac-nat.c $(defs_h) gdb_string.h
1238
1239 main.o: main.c top.h $(defs_h) gdb_string.h
1240
1241 maint.o: maint.c $(defs_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) language.h \
1242         $(expression_h) objfiles.h symfile.h
1243
1244 mdebugread.o: mdebugread.c buildsym.h complaints.h $(bfd_h) $(defs_h) \
1245         $(expression_h) gdb-stabs.h $(gdbcore_h) $(gdbtypes_h) language.h \
1246         objfiles.h partial-stab.h stabsread.h symfile.h $(symtab_h) \
1247         gdb_string.h
1248
1249 mipsm3-nat.o: mipsm3-nat.c $(defs_h) $(inferior_h)
1250
1251 os9kread.o: os9kread.c buildsym.h complaints.h $(bfd_h) $(defs_h) \
1252         $(expression_h) gdb-stabs.h $(gdbcore_h) $(gdbtypes_h) language.h \
1253         objfiles.h stabsread.h symfile.h $(symtab_h) \
1254         target.h gdb_string.h
1255
1256 mem-break.o: mem-break.c $(defs_h) 
1257
1258 minsyms.o: minsyms.c $(bfd_h) $(defs_h) objfiles.h symfile.h \
1259         $(symtab_h) gdb_string.h
1260
1261 mips-nat.o: mips-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) 
1262
1263 mips-tdep.o: mips-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1264         $(inferior_h) language.h objfiles.h symfile.h gdb_string.h
1265
1266 mipsread.o: mipsread.c buildsym.h complaints.h $(bfd_h) $(defs_h) \
1267         $(expression_h) gdb-stabs.h $(gdbcore_h) $(gdbtypes_h) language.h \
1268         objfiles.h partial-stab.h stabsread.h symfile.h $(symtab_h) \
1269         gdb_string.h
1270
1271 mipsv4-nat.o: mipsv4-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
1272
1273 monitor.o: monitor.c monitor.h $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1274         $(inferior_h) target.h serial.h terminal.h gdb_string.h
1275
1276 news-xdep.o: news-xdep.c
1277
1278 Onindy.o: nindy-share/Onindy.c $(wait_h) nindy-share/block_io.h \
1279         nindy-share/env.h
1280         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/Onindy.c
1281
1282 nindy.o: nindy-share/nindy.c $(wait_h) nindy-share/block_io.h \
1283         nindy-share/env.h
1284         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/nindy.c
1285
1286 nlmread.o: nlmread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1287         gdb-stabs.h objfiles.h symfile.h $(symtab_h) stabsread.h \
1288         gdb_string.h
1289
1290 ns32km3-nat.o: ns32km3-nat.c $(defs_h) $(inferior_h)
1291
1292 ttyflush.o: nindy-share/ttyflush.c
1293         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/ttyflush.c
1294
1295 nindy-tdep.o: nindy-tdep.c $(defs_h) $(frame_h) $(symtab_h)  $(gdbcore_h)
1296
1297 ns32k-tdep.o: ns32k-tdep.c $(bfd_h) $(dis-asm_h) $(defs_h)
1298
1299 objfiles.o: objfiles.c $(bfd_h) $(defs_h) objfiles.h symfile.h \
1300         $(symtab_h) gdb_string.h
1301
1302 osfsolib.o: osfsolib.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1303         objfiles.h gnu-regex.h symfile.h target.h language.h gdb_string.h
1304
1305 somread.o: somread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1306         gdb-stabs.h objfiles.h symfile.h $(symtab_h) gdb_string.h
1307
1308 somsolib.o: somsolib.c $(defs_h)
1309
1310 hpux-thread.o: hpux-thread.c $(defs_h) gdbthread.h target.h inferior.h
1311         $(CC) -c $(INTERNAL_CFLAGS) -I$(srcdir)/osf-share \
1312           -I$(srcdir)/osf-share/HP800 -I/usr/include/dce $(srcdir)/hpux-thread.c
1313
1314 # FIXME!!!
1315 hpread.o: hpread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1316         gdb-stabs.h objfiles.h symfile.h $(symtab_h) gdb_string.h
1317
1318 hp-psymtab-read.o: hp-psymtab-read.c hpread.h $(bfd_h) buildsym.h complaints.h \
1319         $(defs_h) gdb-stabs.h objfiles.h symfile.h $(symtab_h) gdb_string.h
1320  
1321 hp-symtab-read.o: hp-symtab-read.c hpread.h $(bfd_h) buildsym.h complaints.h \
1322         $(defs_h) gdb-stabs.h objfiles.h symfile.h $(symtab_h) gdb_string.h
1323 # END FIXME!!!  
1324
1325 parse.o: parse.c $(command_h) $(defs_h) $(expression_h) $(frame_h) \
1326         $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h) \
1327         gdb_string.h
1328
1329 ppc-bdm.o: ppc-bdm.c $(defs_h) $(gdbcore_h) gdb_string.h $(frame_h) \
1330         $(inferior_h) $(bfd_h) symfile.h target.h $(wait_h) $(gdbcmd_h) \
1331         objfiles.h gdb-stabs.h serial.h ocd.h
1332
1333 ppcbug-rom.o: ppcbug-rom.c monitor.h $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1334         $(inferior_h) target.h serial.h terminal.h
1335
1336 printcmd.o: printcmd.c $(breakpoint_h) $(defs_h) $(expression_h) \
1337         $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h objfiles.h \
1338         symfile.h $(symtab_h) target.h gdb_string.h
1339
1340 procfs.o: procfs.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1341         target.h gdb_string.h
1342
1343 pyr-tdep.o: pyr-tdep.c $(defs_h) 
1344
1345 pyr-xdep.o: pyr-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h) 
1346
1347 gnu-regex.o: gnu-regex.c gnu-regex.h $(defs_h) gdb_string.h
1348
1349 remote-adapt.o: remote-adapt.c $(wait_h) $(defs_h) $(gdbcore_h) \
1350         $(inferior_h) target.h terminal.h gdb_string.h
1351
1352 remote-array.o: remote-array.c $(wait_h) $(defs_h) $(gdbcore_h) target.h \
1353       gdb_string.h $(command_h) serial.h monitor.h $(remote_utils_h)
1354
1355 remote-rdi.o: remote-rdi.c $(wait_h) $(defs_h) $(gdbcore_h) \
1356         $(inferior_h) gdb_string.h
1357
1358 rdi-share/libangsd.a:   force
1359         @dir=rdi-share; \
1360         if [ -f ./$${dir}/Makefile ] ; then \
1361           r=`pwd`; export r; \
1362           srcroot=`cd $(srcdir); pwd`; export srcroot; \
1363           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1364         else \
1365           true; \
1366         fi
1367
1368 remote-d10v.o: remote-d10v.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1369         $(inferior_h) $(remote_utils_h) symfile.h terminal.h gdb_string.h
1370
1371 remote-rdp.o: remote-rdp.c $(wait_h) $(defs_h) $(gdbcore_h) \
1372         $(inferior_h) gdb_string.h
1373
1374 remote-bug.o: remote-bug.c $(wait_h) $(defs_h) $(gdbcore_h) \
1375         $(inferior_h) target.h terminal.h $(remote_utils_h) gdb_string.h
1376
1377 remote-e7000.o: remote-e7000.c $(defs_h) $(gdbcore_h) target.h \
1378         $(wait_h) serial.h gdb_string.h
1379
1380 remote-eb.o: remote-eb.c $(wait_h) $(srcdir)/config/a29k/tm-a29k.h \
1381         $(defs_h) $(gdbcore_h) $(inferior_h) symfile.h target.h terminal.h \
1382         gdb_string.h
1383
1384 remote-es.o: remote-es.c $(bfd_h) $(wait_h) $(command_h) $(defs_h) \
1385         $(inferior_h) $(remote_utils_h) terminal.h gdb_string.h
1386
1387 remote-hms.o: remote-hms.c $(wait_h) $(defs_h) $(gdbcore_h) \
1388         $(inferior_h) serial.h target.h terminal.h gdb_string.h
1389
1390 remote-mips.o: remote-mips.c $(wait_h) $(defs_h) $(gdbcmd_h) \
1391         $(gdbcore_h) $(inferior_h) serial.h symfile.h target.h
1392
1393 remote-mm.o: remote-mm.c $(bfd_h) $(wait_h) $(defs_h) $(inferior_h) \
1394         minimon.h target.h terminal.h gdb_string.h
1395
1396 remote-nindy.o: remote-nindy.c $(floatformat_h) $(wait_h) $(command_h) \
1397         $(defs_h) $(gdbcore_h) $(inferior_h) \
1398         nindy-share/env.h nindy-share/stop.h $(remote_utils_h) \
1399         symfile.h
1400
1401 remote-os9k.o: remote-os9k.c $(defs_h) $(gdbcore_h) $(wait_h) \
1402         $(command_h) monitor.h $(remote_utils_h) $(symtab_h) symfile.h \
1403         objfiles.h gdb-stabs.h gdb_string.h
1404
1405 remote-sds.o: remote-sds.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1406         $(inferior_h) $(remote_utils_h) symfile.h terminal.h gdb_string.h
1407
1408 remote-sim.o: remote-sim.c $(wait_h) $(defs_h) $(gdbcore_h) \
1409         $(inferior_h) target.h terminal.h gdb_string.h \
1410         $(INCLUDE_DIR)/callback.h
1411
1412 remote-st.o: remote-st.c $(wait_h) $(defs_h) $(gdbcore_h) serial.h \
1413         target.h gdb_string.h
1414
1415 remote-udi.o: remote-udi.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1416         $(inferior_h) target.h terminal.h $(udiheaders) gdb_string.h
1417
1418 remote-vx.o: remote-vx.c $(wait_h) complaints.h $(defs_h) $(gdbcmd_h) \
1419         $(gdbcore_h) $(inferior_h) target.h vx-share/dbgRpcLib.h \
1420         vx-share/ptrace.h vx-share/xdr_ld.h vx-share/xdr_ptrace.h \
1421         vx-share/xdr_rdb.h gdb-stabs.h objfiles.h symfile.h $(bfd_h) \
1422         gdb_string.h
1423
1424 remote-vx29k.o: remote-vx29k.c $(wait_h) complaints.h $(defs_h) $(gdbcmd_h) \
1425         $(gdbcore_h) $(inferior_h) target.h vx-share/dbgRpcLib.h \
1426         vx-share/ptrace.h vx-share/xdr_ld.h vx-share/xdr_ptrace.h \
1427         vx-share/xdr_rdb.h gdb_string.h
1428
1429 ocd.o: ocd.c ocd.h $(gdbcore_h) gdb_string.h $(frame_h) $(inferior_h) \
1430         $(bfd_h) symfile.h target.h $(wait_h) $(gdbcmd_h) objfiles.h \
1431         gdb-stabs.h $(dcache_h) serial.h
1432
1433 remote-utils.o: remote-utils.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1434         $(inferior_h) $(remote_utils_h) gdb_string.h
1435
1436 remote.o: remote.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1437         $(inferior_h) $(remote_utils_h) symfile.h terminal.h gdb_string.h
1438
1439 remote-nrom.o: remote-nrom.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1440         $(inferior_h) $(remote_utils_h) symfile.h terminal.h
1441
1442 rom68k-rom.o: rom68k-rom.c monitor.h $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1443         $(inferior_h) target.h serial.h terminal.h
1444
1445 rs6000-nat.o: rs6000-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h \
1446         xcoffsolib.h
1447
1448 rs6000-tdep.o: rs6000-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \
1449         target.h xcoffsolib.h
1450
1451 scm-exp.o: $(defs_h) $(value_h) parser-defs.h language.h c-lang.h \
1452         scm-lang.h scm-tags.h
1453
1454 scm-lang.o: $(defs_h) $(value_h) parser-defs.h language.h c-lang.h \
1455         scm-lang.h scm-tags.h gdb_string.h $(gdbcore_h)
1456
1457 scm-valprint.o: $(defs_h) $(value_h) parser-defs.h language.h  \
1458         scm-lang.h valprint.h $(gdbcore_h)
1459
1460 ser-go32.o: ser-go32.c $(defs_h) serial.h 
1461
1462 ser-mac.o: ser-mac.c $(defs_h) serial.h signals.h
1463
1464 ser-ocd.o: ser-ocd.c $(defs_h) serial.h signals.h gdb_string.h
1465
1466 ser-tcp.o: ser-tcp.c $(defs_h) serial.h signals.h gdb_string.h
1467
1468 ser-unix.o: ser-unix.c $(defs_h) serial.h 
1469
1470 serial.o: serial.c $(defs_h) serial.h gdb_string.h
1471
1472 sh-tdep.o: sh-tdep.c $(bfd_h) $(dis-asm_h) \
1473         $(srcdir)/../opcodes/sh-opc.h $(defs_h) $(expression_h) $(frame_h) \
1474         $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) $(value_h)
1475
1476 sh3-rom.o: sh3-rom.c monitor.h $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1477         $(inferior_h) target.h serial.h terminal.h
1478
1479 mon960-rom.o: mon960-rom.c monitor.h $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1480         $(inferior_h) target.h serial.h terminal.h
1481
1482 solib.o: solib.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1483         objfiles.h gnu-regex.h symfile.h target.h gdb_string.h
1484
1485 source.o: source.c $(defs_h) $(expression_h) $(frame_h) $(gdbcmd_h) \
1486         $(gdbcore_h) language.h objfiles.h gnu-regex.h symfile.h $(symtab_h) \
1487         gdb_string.h
1488
1489 sparc-nat.o: sparc-nat.c $(bfd_h) $(defs_h) $(inferior_h) $(gdbcore_h) \
1490         target.h
1491
1492 sparc-tdep.o: sparc-tdep.c $(floatformat_h) $(defs_h) $(gdbcore_h) \
1493         $(inferior_h) objfiles.h symfile.h target.h gdb_string.h
1494
1495 sparcl-tdep.o: sparcl-tdep.c $(defs_h) $(gdbcore_h) target.h
1496
1497 dsrec.o: dsrec.c $(defs_h) srec.h
1498
1499 stabsread.o: stabsread.c $(bfd_h) $(INCLUDE_DIR)/aout/stab.def \
1500         $(INCLUDE_DIR)/aout/stab_gnu.h buildsym.h complaints.h $(defs_h) \
1501         $(gdbtypes_h) objfiles.h stabsread.h symfile.h $(symtab_h) \
1502         gdb_string.h
1503
1504 stack.o: stack.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
1505         language.h target.h gdb_string.h
1506
1507 ax-general.o: ax-general.c $(ax_h) $(defs_h)
1508 ax-gdb.o: ax-gdb.c $(defs_h) $(symtab_h) symfile.h $(gdbtypes_h) \
1509         $(value_h) $(expression_h) $(command_h) $(ax_h) $(gdbcmd_h) ax-gdb.h
1510
1511 sun3-nat.o: sun3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1512
1513 sun386-nat.o: sun386-nat.c $(defs_h) $(inferior_h) $(gdbcore_h)
1514
1515 symfile.o: symfile.c $(breakpoint_h) complaints.h $(defs_h) \
1516         $(expression_h) $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) \
1517         language.h objfiles.h symfile.h $(symtab_h) target.h \
1518         gdb_string.h
1519
1520 symm-tdep.o: symm-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1521
1522 symm-nat.o: symm-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1523
1524 symmisc.o: symmisc.c $(bfd_h) $(breakpoint_h) $(command_h) $(defs_h) \
1525         $(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
1526         $(symtab_h) gdb_string.h
1527
1528 symtab.o: symtab.c call-cmds.h $(defs_h) $(expression_h) $(frame_h) \
1529         $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h objfiles.h \
1530         gnu-regex.h symfile.h $(symtab_h) target.h $(value_h) \
1531         gdb_string.h
1532
1533 tahoe-tdep.o: tahoe-tdep.c $(OP_INCLUDE)/tahoe.h $(defs_h) \
1534         $(symtab_h)
1535
1536 target.o: target.c $(bfd_h) $(defs_h) $(gdbcmd_h) $(inferior_h) \
1537         objfiles.h symfile.h target.h gdb_string.h
1538
1539 thread.o: thread.c $(defs_h) gdbthread.h $(gdbcmd_h)
1540
1541 top.o: top.c top.h $(bfd_h) $(getopt_h) $(readline_headers) call-cmds.h \
1542         $(defs_h) $(gdbcmd_h) $(inferior_h) language.h signals.h \
1543         $(remote_utils_h) gdb_string.h
1544
1545 typeprint.o: typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1546         $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
1547         $(value_h) gdb_string.h
1548
1549 ultra3-nat.o: ultra3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1550
1551 ultra3-xdep.o: ultra3-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1552
1553 umax-xdep.o: umax-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1554
1555 utils.o: utils.c $(bfd_h) $(defs_h) $(expression_h) $(gdbcmd_h) \
1556         language.h signals.h target.h terminal.h $(readline_headers) \
1557         gdb_string.h
1558
1559 valarith.o: valarith.c $(bfd_h) $(defs_h) $(expression_h) \
1560         $(gdbtypes_h) language.h $(symtab_h) target.h $(value_h) \
1561         gdb_string.h
1562
1563 valops.o: valops.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h \
1564         gdb_string.h
1565
1566 valprint.o: valprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1567         $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
1568         $(value_h) gdb_string.h valprint.h
1569
1570 values.o: values.c $(defs_h) $(expression_h) $(frame_h) $(gdbcmd_h) \
1571         $(gdbcore_h) $(gdbtypes_h) $(symtab_h) target.h $(value_h) \
1572         gdb_string.h scm-lang.h
1573
1574 vax-tdep.o: vax-tdep.c $(OP_INCLUDE)/vax.h $(defs_h) $(symtab_h)
1575
1576 w65-tdep.o : w65-tdep.c $(gdbcore_h)
1577
1578 win32-nat.o: win32-nat.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h) \
1579         gdb_string.h
1580
1581 xdr_ld.o: vx-share/xdr_ld.c $(defs_h) vx-share/vxTypes.h \
1582         vx-share/vxWorks.h vx-share/xdr_ld.h
1583         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_ld.c
1584
1585 xdr_ptrace.o: vx-share/xdr_ptrace.c $(defs_h) vx-share/vxTypes.h \
1586         vx-share/vxWorks.h vx-share/xdr_ptrace.h
1587         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_ptrace.c
1588
1589 xdr_rdb.o: vx-share/xdr_rdb.c $(defs_h) vx-share/vxTypes.h \
1590         vx-share/vxWorks.h vx-share/xdr_rdb.h
1591         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_rdb.c
1592
1593 xcoffread.o: xcoffread.c $(bfd_h) $(INCLUDE_DIR)/aout/stab.def \
1594         $(INCLUDE_DIR)/aout/stab_gnu.h $(INCLUDE_DIR)/coff/internal.h \
1595         $(INCLUDE_DIR)/coff/rs6000.h $(BFD_SRC)/libcoff.h buildsym.h \
1596         complaints.h $(defs_h) $(gdbtypes_h) objfiles.h stabsread.h symfile.h \
1597         $(symtab_h) partial-stab.h gdb_string.h
1598
1599 xcoffsolib.o: xcoffsolib.c $(bfd_h) $(defs_h) xcoffsolib.h
1600
1601 z8k-tdep.o: z8k-tdep.c $(bfd_h) $(dis-asm_h) $(defs_h) $(frame_h) \
1602         $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) $(gdbcore_h)
1603
1604 c-exp.tab.o: c-exp.tab.c c-lang.h $(defs_h) $(expression_h) \
1605         $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h) \
1606         $(bfd_h) objfiles.h symfile.h
1607
1608 jv-exp.tab.o: jv-exp.tab.c jv-lang.h $(defs_h) $(expression_h) \
1609         $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h) \
1610         $(bfd_h) objfiles.h symfile.h
1611
1612 f-exp.tab.o: f-exp.tab.c f-lang.h $(defs_h) $(expression_h) \
1613         language.h parser-defs.h $(value_h) $(bfd_h) objfiles.h symfile.h
1614
1615 m2-exp.tab.o: m2-exp.tab.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1616         language.h m2-lang.h parser-defs.h $(symtab_h) $(value_h) \
1617         $(bfd_h) objfiles.h symfile.h
1618
1619 ### end of the gdb Makefile.in.