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