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