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