* Makefile.in (init.c): Don't call sed if filename is empty.
[platform/upstream/binutils.git] / gdb / Makefile.in
1 #Copyright 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
2
3 # This file is part of GDB.
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19 prefix = /usr/local
20
21 program_transform_name =
22 exec_prefix = $(prefix)
23 bindir = $(exec_prefix)/bin
24 libdir = $(exec_prefix)/lib
25 tooldir = $(libdir)/$(target_alias)
26
27 datadir = $(prefix)/lib
28 mandir = $(prefix)/man
29 man1dir = $(mandir)/man1
30 man2dir = $(mandir)/man2
31 man3dir = $(mandir)/man3
32 man4dir = $(mandir)/man4
33 man5dir = $(mandir)/man5
34 man6dir = $(mandir)/man6
35 man7dir = $(mandir)/man7
36 man8dir = $(mandir)/man8
37 man9dir = $(mandir)/man9
38 infodir = $(prefix)/info
39 includedir = $(prefix)/include
40 docdir = $(datadir)/doc
41
42 SHELL = /bin/sh
43
44 INSTALL = `cd $(srcdir)/..;pwd`/install.sh -c
45 INSTALL_PROGRAM = $(INSTALL)
46 INSTALL_DATA = $(INSTALL)
47 INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
48 INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
49
50 AR = ar
51 AR_FLAGS = qv
52 RANLIB = ranlib
53
54 M_INSTALL=@:
55 M_UNINSTALL=@:
56
57 # Flags that describe where you can find the termcap library.
58 # This can be overridden in the host Makefile fragment file.
59 TERMCAP = -ltermcap
60
61 # If you are compiling with GCC, make sure that either 1) You have the
62 # fixed include files where GCC can reach them, or 2) You use the
63 # -traditional flag.  Otherwise the ioctl calls in inflow.c
64 # will be incorrectly compiled.  The "fixincludes" script in the gcc
65 # distribution will fix your include files up.
66 #CC=cc
67 #CC=gcc -traditional
68 GCC=gcc
69
70 # Directory containing source files.  Don't clean up the spacing,
71 # this exact string is matched for by the "configure" script.
72 srcdir = .
73
74 # If you use bison instead of yacc, it needs to include the "-y" argument.
75 #BISON=bison -y
76 BISON=yacc
77 YACC=$(BISON)
78
79 # where to find makeinfo, preferably one designed for texinfo-2
80 MAKEINFO=makeinfo
81
82 # Set this up with gcc if you have gnu ld and the loader will print out
83 # line numbers for undefined references.
84 #CC-LD=gcc -static
85 CC-LD=$(CC)
86
87 # Where is our "include" directory?  Typically $(srcdir)/../include.
88 # This is essentially the header file directory for the library
89 # routines in libiberty.
90 INCLUDE_DIR =  $(srcdir)/../include
91 INCLUDE_CFLAGS = -I$(INCLUDE_DIR)
92 # Where is the "-liberty" library, containing getopt and obstack?
93 LIBIBERTY = ../libiberty/libiberty.a
94
95 # Where is the MMALLOC library?  Typically ../mmalloc.
96 # Note that mmalloc can still be used on systems without mmap().
97 # To use your system malloc, comment out the following defines.
98 MMALLOC = ../mmalloc/libmmalloc.a
99 # To use your system malloc, uncomment MMALLOC_DISABLE.
100 #MMALLOC_DISABLE = -DNO_MMALLOC
101 # To use mmalloc but disable corruption checking, uncomment MMALLOC_CHECK
102 #MMALLOC_CHECK = -DNO_MMALLOC_CHECK
103 MMALLOC_CFLAGS = $(MMALLOC_CHECK) $(MMALLOC_DISABLE)
104
105 # Where are the BFD library?
106 BFD_DIR = ../bfd
107 BFD = $(BFD_DIR)/libbfd.a
108 BFD_SRC = $(srcdir)/$(BFD_DIR)
109 BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
110
111 # Where is the READLINE library?  Typically in ../readline.
112 READLINE_DIR = ../readline
113 READLINE = $(READLINE_DIR)/libreadline.a
114 READLINE_SRC = $(srcdir)/$(READLINE_DIR)
115 READLINE_CFLAGS = -I$(READLINE_SRC)
116
117 # Opcodes currently live in one of two places.  Either they are in the
118 # opcode library, typically ../opcodes, or they are in a header file
119 # in INCLUDE_DIR.
120 # Where is the "-lopcodes" library, with (some of) the opcode tables and
121 # disassemblers?
122 OPCODES = ./../opcodes/libopcodes.a
123 # Where are the other opcode tables which only have header file
124 # versions?
125 OP_INCLUDE = $(INCLUDE_DIR)/opcode
126 OPCODES_CFLAGS = -I$(OP_INCLUDE)
127
128 # All the includes used for CFLAGS and for lint.
129 # -I. for config files.
130 # -I$(srcdir) for gdb internal headers and possibly for regex.h also.
131 # -I$(srcdir)/config for more generic config files.
132
133 # It is also possible that you will need to add -I/usr/include/sys if
134 # your system doesn't have fcntl.h in /usr/include (which is where it
135 # should be according to Posix).
136 GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/config
137
138 # M{H,T}_CFLAGS, if defined, have host- and target-dependent CFLAGS
139 # from the config directory.
140 GLOBAL_CFLAGS = $(MT_CFLAGS) $(MH_CFLAGS)
141 #PROFILE_CFLAGS = -pg
142
143 # CFLAGS is specifically reserved for setting from the command line
144 # when running make.  I.E.  "make CFLAGS=-Wmissing-prototypes".
145 CFLAGS = -g
146
147 # Need to pass this to testsuite for "make check".  Probably should be
148 # consistent with top-level Makefile.in and gdb/testsuite/Makefile.in
149 # so "make check" has the same result no matter where it is run.
150 CXXFLAGS = -g -O
151
152 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
153 INTERNAL_CFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
154         $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
155         $(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS)
156
157 # LDFLAGS is specifically reserved for setting from the command line
158 # when running make.
159
160 # Profiling options need to go here to work.
161 # I think it's perfectly reasonable for a user to set -pg in CFLAGS
162 # and have it work; that's why CFLAGS is here.
163 INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) $(LDFLAGS)
164
165 # We are using our own version of REGEX now to be consistent across
166 # machines.
167 REGEX = regex.o
168 REGEX1 = regex.o
169
170 # If your system is missing alloca(), or, more likely, it's there but
171 # it doesn't work, then refer to libiberty.
172
173 # Libraries and corresponding dependencies for compiling gdb.
174 # {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
175 # TERMCAP comes after readline, since readline depends on it.
176 # If you have the Cygnus libraries installed,
177 # you can use 'CLIBS=$(INSTALLED_LIBS)' 'CDEPS='
178 INSTALLED_LIBS=-lbfd -lreadline $(TERMCAP) -lopcodes -lmmalloc \
179         -liberty $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS)
180 CLIBS = $(BFD) $(READLINE) $(OPCODES) $(MMALLOC) \
181         $(LIBIBERTY) $(TERMCAP) $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS)
182 CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) \
183         $(BFD) $(READLINE) $(OPCODES) $(MMALLOC) $(LIBIBERTY)
184
185 ADD_FILES = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
186 ADD_DEPS = $(REGEX1) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
187
188 VERSION = 4.11.1
189 DIST=gdb
190
191 LINT=/usr/5bin/lint
192 LINTFLAGS= $(BFD_CFLAGS)
193
194 RUNTEST=runtest
195 RUNTESTFLAGS=
196
197 # This is ser-unix.o for any system which supports a v7/BSD/SYSV/POSIX
198 # interface to the serial port.  Hopefully if get ported to OS/2, VMS,
199 # etc., then there will be (as part of the C library or perhaps as
200 # part of libiberty) a POSIX interface.  But at least for now the
201 # host-dependent makefile fragment might need to use something else
202 # besides ser-unix.o
203 SER_HARDWIRE=ser-unix.o
204
205 # The `remote' debugging target is supported for most architectures,
206 # but not all (e.g. 960)
207 REMOTE_O = remote.o dcache.o remote-utils.o
208
209 # Host and target-dependent makefile fragments come in here.
210 ####
211 # End of host and target-dependent makefile fragments
212
213 FLAGS_TO_PASS = \
214         "prefix=$(prefix)" \
215         "exec_prefix=$(exec_prefix)" \
216         "against=$(against)" \
217         "AR=$(AR)" \
218         "AR_FLAGS=$(AR_FLAGS)" \
219         "CC=$(CC)" \
220         "CFLAGS=$(CFLAGS)" \
221         "CHILLFLAGS=$(CHILLFLAGS)" \
222         "CHILL=$(CHILL)" \
223         "CHILL_LIB=$(CHILL_LIB)" \
224         "CXX=$(CXX)" \
225         "CXXFLAGS=$(CXXFLAGS)" \
226         "RANLIB=$(RANLIB)" \
227         "MAKEINFO=$(MAKEINFO)" \
228         "INSTALL=$(INSTALL)" \
229         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
230         "INSTALL_DATA=$(INSTALL_DATA)" \
231         "RUNTEST=$(RUNTEST)" \
232         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
233         "BISON=$(BISON)"
234
235 # Flags that we pass when building the testsuite.
236
237 CC_FOR_TARGET = ` \
238   if [ -f $${rootme}/../gcc/Makefile ] ; then \
239     echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
240   else \
241     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
242       echo $(CC); \
243     else \
244       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
245     fi; \
246   fi`
247
248 CXX = gcc
249
250 CXX_FOR_TARGET = ` \
251   if [ -f $${rootme}/../gcc/Makefile ] ; then \
252     echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
253   else \
254     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
255       echo $(CXX); \
256     else \
257       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
258     fi; \
259   fi`
260
261 CHILLFLAGS = $(CFLAGS)
262 CHILL = gcc
263 CHILL_FOR_TARGET = ` \
264   if [ -f $${rootme}/../gcc/Makefile ] ; then \
265     echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -L$${rootme}/../chillrt/; \
266   else \
267     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
268       echo $(CC); \
269     else \
270       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
271     fi; \
272   fi`
273 CHILL_LIB = -lchill
274
275 # The use of $$(x_FOR_TARGET) reduces the command line length by not
276 # duplicating the lengthy definition.
277 TARGET_FLAGS_TO_PASS = \
278         "prefix=$(prefix)" \
279         "exec_prefix=$(exec_prefix)" \
280         "against=$(against)" \
281         'CC=$$(CC_FOR_TARGET)' \
282         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
283         "CFLAGS=$(CFLAGS)" \
284         "CHILLFLAGS=$(CHILLFLAGS)" \
285         'CHILL=$$(CHILL_FOR_TARGET)' \
286         "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
287         "CHILL_LIB=$(CHILL_LIB)" \
288         'CXX=$$(CXX_FOR_TARGET)' \
289         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
290         "CXXFLAGS=$(CXXFLAGS)" \
291         "MAKEINFO=$(MAKEINFO)" \
292         "INSTALL=$(INSTALL)" \
293         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
294         "INSTALL_DATA=$(INSTALL_DATA)" \
295         "RUNTEST=$(RUNTEST)" \
296         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
297         "BISON=$(BISON)"
298
299 # All source files that go into linking GDB.
300 # Links made at configuration time should not be specified here, since
301 # SFILES is used in building the distribution archive.
302
303 SFILES = blockframe.c breakpoint.c buildsym.c c-exp.y c-lang.c \
304         c-typeprint.c c-valprint.c ch-exp.y ch-lang.c ch-typeprint.c \
305         ch-valprint.c coffread.c command.c complaints.c core.c cp-valprint.c \
306         dbxread.c demangle.c dwarfread.c elfread.c environ.c eval.c expprint.c \
307         findvar.c gdbtypes.c infcmd.c inflow.c infrun.c language.c putenv.c \
308         m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c main.c maint.c \
309         mem-break.c minsyms.c mipsread.c nlmread.c objfiles.c parse.c \
310         printcmd.c remote.c source.c stabsread.c stack.c symfile.c symmisc.c \
311         symtab.c target.c thread.c typeprint.c utils.c valarith.c valops.c \
312         valprint.c values.c serial.c ser-unix.c
313
314 # Files that are not source code, but need to go into
315 # gdb-$(VERSION).tar.Z.
316
317 NONSRC = Makefile.in configure.in ChangeLog ChangeLog-9091 \
318         ChangeLog-92 ChangeLog-3.x gdb.1 refcard.ps README TODO TAGS NEWS \
319         Projects .gdbinit COPYING $(YYFILES) copying.c copying.awk \
320         saber.suppress standalone.c stuff.c kdb-start.c gcc.patch \
321         nindy-share/Makefile nindy-share/VERSION nindy-share/README \
322         vx-share/README 29k-share/README config/convex/Convex.notes \
323         i386-nlmstub.c
324
325 # All source files that lint should look at
326 LINTFILES = $(SFILES) $(YYFILES) init.c
327
328 # Any additional files specified on these lines should also be added to
329 # the NONSRC definition, so they go in the tar files.
330 SFILES_STAND = $(SFILES) standalone.c
331 SFILES_KGDB  = $(SFILES) stuff.c kdb-start.c
332
333 # "system" headers.  Using these in dependencies is a rather personal
334 # choice.  By default, we do not depend on these files.
335 #getopt_h =     $(INCLUDE_DIR)/getopt.h
336 #ieee-float_h = $(INCLUDE_DIR)/ieee-float.h
337 #bfd_h =                $(BFD_DIR)/bfd.h
338 #wait_h =       $(INCLUDE_DIR)/wait.h
339 #dis-asm_h =    $(INCLUDE_DIR)/dis-asm.h 
340
341 dcache_h = dcache.h
342 remote_utils_h = $(dcache_h) serial.h target.h remote-utils.h remote-sim.h
343
344 readline_headers = \
345         $(READLINE_SRC)/chardefs.h \
346         $(READLINE_SRC)/history.h \
347         $(READLINE_SRC)/keymaps.h \
348         $(READLINE_SRC)/readline.h
349
350 udiheaders = \
351         $(srcdir)/29k-share/udi/udiproc.h \
352         $(srcdir)/29k-share/udi/udiphcfg.h \
353         $(srcdir)/29k-share/udi/udiphunix.h \
354         $(srcdir)/29k-share/udi/udiptcfg.h \
355         $(srcdir)/29k-share/udi/udipt29k.h \
356         $(srcdir)/29k-share/udi/udisoc.h
357
358 dcache_h =      dcache.h
359
360 gdbcore_h =     gdbcore.h $(bfd_h)
361
362 frame_h =       frame.h
363 symtab_h =      symtab.h
364 gdbtypes_h =    gdbtypes.h
365 expression_h =  expression.h
366 value_h =       value.h $(symtab_h) $(gdbtypes_h) $(expression_h)
367
368 breakpoint_h =  breakpoint.h $(frame_h) $(value_h)
369
370 command_h =     command.h
371 gdbcmd_h =      gdbcmd.h $(command_h)
372
373 defs_h =        defs.h xm.h tm.h nm.h config.status
374
375 inferior_h =    inferior.h $(breakpoint_h)
376
377 # Header files that are not named in config/*/* Makefile fragments go
378 # into HFILES.
379
380 HFILES = buildsym.h call-cmds.h coff-solib.h defs.h environ.h $(gdbcmd_h) \
381         $(gdbcore_h) gdb-stabs.h $(inferior_h) language.h minimon.h monitor.h \
382         objfiles.h parser-defs.h partial-stab.h serial.h signals.h solib.h \
383         symfile.h stabsread.h target.h terminal.h typeprint.h xcoffsolib.h \
384         c-lang.h ch-lang.h m2-lang.h complaints.h ns32k-opcode.h valprint.h \
385         config/m68k/tm-m68k.h config/pa/tm-hppa.h config/i960/tm-i960.h \
386         config/sparc/tm-sparc.h config/tm-sunos.h config/tm-sysv4.h \
387         config/m68k/xm-m68k.h config/sparc/xm-sparc.h config/xm-sysv4.h \
388         config/vax/xm-vax.h config/nm-m3.h config/nm-trash.h $(udiheaders) \
389         29k-share/udi/udiids.h 29k-share/udi_soc nindy-share/b.out.h \
390         nindy-share/block_io.h nindy-share/coff.h \
391         nindy-share/env.h nindy-share/stop.h \
392         vx-share/dbgRpcLib.h vx-share/ptrace.h vx-share/vxTypes.h \
393         vx-share/vxWorks.h vx-share/wait.h vx-share/xdr_ld.h \
394         vx-share/xdr_ptrace.h vx-share/xdr_rdb.h thread.h \
395         $(remote_utils_h)
396
397 # GDB "info" files, which should be included in their entirety
398 INFOFILES = gdb.info*
399
400 REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar
401
402 POSSLIBS = regex.c regex.h
403
404 # Subdirectories of gdb, which should be included in their entirety in
405 # gdb-xxx.tar.Z:
406 TARDIRS = doc gdbserver sparclite
407
408 # {X,T,NAT}DEPFILES are something of a pain in that it's hard to
409 # default their values the way we do for SER_HARDWIRE; in the future
410 # maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other
411 # variables analogous to SER_HARDWIRE which get defaulted in this
412 # Makefile.in
413
414 DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) $(REMOTE_O)
415
416 SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES)
417 # Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
418 # and it's more useful to see it in the .y file.
419 TAGFILES = $(SFILES) $(HFILES) $(ALLDEPFILES) $(ALLPARAM) $(POSSLIBS) 
420
421 TARFILES = $(SFILES) $(HFILES) $(NONSRC) $(ALLDEPFILES) $(ALLCONFIG) \
422         $(ALLPARAM) $(INFOFILES) $(POSSLIBS) $(REMOTE_EXAMPLES)
423
424
425 OBS =   version.o main.o blockframe.o breakpoint.o findvar.o stack.o thread.o \
426         source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o \
427         symtab.o symfile.o symmisc.o infcmd.o infrun.o command.o \
428         utils.o expprint.o environ.o gdbtypes.o copying.o $(DEPFILES) \
429         mem-break.o target.o putenv.o parse.o language.o $(YYOBJ) buildsym.o \
430         objfiles.o minsyms.o maint.o demangle.o dbxread.o coffread.o elfread.o \
431         dwarfread.o mipsread.o stabsread.o core.o c-lang.o ch-lang.o m2-lang.o \
432         complaints.o typeprint.o c-typeprint.o ch-typeprint.o m2-typeprint.o \
433         c-valprint.o cp-valprint.o ch-valprint.o m2-valprint.o nlmread.o \
434         serial.o
435
436 RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES)
437
438 TSOBS = inflow.o
439
440 NTSOBS = standalone.o
441
442 TSSTART = /lib/crt0.o
443
444 NTSSTART = kdb-start.o
445
446 SUBDIRS = doc testsuite
447
448 # For now, shortcut the "configure GDB for fewer languages" stuff.
449 YYFILES = c-exp.tab.c m2-exp.tab.c ch-exp.tab.c
450 YYOBJ = c-exp.tab.o m2-exp.tab.o ch-exp.tab.o
451
452 # Prevent Sun make from putting in the machine type.  Setting
453 # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
454 .c.o:
455         $(CC) -c $(INTERNAL_CFLAGS) $<
456
457 all: gdb
458         @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
459
460 installcheck:
461 check: force
462         @rootme=`pwd`; export rootme; $(MAKE) $(TARGET_FLAGS_TO_PASS) DO=check DODIRS=testsuite subdir_do
463 info dvi install-info clean-info: force
464         @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
465
466 gdb.z:gdb.1
467         nroff -man $(srcdir)/gdb.1 | col -b > gdb.t 
468         pack gdb.t ; rm -f gdb.t
469         mv gdb.t.z gdb.z
470
471 # Traditionally "install" depends on "all".  But it may be useful
472 # not to; for example, if the user has made some trivial change to a 
473 # source file and doesn't care about rebuilding or just wants to save the
474 # time it takes for make to check that all is up to date.
475 # install-only is intended to address that need.
476 install: all install-only
477 install-only: 
478         $(INSTALL_XFORM) gdb $(bindir)/gdb
479         $(INSTALL_XFORM1) $(srcdir)/gdb.1 $(man1dir)/gdb.1
480         @$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do 
481
482 uninstall: force
483         rm -f $(bindir)/gdb $(man1dir)/gdb.1
484         @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do 
485
486 # We do this by grepping through sources.  If that turns out to be too slow,
487 # maybe we could just require every .o file to have an initialization routine
488 # of a given name (remote-udi.o -> _initialize_remote_udi, etc.).
489 init.c: $(OBS) $(TSOBS)
490         @echo Making init.c
491         @rm -f init.c-tmp
492         @echo '/* Do not modify this file.  */' >init.c-tmp
493         @echo '/* It is created automatically by the Makefile.  */'>>init.c-tmp
494         @echo 'void initialize_all_files () {' >>init.c-tmp
495         @for i in $(OBS) $(TSOBS); do \
496           filename=`echo $$i | sed \
497             -e '/^Onindy.o/d' \
498             -e '/^nindy.o/d' \
499             -e '/ttyflush.o/d' \
500             -e '/xdr_ld.o/d' \
501             -e '/xdr_ptrace.o/d' \
502             -e '/xdr_rdb.o/d' \
503             -e '/udr.o/d' \
504             -e '/udip2soc.o/d' \
505             -e '/version.o/d' \
506             -e '/[a-z0-9A-Z_]*-exp.tab.o/d' \
507             -e 's/\.o/.c/'` ; \
508           case $$filename in \
509             "") ;; \
510             *) sed <$(srcdir)/$$filename >>init.c-tmp -n \
511             -e '/^_initialize_[a-z_0-9A-Z]* *(/s/^\([a-z_0-9A-Z]*\).*/  {extern void \1 (); \1 ();}/p' ; ;; \
512           esac ; \
513         done
514         @echo '}' >>init.c-tmp
515         @mv init.c-tmp init.c
516
517 .PRECIOUS: init.c
518
519 # Removing the old gdb first works better if it is running, at least on SunOS.
520 gdb: $(OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
521         rm -f gdb
522         $(CC-LD) $(INTERNAL_LDFLAGS) -o gdb \
523           init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES)
524
525 saber_gdb: $(SFILES) $(DEPFILES) copying.c version.c
526         #setopt load_flags $(CFLAGS) $(BFD_CFLAGS) -DHOST_SYS=SUN4_SYS
527         #load ./init.c $(SFILES)
528         #unload $(srcdir)/c-exp.y $(srcdir)/m2-exp.y $(srcdir)/ch-exp.y
529         #unload vx-share/*.h
530         #unload nindy-share/[A-Z]*
531         #load c-exp.tab.c m2-exp.tab.c ch-exp.tab.c
532         #load copying.c version.c
533         #load ../opcodes/libopcodes.a
534         #load ../libiberty/libiberty.a
535         #load ../bfd/libbfd.a
536         #load ../readline/libreadline.a
537         #load ../mmalloc/libmmalloc.a
538         #load -ltermcap 
539         #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
540         echo "Load .c corresponding to:" $(DEPFILES)
541
542
543 # This is useful when debugging GDB, because some Unix's don't let you run GDB
544 # on itself without copying the executable.  So "make gdb1" will make
545 # gdb and put a copy in gdb1, and you can run it with "gdb gdb1".
546 # Removing gdb1 before the copy is the right thing if gdb1 is open
547 # in another process.
548 gdb1: gdb
549         rm -f gdb1
550         cp gdb gdb1
551
552 # This is a remote stub which runs under unix and starts up an
553 # inferior process.  This is at least useful for debugging GDB's
554 # remote support.
555 rapp: $(RAPP_OBS)
556         rm -f rapp_init.c
557         $(srcdir)/munch $(MUNCH_DEFINE) $(RAPP_OBS) > rapp_init.c
558         $(CC-LD) $(INTERNAL_LDFLAGS) -o $@ rapp_init.c $(RAPP_OBS)
559
560 config.status:
561         @echo "You must configure gdb.  Look at the README file for details."
562         @false
563
564 ### fixme - this can't be right.
565 # This checks the configure.in file versus the config/ directory.
566 config-check: config-check-hosts config-check-targets
567 config-check-hosts:
568         grep gdb_host= $(srcdir)/configure.in | \
569                 sed -e 's/.*gdb_host=//' -e 's/ ;;$$/.mh/' | sort -u >HOSTconf.o
570         (cd $(srcdir)/config; ls *.mh) >HOSTdir.o
571         diff -u HOSTconf.o HOSTdir.o
572
573 ### fixme - nor can this.
574 config-check-targets:
575         grep gdb_target= $(srcdir)/configure.in | \
576                 sed -e 's/.*gdb_target=//' -e 's/ ;;$$/.mh/' | sort -u >TARGconf.o
577         (cd $(srcdir)/config; ls *.mt) >TARGdir.o
578         diff -u HOSTconf.o HOSTdir.o
579
580 # FIXME. These are not generated by "make depend" because they only are there
581 # for some machines.
582 # But these rules don't do what we want; we want to hack the foo.o: tm.h
583 # dependency to do the right thing.
584 tm-isi.h tm-sun3.h tm-news.h tm-hp300bsd.h tm-altos.h: tm-m68k.h
585 tm-hp300hpux.h tm-sun2.h tm-3b1.h: tm-m68k.h
586 xm-news1000.h: xm-news.h
587 xm-i386-sv32.h: xm-i386.h
588 tm-i386gas.h: tm-i386.h
589 xm-sun4os4.h: xm-sparc.h
590 tm-sun4os4.h: tm-sparc.h
591 xm-vaxult.h: xm-vax.h
592 xm-vaxbsd.h: xm-vax.h
593
594 kdb:    $(NTSSTART) $(OBS) $(NTSOBS) $(ADD_DEPS) $(CDEPS)
595         rm -f init.c
596         $(srcdir)/munch $(MUNCH_DEFINE) $(OBS) $(NTSOBS) > init.c
597         $(CC) $(INTERNAL_LDFLAGS) -c init.c $(CLIBS) 
598         ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \
599           -lc $(CLIBS)
600
601 # Put the proper machine-specific files first, so M-. on a machine
602 # specific routine gets the one for the correct machine.
603 TAGS:   
604         etags `find $(srcdir)/config \( -name $(TM_FILE) \
605                 -o -name $(XM_FILE) \
606                 -o -name $(NAT_FILE) \) -print` \
607         `(for i in $(DEPFILES) $(TAGFILES); do \
608                 echo $(srcdir)/$$i ; \
609         done) | sed -e 's/\.o$$/\.c/'` \
610
611 tags: TAGS
612
613 # Making distributions of GDB and friends.
614
615 # Make a tar file containing the GDB directory of the distribution.
616 gdb.tar.Z: force_update
617         $(MAKE) $(MFLAGS) -f Makefile.in setup-to-dist
618         $(MAKE) $(MFLAGS) -f Makefile.in gdb-$(VERSION).tar.Z
619
620 # Make a directory `proto-gdb.dir' that contains an image of the GDB
621 # directory of the distribution, built up with symlinks.  Note that this
622 # make target is not directly referenced by any other rules in this makefile,
623 # it is referenced by the makefile in the parent directory.
624 make-proto-gdb.dir: force_update 
625         $(MAKE) $(MFLAGS) -f Makefile.in setup-to-dist
626         $(MAKE) $(MFLAGS) -f Makefile make-proto-gdb-1
627
628 # Set up the GDB source directory for distribution, by building all files that
629 # are products of other files.
630 setup-to-dist: force_update
631         ../configure none
632         (cd doc; $(MAKE) $(MFLAGS) GDBvn.texi)
633         $(MAKE) $(MFLAGS) gdb.info
634         $(MAKE) $(MFLAGS) refcard.ps
635
636 # Build a tar file from a proto-gdb.dir.
637 gdb-$(VERSION).tar.Z: force_update
638         rm -f gdb.tar gdb-$(VERSION).tar.Z
639         $(MAKE) $(MFLAGS) -f Makefile make-proto-gdb-1
640         ln -s proto-gdb.dir $(DIST)
641         tar chf - $(DIST) | compress >gdb-$(VERSION).tar.Z
642         rm -rf $(DIST) proto-gdb.dir
643
644 # Build a proto-gdb.dir after GDB has been set up for distribution.
645 # This stuff must be run in `Makefile', not `Makefile.in`; we use the makefile
646 # built in the setup-to-dist process, since it defines things like ALLCONFIG
647 # and ALLDEPFILES, that we need.
648 make-proto-gdb-1: $(TARFILES) $(TARDIRS) gdb.info
649         rm -rf proto-gdb.dir
650         mkdir proto-gdb.dir
651         rootme=`pwd`/ ; export rootme ; \
652           for i in `echo $(TARDIRS)`; do \
653             (cd proto-gdb.dir ; \
654             mkdir -p $$i; \
655             cd $$i; \
656             ln -s $${rootme}/$$i/* .; \
657             rm -rf SCCS CVS CVS.adm RCS config.status; \
658             if test -f Makefile.in; then rm -f Makefile; else true; fi;); \
659           done ; \
660           for i in `echo $(TARFILES)`; do \
661             (cd proto-gdb.dir ; \
662             dir=`dirname $$i`; \
663             if test -d $$dir; then true; else mkdir -p $$dir; fi; \
664             ln -s $${rootme}/$$i $$i;); \
665           done
666         chmod og=u `find . -print`
667
668 # Build a proto-testsuite.dir.
669 make-proto-testsuite.dir: force_update
670         rm -rf proto-testsuite.dir
671         mkdir proto-testsuite.dir
672         rootme=`pwd`/ ; export rootme ; \
673           for i in `find testsuite -type f -print`; do \
674             (cd proto-testsuite.dir ; \
675             dir=`dirname $$i`; \
676             if test -d $$dir; then true; else mkdir -p $$dir; fi; \
677             ln -s $${rootme}/$$i $$i;); \
678           done
679         find proto-testsuite.dir -name Makefile -exec rm {} \;
680         find proto-testsuite.dir -name config.status -exec rm {} \;
681
682 clean:
683         @$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(SUBDIRS)" subdir_do 
684         rm -f *.o $(ADD_FILES) *~ init.c-tmp
685         rm -f init.c version.c
686         rm -f gdb core make.log
687         rm -f gdb[0-9]
688
689 # This used to depend on c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS
690 # I believe this is wrong; the makefile standards for distclean just
691 # describe removing files; the only sort of "re-create a distribution"
692 # functionality described is if the distributed files are unmodified.
693 distclean: clean
694         @$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(SUBDIRS)" subdir_do 
695         rm -f nm.h tm.h xm.h config.status
696         rm -f y.output yacc.acts yacc.tmp y.tab.h
697         rm -f Makefile
698
699 realclean: clean
700         @$(MAKE) $(FLAGS_TO_PASS) DO=realclean "DODIRS=$(SUBDIRS)" subdir_do
701         rm -f c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS
702         rm -f nm.h tm.h xm.h config.status
703         rm -f y.output yacc.acts yacc.tmp
704         rm -f Makefile
705
706 subdir_do: force
707         @for i in $(DODIRS); do \
708                 if [ -f ./$$i/Makefile ] ; then \
709                         if (cd ./$$i; \
710                                 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
711                         else exit 1 ; fi ; \
712                 else true ; fi ; \
713         done
714
715 Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
716         $(SHELL) config.status
717
718 force:
719
720 # Documentation!
721 # GDB QUICK REFERENCE (TeX dvi file, CM fonts)
722 refcard.dvi:
723         ( cd doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS) )
724         mv doc/refcard.dvi .
725
726 # GDB QUICK REFERENCE (PostScript output, common PS fonts)
727 refcard.ps:
728         ( cd doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS) )
729         mv doc/refcard.ps .
730
731 # GDB MANUAL: TeX dvi file
732 gdb.dvi:
733         ( cd doc; $(MAKE) gdb.dvi $(FLAGS_TO_PASS) )
734         mv doc/gdb.dvi .
735
736 # GDB MANUAL: info file
737 gdb.info:
738         ( cd doc; $(MAKE) gdb.info $(FLAGS_TO_PASS) )
739         mv doc/gdb.info* .
740
741 # Make copying.c from COPYING
742 copying.c: COPYING copying.awk
743         awk -f $(srcdir)/copying.awk < $(srcdir)/COPYING > copying.c
744
745 version.c: Makefile
746         echo 'char *version = "$(VERSION)";' >version.c
747         echo 'char *host_canonical = "$(host_canonical)";' >> version.c
748         echo 'char *target_canonical = "$(target_canonical)";' >> version.c
749
750 # c-exp.tab.c is generated in objdir from c-exp.y if it doesn't exist
751 # in srcdir, then compiled in objdir to c-exp.tab.o.
752
753 # If we said c-exp.tab.c rather than ./c-exp.tab.c some makes
754 # would sometimes re-write it into $(srcdir)/c-exp.tab.c.
755
756 # Remove bogus decls for malloc/realloc/free which conflict with everything
757 # else.
758 c-exp.tab.o: c-exp.tab.c
759 c-exp.tab.c: c-exp.y Makefile.in
760         $(YACC) $(YFLAGS) $(srcdir)/c-exp.y
761         -sed -e '/extern.*malloc/d' \
762              -e '/extern.*realloc/d' \
763              -e '/extern.*free/d' \
764              -e '/include.*malloc.h/d' \
765              -e 's/malloc/xmalloc/g' \
766              -e 's/realloc/xrealloc/g' \
767           < y.tab.c > c-exp.new
768         -rm y.tab.c
769         mv c-exp.new ./c-exp.tab.c
770
771 # ch-exp.tab.c is generated in objdir from ch-exp.y if it doesn't exist
772 # in srcdir, then compiled in objdir to ch-exp.tab.o.
773 # Remove bogus decls for malloc/realloc/free which conflict with everything
774 # else.
775 ch-exp.tab.o: ch-exp.tab.c
776 # the dependency here on c-exp.tab.c is artificial.  Without this
777 # dependency, a parallel make will attempt to build both at the same
778 # time and the second yacc will pollute the first y.tab.c file.
779 ch-exp.tab.c: ch-exp.y Makefile.in c-exp.tab.c
780         $(YACC) $(YFLAGS) $(srcdir)/ch-exp.y
781         -sed -e '/extern.*malloc/d' \
782              -e '/extern.*realloc/d' \
783              -e '/extern.*free/d' \
784              -e '/include.*malloc.h/d' \
785              -e 's/malloc/xmalloc/g' \
786              -e 's/realloc/xrealloc/g' \
787           < y.tab.c > ch-exp.new
788         -rm y.tab.c
789         mv ch-exp.new ./ch-exp.tab.c
790
791 # m2-exp.tab.c is generated in objdir from m2-exp.y if it doesn't exist
792 # in srcdir, then compiled in objdir to m2-exp.tab.o.
793 # Remove bogus decls for malloc/realloc/free which conflict with everything
794 # else.
795 m2-exp.tab.o: m2-exp.tab.c
796 # the dependency here on ch-exp.tab.c is artificial.  Without this
797 # dependency, a parallel make will attempt to build both at the same
798 # time and the second yacc will pollute the first y.tab.c file.
799 m2-exp.tab.c: m2-exp.y Makefile.in ch-exp.tab.c
800         $(YACC) $(YFLAGS) $(srcdir)/m2-exp.y
801         -sed -e '/extern.*malloc/d' \
802              -e '/extern.*realloc/d' \
803              -e '/extern.*free/d' \
804              -e '/include.*malloc.h/d' \
805              -e 's/malloc/xmalloc/g' \
806              -e 's/realloc/xrealloc/g' \
807           < y.tab.c > m2-exp.new
808         -rm y.tab.c
809         mv m2-exp.new ./m2-exp.tab.c
810
811 # These files are updated atomically, so make never has to remove them
812 .PRECIOUS: m2-exp.tab.c ch-exp.tab.c c-exp.tab.c
813
814 lint: $(LINTFILES)
815         $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \
816            `echo $(DEPFILES) | sed 's/\.o /\.c /g'
817
818 gdb.cxref: $(SFILES)
819         cxref -I. $(SFILES) >gdb.cxref
820
821 force_update:
822
823 # GNU Make has an annoying habit of putting *all* the Makefile variables
824 # into the environment, unless you include this target as a circumvention.
825 # Rumor is that this will be fixed (and this target can be removed)
826 # in GNU Make 4.0.
827 .NOEXPORT:
828
829 # GNU Make 3.63 has a different problem: it keeps tacking command line
830 # overrides onto the definition of $(MAKE).  This variable setting
831 # will remove them.
832 MAKEOVERRIDES=
833
834 ## This is ugly, but I don't want GNU make to put these variables in
835 ## the environment.  Older makes will see this as a set of targets
836 ## with no dependencies and no actions.
837 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
838
839 # These are things from config/*/*.m? fragments.  There is no good reason
840 # why they are separate from the lists of files above.
841
842 ALLDEPFILES = 29k-share/udi/udip2soc.c 29k-share/udi/udr.c \
843         a29k-pinsn.c a29k-tdep.c a68v-nat.c alpha-nat.c alpha-tdep.c \
844         altos-xdep.c arm-convert.s \
845         arm-pinsn.c arm-tdep.c arm-xdep.c coff-solib.c convex-pinsn.c \
846         convex-tdep.c \
847         convex-xdep.c core-svr4.c coredep.c corelow.c dcache.c delta68-nat.c \
848         dpx2-nat.c exec.c fork-child.c \
849         go32-xdep.c gould-pinsn.c gould-xdep.c h8300-tdep.c h8500-tdep.c \
850         hp300ux-nat.c hppa-pinsn.c hppa-tdep.c hppab-nat.c hppah-nat.c \
851         i386-pinsn.c i386-tdep.c i386b-nat.c i386mach-nat.c i386v-nat.c \
852         i386aix-nat.c i386m3-nat.c i386v4-nat.c i386ly-nat.c i386ly-tdep.c \
853         i387-tdep.c \
854         i960-pinsn.c i960-tdep.c \
855         infptrace.c inftarg.c irix4-nat.c isi-xdep.c m3-nat.c \
856         m68k-pinsn.c m68k-tdep.c m68kly-nat.c \
857         m88k-nat.c m88k-pinsn.c m88k-tdep.c mips-nat.c mips-pinsn.c \
858         mips-tdep.c mipsm3-nat.c news-xdep.c \
859         nindy-share/Onindy.c nindy-share/nindy.c \
860         nindy-share/ttyflush.c nindy-tdep.c \
861         ns32k-pinsn.c ns32km3-nat.c osfsolib.c \
862         paread.c procfs.c pyr-pinsn.c pyr-tdep.c pyr-xdep.c \
863         remote-adapt.c remote-bug.c remote-eb.c remote-es.c \
864         remote-hms.c remote-mips.c \
865         remote-mm.c remote-mon.c remote-nindy.c remote-sim.c \
866         remote-st.c remote-utils.c dcache.c \
867         remote-udi.c remote-vx.c remote-z8k.c rs6000-nat.c rs6000-pinsn.c \
868         rs6000-tdep.c ser-go32.c ser-tcp.c sh-tdep.c solib.c sparc-nat.c \
869         sparc-pinsn.c sparc-tdep.c sparcly-nat.c sun3-nat.c sun386-nat.c \
870         symm-tdep.c symm-nat.c \
871         tahoe-pinsn.c ultra3-nat.c ultra3-xdep.c umax-xdep.c \
872         vax-pinsn.c \
873         vx-share/xdr_ld.c vx-share/xdr_ptrace.c vx-share/xdr_rdb.c \
874         xcoffexec.c xcoffread.c xcoffsolib.c z8k-tdep.c
875
876 ALLPARAM = config/a29k/nm-ultra3.h config/a29k/tm-a29k.h \
877         config/a29k/tm-ultra3.h config/a29k/xm-ultra3.h \
878         config/alpha/nm-alpha.h config/alpha/tm-alpha.h \
879         config/alpha/xm-alpha.h config/arm/tm-arm.h \
880         config/arm/xm-arm.h config/convex/tm-convex.h \
881         config/convex/xm-convex.h config/gould/tm-np1.h config/gould/tm-pn.h \
882         config/gould/xm-np1.h config/gould/xm-pn.h config/h8300/tm-h8300.h \
883         config/h8500/tm-h8500.h config/i386/nm-i386aix.h \
884         config/i386/nm-i386bsd.h config/i386/nm-i386lynx.h \
885         config/i386/nm-i386mach.h config/i386/nm-i386sco.h \
886         config/i386/nm-i386sco4.h config/i386/nm-i386v.h \
887         config/i386/nm-i386v4.h config/i386/nm-linux.h \
888         config/i386/nm-sun386.h config/i386/nm-symmetry.h \
889         config/i386/tm-i386aix.h config/i386/tm-i386bsd.h \
890         config/i386/tm-i386lynx.h config/i386/tm-i386m3.h \
891         config/i386/tm-i386mk.h config/i386/tm-i386nw.h \
892         config/i386/tm-i386v.h \
893         config/i386/tm-i386v4.h config/i386/tm-linux.h \
894         config/i386/tm-sun386.h \
895         config/i386/tm-symmetry.h config/i386/xm-go32.h \
896         config/i386/xm-i386aix.h config/i386/xm-i386bsd.h \
897         config/i386/xm-i386lynx.h config/i386/xm-i386mach.h \
898         config/i386/xm-i386m3.h config/i386/xm-i386mk.h \
899         config/i386/xm-i386sco.h config/i386/xm-i386v.h \
900         config/i386/xm-i386v32.h config/i386/xm-i386v4.h \
901         config/i386/xm-linux.h config/i386/xm-sun386.h \
902         config/i386/xm-symmetry.h config/i960/tm-nindy960.h \
903         config/i960/tm-vx960.h config/m68k/nm-apollo68b.h \
904         config/m68k/nm-apollo68v.h config/m68k/nm-delta68.h \
905         config/m68k/nm-dpx2.h config/m68k/nm-hp300bsd.h \
906         config/m68k/nm-hp300hpux.h config/m68k/nm-news.h \
907         config/m68k/nm-sun2.h \
908         config/m68k/nm-sun3.h config/m68k/tm-3b1.h config/m68k/tm-altos.h \
909         config/m68k/tm-amix.h config/m68k/tm-delta68.h \
910         config/m68k/tm-dpx2.h config/m68k/tm-es1800.h \
911         config/m68k/tm-hp300bsd.h config/m68k/tm-hp300hpux.h \
912         config/m68k/tm-isi.h config/m68k/tm-m68k-em.h \
913         config/m68k/tm-monitor.h \
914         config/m68k/tm-news.h config/m68k/tm-os68k.h config/m68k/tm-st2000.h \
915         config/m68k/tm-sun2.h config/m68k/tm-sun2os4.h config/m68k/tm-sun3.h \
916         config/m68k/tm-sun3os4.h config/m68k/tm-vx68.h config/m68k/xm-3b1.h \
917         config/m68k/xm-altos.h config/m68k/xm-amix.h \
918         config/m68k/xm-apollo68b.h config/m68k/xm-apollo68v.h \
919         config/m68k/xm-delta68.h config/m68k/xm-dpx2.h \
920         config/m68k/xm-hp300bsd.h config/m68k/xm-hp300hpux.h \
921         config/m68k/xm-isi.h config/m68k/xm-news.h config/m68k/xm-news1000.h \
922         config/m68k/xm-sun2.h config/m68k/xm-sun3.h config/m68k/xm-sun3os4.h \
923         config/m88k/nm-delta88v4.h config/m88k/nm-m88k.h \
924         config/m88k/tm-delta88.h \
925         config/m88k/tm-delta88v4.h config/m88k/tm-m88k.h \
926         config/m88k/xm-delta88.h config/m88k/xm-delta88v4.h \
927         config/m88k/xm-dgux.h config/m88k/xm-m88k.h \
928         config/mips/nm-irix3.h \
929         config/mips/nm-irix4.h config/mips/nm-mips.h config/mips/nm-riscos.h \
930         config/mips/nm-news-mips.h config/mips/tm-bigmips.h \
931         config/mips/tm-irix3.h config/mips/tm-mips.h config/mips/tm-mipsm3.h \
932         config/mips/xm-irix3.h \
933         config/mips/xm-irix4.h config/mips/xm-makeva.h config/mips/xm-mips.h \
934         config/mips/xm-mipsm3.h \
935         config/mips/xm-riscos.h config/mips/xm-news-mips.h config/nm-sysv4.h \
936         config/none/nm-none.h config/none/tm-none.h config/none/xm-none.h \
937         config/ns32k/nm-umax.h \
938         config/ns32k/tm-ns32km3.h \
939         config/ns32k/tm-merlin.h config/ns32k/tm-umax.h \
940         config/ns32k/xm-ns32km3.h \
941         config/ns32k/xm-merlin.h config/ns32k/xm-umax.h \
942         config/pa/nm-hppab.h \
943         config/pa/nm-hppah.h config/pa/tm-hppab.h config/pa/tm-hppah.h \
944         config/pa/xm-hppab.h config/pa/xm-hppah.h config/pa/xm-pa.h \
945         config/pyr/tm-pyr.h \
946         config/pyr/xm-pyr.h config/romp/xm-rtbsd.h config/rs6000/nm-rs6000.h \
947         config/rs6000/tm-rs6000.h config/rs6000/xm-rs6000.h config/sh/tm-sh.h \
948         config/sparc/nm-sun4os4.h config/sparc/tm-sparclite.h \
949         config/sparc/tm-spc-em.h config/sparc/tm-sun4os4.h \
950         config/sparc/tm-sun4sol2.h config/sparc/tm-vxsparc.h \
951         config/sparc/xm-sun4os4.h config/sparc/xm-sun4sol2.h \
952         config/tahoe/tm-tahoe.h config/tahoe/xm-tahoe.h config/vax/nm-vax.h \
953         config/vax/tm-vax.h config/vax/xm-vaxbsd.h config/vax/xm-vaxult.h \
954         config/vax/xm-vaxult2.h config/z8k/tm-z8k.h
955
956 ALLCONFIG = config/a29k/a29k-kern.mt config/a29k/a29k-udi.mt \
957         config/a29k/a29k.mt config/a29k/ultra3.mh config/a29k/ultra3.mt \
958         config/alpha/alpha-osf1.mh config/alpha/alpha-osf1.mt \
959         config/arm/arm.mh config/arm/arm.mt config/convex/convex.mh \
960         config/convex/convex.mt config/gould/np1.mh config/gould/np1.mt \
961         config/gould/pn.mh config/gould/pn.mt config/h8300/h8300hms.mt \
962         config/h8500/h8500hms.mt config/i386/go32.mh config/i386/i386aix.mh \
963         config/i386/i386aix.mt config/i386/i386aout.mt config/i386/i386bsd.mh \
964         config/i386/i386bsd.mt config/i386/i386lynx.mh \
965         config/i386/i386lynx.mt config/i386/i386m3.mh config/i386/i386m3.mt \
966         config/i386/i386mach.mh config/i386/i386mk.mh config/i386/i386mk.mt \
967         config/i386/i386nw.mt config/i386/i386sco.mh \
968         config/i386/i386sco4.mh \
969         config/i386/i386sol2.mh config/i386/i386sol2.mt config/i386/i386v.mh \
970         config/i386/i386v.mt config/i386/i386v32.mh config/i386/i386v4.mh \
971         config/i386/i386v4.mt config/i386/linux.mh config/i386/linux.mt \
972         config/i386/ncr3000.mh config/i386/ncr3000.mt config/i386/ptx.mh \
973         config/i386/sun386.mh \
974         config/i386/sun386.mt config/i386/symmetry.mh config/i386/symmetry.mt \
975         config/i960/nindy960.mt config/i960/vxworks960.mt config/m68k/3b1.mh \
976         config/m68k/3b1.mt config/m68k/altos.mh config/m68k/altos.mt \
977         config/m68k/amix.mh config/m68k/amix.mt config/m68k/apollo68b.mh \
978         config/m68k/apollo68v.mh config/m68k/delta68.mh \
979         config/m68k/delta68.mt config/m68k/dpx2.mh config/m68k/dpx2.mt \
980         config/m68k/es1800.mt config/m68k/hp300bsd.mh \
981         config/m68k/hp300bsd.mt config/m68k/hp300hpux.mh \
982         config/m68k/hp300hpux.mt config/m68k/isi.mh config/m68k/isi.mt \
983         config/m68k/m68klynx.mh config/m68k/m68klynx.mt \
984         config/m68k/m68k-em.mt \
985         config/m68k/monitor.mt \
986         config/m68k/news.mh config/m68k/news.mt config/m68k/news1000.mh \
987         config/m68k/os68k.mt config/m68k/st2000.mt config/m68k/sun2os3.mh \
988         config/m68k/sun2os3.mt config/m68k/sun2os4.mh config/m68k/sun2os4.mt \
989         config/m68k/sun3os3.mh config/m68k/sun3os3.mt config/m68k/sun3os4.mh \
990         config/m68k/sun3os4.mt config/m68k/vxworks68.mt config/m88k/delta88.mh \
991         config/m88k/delta88.mt config/m88k/delta88v4.mh \
992         config/m88k/delta88v4.mt config/m88k/m88k.mh config/m88k/m88k.mt \
993         config/mips/bigmips.mt config/mips/decstation.mh \
994         config/mips/decstation.mt config/mips/idt.mt config/mips/idtl.mt \
995         config/mips/irix3.mh config/mips/irix3.mt config/mips/irix4.mh \
996         config/mips/littlemips.mh config/mips/littlemips.mt \
997         config/mips/mipsm3.mh config/mips/mipsm3.mt \
998         config/mips/news-mips.mh config/mips/riscos.mh \
999         config/none/none.mh config/none/none.mt config/ns32k/merlin.mh \
1000         config/ns32k/merlin.mt config/ns32k/ns32km3.mh config/ns32k/ns32km3.mt \
1001         config/ns32k/umax.mh config/ns32k/umax.mt \
1002         config/pa/hppabsd.mh config/pa/hppabsd.mt config/pa/hppahpux.mh \
1003         config/pa/hppahpux.mt config/pyr/pyramid.mh config/pyr/pyramid.mt \
1004         config/romp/rtbsd.mh config/rs6000/rs6000.mh config/rs6000/rs6000.mt \
1005         config/sh/sh.mt config/sparc/sparc-em.mt config/sparc/sparclite.mt \
1006         config/sparc/sparclynx.mh config/sparc/sparclynx.mt \
1007         config/sparc/sun4os4.mh config/sparc/sun4os4.mt \
1008         config/sparc/sun4sol2.mh config/sparc/sun4sol2.mt \
1009         config/sparc/vxsparc.mt config/tahoe/tahoe.mh config/tahoe/tahoe.mt \
1010         config/vax/vax.mt config/vax/vaxbsd.mh config/vax/vaxult.mh \
1011         config/vax/vaxult2.mh config/z8k/z8ksim.mt
1012
1013
1014 udip2soc.o: $(srcdir)/29k-share/udi/udip2soc.c $(udiheaders)
1015         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udip2soc.c
1016
1017 udi2go32.o: $(srcdir)/29k-share/udi/udi2go32.c $(udiheaders)
1018         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udi2go32.c
1019
1020 udr.o: $(srcdir)/29k-share/udi/udr.c $(udiheaders) 
1021         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udr.c
1022
1023 a29k-pinsn.o: a29k-pinsn.c $(bfd_h) $(dis-asm_h)
1024 a29k-tdep.o: a29k-tdep.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h)
1025 a68v-nat.o: a68v-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1026
1027 alpha-nat.o: alpha-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
1028
1029 alpha-tdep.o: alpha-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1030         $(inferior_h) $(symtab_h) $(dis-asm.h)
1031
1032 altos-xdep.o: altos-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1033 arm-pinsn.o: arm-pinsn.c $(OP_INCLUDE)/arm.h $(defs_h) $(symtab_h)
1034
1035 blockframe.o: blockframe.c $(defs_h) $(gdbcore_h) $(inferior_h) \
1036         objfiles.h symfile.h target.h
1037
1038 breakpoint.o: breakpoint.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1039         $(inferior_h) language.h target.h thread.h
1040
1041 buildsym.o: buildsym.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1042         objfiles.h symfile.h $(symtab_h)
1043
1044 c-lang.o: c-lang.c c-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
1045         language.h parser-defs.h $(symtab_h)
1046
1047 c-typeprint.o: c-typeprint.c c-lang.h $(defs_h) $(expression_h) \
1048         $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
1049         typeprint.h $(value_h)
1050
1051 c-valprint.o: c-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1052         language.h $(symtab_h) valprint.h $(value_h)
1053
1054 ch-lang.o: ch-lang.c ch-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
1055         language.h parser-defs.h $(symtab_h)
1056
1057 ch-typeprint.o: ch-typeprint.c ch-lang.h $(defs_h) $(expression_h) \
1058         $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) \
1059         target.h $(value_h) typeprint.h
1060
1061 ch-valprint.o: ch-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1062         language.h $(symtab_h) valprint.h $(value_h) c-lang.h
1063
1064 coff-solib.o: coff-solib.c $(defs_h)
1065
1066 coffread.o: coffread.c $(bfd_h) $(breakpoint_h) buildsym.h \
1067         complaints.h $(defs_h) $(expression_h) $(gdbtypes_h) objfiles.h \
1068         symfile.h $(symtab_h) gdb-stabs.h stabsread.h
1069
1070 command.o: command.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1071         $(gdbtypes_h) $(symtab_h) $(value_h)
1072
1073 complaints.o: complaints.c complaints.h $(defs_h) $(gdbcmd_h)
1074
1075 convex-pinsn.o: convex-pinsn.c $(OP_INCLUDE)/convex.h $(defs_h) \
1076         $(symtab_h)
1077
1078 convex-tdep.o: convex-tdep.c $(wait_h) $(defs_h) $(gdbcmd_h) \
1079         $(gdbcore_h) $(inferior_h)
1080
1081 convex-xdep.o: convex-xdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1082         $(inferior_h)
1083
1084 core-svr4.o: core-svr4.c $(command_h) $(defs_h) $(gdbcore_h) \
1085         $(inferior_h) target.h
1086
1087 core.o: core.c $(dis-asm_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1088         $(inferior_h) target.h language.h
1089
1090 coredep.o: coredep.c $(defs_h) $(gdbcore_h) $(value_h)
1091
1092 corelow.o: corelow.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1093         target.h thread.h
1094
1095 cp-valprint.o: cp-valprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1096         $(gdbtypes_h) $(symtab_h) $(value_h)
1097
1098 dcache.o: dcache.c $(dcache_h)
1099
1100 dbxread.o: dbxread.c $(breakpoint_h) buildsym.h $(command_h) \
1101         complaints.h $(defs_h) $(expression_h) gdb-stabs.h $(gdbcore_h) \
1102         $(gdbtypes_h) language.h objfiles.h partial-stab.h stabsread.h \
1103         symfile.h $(symtab_h) target.h
1104
1105 dcache.o: dcache.c $(dcache_h)
1106
1107 delta68-nat.o: delta68-nat.c $(defs_h)
1108
1109 demangle.o: demangle.c $(defs_h) $(gdbcmd_h)
1110
1111 dwarfread.o: dwarfread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1112         $(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
1113         $(symtab_h)
1114
1115 elfread.o: elfread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1116         gdb-stabs.h objfiles.h symfile.h $(symtab_h)
1117
1118 environ.o: environ.c $(defs_h) environ.h $(gdbcore_h)
1119
1120 eval.o: eval.c $(bfd_h) $(defs_h) $(expression_h) $(frame_h) \
1121         $(gdbtypes_h) language.h $(symtab_h) target.h $(value_h)
1122
1123 exec.o: exec.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
1124         target.h language.h
1125
1126 expprint.o: expprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1127         language.h parser-defs.h $(symtab_h) $(value_h)
1128
1129 findvar.o: findvar.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
1130
1131 fork-child.o: fork-child.c $(wait_h) $(defs_h) $(gdbcore_h) \
1132         $(inferior_h) target.h terminal.h thread.h
1133
1134 gdbtypes.o: gdbtypes.c $(bfd_h) complaints.h $(defs_h) $(expression_h) \
1135         $(gdbtypes_h) language.h objfiles.h symfile.h $(symtab_h) target.h \
1136         $(value_h)
1137
1138 go32-xdep.o: go32-xdep.c
1139
1140 gould-pinsn.o: gould-pinsn.c $(OP_INCLUDE)/np1.h $(defs_h) $(frame_h) \
1141         $(gdbcore_h) $(symtab_h)
1142
1143 gould-xdep.o: gould-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1144 h8300-tdep.o: h8300-tdep.c $(defs_h) $(frame_h) $(symtab_h)
1145
1146 h8500-tdep.o: h8500-tdep.c $(bfd_h) $(dis-asm_h) $(defs_h) \
1147         $(expression_h) $(frame_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) \
1148         $(value_h)
1149
1150 hp300ux-nat.o: hp300ux-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1151 hppa-pinsn.o: hppa-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h) 
1152
1153 hppa-tdep.o: hppa-tdep.c $(wait_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1154         $(inferior_h) objfiles.h symfile.h target.h
1155
1156 hppab-nat.o: hppab-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
1157 hppah-nat.o: hppah-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
1158 i386-pinsn.o: i386-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h)
1159 i386-tdep.o: i386-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
1160 i386b-nat.o: i386b-nat.c $(defs_h) 
1161 i386ly-nat.o: i386ly-nat.c $(defs_h) $(frame_h) $(inferior_h) target.h
1162 i386ly-tdep.o: i386ly-tdep.c $(defs_h) $(inferior_h) target.h
1163 i386mach-nat.o: i386mach-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) 
1164
1165 i386v-nat.o: i386v-nat.c $(ieee-float_h) $(defs_h) $(gdbcore_h) \
1166         $(inferior_h) language.h target.h
1167
1168 i386v4-nat.o: i386v4-nat.c $(defs_h)
1169
1170 i387-tdep.o: i387-tdep.c $(ieee-float_h) $(defs_h) $(gdbcore_h) \
1171         $(inferior_h) language.h
1172
1173 i960-pinsn.o: i960-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h)
1174
1175 i960-tdep.o: i960-tdep.c $(ieee-float_h) $(defs_h) $(expression_h) \
1176         $(frame_h) $(gdbtypes_h) $(symtab_h) $(value_h)
1177
1178 infcmd.o: infcmd.c $(defs_h) environ.h $(gdbcmd_h) $(gdbcore_h) \
1179         $(inferior_h) target.h language.h
1180
1181 inflow.o: inflow.c $(bfd_h) $(command_h) $(defs_h) $(inferior_h) \
1182         signals.h target.h terminal.h thread.h
1183
1184 infptrace.o: infptrace.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
1185
1186 infrun.o: infrun.c $(wait_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1187         $(inferior_h) target.h thread.h
1188
1189 inftarg.o: inftarg.c $(wait_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1190         target.h terminal.h $(command_h)
1191
1192 irix4-nat.o: irix4-nat.c $(defs_h) $(inferior_h)
1193 isi-xdep.o: isi-xdep.c
1194
1195 language.o: language.c $(bfd_h) $(defs_h) $(expression_h) $(frame_h) \
1196         $(gdbcmd_h) $(gdbtypes_h) language.h parser-defs.h $(symtab_h) \
1197         target.h $(value_h)
1198
1199 m2-lang.o: m2-lang.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1200         language.h m2-lang.h parser-defs.h $(symtab_h)
1201
1202 m2-typeprint.o: m2-typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1203         $(gdbcore_h) $(gdbtypes_h) language.h m2-lang.h $(symtab_h) target.h \
1204         $(value_h)
1205
1206 m2-valprint.o: m2-valprint.c $(defs_h) $(gdbtypes_h) $(symtab_h) \
1207         valprint.h
1208
1209 m68k-pinsn.o: m68k-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h) 
1210 m68k-tdep.o: m68k-tdep.c $(defs_h) $(frame_h) $(symtab_h) 
1211 m68kly-nat.o: m68kly-nat.c $(defs_h) $(frame_h) $(inferior_h) target.h
1212 m88k-nat.o: m88k-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1213 m88k-pinsn.o: m88k-pinsn.c $(defs_h) $(symtab_h) 
1214 m88k-tdep.o: m88k-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1215
1216 main.o: main.c $(bfd_h) $(getopt_h) $(readline_headers) call-cmds.h \
1217         $(defs_h) $(gdbcmd_h) $(inferior_h) language.h signals.h \
1218         $(remote_utils_h)
1219         $(CC) -c $(INTERNAL_CFLAGS) $(READLINE_CFLAGS) $(srcdir)/main.c
1220
1221 maint.o: maint.c $(defs_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) language.h \
1222         $(expression_h)
1223
1224 mem-break.o: mem-break.c $(defs_h) 
1225
1226 minsyms.o: minsyms.c $(bfd_h) $(defs_h) objfiles.h symfile.h \
1227         $(symtab_h)
1228
1229 mips-nat.o: mips-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) 
1230 mips-pinsn.o: mips-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h) 
1231
1232 mips-tdep.o: mips-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1233         $(inferior_h) language.h objfiles.h symfile.h
1234
1235 mipsread.o: mipsread.c buildsym.h complaints.h $(bfd_h) $(defs_h) \
1236         $(expression_h) gdb-stabs.h $(gdbcore_h) $(gdbtypes_h) language.h \
1237         objfiles.h partial-stab.h stabsread.h symfile.h $(symtab_h)
1238
1239 news-xdep.o: news-xdep.c
1240
1241 Onindy.o: nindy-share/Onindy.c $(wait_h) nindy-share/block_io.h \
1242         nindy-share/env.h
1243         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/Onindy.c
1244
1245 nindy.o: nindy-share/nindy.c $(wait_h) nindy-share/block_io.h \
1246         nindy-share/env.h
1247         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/nindy.c
1248
1249 nlmread.o: nlmread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1250         gdb-stabs.h objfiles.h symfile.h $(symtab_h) stabsread.h
1251
1252 ttyflush.o: nindy-share/ttyflush.c
1253         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/ttyflush.c
1254
1255 nindy-tdep.o: nindy-tdep.c $(defs_h) $(frame_h) $(symtab_h) 
1256
1257 ns32k-pinsn.o: ns32k-pinsn.c $(defs_h) $(gdbcore_h) ns32k-opcode.h \
1258         $(symtab_h)
1259
1260 objfiles.o: objfiles.c $(bfd_h) $(defs_h) objfiles.h symfile.h \
1261         $(symtab_h)
1262
1263 osfsolib.o: osfsolib.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1264         objfiles.h regex.h symfile.h target.h language.h
1265
1266 paread.o: paread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1267         gdb-stabs.h objfiles.h symfile.h $(symtab_h)
1268
1269 parse.o: parse.c $(command_h) $(defs_h) $(expression_h) $(frame_h) \
1270         $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h)
1271
1272 printcmd.o: printcmd.c $(breakpoint_h) $(defs_h) $(expression_h) \
1273         $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
1274         $(symtab_h) target.h
1275
1276 procfs.o: procfs.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1277         target.h
1278
1279 putenv.o: putenv.c
1280
1281 pyr-pinsn.o: pyr-pinsn.c $(OP_INCLUDE)/pyr.h $(defs_h) $(gdbcore_h) \
1282         $(symtab_h)
1283
1284 pyr-tdep.o: pyr-tdep.c $(defs_h) 
1285 pyr-xdep.o: pyr-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h) 
1286
1287 regex.o: regex.c regex.h
1288
1289 remote-adapt.o: remote-adapt.c $(wait_h) $(defs_h) $(gdbcore_h) \
1290         $(inferior_h) target.h terminal.h
1291
1292 remote-bug.o: remote-bug.c $(wait_h) $(defs_h) $(gdbcore_h) \
1293         $(inferior_h) target.h terminal.h $(remote_utils_h)
1294
1295 remote-eb.o: remote-eb.c $(wait_h) $(srcdir)/config/a29k/tm-a29k.h \
1296         $(defs_h) $(gdbcore_h) $(inferior_h) symfile.h target.h terminal.h
1297
1298 remote-es.o: remote-es.c $(bfd_h) $(wait_h) $(command_h) $(defs_h) \
1299         $(inferior_h) $(remote_utils_h) terminal.h
1300
1301 remote-hms.o: remote-hms.c $(wait_h) $(defs_h) $(gdbcore_h) \
1302         $(inferior_h) serial.h target.h terminal.h
1303
1304 remote-mips.o: remote-mips.c $(wait_h) $(defs_h) $(gdbcmd_h) \
1305         $(gdbcore_h) $(inferior_h) serial.h symfile.h target.h
1306
1307 remote-mm.o: remote-mm.c $(bfd_h) $(wait_h) $(defs_h) $(inferior_h) \
1308         minimon.h target.h terminal.h
1309
1310 remote-mon.o: remote-mon.c $(wait_h) $(command_h) $(defs_h) \
1311         $(gdbcore_h) monitor.h serial.h target.h
1312
1313 remote-nindy.o: remote-nindy.c $(ieee-float_h) $(wait_h) $(command_h) \
1314         $(defs_h) $(gdbcore_h) $(inferior_h) \
1315         nindy-share/env.h nindy-share/stop.h $(remote_utils_h) \
1316         symfile.h
1317
1318 remote-sim.o: remote-sim.c $(wait_h) $(defs_h) $(gdbcore_h) \
1319         $(inferior_h) target.h terminal.h
1320
1321 remote-st.o: remote-st.c $(wait_h) $(defs_h) $(gdbcore_h) serial.h \
1322         target.h
1323
1324 remote-udi.o: remote-udi.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1325         $(inferior_h) target.h terminal.h $(udiheaders)
1326
1327 remote-vx.o: remote-vx.c $(wait_h) complaints.h $(defs_h) $(gdbcmd_h) \
1328         $(gdbcore_h) $(inferior_h) target.h vx-share/dbgRpcLib.h \
1329         vx-share/ptrace.h vx-share/xdr_ld.h vx-share/xdr_ptrace.h \
1330         vx-share/xdr_rdb.h
1331
1332 remote-z8k.o: remote-z8k.c $(wait_h) $(srcdir)/../sim/z8k/sim.h \
1333         $(defs_h) $(gdbcore_h) $(inferior_h) target.h terminal.h
1334
1335 remote-utils.o: remote-utils.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1336         $(inferior_h) $(remote_utils_h) 
1337
1338 remote.o: remote.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1339         $(inferior_h) $(remote_utils_h) symfile.h terminal.h
1340
1341 rs6000-nat.o: rs6000-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
1342
1343 rs6000-pinsn.o: rs6000-pinsn.c $(OP_INCLUDE)/rs6k.h $(defs_h)
1344
1345 rs6000-tdep.o: rs6000-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \
1346         target.h xcoffsolib.h
1347
1348 ser-go32.o: ser-go32.c $(defs_h) serial.h 
1349 ser-tcp.o: ser-tcp.c $(defs_h) serial.h signals.h
1350 ser-unix.o: ser-unix.c $(defs_h) serial.h 
1351 serial.o: serial.c $(defs_h) serial.h 
1352
1353 sh-tdep.o: sh-tdep.c $(bfd_h) $(dis-asm_h) \
1354         $(srcdir)/../opcodes/sh-opc.h $(defs_h) $(expression_h) $(frame_h) \
1355         $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) $(value_h)
1356
1357 solib.o: solib.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1358         objfiles.h regex.h symfile.h target.h
1359
1360 source.o: source.c $(defs_h) $(expression_h) $(frame_h) $(gdbcmd_h) \
1361         $(gdbcore_h) language.h objfiles.h regex.h symfile.h $(symtab_h)
1362
1363 sparc-nat.o: sparc-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
1364 sparc-pinsn.o: sparc-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h)
1365
1366 sparc-tdep.o: sparc-tdep.c $(ieee-float_h) $(defs_h) $(gdbcore_h) \
1367         $(inferior_h) objfiles.h symfile.h target.h
1368
1369 sparcly-nat.o: sparcly-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
1370
1371 stabsread.o: stabsread.c $(bfd_h) $(INCLUDE_DIR)/aout/stab.def \
1372         $(INCLUDE_DIR)/aout/stab_gnu.h buildsym.h complaints.h $(defs_h) \
1373         $(gdbtypes_h) objfiles.h stabsread.h symfile.h $(symtab_h)
1374
1375 stack.o: stack.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
1376         language.h target.h
1377
1378 sun3-nat.o: sun3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1379 sun386-nat.o: sun386-nat.c $(defs_h) $(inferior_h) $(gdbcore_h)
1380
1381 symfile.o: symfile.c $(breakpoint_h) complaints.h $(defs_h) \
1382         $(expression_h) $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) \
1383         language.h objfiles.h symfile.h $(symtab_h) target.h
1384
1385 symm-tdep.o: symm-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h)   
1386 symm-nat.o: symm-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1387
1388 symmisc.o: symmisc.c $(bfd_h) $(breakpoint_h) $(command_h) $(defs_h) \
1389         $(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
1390         $(symtab_h) 
1391
1392 symtab.o: symtab.c call-cmds.h $(defs_h) $(expression_h) $(frame_h) \
1393         $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h objfiles.h \
1394         regex.h symfile.h $(symtab_h) target.h $(value_h)
1395
1396 tahoe-pinsn.o: tahoe-pinsn.c $(OP_INCLUDE)/tahoe.h $(defs_h) \
1397         $(symtab_h)
1398
1399 target.o: target.c $(bfd_h) $(defs_h) $(gdbcmd_h) $(inferior_h) \
1400         objfiles.h symfile.h target.h
1401
1402 thread.o: thread.c $(defs_h) thread.h 
1403
1404 typeprint.o: typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1405         $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
1406         $(value_h) 
1407
1408 ultra3-nat.o: ultra3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1409 ultra3-xdep.o: ultra3-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1410 umax-xdep.o: umax-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1411
1412 utils.o: utils.c $(bfd_h) $(defs_h) $(expression_h) $(gdbcmd_h) \
1413         language.h signals.h target.h terminal.h
1414
1415 valarith.o: valarith.c $(bfd_h) $(defs_h) $(expression_h) \
1416         $(gdbtypes_h) language.h $(symtab_h) target.h $(value_h)
1417
1418 valops.o: valops.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
1419
1420 valprint.o: valprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1421         $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
1422         $(value_h)
1423
1424 values.o: values.c $(defs_h) $(expression_h) $(frame_h) $(gdbcmd_h) \
1425         $(gdbcore_h) $(gdbtypes_h) $(symtab_h) target.h $(value_h)
1426
1427 vax-pinsn.o: vax-pinsn.c $(OP_INCLUDE)/vax.h $(defs_h) $(symtab_h)
1428
1429 xdr_ld.o: vx-share/xdr_ld.c $(defs_h) vx-share/vxTypes.h \
1430         vx-share/vxWorks.h vx-share/xdr_ld.h
1431         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_ld.c
1432
1433 xdr_ptrace.o: vx-share/xdr_ptrace.c $(defs_h) vx-share/vxTypes.h \
1434         vx-share/vxWorks.h vx-share/xdr_ptrace.h
1435         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_ptrace.c
1436
1437 xdr_rdb.o: vx-share/xdr_rdb.c $(defs_h) vx-share/vxTypes.h \
1438         vx-share/vxWorks.h vx-share/xdr_rdb.h
1439         $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_rdb.c
1440
1441 xcoffexec.o: xcoffexec.c $(BFD_SRC)/libbfd.h $(defs_h) $(gdbcmd_h) \
1442         $(gdbcore_h) $(inferior_h) objfiles.h symfile.h target.h xcoffsolib.h
1443
1444 xcoffread.o: xcoffread.c $(bfd_h) $(INCLUDE_DIR)/aout/stab.def \
1445         $(INCLUDE_DIR)/aout/stab_gnu.h $(INCLUDE_DIR)/coff/internal.h \
1446         $(INCLUDE_DIR)/coff/rs6000.h $(BFD_SRC)/libcoff.h buildsym.h \
1447         complaints.h $(defs_h) $(gdbtypes_h) objfiles.h stabsread.h symfile.h \
1448         $(symtab_h)
1449
1450 xcoffsolib.o: xcoffsolib.c $(bfd_h) $(defs_h) xcoffsolib.h
1451
1452 z8k-tdep.o: z8k-tdep.c $(bfd_h) $(dis-asm_h) $(defs_h) $(frame_h) \
1453         $(gdbcmd_h) $(gdbtypes_h) $(symtab_h)
1454
1455 c-exp.tab.o: c-exp.tab.c c-lang.h $(defs_h) $(expression_h) \
1456         $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h) \
1457         $(bfd_h) objfiles.h symfile.h
1458
1459 ch-exp.tab.o: ch-exp.tab.c ch-lang.h $(defs_h) $(expression_h) \
1460         $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h) \
1461         $(bfd_h) objfiles.h symfile.h
1462
1463 m2-exp.tab.o: m2-exp.tab.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1464         language.h m2-lang.h parser-defs.h $(symtab_h) $(value_h) \
1465         $(bfd_h) objfiles.h symfile.h
1466
1467 ### end of the gdb Makefile.in.