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