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