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