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