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