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