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