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