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