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