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