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