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