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