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