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