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