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