* lib/gdb.exp, gdb.base/corefile.exp: Supply -nw as argument
[deliverable/binutils-gdb.git] / gdb / Makefile.in
CommitLineData
6ec7e4d3 1# Copyright 1989, 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
33cf356a
SG
2
3# This file is part of GDB.
4
5# This program is free software; you can redistribute it and/or modify
3e5afc2c
RP
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
33cf356a 17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
3e5afc2c
RP
18
19prefix = /usr/local
20
b68b44fa 21program_transform_name =
4db3902a
RP
22exec_prefix = $(prefix)
23bindir = $(exec_prefix)/bin
24libdir = $(exec_prefix)/lib
6a1f93f6 25tooldir = $(libdir)/$(target_alias)
4db3902a 26
3e5afc2c 27datadir = $(prefix)/lib
4db3902a 28mandir = $(prefix)/man
3e5afc2c
RP
29man1dir = $(mandir)/man1
30man2dir = $(mandir)/man2
31man3dir = $(mandir)/man3
32man4dir = $(mandir)/man4
33man5dir = $(mandir)/man5
34man6dir = $(mandir)/man6
35man7dir = $(mandir)/man7
36man8dir = $(mandir)/man8
37man9dir = $(mandir)/man9
4db3902a 38infodir = $(prefix)/info
3e5afc2c
RP
39includedir = $(prefix)/include
40docdir = $(datadir)/doc
41
42SHELL = /bin/sh
43
c8fee4a5 44INSTALL = `cd $(srcdir)/..;pwd`/install.sh -c
3e5afc2c
RP
45INSTALL_PROGRAM = $(INSTALL)
46INSTALL_DATA = $(INSTALL)
47
48AR = ar
33cf356a 49AR_FLAGS = qv
3e5afc2c
RP
50RANLIB = ranlib
51
33cf356a
SG
52# Flags that describe where you can find the termcap library.
53# This can be overridden in the host Makefile fragment file.
54TERMCAP = -ltermcap
55
7ae7b919
RP
56# If you are compiling with GCC, make sure that either 1) You have the
57# fixed include files where GCC can reach them, or 2) You use the
58# -traditional flag. Otherwise the ioctl calls in inflow.c
33cf356a
SG
59# will be incorrectly compiled. The "fixincludes" script in the gcc
60# distribution will fix your include files up.
33cf356a 61#CC=gcc -traditional
33cf356a
SG
62
63# Directory containing source files. Don't clean up the spacing,
64# this exact string is matched for by the "configure" script.
65srcdir = .
d941d8c3 66
19d0f3f4 67# If you use bison instead of yacc, it needs to include the "-y" argument.
0b81fc43 68#BISON=bison -y
33cf356a
SG
69BISON=yacc
70YACC=$(BISON)
33cf356a 71
33cf356a
SG
72# where to find makeinfo, preferably one designed for texinfo-2
73MAKEINFO=makeinfo
74
75# Set this up with gcc if you have gnu ld and the loader will print out
7ae7b919 76# line numbers for undefined references.
33cf356a 77#CC-LD=gcc -static
7ae7b919 78CC-LD=$(CC)
33cf356a 79
7ae7b919
RP
80# Where is our "include" directory? Typically $(srcdir)/../include.
81# This is essentially the header file directory for the library
82# routines in libiberty.
83INCLUDE_DIR = $(srcdir)/../include
84INCLUDE_CFLAGS = -I$(INCLUDE_DIR)
b7966a5a
SS
85
86# Where is the "-liberty" library? Typically in ../libiberty.
7ae7b919 87LIBIBERTY = ../libiberty/libiberty.a
33cf356a 88
b7966a5a 89# Where is the MMALLOC library? Typically in ../mmalloc.
33cf356a
SG
90# Note that mmalloc can still be used on systems without mmap().
91# To use your system malloc, comment out the following defines.
b7966a5a
SS
92MMALLOC_DIR = ../mmalloc
93MMALLOC = $(MMALLOC_DIR)/libmmalloc.a
33cf356a
SG
94# To use your system malloc, uncomment MMALLOC_DISABLE.
95#MMALLOC_DISABLE = -DNO_MMALLOC
96# To use mmalloc but disable corruption checking, uncomment MMALLOC_CHECK
97#MMALLOC_CHECK = -DNO_MMALLOC_CHECK
b7966a5a 98MMALLOC_CFLAGS = -I$(srcdir)/$(MMALLOC_DIR) $(MMALLOC_CHECK) $(MMALLOC_DISABLE)
7ae7b919 99
b7966a5a 100# Where is the BFD library? Typically in ../bfd.
7ae7b919
RP
101BFD_DIR = ../bfd
102BFD = $(BFD_DIR)/libbfd.a
103BFD_SRC = $(srcdir)/$(BFD_DIR)
f4cc789c 104BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
7ae7b919
RP
105
106# Where is the READLINE library? Typically in ../readline.
107READLINE_DIR = ../readline
108READLINE = $(READLINE_DIR)/libreadline.a
109READLINE_SRC = $(srcdir)/$(READLINE_DIR)
110READLINE_CFLAGS = -I$(READLINE_SRC)
111
112# Opcodes currently live in one of two places. Either they are in the
113# opcode library, typically ../opcodes, or they are in a header file
114# in INCLUDE_DIR.
115# Where is the "-lopcodes" library, with (some of) the opcode tables and
116# disassemblers?
b7966a5a 117OPCODES = ../opcodes/libopcodes.a
7ae7b919
RP
118# Where are the other opcode tables which only have header file
119# versions?
b8774958
RP
120OP_INCLUDE = $(INCLUDE_DIR)/opcode
121OPCODES_CFLAGS = -I$(OP_INCLUDE)
33cf356a 122
cd2df226
SG
123# Where is the TCL library? Typically in ../tcl.
124TCL_DIR = ../tcl
125TCL = -L$(TCL_DIR) -ltcl
126TCL_SRC = $(srcdir)/$(TCL_DIR)
127TCL_CFLAGS = -I$(TCL_SRC)
128
129# Where is the TK library? Typically in ../tk.
130TK_DIR = ../tk
131TK = -L$(TK_DIR) -ltk
132TK_SRC = $(srcdir)/$(TK_DIR)
133TK_CFLAGS = -I$(TK_SRC)
134
33cf356a
SG
135# All the includes used for CFLAGS and for lint.
136# -I. for config files.
7ae7b919
RP
137# -I$(srcdir) for gdb internal headers and possibly for regex.h also.
138# -I$(srcdir)/config for more generic config files.
139
140# It is also possible that you will need to add -I/usr/include/sys if
141# your system doesn't have fcntl.h in /usr/include (which is where it
142# should be according to Posix).
143GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/config
144
145# M{H,T}_CFLAGS, if defined, have host- and target-dependent CFLAGS
146# from the config directory.
147GLOBAL_CFLAGS = $(MT_CFLAGS) $(MH_CFLAGS)
33cf356a
SG
148#PROFILE_CFLAGS = -pg
149
150# CFLAGS is specifically reserved for setting from the command line
7ae7b919 151# when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
33cf356a 152CFLAGS = -g
33cf356a 153
3fd4045f
JK
154# Need to pass this to testsuite for "make check". Probably should be
155# consistent with top-level Makefile.in and gdb/testsuite/Makefile.in
156# so "make check" has the same result no matter where it is run.
157CXXFLAGS = -g -O
615289ec 158
7ae7b919
RP
159# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
160INTERNAL_CFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
161 $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
162 $(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS)
1e4f3c20 163
b8c0ec27
JK
164# LDFLAGS is specifically reserved for setting from the command line
165# when running make.
166
167# Profiling options need to go here to work.
168# I think it's perfectly reasonable for a user to set -pg in CFLAGS
169# and have it work; that's why CFLAGS is here.
170INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) $(LDFLAGS)
171
f5ebb9ea
JK
172# We are using our own version of REGEX now to be consistent across
173# machines.
174REGEX = regex.o
175REGEX1 = regex.o
176
31d16514 177# If your system is missing alloca(), or, more likely, it's there but
7ae7b919 178# it doesn't work, then refer to libiberty.
33cf356a
SG
179
180# Libraries and corresponding dependencies for compiling gdb.
181# {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
182# TERMCAP comes after readline, since readline depends on it.
5b40415c 183# If you have the Cygnus libraries installed,
7ae7b919
RP
184# you can use 'CLIBS=$(INSTALLED_LIBS)' 'CDEPS='
185INSTALLED_LIBS=-lbfd -lreadline $(TERMCAP) -lopcodes -lmmalloc \
754e5da2 186 -liberty $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) $(ENABLE_CLIBS)
25286543 187CLIBS = $(BFD) $(READLINE) $(OPCODES) $(MMALLOC) \
736a82e7
SG
188 $(ENABLE_CLIBS) $(TERMCAP) $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) \
189 $(LIBIBERTY)
5b21fb68
SG
190CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(BFD) $(READLINE) $(OPCODES) \
191 $(MMALLOC) $(LIBIBERTY)
7ae7b919
RP
192
193ADD_FILES = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
194ADD_DEPS = $(REGEX1) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
195
7de5c5e2 196VERSION = 4.13.1
33cf356a
SG
197DIST=gdb
198
199LINT=/usr/5bin/lint
7ae7b919 200LINTFLAGS= $(BFD_CFLAGS)
33cf356a 201
99c41106
JW
202RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
203 echo $${srcdir}/../dejagnu/runtest ; else echo runtest; \
204 fi`
205
e7d3b7d1 206RUNTESTFLAGS=
6fcb280e 207
fd382d28
JK
208# This is ser-unix.o for any system which supports a v7/BSD/SYSV/POSIX
209# interface to the serial port. Hopefully if get ported to OS/2, VMS,
210# etc., then there will be (as part of the C library or perhaps as
211# part of libiberty) a POSIX interface. But at least for now the
212# host-dependent makefile fragment might need to use something else
213# besides ser-unix.o
bd91ddd1 214SER_HARDWIRE=ser-unix.o
fd382d28 215
f261333b
JK
216# The `remote' debugging target is supported for most architectures,
217# but not all (e.g. 960)
c6f494e8 218REMOTE_O = remote.o dcache.o remote-utils.o
f261333b 219
e7b5942b
JK
220ANNOTATE_OBS = annotate.o
221
33cf356a
SG
222# Host and target-dependent makefile fragments come in here.
223####
224# End of host and target-dependent makefile fragments
225
ef131e13 226FLAGS_TO_PASS = \
2fcc38b8
FF
227 "prefix=$(prefix)" \
228 "exec_prefix=$(exec_prefix)" \
ef131e13
JG
229 "against=$(against)" \
230 "AR=$(AR)" \
231 "AR_FLAGS=$(AR_FLAGS)" \
232 "CC=$(CC)" \
233 "CFLAGS=$(CFLAGS)" \
aecc5459
ILT
234 "CHILLFLAGS=$(CHILLFLAGS)" \
235 "CHILL=$(CHILL)" \
236 "CHILL_LIB=$(CHILL_LIB)" \
aecc5459
ILT
237 "CXX=$(CXX)" \
238 "CXXFLAGS=$(CXXFLAGS)" \
ef131e13
JG
239 "RANLIB=$(RANLIB)" \
240 "MAKEINFO=$(MAKEINFO)" \
241 "INSTALL=$(INSTALL)" \
242 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
243 "INSTALL_DATA=$(INSTALL_DATA)" \
e7d3b7d1
RS
244 "RUNTEST=$(RUNTEST)" \
245 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
ef131e13
JG
246 "BISON=$(BISON)"
247
aecc5459
ILT
248# Flags that we pass when building the testsuite.
249
250CC_FOR_TARGET = ` \
058470e1 251 if [ -f $${rootme}/../gcc/xgcc ] ; then \
b98612f1 252 if [ -f $${rootme}/../newlib/Makefile ] ; then \
998b321b 253 echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -idirafter $${rootme}/newlib/targ-include -idirafter $${rootsrc}/../newlib/libc/include -nostdinc -L$${rootme}/../../newlib -B$${rootme}/../../newlib/; \
b98612f1
C
254 else \
255 echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
256 fi; \
aecc5459
ILT
257 else \
258 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
259 echo $(CC); \
260 else \
261 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
262 fi; \
263 fi`
264
265CXX = gcc
aecc5459
ILT
266CXX_FOR_TARGET = ` \
267 if [ -f $${rootme}/../gcc/Makefile ] ; then \
b98612f1 268 if [ -f $${rootme}/../newlib/Makefile ] ; then \
998b321b 269 echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -idirafter $${rootme}/newlib/targ-include -idirafter $${rootsrc}/../newlib/libc/include -nostdinc -L$${rootme}/../../newlib -B$${rootme}/../../newlib/; \
b98612f1
C
270 else \
271 echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
272 fi; \
aecc5459
ILT
273 else \
274 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
275 echo $(CXX); \
276 else \
277 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
278 fi; \
279 fi`
280
aecc5459
ILT
281CHILLFLAGS = $(CFLAGS)
282CHILL = gcc
283CHILL_FOR_TARGET = ` \
284 if [ -f $${rootme}/../gcc/Makefile ] ; then \
285 echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -L$${rootme}/../chillrt/; \
286 else \
287 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
288 echo $(CC); \
289 else \
290 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
291 fi; \
292 fi`
293CHILL_LIB = -lchill
1fa66e36 294
0b96ed06
FF
295# The use of $$(x_FOR_TARGET) reduces the command line length by not
296# duplicating the lengthy definition.
aecc5459
ILT
297TARGET_FLAGS_TO_PASS = \
298 "prefix=$(prefix)" \
299 "exec_prefix=$(exec_prefix)" \
300 "against=$(against)" \
b7da2494 301 "BISON=$(BISON)" \
0b96ed06
FF
302 'CC=$$(CC_FOR_TARGET)' \
303 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
aecc5459 304 "CFLAGS=$(CFLAGS)" \
aecc5459 305 "CHILLFLAGS=$(CHILLFLAGS)" \
0b96ed06
FF
306 'CHILL=$$(CHILL_FOR_TARGET)' \
307 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
aecc5459 308 "CHILL_LIB=$(CHILL_LIB)" \
0b96ed06
FF
309 'CXX=$$(CXX_FOR_TARGET)' \
310 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
aecc5459 311 "CXXFLAGS=$(CXXFLAGS)" \
aecc5459
ILT
312 "INSTALL=$(INSTALL)" \
313 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
314 "INSTALL_DATA=$(INSTALL_DATA)" \
b7da2494 315 "MAKEINFO=$(MAKEINFO)" \
e7d3b7d1 316 "RUNTEST=$(RUNTEST)" \
b7da2494 317 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
aecc5459 318
5287eacd 319# All source files that go into linking GDB.
853a233b 320# Links made at configuration time should not be specified here, since
5287eacd
FF
321# SFILES is used in building the distribution archive.
322
7ae7b919
RP
323SFILES = blockframe.c breakpoint.c buildsym.c c-exp.y c-lang.c \
324 c-typeprint.c c-valprint.c ch-exp.y ch-lang.c ch-typeprint.c \
325 ch-valprint.c coffread.c command.c complaints.c core.c cp-valprint.c \
e7b5942b
JK
326 dbxread.c demangle.c dwarfread.c \
327 elfread.c environ.c eval.c expprint.c \
328 f-exp.y f-lang.c f-typeprint.c f-valprint.c findvar.c \
329 gdbtypes.c infcmd.c inflow.c infrun.c language.c \
7ae7b919 330 m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c main.c maint.c \
db85f523
FF
331 mem-break.c minsyms.c mipsread.c nlmread.c objfiles.c parse.c \
332 printcmd.c remote.c source.c stabsread.c stack.c symfile.c symmisc.c \
172559ec
JK
333 symtab.c target.c thread.c top.c \
334 typeprint.c utils.c valarith.c valops.c \
25200748 335 valprint.c values.c serial.c ser-unix.c mdebugread.c os9kread.c
7ae7b919 336
33cf356a
SG
337# All source files that lint should look at
338LINTFILES = $(SFILES) $(YYFILES) init.c
339
7ae7b919 340# "system" headers. Using these in dependencies is a rather personal
5fa83062
JK
341# choice. (-rich, summer 1993)
342# (Why would we not want to depend on them? If one of these changes in a
343# non-binary-compatible way, it is a real pain to remake the right stuff
344# without these dependencies -kingdon, 13 Mar 1994)
345getopt_h = $(INCLUDE_DIR)/getopt.h
346floatformat_h = $(INCLUDE_DIR)/floatformat.h
347bfd_h = $(BFD_DIR)/bfd.h
348wait_h = $(INCLUDE_DIR)/wait.h
349dis-asm_h = $(INCLUDE_DIR)/dis-asm.h
7ae7b919 350
c6f494e8 351dcache_h = dcache.h
ed89c3d9 352remote_utils_h = $(dcache_h) serial.h target.h remote-utils.h remote-sim.h
c6f494e8 353
7ae7b919
RP
354readline_headers = \
355 $(READLINE_SRC)/chardefs.h \
356 $(READLINE_SRC)/history.h \
357 $(READLINE_SRC)/keymaps.h \
358 $(READLINE_SRC)/readline.h
359
360udiheaders = \
36b1d528
SG
361 $(srcdir)/29k-share/udi/udiproc.h \
362 $(srcdir)/29k-share/udi/udiphcfg.h \
363 $(srcdir)/29k-share/udi/udiphunix.h \
364 $(srcdir)/29k-share/udi/udiptcfg.h \
365 $(srcdir)/29k-share/udi/udipt29k.h \
366 $(srcdir)/29k-share/udi/udisoc.h
7ae7b919 367
7ae7b919
RP
368gdbcore_h = gdbcore.h $(bfd_h)
369
370frame_h = frame.h
371symtab_h = symtab.h
372gdbtypes_h = gdbtypes.h
373expression_h = expression.h
374value_h = value.h $(symtab_h) $(gdbtypes_h) $(expression_h)
375
376breakpoint_h = breakpoint.h $(frame_h) $(value_h)
377
378command_h = command.h
379gdbcmd_h = gdbcmd.h $(command_h)
380
381defs_h = defs.h xm.h tm.h nm.h config.status
382
383inferior_h = inferior.h $(breakpoint_h)
384
4901e77d
FF
385# Header files that need to have srcdir added. Note that in the cases
386# where we use a macro like $(gdbcmd_h), things are carefully arranged
387# so that each .h file is listed exactly once (M-x tags-search works
388# wrong if TAGS has files twice). Because this is tricky to get
389# right, it is probably easiest just to list .h files here directly.
7ae7b919 390
07919221 391HFILES_NO_SRCDIR = buildsym.h call-cmds.h coff-solib.h defs.h dst.h environ.h \
1c95d7ab
JK
392 $(gdbcmd_h) gdbcore.h \
393 gdb-stabs.h $(inferior_h) language.h minimon.h monitor.h \
7ae7b919
RP
394 objfiles.h parser-defs.h partial-stab.h serial.h signals.h solib.h \
395 symfile.h stabsread.h target.h terminal.h typeprint.h xcoffsolib.h \
e7b5942b
JK
396 c-lang.h ch-lang.h f-lang.h m2-lang.h \
397 complaints.h valprint.h \
7ae7b919 398 29k-share/udi/udiids.h 29k-share/udi_soc nindy-share/b.out.h \
9b311b22
FF
399 nindy-share/block_io.h nindy-share/coff.h \
400 nindy-share/env.h nindy-share/stop.h \
7ae7b919
RP
401 vx-share/dbgRpcLib.h vx-share/ptrace.h vx-share/vxTypes.h \
402 vx-share/vxWorks.h vx-share/wait.h vx-share/xdr_ld.h \
c6f494e8 403 vx-share/xdr_ptrace.h vx-share/xdr_rdb.h thread.h \
d360e1e0 404 dcache.h remote-utils.h remote-sim.h top.h somsolib.h
2531303c 405
1c95d7ab 406# Header files that already have srcdir in them, or which are in objdir.
f4f0d174 407
1c95d7ab 408HFILES_WITH_SRCDIR = $(udiheaders) ../bfd/bfd.h
f4f0d174
JK
409
410
2531303c
FF
411# GDB "info" files, which should be included in their entirety
412INFOFILES = gdb.info*
33cf356a 413
22473f72 414REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar
33cf356a 415
7ae7b919 416POSSLIBS = regex.c regex.h
33cf356a 417
33cf356a
SG
418# Subdirectories of gdb, which should be included in their entirety in
419# gdb-xxx.tar.Z:
ead291d4 420TARDIRS = doc gdbserver sparclite
33cf356a 421
fd382d28
JK
422# {X,T,NAT}DEPFILES are something of a pain in that it's hard to
423# default their values the way we do for SER_HARDWIRE; in the future
424# maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other
425# variables analogous to SER_HARDWIRE which get defaulted in this
426# Makefile.in
427
754e5da2
SG
428DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) $(REMOTE_O) \
429 $(ENABLE_DEPFILES)
33cf356a 430
2531303c 431SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES)
853a233b
JK
432# Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
433# and it's more useful to see it in the .y file.
f4f0d174 434TAGFILES_NO_SRCDIR = $(SFILES) $(HFILES_NO_SRCDIR) $(ALLDEPFILES) \
c8a1505a 435 $(POSSLIBS)
f4f0d174 436TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR)
7ae7b919 437
d8fc8773 438COMMON_OBS = version.o blockframe.o breakpoint.o findvar.o stack.o thread.o \
7ae7b919 439 source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o \
9b311b22 440 symtab.o symfile.o symmisc.o infcmd.o infrun.o command.o \
d8fc8773 441 expprint.o environ.o gdbtypes.o copying.o $(DEPFILES) \
f93b941b 442 mem-break.o target.o parse.o language.o $(YYOBJ) buildsym.o \
e7b5942b
JK
443 exec.o objfiles.o minsyms.o maint.o demangle.o \
444 dbxread.o coffread.o elfread.o \
445 dwarfread.o mipsread.o stabsread.o core.o \
446 c-lang.o ch-lang.o f-lang.o m2-lang.o \
447 complaints.o typeprint.o \
448 c-typeprint.o ch-typeprint.o f-typeprint.o m2-typeprint.o \
449 c-valprint.o cp-valprint.o ch-valprint.o f-valprint.o m2-valprint.o \
450 nlmread.o serial.o mdebugread.o os9kread.o top.o utils.o
33cf356a 451
e7b5942b 452OBS = $(COMMON_OBS) $(ANNOTATE_OBS) main.o
d8fc8773 453
172559ec 454LIBGDB_OBS =
d8fc8773 455
c9c23412 456TSOBS = inflow.o
33cf356a
SG
457
458NTSOBS = standalone.o
459
33cf356a
SG
460NTSSTART = kdb-start.o
461
b7da2494 462SUBDIRS = doc testsuite nlm
33cf356a
SG
463
464# For now, shortcut the "configure GDB for fewer languages" stuff.
e7b5942b
JK
465YYFILES = c-exp.tab.c f-exp.tab.c m2-exp.tab.c ch-exp.tab.c
466YYOBJ = c-exp.tab.o f-exp.tab.o m2-exp.tab.o ch-exp.tab.o
33cf356a 467
de19d1ed
FF
468# Things which need to be built when making a distribution.
469
470DISTSTUFF = $(YYFILES)
471
33cf356a
SG
472# Prevent Sun make from putting in the machine type. Setting
473# TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
474.c.o:
7ae7b919 475 $(CC) -c $(INTERNAL_CFLAGS) $<
33cf356a 476
667fb5c3 477all: gdb libgdb-files $(LIBGDB_OBS)
0139c441 478 @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
6fcb280e 479
80c8fd72 480installcheck:
f4f0d174
JK
481
482# The check target can not use subdir_do, because subdir_do does not
483# use TARGET_FLAGS_TO_PASS.
e7d3b7d1 484check: force
f4f0d174
JK
485 @if [ -f testsuite/Makefile ]; then \
486 rootme=`pwd`; export rootme; \
b98612f1 487 rootsrc=`cd $(srcdir); pwd`; export rootsrc; \
f4f0d174
JK
488 cd testsuite; \
489 $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \
490 else true; fi
491
7ae7b919 492info dvi install-info clean-info: force
0139c441 493 @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
33cf356a
SG
494
495gdb.z:gdb.1
496 nroff -man $(srcdir)/gdb.1 | col -b > gdb.t
497 pack gdb.t ; rm -f gdb.t
498 mv gdb.t.z gdb.z
b8774958 499
7ae7b919 500# Traditionally "install" depends on "all". But it may be useful
702c0ff7
JK
501# not to; for example, if the user has made some trivial change to a
502# source file and doesn't care about rebuilding or just wants to save the
503# time it takes for make to check that all is up to date.
7ae7b919
RP
504# install-only is intended to address that need.
505install: all install-only
ef1a0540 506install-only:
94d4b713
JK
507 transformed_name=`t='$(program_transform_name)'; \
508 echo gdb | sed -e "s/brokensed/brokensed/" $$t` ; \
ef1a0540
JK
509 if test "x$$transformed_name" = x; then \
510 transformed_name=gdb ; \
511 else \
512 true ; \
513 fi ; \
514 $(INSTALL_PROGRAM) gdb $(bindir)/$$transformed_name ; \
515 $(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$transformed_name.1
d3d75ec9 516 # start-sanitize-gdbtk
2ec604df 517 if [ x"$(ENABLE_GDBTK)" != x ] ; then \
5b21fb68
SG
518 $(INSTALL_DATA) $(srcdir)/gdbtk.tcl $(libdir)/gdbtk.tcl ; \
519 fi
d3d75ec9 520 # end-sanitize-gdbtk
7ae7b919 521 @$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
33cf356a 522
7ae7b919 523uninstall: force
736a82e7
SG
524 transformed_name=`t='$(program_transform_name)'; \
525 echo gdb | sed -e "s/brokensed/brokensed/" $$t` ; \
526 if test "x$$transformed_name" = x; then \
527 transformed_name=gdb ; \
528 else \
529 true ; \
530 fi ; \
531 rm -f $(bindir)/$$transformed_name $(man1dir)/$$transformed_name.1
7ae7b919 532 @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
33cf356a 533
976bb0be
JK
534# We do this by grepping through sources. If that turns out to be too slow,
535# maybe we could just require every .o file to have an initialization routine
536# of a given name (remote-udi.o -> _initialize_remote_udi, etc.).
623d7380
JK
537#
538# Formatting conventions: The name of the _initialize_* routines must start
539# in column zero, and must not be inside #if.
0f221a69
FF
540#
541# Note that the set of files with init functions might change, or the names
542# of the functions might change, so this files needs to depend on all the
543# object files that will be linked into gdb.
544
976bb0be
JK
545init.c: $(OBS) $(TSOBS)
546 @echo Making init.c
547 @rm -f init.c-tmp
548 @echo '/* Do not modify this file. */' >init.c-tmp
549 @echo '/* It is created automatically by the Makefile. */'>>init.c-tmp
550 @echo 'void initialize_all_files () {' >>init.c-tmp
551 @for i in $(OBS) $(TSOBS); do \
552 filename=`echo $$i | sed \
553 -e '/^Onindy.o/d' \
554 -e '/^nindy.o/d' \
555 -e '/ttyflush.o/d' \
556 -e '/xdr_ld.o/d' \
557 -e '/xdr_ptrace.o/d' \
558 -e '/xdr_rdb.o/d' \
559 -e '/udr.o/d' \
560 -e '/udip2soc.o/d' \
7fb95139 561 -e '/udi2go32.o/d' \
976bb0be
JK
562 -e '/version.o/d' \
563 -e '/[a-z0-9A-Z_]*-exp.tab.o/d' \
564 -e 's/\.o/.c/'` ; \
e2507f81
JK
565 case $$filename in \
566 "") ;; \
567 *) sed <$(srcdir)/$$filename >>init.c-tmp -n \
568 -e '/^_initialize_[a-z_0-9A-Z]* *(/s/^\([a-z_0-9A-Z]*\).*/ {extern void \1 (); \1 ();}/p' ; ;; \
569 esac ; \
976bb0be
JK
570 done
571 @echo '}' >>init.c-tmp
572 @mv init.c-tmp init.c
7ae7b919 573
c2153bf2
JK
574.PRECIOUS: init.c
575
576# Removing the old gdb first works better if it is running, at least on SunOS.
667fb5c3 577gdb: $(OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
c2153bf2 578 rm -f gdb
b8c0ec27 579 $(CC-LD) $(INTERNAL_LDFLAGS) -o gdb \
33cf356a
SG
580 init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES)
581
b7da2494
SG
582nlm: force
583 rootme=`pwd`; export rootme; $(MAKE) $(TARGET_FLAGS_TO_PASS) DO=all DODIRS=nlm subdir_do
584
d3507982
JK
585# libproc is not listed here because all-libproc is a dependency of all-gui,
586# not all-gdb, and thus might be built after us.
587LIBGDBDEPS=$(COMMON_OBS) $(LIBGDB_OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
588# libproc needs to be before libiberty for alloca.
589LIBGDBFILES=$(COMMON_OBS) $(LIBGDB_OBS) $(TSOBS) ../libproc/libproc.a \
590 $(ADD_DEPS) $(CDEPS) init.o
591
592libgdb-files: $(LIBGDBDEPS) Makefile.in
8eb7b7c3
TL
593 -rm -f libgdb-files
594 for i in $(LIBGDBFILES); do\
667fb5c3 595 echo $$i >> libgdb-files;\
8eb7b7c3
TL
596 done
597
33cf356a 598saber_gdb: $(SFILES) $(DEPFILES) copying.c version.c
7ae7b919 599 #setopt load_flags $(CFLAGS) $(BFD_CFLAGS) -DHOST_SYS=SUN4_SYS
33cf356a 600 #load ./init.c $(SFILES)
7ae7b919
RP
601 #unload $(srcdir)/c-exp.y $(srcdir)/m2-exp.y $(srcdir)/ch-exp.y
602 #unload vx-share/*.h
603 #unload nindy-share/[A-Z]*
e58de8a2 604 #load c-exp.tab.c m2-exp.tab.c ch-exp.tab.c
33cf356a 605 #load copying.c version.c
1e4f3c20 606 #load ../opcodes/libopcodes.a
33cf356a
SG
607 #load ../libiberty/libiberty.a
608 #load ../bfd/libbfd.a
609 #load ../readline/libreadline.a
610 #load ../mmalloc/libmmalloc.a
611 #load -ltermcap
612 #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
613 echo "Load .c corresponding to:" $(DEPFILES)
614
615
6ec7e4d3
SS
616# A Mach 3.0 program to force gdb back to command level
617
a8044a2d
PS
618stop-gdb: stop-gdb.o
619 ${CC-LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o stop-gdb \
620 stop-gdb.o $(CLIBS) $(LOADLIBES)
6ec7e4d3 621
33cf356a
SG
622# This is useful when debugging GDB, because some Unix's don't let you run GDB
623# on itself without copying the executable. So "make gdb1" will make
624# gdb and put a copy in gdb1, and you can run it with "gdb gdb1".
625# Removing gdb1 before the copy is the right thing if gdb1 is open
626# in another process.
627gdb1: gdb
628 rm -f gdb1
629 cp gdb gdb1
630
33cf356a
SG
631config.status:
632 @echo "You must configure gdb. Look at the README file for details."
633 @false
634
7ae7b919 635### fixme - this can't be right.
ef131e13
JG
636# This checks the configure.in file versus the config/ directory.
637config-check: config-check-hosts config-check-targets
638config-check-hosts:
7ae7b919 639 grep gdb_host= $(srcdir)/configure.in | \
ef131e13 640 sed -e 's/.*gdb_host=//' -e 's/ ;;$$/.mh/' | sort -u >HOSTconf.o
7ae7b919 641 (cd $(srcdir)/config; ls *.mh) >HOSTdir.o
ef131e13
JG
642 diff -u HOSTconf.o HOSTdir.o
643
7ae7b919 644### fixme - nor can this.
ef131e13 645config-check-targets:
7ae7b919 646 grep gdb_target= $(srcdir)/configure.in | \
ef131e13 647 sed -e 's/.*gdb_target=//' -e 's/ ;;$$/.mh/' | sort -u >TARGconf.o
7ae7b919 648 (cd $(srcdir)/config; ls *.mt) >TARGdir.o
ef131e13
JG
649 diff -u HOSTconf.o HOSTdir.o
650
7ae7b919 651# FIXME. These are not generated by "make depend" because they only are there
33cf356a
SG
652# for some machines.
653# But these rules don't do what we want; we want to hack the foo.o: tm.h
654# dependency to do the right thing.
2225eb85
FF
655tm-isi.h tm-sun3.h tm-news.h tm-hp300bsd.h tm-altos.h: tm-m68k.h
656tm-hp300hpux.h tm-sun2.h tm-3b1.h: tm-m68k.h
33cf356a
SG
657xm-news1000.h: xm-news.h
658xm-i386-sv32.h: xm-i386.h
659tm-i386gas.h: tm-i386.h
660xm-sun4os4.h: xm-sparc.h
661tm-sun4os4.h: tm-sparc.h
662xm-vaxult.h: xm-vax.h
663xm-vaxbsd.h: xm-vax.h
664
7ae7b919 665kdb: $(NTSSTART) $(OBS) $(NTSOBS) $(ADD_DEPS) $(CDEPS)
33cf356a
SG
666 ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \
667 -lc $(CLIBS)
668
8d57a263 669# Put the proper machine-specific files first, so M-. on a machine
f4f0d174
JK
670# specific routine gets the one for the correct machine. (FIXME: those
671# files go in twice; we should be removing them from the main list).
672
673# TAGS depends on all the files that go into it so you can rebuild TAGS
674# with `make TAGS' and not have to say `rm TAGS' first.
675
676TAGS: $(TAGFILES_NO_SRCDIR) $(TAGFILES_WITH_SRCDIR)
4901e77d 677 @echo Making TAGS
94d4b713
JK
678 @etags $(srcdir)/$(TM_FILE) \
679 $(srcdir)/$(XM_FILE) \
680 $(srcdir)/$(NAT_FILE) \
f4f0d174 681 `(for i in $(DEPFILES) $(TAGFILES_NO_SRCDIR); do \
7ae7b919 682 echo $(srcdir)/$$i ; \
f4f0d174
JK
683 done ; for i in $(TAGFILES_WITH_SRCDIR); do \
684 echo $$i ; \
c8a1505a
JK
685 done) | sed -e 's/\.o$$/\.c/'` \
686 `find $(srcdir)/config -name '*.h' -print`
7ae7b919 687
33cf356a
SG
688tags: TAGS
689
b76dcd4b 690clean mostlyclean:
4e772f44 691 @$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(SUBDIRS)" subdir_do
976bb0be 692 rm -f *.o $(ADD_FILES) *~ init.c-tmp
33cf356a 693 rm -f init.c version.c
1ded65d1 694 rm -f gdb core make.log libgdb-files
33cf356a 695 rm -f gdb[0-9]
33cf356a 696
39d4639b
JK
697# This used to depend on c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS
698# I believe this is wrong; the makefile standards for distclean just
699# describe removing files; the only sort of "re-create a distribution"
700# functionality described is if the distributed files are unmodified.
701distclean: clean
4e772f44 702 @$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(SUBDIRS)" subdir_do
39d4639b 703 rm -f nm.h tm.h xm.h config.status
fdf138bb 704 rm -f y.output yacc.acts yacc.tmp y.tab.h
7ae7b919 705 rm -f Makefile
33cf356a
SG
706
707realclean: clean
4e772f44 708 @$(MAKE) $(FLAGS_TO_PASS) DO=realclean "DODIRS=$(SUBDIRS)" subdir_do
e7b5942b
JK
709 rm -f c-exp.tab.c f-exp.tab.c m2-exp.tab.c ch-exp.tab.c
710 rm -f TAGS $(INFOFILES)
39d4639b
JK
711 rm -f nm.h tm.h xm.h config.status
712 rm -f y.output yacc.acts yacc.tmp
7ae7b919 713 rm -f Makefile
33cf356a 714
de19d1ed
FF
715diststuff: $(DISTSTUFF)
716 (cd doc; $(MAKE) $(MFLAGS) GDBvn.texi)
717 $(MAKE) $(MFLAGS) gdb.info
718 $(MAKE) $(MFLAGS) refcard.ps
719
33cf356a
SG
720subdir_do: force
721 @for i in $(DODIRS); do \
6f4a4fbb 722 if [ -f ./$$i/Makefile ] ; then \
33cf356a 723 if (cd ./$$i; \
ef131e13 724 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
33cf356a
SG
725 else exit 1 ; fi ; \
726 else true ; fi ; \
727 done
d941d8c3 728
7ae7b919
RP
729Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
730 $(SHELL) config.status
d941d8c3 731
33cf356a 732force:
d941d8c3 733
33cf356a
SG
734# Documentation!
735# GDB QUICK REFERENCE (TeX dvi file, CM fonts)
2b21d8aa 736refcard.dvi:
7ae7b919
RP
737 ( cd doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS) )
738 mv doc/refcard.dvi .
d941d8c3 739
33cf356a 740# GDB QUICK REFERENCE (PostScript output, common PS fonts)
2b21d8aa 741refcard.ps:
7ae7b919
RP
742 ( cd doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS) )
743 mv doc/refcard.ps .
d941d8c3 744
33cf356a 745# GDB MANUAL: TeX dvi file
259d1dea 746gdb.dvi:
7ae7b919
RP
747 ( cd doc; $(MAKE) gdb.dvi $(FLAGS_TO_PASS) )
748 mv doc/gdb.dvi .
d941d8c3 749
33cf356a 750# GDB MANUAL: info file
259d1dea 751gdb.info:
7ae7b919
RP
752 ( cd doc; $(MAKE) gdb.info $(FLAGS_TO_PASS) )
753 mv doc/gdb.info* .
d941d8c3 754
33cf356a 755# Make copying.c from COPYING
7ae7b919
RP
756copying.c: COPYING copying.awk
757 awk -f $(srcdir)/copying.awk < $(srcdir)/COPYING > copying.c
d941d8c3 758
33cf356a
SG
759version.c: Makefile
760 echo 'char *version = "$(VERSION)";' >version.c
a28d16d3
JK
761 echo 'char *host_name = "$(host_alias)";' >> version.c
762 echo 'char *target_name = "$(target_alias)";' >> version.c
d941d8c3 763
7ae7b919
RP
764# c-exp.tab.c is generated in objdir from c-exp.y if it doesn't exist
765# in srcdir, then compiled in objdir to c-exp.tab.o.
f3fe62b1
JK
766
767# If we said c-exp.tab.c rather than ./c-exp.tab.c some makes
768# would sometimes re-write it into $(srcdir)/c-exp.tab.c.
769
9aa44833 770# Remove bogus decls for malloc/realloc/free which conflict with everything
ef1a0540
JK
771# else. Strictly speaking c-exp.tab.c should therefore depend on
772# Makefile.in, but that was a pretty big annoyance.
33cf356a 773c-exp.tab.o: c-exp.tab.c
ef1a0540 774c-exp.tab.c: c-exp.y
7ae7b919 775 $(YACC) $(YFLAGS) $(srcdir)/c-exp.y
9aa44833
SG
776 -sed -e '/extern.*malloc/d' \
777 -e '/extern.*realloc/d' \
778 -e '/extern.*free/d' \
e58de8a2 779 -e '/include.*malloc.h/d' \
e35843d4
FF
780 -e 's/malloc/xmalloc/g' \
781 -e 's/realloc/xrealloc/g' \
39d4639b 782 < y.tab.c > c-exp.new
9aa44833 783 -rm y.tab.c
f3fe62b1 784 mv c-exp.new ./c-exp.tab.c
d941d8c3 785
e7b5942b
JK
786f-exp.tab.o: f-exp.tab.c
787f-exp.tab.c: f-exp.y c-exp.tab.c
788 $(YACC) $(YFLAGS) $(srcdir)/f-exp.y
789 -sed -e '/extern.*malloc/d' \
790 -e '/extern.*realloc/d' \
791 -e '/extern.*free/d' \
792 -e '/include.*malloc.h/d' \
793 -e 's/malloc/xmalloc/g' \
794 -e 's/realloc/xrealloc/g' \
795 < y.tab.c > f-exp.new
796 -rm y.tab.c
797 mv f-exp.new ./f-exp.tab.c
798
7ae7b919
RP
799# ch-exp.tab.c is generated in objdir from ch-exp.y if it doesn't exist
800# in srcdir, then compiled in objdir to ch-exp.tab.o.
e58de8a2
FF
801# Remove bogus decls for malloc/realloc/free which conflict with everything
802# else.
803ch-exp.tab.o: ch-exp.tab.c
e7b5942b 804# the dependency here on f-exp.tab.c is artificial. Without this
7ae7b919
RP
805# dependency, a parallel make will attempt to build both at the same
806# time and the second yacc will pollute the first y.tab.c file.
e7b5942b 807ch-exp.tab.c: ch-exp.y f-exp.tab.c
7ae7b919 808 $(YACC) $(YFLAGS) $(srcdir)/ch-exp.y
e58de8a2
FF
809 -sed -e '/extern.*malloc/d' \
810 -e '/extern.*realloc/d' \
811 -e '/extern.*free/d' \
812 -e '/include.*malloc.h/d' \
813 -e 's/malloc/xmalloc/g' \
814 -e 's/realloc/xrealloc/g' \
39d4639b 815 < y.tab.c > ch-exp.new
e58de8a2 816 -rm y.tab.c
f3fe62b1 817 mv ch-exp.new ./ch-exp.tab.c
e58de8a2 818
7ae7b919
RP
819# m2-exp.tab.c is generated in objdir from m2-exp.y if it doesn't exist
820# in srcdir, then compiled in objdir to m2-exp.tab.o.
e58de8a2
FF
821# Remove bogus decls for malloc/realloc/free which conflict with everything
822# else.
33cf356a 823m2-exp.tab.o: m2-exp.tab.c
7ae7b919
RP
824# the dependency here on ch-exp.tab.c is artificial. Without this
825# dependency, a parallel make will attempt to build both at the same
826# time and the second yacc will pollute the first y.tab.c file.
ef1a0540 827m2-exp.tab.c: m2-exp.y ch-exp.tab.c
7ae7b919 828 $(YACC) $(YFLAGS) $(srcdir)/m2-exp.y
9aa44833
SG
829 -sed -e '/extern.*malloc/d' \
830 -e '/extern.*realloc/d' \
831 -e '/extern.*free/d' \
e58de8a2 832 -e '/include.*malloc.h/d' \
e35843d4
FF
833 -e 's/malloc/xmalloc/g' \
834 -e 's/realloc/xrealloc/g' \
39d4639b 835 < y.tab.c > m2-exp.new
9aa44833 836 -rm y.tab.c
f3fe62b1 837 mv m2-exp.new ./m2-exp.tab.c
39d4639b
JK
838
839# These files are updated atomically, so make never has to remove them
e7b5942b 840.PRECIOUS: m2-exp.tab.c ch-exp.tab.c f-exp.tab.c c-exp.tab.c
d941d8c3 841
33cf356a
SG
842lint: $(LINTFILES)
843 $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \
7ae7b919 844 `echo $(DEPFILES) | sed 's/\.o /\.c /g'
d941d8c3 845
33cf356a
SG
846gdb.cxref: $(SFILES)
847 cxref -I. $(SFILES) >gdb.cxref
d941d8c3 848
33cf356a 849force_update:
d941d8c3 850
33cf356a
SG
851# GNU Make has an annoying habit of putting *all* the Makefile variables
852# into the environment, unless you include this target as a circumvention.
853# Rumor is that this will be fixed (and this target can be removed)
854# in GNU Make 4.0.
855.NOEXPORT:
d941d8c3 856
aecc5459
ILT
857# GNU Make 3.63 has a different problem: it keeps tacking command line
858# overrides onto the definition of $(MAKE). This variable setting
859# will remove them.
860MAKEOVERRIDES=
861
58bb1e76
ILT
862## This is ugly, but I don't want GNU make to put these variables in
863## the environment. Older makes will see this as a set of targets
864## with no dependencies and no actions.
865unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
58bb1e76 866
f3fe62b1 867ALLDEPFILES = 29k-share/udi/udip2soc.c 29k-share/udi/udr.c \
07919221 868 29k-share/udi/udi2go32.c \
cef4c2e7
PS
869 a29k-pinsn.c a29k-tdep.c a68v-nat.c alpha-nat.c alpha-tdep.c \
870 altos-xdep.c arm-convert.s \
a834c083 871 arm-pinsn.c arm-tdep.c arm-xdep.c coff-solib.c convex-pinsn.c \
ead291d4 872 convex-tdep.c \
256533df
PS
873 convex-xdep.c core-sol2.c core-svr4.c coredep.c corelow.c dcache.c \
874 delta68-nat.c dpx2-nat.c dstread.c exec.c fork-child.c \
7ae7b919
RP
875 go32-xdep.c gould-pinsn.c gould-xdep.c h8300-tdep.c h8500-tdep.c \
876 hp300ux-nat.c hppa-pinsn.c hppa-tdep.c hppab-nat.c hppah-nat.c \
736a82e7 877 hpread.c \
7ae7b919 878 i386-pinsn.c i386-tdep.c i386b-nat.c i386mach-nat.c i386v-nat.c \
f4f0d174 879 i386aix-nat.c i386m3-nat.c i386v4-nat.c i386ly-tdep.c \
5d76c8e6 880 i387-tdep.c \
ead291d4 881 i960-pinsn.c i960-tdep.c \
07919221 882 infptrace.c inftarg.c irix4-nat.c irix5-nat.c isi-xdep.c \
f4f0d174
JK
883 lynx-nat.c m3-nat.c \
884 m68k-pinsn.c m68k-tdep.c \
7ae7b919 885 m88k-nat.c m88k-pinsn.c m88k-tdep.c mips-nat.c mips-pinsn.c \
1c95d7ab 886 mips-tdep.c mipsm3-nat.c mipsv4-nat.c news-xdep.c \
5d76c8e6 887 nindy-share/Onindy.c nindy-share/nindy.c \
9b311b22 888 nindy-share/ttyflush.c nindy-tdep.c \
5d76c8e6 889 ns32k-pinsn.c ns32km3-nat.c osfsolib.c \
d360e1e0
PS
890 somread.c somsolib.c $(HPREAD_SOURCE) \
891 procfs.c pyr-pinsn.c pyr-tdep.c pyr-xdep.c \
07919221 892 remote-adapt.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c \
5d76c8e6 893 remote-hms.c remote-mips.c \
25200748 894 remote-mm.c remote-mon.c remote-nindy.c remote-os9k.c remote-sim.c \
c6f494e8 895 remote-st.c remote-utils.c dcache.c \
7ae7b919
RP
896 remote-udi.c remote-vx.c remote-z8k.c rs6000-nat.c rs6000-pinsn.c \
897 rs6000-tdep.c ser-go32.c ser-tcp.c sh-tdep.c solib.c sparc-nat.c \
1782eb41 898 sparc-pinsn.c sparc-tdep.c sparcl-tdep.c sun3-nat.c sun386-nat.c \
3fd4045f
JK
899 symm-tdep.c symm-nat.c \
900 tahoe-pinsn.c ultra3-nat.c ultra3-xdep.c umax-xdep.c \
5d76c8e6
JK
901 vax-pinsn.c \
902 vx-share/xdr_ld.c vx-share/xdr_ptrace.c vx-share/xdr_rdb.c \
e7b5942b 903 xcoffread.c xcoffsolib.c z8k-tdep.c
7ae7b919 904
7ae7b919
RP
905ALLCONFIG = config/a29k/a29k-kern.mt config/a29k/a29k-udi.mt \
906 config/a29k/a29k.mt config/a29k/ultra3.mh config/a29k/ultra3.mt \
cef4c2e7 907 config/alpha/alpha-osf1.mh config/alpha/alpha-osf1.mt \
07919221 908 config/alpha/alpha-nw.mt \
7ae7b919
RP
909 config/arm/arm.mh config/arm/arm.mt config/convex/convex.mh \
910 config/convex/convex.mt config/gould/np1.mh config/gould/np1.mt \
911 config/gould/pn.mh config/gould/pn.mt config/h8300/h8300hms.mt \
912 config/h8500/h8500hms.mt config/i386/go32.mh config/i386/i386aix.mh \
913 config/i386/i386aix.mt config/i386/i386aout.mt config/i386/i386bsd.mh \
5069d770 914 config/i386/i386bsd.mt config/i386/i386lynx.mh \
ed89c3d9
FF
915 config/i386/i386lynx.mt config/i386/i386m3.mh config/i386/i386m3.mt \
916 config/i386/i386mach.mh config/i386/i386mk.mh config/i386/i386mk.mt \
917 config/i386/i386nw.mt config/i386/i386sco.mh \
5069d770 918 config/i386/i386sco4.mh \
7ae7b919
RP
919 config/i386/i386sol2.mh config/i386/i386sol2.mt config/i386/i386v.mh \
920 config/i386/i386v.mt config/i386/i386v32.mh config/i386/i386v4.mh \
921 config/i386/i386v4.mt config/i386/linux.mh config/i386/linux.mt \
6879f0db
FF
922 config/i386/ncr3000.mh config/i386/ncr3000.mt config/i386/ptx.mh \
923 config/i386/sun386.mh \
7ae7b919
RP
924 config/i386/sun386.mt config/i386/symmetry.mh config/i386/symmetry.mt \
925 config/i960/nindy960.mt config/i960/vxworks960.mt config/m68k/3b1.mh \
926 config/m68k/3b1.mt config/m68k/altos.mh config/m68k/altos.mt \
927 config/m68k/amix.mh config/m68k/amix.mt config/m68k/apollo68b.mh \
07919221 928 config/m68k/apollo68b.mt \
1c95d7ab
JK
929 config/m68k/apollo68v.mh \
930 config/m68k/cisco.mt config/m68k/delta68.mh \
5069d770
FF
931 config/m68k/delta68.mt config/m68k/dpx2.mh config/m68k/dpx2.mt \
932 config/m68k/es1800.mt config/m68k/hp300bsd.mh \
7ae7b919
RP
933 config/m68k/hp300bsd.mt config/m68k/hp300hpux.mh \
934 config/m68k/hp300hpux.mt config/m68k/isi.mh config/m68k/isi.mt \
3fd4045f 935 config/m68k/m68klynx.mh config/m68k/m68klynx.mt \
5069d770 936 config/m68k/monitor.mt \
7ae7b919
RP
937 config/m68k/news.mh config/m68k/news.mt config/m68k/news1000.mh \
938 config/m68k/os68k.mt config/m68k/st2000.mt config/m68k/sun2os3.mh \
939 config/m68k/sun2os3.mt config/m68k/sun2os4.mh config/m68k/sun2os4.mt \
940 config/m68k/sun3os3.mh config/m68k/sun3os3.mt config/m68k/sun3os4.mh \
941 config/m68k/sun3os4.mt config/m68k/vxworks68.mt config/m88k/delta88.mh \
0ac1a039
FF
942 config/m88k/delta88.mt config/m88k/delta88v4.mh \
943 config/m88k/delta88v4.mt config/m88k/m88k.mh config/m88k/m88k.mt \
662f3b3f
JK
944 config/mips/bigmips.mt config/mips/bigmips64.mt \
945 config/mips/decstation.mh \
7ae7b919 946 config/mips/decstation.mt config/mips/idt.mt config/mips/idtl.mt \
662f3b3f 947 config/mips/idt64.mt config/mips/idtl64.mt \
7ae7b919 948 config/mips/irix3.mh config/mips/irix3.mt config/mips/irix4.mh \
07919221 949 config/mips/irix5.mh config/mips/irix5.mt \
7ae7b919 950 config/mips/littlemips.mh config/mips/littlemips.mt \
662f3b3f 951 config/mips/mipsel64.mt \
ed89c3d9 952 config/mips/mipsm3.mh config/mips/mipsm3.mt \
1c95d7ab 953 config/mips/mipsv4.mh config/mips/mipsv4.mt \
5069d770 954 config/mips/news-mips.mh config/mips/riscos.mh \
7ae7b919 955 config/none/none.mh config/none/none.mt config/ns32k/merlin.mh \
ed89c3d9
FF
956 config/ns32k/merlin.mt config/ns32k/ns32km3.mh config/ns32k/ns32km3.mt \
957 config/ns32k/umax.mh config/ns32k/umax.mt \
7ae7b919
RP
958 config/pa/hppabsd.mh config/pa/hppabsd.mt config/pa/hppahpux.mh \
959 config/pa/hppahpux.mt config/pyr/pyramid.mh config/pyr/pyramid.mt \
960 config/romp/rtbsd.mh config/rs6000/rs6000.mh config/rs6000/rs6000.mt \
961 config/sh/sh.mt config/sparc/sparc-em.mt config/sparc/sparclite.mt \
3fd4045f 962 config/sparc/sparclynx.mh config/sparc/sparclynx.mt \
7ae7b919
RP
963 config/sparc/sun4os4.mh config/sparc/sun4os4.mt \
964 config/sparc/sun4sol2.mh config/sparc/sun4sol2.mt \
965 config/sparc/vxsparc.mt config/tahoe/tahoe.mh config/tahoe/tahoe.mt \
966 config/vax/vax.mt config/vax/vaxbsd.mh config/vax/vaxult.mh \
967 config/vax/vaxult2.mh config/z8k/z8ksim.mt
968
969
36b1d528 970udip2soc.o: $(srcdir)/29k-share/udi/udip2soc.c $(udiheaders)
7ae7b919
RP
971 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udip2soc.c
972
021a5c6b
JK
973udi2go32.o: $(srcdir)/29k-share/udi/udi2go32.c $(udiheaders)
974 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udi2go32.c
975
36b1d528 976udr.o: $(srcdir)/29k-share/udi/udr.c $(udiheaders)
7ae7b919
RP
977 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udr.c
978
979a29k-pinsn.o: a29k-pinsn.c $(bfd_h) $(dis-asm_h)
899931b6 980a29k-tdep.o: a29k-tdep.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h)
7ae7b919 981a68v-nat.o: a68v-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
cef4c2e7
PS
982
983alpha-nat.o: alpha-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
984
985alpha-tdep.o: alpha-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
986 $(inferior_h) $(symtab_h) $(dis-asm.h)
987
7ae7b919 988altos-xdep.o: altos-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
8aa8690c
FF
989
990annotate.o: annotate.c $(defs_h) annotate.h $(value_h) target.h $(gdbtypes_h)
991
7ae7b919
RP
992arm-pinsn.o: arm-pinsn.c $(OP_INCLUDE)/arm.h $(defs_h) $(symtab_h)
993
994blockframe.o: blockframe.c $(defs_h) $(gdbcore_h) $(inferior_h) \
995 objfiles.h symfile.h target.h
996
997breakpoint.o: breakpoint.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
dfbb7762 998 $(inferior_h) language.h target.h thread.h
7ae7b919
RP
999
1000buildsym.o: buildsym.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1001 objfiles.h symfile.h $(symtab_h)
1002
1003c-lang.o: c-lang.c c-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
1004 language.h parser-defs.h $(symtab_h)
1005
1006c-typeprint.o: c-typeprint.c c-lang.h $(defs_h) $(expression_h) \
1007 $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
1008 typeprint.h $(value_h)
1009
1010c-valprint.o: c-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1011 language.h $(symtab_h) valprint.h $(value_h)
1012
e7b5942b
JK
1013f-lang.o: f-lang.c f-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
1014 language.h parser-defs.h $(symtab_h)
1015
1016f-typeprint.o: f-typeprint.c f-lang.h $(defs_h) $(expression_h) \
1017 $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
1018 typeprint.h $(value_h)
1019
1020f-valprint.o: f-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1021 language.h $(symtab_h) valprint.h $(value_h)
1022
7ae7b919
RP
1023ch-lang.o: ch-lang.c ch-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
1024 language.h parser-defs.h $(symtab_h)
1025
1026ch-typeprint.o: ch-typeprint.c ch-lang.h $(defs_h) $(expression_h) \
b8615fae
JK
1027 $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) \
1028 target.h $(value_h) typeprint.h
7ae7b919
RP
1029
1030ch-valprint.o: ch-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
b8615fae 1031 language.h $(symtab_h) valprint.h $(value_h) c-lang.h
7ae7b919 1032
ead291d4
SG
1033coff-solib.o: coff-solib.c $(defs_h)
1034
7ae7b919
RP
1035coffread.o: coffread.c $(bfd_h) $(breakpoint_h) buildsym.h \
1036 complaints.h $(defs_h) $(expression_h) $(gdbtypes_h) objfiles.h \
b4b5c9e9 1037 symfile.h $(symtab_h) gdb-stabs.h stabsread.h target.h
7ae7b919
RP
1038
1039command.o: command.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1040 $(gdbtypes_h) $(symtab_h) $(value_h)
1041
1042complaints.o: complaints.c complaints.h $(defs_h) $(gdbcmd_h)
1043
1044convex-pinsn.o: convex-pinsn.c $(OP_INCLUDE)/convex.h $(defs_h) \
1045 $(symtab_h)
1046
1047convex-tdep.o: convex-tdep.c $(wait_h) $(defs_h) $(gdbcmd_h) \
1048 $(gdbcore_h) $(inferior_h)
1049
1050convex-xdep.o: convex-xdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1051 $(inferior_h)
1052
d360e1e0
PS
1053copying.o: copying.c $(defs_h) $(gdbcmd_h)
1054
256533df
PS
1055core-sol2.o: core-sol2.c $(command_h) $(defs_h) $(gdbcore_h) \
1056 $(inferior_h) target.h
1057
7ae7b919
RP
1058core-svr4.o: core-svr4.c $(command_h) $(defs_h) $(gdbcore_h) \
1059 $(inferior_h) target.h
1060
1061core.o: core.c $(dis-asm_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
b8615fae 1062 $(inferior_h) target.h language.h
7ae7b919 1063
7de5c5e2 1064coredep.o: coredep.c $(defs_h) $(gdbcore_h) $(value_h) $(inferior_h)
7ae7b919
RP
1065
1066corelow.o: corelow.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
b8615fae 1067 target.h thread.h
7ae7b919
RP
1068
1069cp-valprint.o: cp-valprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1070 $(gdbtypes_h) $(symtab_h) $(value_h)
1071
d360e1e0 1072dcache.o: dcache.c $(dcache_h) $(defs_h) $(gdbcmd_h)
755892d6 1073
7ae7b919
RP
1074dbxread.o: dbxread.c $(breakpoint_h) buildsym.h $(command_h) \
1075 complaints.h $(defs_h) $(expression_h) gdb-stabs.h $(gdbcore_h) \
1076 $(gdbtypes_h) language.h objfiles.h partial-stab.h stabsread.h \
1077 symfile.h $(symtab_h) target.h
1078
68f49dae
FF
1079delta68-nat.o: delta68-nat.c $(defs_h)
1080
7ae7b919
RP
1081demangle.o: demangle.c $(defs_h) $(gdbcmd_h)
1082
d360e1e0
PS
1083dpx2-nat.o: dpx2-nat.c $(defs_h) $(gdbcore_h)
1084
7ae7b919
RP
1085dwarfread.o: dwarfread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1086 $(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
1087 $(symtab_h)
1088
1089elfread.o: elfread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1090 gdb-stabs.h objfiles.h symfile.h $(symtab_h)
1091
b8615fae 1092environ.o: environ.c $(defs_h) environ.h $(gdbcore_h)
7ae7b919
RP
1093
1094eval.o: eval.c $(bfd_h) $(defs_h) $(expression_h) $(frame_h) \
1095 $(gdbtypes_h) language.h $(symtab_h) target.h $(value_h)
1096
1097exec.o: exec.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
b8615fae 1098 target.h language.h
7ae7b919
RP
1099
1100expprint.o: expprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1101 language.h parser-defs.h $(symtab_h) $(value_h)
1102
1103findvar.o: findvar.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
1104
1105fork-child.o: fork-child.c $(wait_h) $(defs_h) $(gdbcore_h) \
b8615fae 1106 $(inferior_h) target.h terminal.h thread.h
7ae7b919 1107
d3d75ec9 1108# start-sanitize-gdbtk
754e5da2
SG
1109gdbtk.o: gdbtk.c $(defs_h) $(symtab_h) $(inferior_h) $(command_h) \
1110 $(bfd_h) symfile.h objfiles.h target.h
cd2df226 1111 $(CC) -c $(INTERNAL_CFLAGS) $(TCL_CFLAGS) $(TK_CFLAGS) $(srcdir)/gdbtk.c \
754e5da2 1112 -DGDBTK_FILENAME=\"$(libdir)/gdbtk.tcl\"
d3d75ec9 1113# end-sanitize-gdbtk
754e5da2 1114
7ae7b919
RP
1115gdbtypes.o: gdbtypes.c $(bfd_h) complaints.h $(defs_h) $(expression_h) \
1116 $(gdbtypes_h) language.h objfiles.h symfile.h $(symtab_h) target.h \
1117 $(value_h)
1118
1119go32-xdep.o: go32-xdep.c
1120
1121gould-pinsn.o: gould-pinsn.c $(OP_INCLUDE)/np1.h $(defs_h) $(frame_h) \
1122 $(gdbcore_h) $(symtab_h)
1123
1124gould-xdep.o: gould-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1125h8300-tdep.o: h8300-tdep.c $(defs_h) $(frame_h) $(symtab_h)
1126
1127h8500-tdep.o: h8500-tdep.c $(bfd_h) $(dis-asm_h) $(defs_h) \
1128 $(expression_h) $(frame_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) \
1129 $(value_h)
1130
1131hp300ux-nat.o: hp300ux-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1132hppa-pinsn.o: hppa-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h)
1133
1134hppa-tdep.o: hppa-tdep.c $(wait_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1135 $(inferior_h) objfiles.h symfile.h target.h
1136
1137hppab-nat.o: hppab-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
1138hppah-nat.o: hppah-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
d360e1e0 1139
7ae7b919
RP
1140i386-pinsn.o: i386-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h)
1141i386-tdep.o: i386-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
d360e1e0
PS
1142i386aix-nat.o: i386aix-nat.c $(defs_h) $(frame_h) $(inferior_h) \
1143 language.h $(gdbcore_h) $(floatformat_h) target.h
7ae7b919 1144i386b-nat.o: i386b-nat.c $(defs_h)
3fd4045f 1145i386ly-nat.o: i386ly-nat.c $(defs_h) $(frame_h) $(inferior_h) target.h
cef4c2e7 1146i386ly-tdep.o: i386ly-tdep.c $(defs_h) $(inferior_h) target.h
d360e1e0 1147i386m3-nat.o: i386m3-nat.c $(defs_h) $(inferior_h) $(floatformat_h) target.h
7ae7b919
RP
1148i386mach-nat.o: i386mach-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1149
5fa83062 1150i386v-nat.o: i386v-nat.c $(floatformat_h) $(defs_h) $(gdbcore_h) \
7ae7b919
RP
1151 $(inferior_h) language.h target.h
1152
1153i386v4-nat.o: i386v4-nat.c $(defs_h)
1154
5fa83062 1155i387-tdep.o: i387-tdep.c $(floatformat_h) $(defs_h) $(gdbcore_h) \
7ae7b919
RP
1156 $(inferior_h) language.h
1157
1158i960-pinsn.o: i960-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h)
1159
5fa83062 1160i960-tdep.o: i960-tdep.c $(floatformat_h) $(defs_h) $(expression_h) \
7ae7b919
RP
1161 $(frame_h) $(gdbtypes_h) $(symtab_h) $(value_h)
1162
1163infcmd.o: infcmd.c $(defs_h) environ.h $(gdbcmd_h) $(gdbcore_h) \
b8615fae 1164 $(inferior_h) target.h language.h
7ae7b919
RP
1165
1166inflow.o: inflow.c $(bfd_h) $(command_h) $(defs_h) $(inferior_h) \
b8615fae 1167 signals.h target.h terminal.h thread.h
7ae7b919
RP
1168
1169infptrace.o: infptrace.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
1170
1171infrun.o: infrun.c $(wait_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
b8615fae 1172 $(inferior_h) target.h thread.h
7ae7b919
RP
1173
1174inftarg.o: inftarg.c $(wait_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
b8615fae 1175 target.h terminal.h $(command_h)
7ae7b919
RP
1176
1177irix4-nat.o: irix4-nat.c $(defs_h) $(inferior_h)
d360e1e0
PS
1178irix5-nat.o: irix5-nat.c $(defs_h) $(inferior_h) $(gdbcore_h) target.h \
1179 $(symtab_h) symfile.h objfiles.h $(command_h) $(frame_h) regex.h \
1180 language.h
7ae7b919
RP
1181isi-xdep.o: isi-xdep.c
1182
1183language.o: language.c $(bfd_h) $(defs_h) $(expression_h) $(frame_h) \
1184 $(gdbcmd_h) $(gdbtypes_h) language.h parser-defs.h $(symtab_h) \
1185 target.h $(value_h)
1186
d360e1e0
PS
1187lynx-nat.o: lynx-nat.c $(defs_h) $(frame_h) $(inferior_h) target.h
1188
7ae7b919
RP
1189m2-lang.o: m2-lang.c $(defs_h) $(expression_h) $(gdbtypes_h) \
1190 language.h m2-lang.h parser-defs.h $(symtab_h)
1191
1192m2-typeprint.o: m2-typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1193 $(gdbcore_h) $(gdbtypes_h) language.h m2-lang.h $(symtab_h) target.h \
1194 $(value_h)
1195
1196m2-valprint.o: m2-valprint.c $(defs_h) $(gdbtypes_h) $(symtab_h) \
1197 valprint.h
1198
d360e1e0
PS
1199m3-nat.o: m3-nat.c $(defs_h) $(inferior_h) $(value_h) language.h target.h \
1200 $(wait_h) $(gdbcmd_h) $(gdbcore_h)
1201
7ae7b919
RP
1202m68k-pinsn.o: m68k-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h)
1203m68k-tdep.o: m68k-tdep.c $(defs_h) $(frame_h) $(symtab_h)
3fd4045f 1204m68kly-nat.o: m68kly-nat.c $(defs_h) $(frame_h) $(inferior_h) target.h
7ae7b919
RP
1205m88k-nat.o: m88k-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1206m88k-pinsn.o: m88k-pinsn.c $(defs_h) $(symtab_h)
1207m88k-tdep.o: m88k-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1208
172559ec 1209top.o: top.c top.h $(bfd_h) $(getopt_h) $(readline_headers) call-cmds.h \
c6f494e8 1210 $(defs_h) $(gdbcmd_h) $(inferior_h) language.h signals.h \
b70b042d 1211 $(remote_utils_h)
172559ec
JK
1212
1213main.o: main.c top.h $(defs_h)
7ae7b919 1214
b8615fae
JK
1215maint.o: maint.c $(defs_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) language.h \
1216 $(expression_h)
1217
f4f0d174
JK
1218mdebugread.o: mdebugread.c buildsym.h complaints.h $(bfd_h) $(defs_h) \
1219 $(expression_h) gdb-stabs.h $(gdbcore_h) $(gdbtypes_h) language.h \
1220 objfiles.h partial-stab.h stabsread.h symfile.h $(symtab_h)
1221
d360e1e0
PS
1222mipsm3-nat.o: mipsm3-nat.c $(defs_h) $(inferior_h)
1223
1224os9kread.o: os9kread.c buildsym.h complaints.h $(bfd_h) $(defs_h) \
1340861c 1225 $(expression_h) gdb-stabs.h $(gdbcore_h) $(gdbtypes_h) language.h \
d360e1e0 1226 objfiles.h partial-stab.h stabsread.h symfile.h $(symtab_h) target.h
1340861c 1227
7ae7b919
RP
1228mem-break.o: mem-break.c $(defs_h)
1229
1230minsyms.o: minsyms.c $(bfd_h) $(defs_h) objfiles.h symfile.h \
1231 $(symtab_h)
1232
1233mips-nat.o: mips-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1234mips-pinsn.o: mips-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h)
1235
1236mips-tdep.o: mips-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
1237 $(inferior_h) language.h objfiles.h symfile.h
1238
bf660885 1239mipsread.o: mipsread.c buildsym.h complaints.h $(bfd_h) $(defs_h) \
7ae7b919
RP
1240 $(expression_h) gdb-stabs.h $(gdbcore_h) $(gdbtypes_h) language.h \
1241 objfiles.h partial-stab.h stabsread.h symfile.h $(symtab_h)
1242
1c95d7ab
JK
1243mipsv4-nat.o: mipsv4-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
1244
7ae7b919
RP
1245news-xdep.o: news-xdep.c
1246
1247Onindy.o: nindy-share/Onindy.c $(wait_h) nindy-share/block_io.h \
9b311b22 1248 nindy-share/env.h
7ae7b919
RP
1249 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/Onindy.c
1250
1251nindy.o: nindy-share/nindy.c $(wait_h) nindy-share/block_io.h \
9b311b22 1252 nindy-share/env.h
7ae7b919
RP
1253 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/nindy.c
1254
db85f523 1255nlmread.o: nlmread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
6a6fe3db 1256 gdb-stabs.h objfiles.h symfile.h $(symtab_h) stabsread.h
db85f523 1257
d360e1e0
PS
1258ns32km3-nat.o: ns32km3-nat.c $(defs_h) $(inferior_h)
1259
9b311b22 1260ttyflush.o: nindy-share/ttyflush.c
7ae7b919
RP
1261 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/ttyflush.c
1262
1263nindy-tdep.o: nindy-tdep.c $(defs_h) $(frame_h) $(symtab_h)
1264
e7b5942b 1265ns32k-pinsn.o: ns32k-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h)
7ae7b919
RP
1266
1267objfiles.o: objfiles.c $(bfd_h) $(defs_h) objfiles.h symfile.h \
1268 $(symtab_h)
1269
cef4c2e7
PS
1270osfsolib.o: osfsolib.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1271 objfiles.h regex.h symfile.h target.h language.h
1272
0f221a69 1273somread.o: somread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
7ae7b919
RP
1274 gdb-stabs.h objfiles.h symfile.h $(symtab_h)
1275
d360e1e0
PS
1276somsolib.o: somsolib.c $(defs_h)
1277
98c0e047
JL
1278hpread.o: hpread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
1279 gdb-stabs.h objfiles.h symfile.h $(symtab_h)
98c0e047 1280
7ae7b919
RP
1281parse.o: parse.c $(command_h) $(defs_h) $(expression_h) $(frame_h) \
1282 $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h)
1283
1284printcmd.o: printcmd.c $(breakpoint_h) $(defs_h) $(expression_h) \
1285 $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
1286 $(symtab_h) target.h
1287
1288procfs.o: procfs.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1289 target.h
1290
7ae7b919
RP
1291pyr-pinsn.o: pyr-pinsn.c $(OP_INCLUDE)/pyr.h $(defs_h) $(gdbcore_h) \
1292 $(symtab_h)
1293
1294pyr-tdep.o: pyr-tdep.c $(defs_h)
1295pyr-xdep.o: pyr-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1296
d360e1e0 1297regex.o: regex.c regex.h $(defs_h)
51b4195f 1298
7ae7b919
RP
1299remote-adapt.o: remote-adapt.c $(wait_h) $(defs_h) $(gdbcore_h) \
1300 $(inferior_h) target.h terminal.h
1301
a06f0c9f 1302remote-bug.o: remote-bug.c $(wait_h) $(defs_h) $(gdbcore_h) \
c6f494e8 1303 $(inferior_h) target.h terminal.h $(remote_utils_h)
a06f0c9f 1304
d360e1e0
PS
1305remote-e7000.o: remote-e7000.c $(defs_h) $(gdbcore_h) target.h \
1306 $(wait_h) serial.h
1307
7ae7b919
RP
1308remote-eb.o: remote-eb.c $(wait_h) $(srcdir)/config/a29k/tm-a29k.h \
1309 $(defs_h) $(gdbcore_h) $(inferior_h) symfile.h target.h terminal.h
1310
1311remote-es.o: remote-es.c $(bfd_h) $(wait_h) $(command_h) $(defs_h) \
b70b042d 1312 $(inferior_h) $(remote_utils_h) terminal.h
7ae7b919
RP
1313
1314remote-hms.o: remote-hms.c $(wait_h) $(defs_h) $(gdbcore_h) \
1315 $(inferior_h) serial.h target.h terminal.h
1316
1317remote-mips.o: remote-mips.c $(wait_h) $(defs_h) $(gdbcmd_h) \
1318 $(gdbcore_h) $(inferior_h) serial.h symfile.h target.h
1319
1320remote-mm.o: remote-mm.c $(bfd_h) $(wait_h) $(defs_h) $(inferior_h) \
1321 minimon.h target.h terminal.h
1322
c033ec17 1323remote-mon.o: remote-mon.c $(wait_h) $(command_h) $(defs_h) \
7ae7b919
RP
1324 $(gdbcore_h) monitor.h serial.h target.h
1325
5fa83062 1326remote-nindy.o: remote-nindy.c $(floatformat_h) $(wait_h) $(command_h) \
9b311b22 1327 $(defs_h) $(gdbcore_h) $(inferior_h) \
b70b042d
RP
1328 nindy-share/env.h nindy-share/stop.h $(remote_utils_h) \
1329 symfile.h
7ae7b919 1330
d360e1e0
PS
1331remote-os9k.o: remote-os9k.c $(defs_h) $(gdbcore_h) $(wait_h) \
1332 $(command_h) monitor.h $(remote_utils_h) $(symtab_h) symfile.h \
1333 objfiles.h gdb-stabs.h
1334
7ae7b919
RP
1335remote-sim.o: remote-sim.c $(wait_h) $(defs_h) $(gdbcore_h) \
1336 $(inferior_h) target.h terminal.h
1337
1338remote-st.o: remote-st.c $(wait_h) $(defs_h) $(gdbcore_h) serial.h \
1339 target.h
1340
1341remote-udi.o: remote-udi.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
1342 $(inferior_h) target.h terminal.h $(udiheaders)
1343
1344remote-vx.o: remote-vx.c $(wait_h) complaints.h $(defs_h) $(gdbcmd_h) \
1345 $(gdbcore_h) $(inferior_h) target.h vx-share/dbgRpcLib.h \
1346 vx-share/ptrace.h vx-share/xdr_ld.h vx-share/xdr_ptrace.h \
b4b5c9e9 1347 vx-share/xdr_rdb.h gdb-stabs.h objfiles.h symfile.h $(bfd_h)
7ae7b919
RP
1348
1349remote-z8k.o: remote-z8k.c $(wait_h) $(srcdir)/../sim/z8k/sim.h \
1350 $(defs_h) $(gdbcore_h) $(inferior_h) target.h terminal.h
1351
b70b042d 1352remote-utils.o: remote-utils.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
94d4b713 1353 $(inferior_h) $(remote_utils_h)
b70b042d 1354
7ae7b919 1355remote.o: remote.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
b70b042d 1356 $(inferior_h) $(remote_utils_h) symfile.h terminal.h
7ae7b919
RP
1357
1358rs6000-nat.o: rs6000-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
1359
1360rs6000-pinsn.o: rs6000-pinsn.c $(OP_INCLUDE)/rs6k.h $(defs_h)
1361
1362rs6000-tdep.o: rs6000-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \
1363 target.h xcoffsolib.h
1364
1365ser-go32.o: ser-go32.c $(defs_h) serial.h
1366ser-tcp.o: ser-tcp.c $(defs_h) serial.h signals.h
1367ser-unix.o: ser-unix.c $(defs_h) serial.h
1368serial.o: serial.c $(defs_h) serial.h
1369
1370sh-tdep.o: sh-tdep.c $(bfd_h) $(dis-asm_h) \
1371 $(srcdir)/../opcodes/sh-opc.h $(defs_h) $(expression_h) $(frame_h) \
1372 $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) $(value_h)
1373
1374solib.o: solib.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
1375 objfiles.h regex.h symfile.h target.h
1376
1377source.o: source.c $(defs_h) $(expression_h) $(frame_h) $(gdbcmd_h) \
1378 $(gdbcore_h) language.h objfiles.h regex.h symfile.h $(symtab_h)
1379
1380sparc-nat.o: sparc-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
1381sparc-pinsn.o: sparc-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h)
1382
5fa83062 1383sparc-tdep.o: sparc-tdep.c $(floatformat_h) $(defs_h) $(gdbcore_h) \
7ae7b919
RP
1384 $(inferior_h) objfiles.h symfile.h target.h
1385
1782eb41
KH
1386sparcl-tdep.o: sparcl-tdep.c $(defs_h) $(gdbcore_h) target.h
1387
7ae7b919
RP
1388stabsread.o: stabsread.c $(bfd_h) $(INCLUDE_DIR)/aout/stab.def \
1389 $(INCLUDE_DIR)/aout/stab_gnu.h buildsym.h complaints.h $(defs_h) \
1390 $(gdbtypes_h) objfiles.h stabsread.h symfile.h $(symtab_h)
1391
1392stack.o: stack.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
1393 language.h target.h
1394
1395sun3-nat.o: sun3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
1396sun386-nat.o: sun386-nat.c $(defs_h) $(inferior_h) $(gdbcore_h)
1397
1398symfile.o: symfile.c $(breakpoint_h) complaints.h $(defs_h) \
1399 $(expression_h) $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) \
1400 language.h objfiles.h symfile.h $(symtab_h) target.h
1401
1402symm-tdep.o: symm-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
56eec3c7 1403symm-nat.o: symm-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
b8774958 1404
7ae7b919
RP
1405symmisc.o: symmisc.c $(bfd_h) $(breakpoint_h) $(command_h) $(defs_h) \
1406 $(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
1407 $(symtab_h)
1408
1409symtab.o: symtab.c call-cmds.h $(defs_h) $(expression_h) $(frame_h) \
1410 $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h objfiles.h \
1411 regex.h symfile.h $(symtab_h) target.h $(value_h)
1412
1413tahoe-pinsn.o: tahoe-pinsn.c $(OP_INCLUDE)/tahoe.h $(defs_h) \
1414 $(symtab_h)
1415
1416target.o: target.c $(bfd_h) $(defs_h) $(gdbcmd_h) $(inferior_h) \
1417 objfiles.h symfile.h target.h
1418
89ce0c8f 1419thread.o: thread.c $(defs_h) thread.h $(gdbcmd_h)
25286543 1420
7ae7b919
RP
1421typeprint.o: typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1422 $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
1423 $(value_h)
1424
1425ultra3-nat.o: ultra3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
98d82489
FF
1426ultra3-xdep.o: ultra3-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
1427umax-xdep.o: umax-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
7ae7b919
RP
1428
1429utils.o: utils.c $(bfd_h) $(defs_h) $(expression_h) $(gdbcmd_h) \
94d4b713 1430 language.h signals.h target.h terminal.h $(readline_headers)
7ae7b919
RP
1431
1432valarith.o: valarith.c $(bfd_h) $(defs_h) $(expression_h) \
1433 $(gdbtypes_h) language.h $(symtab_h) target.h $(value_h)
b8774958 1434
7ae7b919 1435valops.o: valops.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
b8774958 1436
7ae7b919
RP
1437valprint.o: valprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
1438 $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
1439 $(value_h)
1440
1441values.o: values.c $(defs_h) $(expression_h) $(frame_h) $(gdbcmd_h) \
1442 $(gdbcore_h) $(gdbtypes_h) $(symtab_h) target.h $(value_h)
1443
1444vax-pinsn.o: vax-pinsn.c $(OP_INCLUDE)/vax.h $(defs_h) $(symtab_h)
1445
1446xdr_ld.o: vx-share/xdr_ld.c $(defs_h) vx-share/vxTypes.h \
1447 vx-share/vxWorks.h vx-share/xdr_ld.h
1448 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_ld.c
1449
1450xdr_ptrace.o: vx-share/xdr_ptrace.c $(defs_h) vx-share/vxTypes.h \
1451 vx-share/vxWorks.h vx-share/xdr_ptrace.h
1452 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_ptrace.c
1453
1454xdr_rdb.o: vx-share/xdr_rdb.c $(defs_h) vx-share/vxTypes.h \
1455 vx-share/vxWorks.h vx-share/xdr_rdb.h
1456 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_rdb.c
1457
7ae7b919
RP
1458xcoffread.o: xcoffread.c $(bfd_h) $(INCLUDE_DIR)/aout/stab.def \
1459 $(INCLUDE_DIR)/aout/stab_gnu.h $(INCLUDE_DIR)/coff/internal.h \
1460 $(INCLUDE_DIR)/coff/rs6000.h $(BFD_SRC)/libcoff.h buildsym.h \
1461 complaints.h $(defs_h) $(gdbtypes_h) objfiles.h stabsread.h symfile.h \
1462 $(symtab_h)
1463
1464xcoffsolib.o: xcoffsolib.c $(bfd_h) $(defs_h) xcoffsolib.h
1465
1466z8k-tdep.o: z8k-tdep.c $(bfd_h) $(dis-asm_h) $(defs_h) $(frame_h) \
1467 $(gdbcmd_h) $(gdbtypes_h) $(symtab_h)
1468
1469c-exp.tab.o: c-exp.tab.c c-lang.h $(defs_h) $(expression_h) \
b8615fae
JK
1470 $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h) \
1471 $(bfd_h) objfiles.h symfile.h
7ae7b919
RP
1472
1473ch-exp.tab.o: ch-exp.tab.c ch-lang.h $(defs_h) $(expression_h) \
b8615fae
JK
1474 $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h) \
1475 $(bfd_h) objfiles.h symfile.h
7ae7b919 1476
d360e1e0
PS
1477f-exp.tab.o: f-exp.tab.c f-lang.h $(defs_h) $(expression_h) \
1478 language.h parser-defs.h $(value_h) $(bfd_h) objfiles.h symfile.h
1479
7ae7b919 1480m2-exp.tab.o: m2-exp.tab.c $(defs_h) $(expression_h) $(gdbtypes_h) \
b8615fae
JK
1481 language.h m2-lang.h parser-defs.h $(symtab_h) $(value_h) \
1482 $(bfd_h) objfiles.h symfile.h
7ae7b919
RP
1483
1484### end of the gdb Makefile.in.
This page took 0.26196 seconds and 4 git commands to generate.