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