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