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