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