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