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