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