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