]>
Commit | Line | Data |
---|---|---|
62e859f0 | 1 | #Copyright 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc. |
33cf356a SG |
2 | |
3 | # This file is part of GDB. | |
4 | ||
5 | # This program is free software; you can redistribute it and/or modify | |
3e5afc2c RP |
6 | # it under the terms of the GNU General Public License as published by |
7 | # the Free Software Foundation; either version 2 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # This program is distributed in the hope that it will be useful, | |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU General Public License | |
16 | # along with this program; if not, write to the Free Software | |
33cf356a | 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
3e5afc2c RP |
18 | |
19 | prefix = /usr/local | |
20 | ||
b68b44fa | 21 | program_transform_name = |
4db3902a RP |
22 | exec_prefix = $(prefix) |
23 | bindir = $(exec_prefix)/bin | |
24 | libdir = $(exec_prefix)/lib | |
6a1f93f6 | 25 | tooldir = $(libdir)/$(target_alias) |
4db3902a | 26 | |
3e5afc2c | 27 | datadir = $(prefix)/lib |
4db3902a | 28 | mandir = $(prefix)/man |
3e5afc2c RP |
29 | man1dir = $(mandir)/man1 |
30 | man2dir = $(mandir)/man2 | |
31 | man3dir = $(mandir)/man3 | |
32 | man4dir = $(mandir)/man4 | |
33 | man5dir = $(mandir)/man5 | |
34 | man6dir = $(mandir)/man6 | |
35 | man7dir = $(mandir)/man7 | |
36 | man8dir = $(mandir)/man8 | |
37 | man9dir = $(mandir)/man9 | |
4db3902a | 38 | infodir = $(prefix)/info |
3e5afc2c RP |
39 | includedir = $(prefix)/include |
40 | docdir = $(datadir)/doc | |
41 | ||
42 | SHELL = /bin/sh | |
43 | ||
c8fee4a5 | 44 | INSTALL = `cd $(srcdir)/..;pwd`/install.sh -c |
3e5afc2c RP |
45 | INSTALL_PROGRAM = $(INSTALL) |
46 | INSTALL_DATA = $(INSTALL) | |
5ebaf24b | 47 | INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)' |
98a7278b | 48 | INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1 |
3e5afc2c RP |
49 | |
50 | AR = ar | |
33cf356a | 51 | AR_FLAGS = qv |
3e5afc2c RP |
52 | RANLIB = ranlib |
53 | ||
33cf356a SG |
54 | # Flags that describe where you can find the termcap library. |
55 | # This can be overridden in the host Makefile fragment file. | |
56 | TERMCAP = -ltermcap | |
57 | ||
58 | # System V: If you compile gdb with a compiler which uses the coff | |
59 | # encapsulation feature (this is a function of the compiler used, NOT | |
60 | # of the m-?.h file selected by config.gdb), you must make sure that | |
61 | # the GNU nm is the one that is used by munch. | |
62 | ||
7ae7b919 RP |
63 | # If you are compiling with GCC, make sure that either 1) You have the |
64 | # fixed include files where GCC can reach them, or 2) You use the | |
65 | # -traditional flag. Otherwise the ioctl calls in inflow.c | |
33cf356a SG |
66 | # will be incorrectly compiled. The "fixincludes" script in the gcc |
67 | # distribution will fix your include files up. | |
68 | #CC=cc | |
69 | #CC=gcc -traditional | |
70 | GCC=gcc | |
71 | ||
72 | # Directory containing source files. Don't clean up the spacing, | |
73 | # this exact string is matched for by the "configure" script. | |
74 | srcdir = . | |
d941d8c3 | 75 | |
19d0f3f4 | 76 | # If you use bison instead of yacc, it needs to include the "-y" argument. |
0b81fc43 | 77 | #BISON=bison -y |
33cf356a SG |
78 | BISON=yacc |
79 | YACC=$(BISON) | |
33cf356a | 80 | |
33cf356a SG |
81 | # where to find makeinfo, preferably one designed for texinfo-2 |
82 | MAKEINFO=makeinfo | |
83 | ||
84 | # Set this up with gcc if you have gnu ld and the loader will print out | |
7ae7b919 | 85 | # line numbers for undefined references. |
33cf356a | 86 | #CC-LD=gcc -static |
7ae7b919 | 87 | CC-LD=$(CC) |
33cf356a | 88 | |
7ae7b919 RP |
89 | # Where is our "include" directory? Typically $(srcdir)/../include. |
90 | # This is essentially the header file directory for the library | |
91 | # routines in libiberty. | |
92 | INCLUDE_DIR = $(srcdir)/../include | |
93 | INCLUDE_CFLAGS = -I$(INCLUDE_DIR) | |
94 | # Where is the "-liberty" library, containing getopt and obstack? | |
95 | LIBIBERTY = ../libiberty/libiberty.a | |
33cf356a | 96 | |
7ae7b919 | 97 | # Where is the MMALLOC library? Typically ../mmalloc. |
33cf356a SG |
98 | # Note that mmalloc can still be used on systems without mmap(). |
99 | # To use your system malloc, comment out the following defines. | |
7ae7b919 | 100 | MMALLOC = ../mmalloc/libmmalloc.a |
33cf356a SG |
101 | # To use your system malloc, uncomment MMALLOC_DISABLE. |
102 | #MMALLOC_DISABLE = -DNO_MMALLOC | |
103 | # To use mmalloc but disable corruption checking, uncomment MMALLOC_CHECK | |
104 | #MMALLOC_CHECK = -DNO_MMALLOC_CHECK | |
7ae7b919 RP |
105 | MMALLOC_CFLAGS = $(MMALLOC_CHECK) $(MMALLOC_DISABLE) |
106 | ||
107 | # Where are the BFD library? | |
108 | BFD_DIR = ../bfd | |
109 | BFD = $(BFD_DIR)/libbfd.a | |
110 | BFD_SRC = $(srcdir)/$(BFD_DIR) | |
111 | BFD_CFLAGS = -I$(BFD) -I$(BFD_SRC) | |
112 | ||
113 | # Where is the READLINE library? Typically in ../readline. | |
114 | READLINE_DIR = ../readline | |
115 | READLINE = $(READLINE_DIR)/libreadline.a | |
116 | READLINE_SRC = $(srcdir)/$(READLINE_DIR) | |
117 | READLINE_CFLAGS = -I$(READLINE_SRC) | |
118 | ||
119 | # Opcodes currently live in one of two places. Either they are in the | |
120 | # opcode library, typically ../opcodes, or they are in a header file | |
121 | # in INCLUDE_DIR. | |
122 | # Where is the "-lopcodes" library, with (some of) the opcode tables and | |
123 | # disassemblers? | |
124 | OPCODES = ./../opcodes/libopcodes.a | |
125 | # Where are the other opcode tables which only have header file | |
126 | # versions? | |
127 | OPCODES_CFLAGS = -I$(INCLUDE_DIR)/opcode | |
33cf356a SG |
128 | |
129 | # All the includes used for CFLAGS and for lint. | |
130 | # -I. for config files. | |
7ae7b919 RP |
131 | # -I$(srcdir) for gdb internal headers and possibly for regex.h also. |
132 | # -I$(srcdir)/config for more generic config files. | |
133 | ||
134 | # It is also possible that you will need to add -I/usr/include/sys if | |
135 | # your system doesn't have fcntl.h in /usr/include (which is where it | |
136 | # should be according to Posix). | |
137 | GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/config | |
138 | ||
139 | # M{H,T}_CFLAGS, if defined, have host- and target-dependent CFLAGS | |
140 | # from the config directory. | |
141 | GLOBAL_CFLAGS = $(MT_CFLAGS) $(MH_CFLAGS) | |
33cf356a SG |
142 | #PROFILE_CFLAGS = -pg |
143 | ||
144 | # CFLAGS is specifically reserved for setting from the command line | |
7ae7b919 | 145 | # when running make. I.E. "make CFLAGS=-Wmissing-prototypes". |
33cf356a | 146 | CFLAGS = -g |
33cf356a | 147 | |
7ae7b919 RP |
148 | # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros. |
149 | INTERNAL_CFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \ | |
150 | $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \ | |
151 | $(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) | |
1e4f3c20 | 152 | |
33cf356a | 153 | # The config/mh-* file must define REGEX and REGEX1 on USG machines. |
31d16514 | 154 | # If your system is missing alloca(), or, more likely, it's there but |
7ae7b919 | 155 | # it doesn't work, then refer to libiberty. |
33cf356a SG |
156 | |
157 | # Libraries and corresponding dependencies for compiling gdb. | |
158 | # {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs. | |
159 | # TERMCAP comes after readline, since readline depends on it. | |
5b40415c | 160 | # If you have the Cygnus libraries installed, |
7ae7b919 RP |
161 | # you can use 'CLIBS=$(INSTALLED_LIBS)' 'CDEPS=' |
162 | INSTALLED_LIBS=-lbfd -lreadline $(TERMCAP) -lopcodes -lmmalloc \ | |
163 | -liberty $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) | |
164 | CLIBS = $(BFD) $(READLINE) $(TERMCAP) $(OPCODES) $(MMALLOC) \ | |
165 | $(LIBIBERTY) $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) | |
166 | CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) \ | |
167 | $(BFD) $(READLINE) $(OPCODES) $(MMALLOC) $(LIBIBERTY) | |
168 | ||
169 | ADD_FILES = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES) | |
170 | ADD_DEPS = $(REGEX1) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES) | |
171 | ||
172 | VERSION = 4.9.3 | |
33cf356a SG |
173 | DIST=gdb |
174 | ||
175 | LINT=/usr/5bin/lint | |
7ae7b919 | 176 | LINTFLAGS= $(BFD_CFLAGS) |
33cf356a | 177 | |
e7d3b7d1 RS |
178 | RUNTEST=runtest |
179 | RUNTESTFLAGS= | |
6fcb280e | 180 | |
fd382d28 JK |
181 | # This is ser-unix.o for any system which supports a v7/BSD/SYSV/POSIX |
182 | # interface to the serial port. Hopefully if get ported to OS/2, VMS, | |
183 | # etc., then there will be (as part of the C library or perhaps as | |
184 | # part of libiberty) a POSIX interface. But at least for now the | |
185 | # host-dependent makefile fragment might need to use something else | |
186 | # besides ser-unix.o | |
bd91ddd1 | 187 | SER_HARDWIRE=ser-unix.o |
fd382d28 | 188 | |
33cf356a SG |
189 | # Host and target-dependent makefile fragments come in here. |
190 | #### | |
191 | # End of host and target-dependent makefile fragments | |
192 | ||
ef131e13 | 193 | FLAGS_TO_PASS = \ |
2fcc38b8 FF |
194 | "prefix=$(prefix)" \ |
195 | "exec_prefix=$(exec_prefix)" \ | |
ef131e13 JG |
196 | "against=$(against)" \ |
197 | "AR=$(AR)" \ | |
198 | "AR_FLAGS=$(AR_FLAGS)" \ | |
199 | "CC=$(CC)" \ | |
200 | "CFLAGS=$(CFLAGS)" \ | |
aecc5459 ILT |
201 | "CHILLFLAGS=$(CHILLFLAGS)" \ |
202 | "CHILL=$(CHILL)" \ | |
203 | "CHILL_LIB=$(CHILL_LIB)" \ | |
aecc5459 ILT |
204 | "CXX=$(CXX)" \ |
205 | "CXXFLAGS=$(CXXFLAGS)" \ | |
ef131e13 JG |
206 | "RANLIB=$(RANLIB)" \ |
207 | "MAKEINFO=$(MAKEINFO)" \ | |
208 | "INSTALL=$(INSTALL)" \ | |
209 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
210 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
e7d3b7d1 RS |
211 | "RUNTEST=$(RUNTEST)" \ |
212 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
ef131e13 JG |
213 | "BISON=$(BISON)" |
214 | ||
aecc5459 ILT |
215 | # Flags that we pass when building the testsuite. |
216 | ||
217 | CC_FOR_TARGET = ` \ | |
218 | if [ -f $${rootme}/../gcc/Makefile ] ; then \ | |
219 | echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \ | |
220 | else \ | |
221 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
222 | echo $(CC); \ | |
223 | else \ | |
224 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
225 | fi; \ | |
226 | fi` | |
227 | ||
228 | CXX = gcc | |
229 | ||
230 | CXX_FOR_TARGET = ` \ | |
231 | if [ -f $${rootme}/../gcc/Makefile ] ; then \ | |
232 | echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \ | |
233 | else \ | |
234 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
235 | echo $(CXX); \ | |
236 | else \ | |
237 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
238 | fi; \ | |
239 | fi` | |
240 | ||
aecc5459 ILT |
241 | CHILLFLAGS = $(CFLAGS) |
242 | CHILL = gcc | |
243 | CHILL_FOR_TARGET = ` \ | |
244 | if [ -f $${rootme}/../gcc/Makefile ] ; then \ | |
245 | echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -L$${rootme}/../chillrt/; \ | |
246 | else \ | |
247 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
248 | echo $(CC); \ | |
249 | else \ | |
250 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
251 | fi; \ | |
252 | fi` | |
253 | CHILL_LIB = -lchill | |
1fa66e36 | 254 | |
0b96ed06 FF |
255 | # The use of $$(x_FOR_TARGET) reduces the command line length by not |
256 | # duplicating the lengthy definition. | |
aecc5459 ILT |
257 | TARGET_FLAGS_TO_PASS = \ |
258 | "prefix=$(prefix)" \ | |
259 | "exec_prefix=$(exec_prefix)" \ | |
260 | "against=$(against)" \ | |
0b96ed06 FF |
261 | 'CC=$$(CC_FOR_TARGET)' \ |
262 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ | |
aecc5459 | 263 | "CFLAGS=$(CFLAGS)" \ |
aecc5459 | 264 | "CHILLFLAGS=$(CHILLFLAGS)" \ |
0b96ed06 FF |
265 | 'CHILL=$$(CHILL_FOR_TARGET)' \ |
266 | "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \ | |
aecc5459 | 267 | "CHILL_LIB=$(CHILL_LIB)" \ |
0b96ed06 FF |
268 | 'CXX=$$(CXX_FOR_TARGET)' \ |
269 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ | |
aecc5459 ILT |
270 | "CXXFLAGS=$(CXXFLAGS)" \ |
271 | "MAKEINFO=$(MAKEINFO)" \ | |
272 | "INSTALL=$(INSTALL)" \ | |
273 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
274 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
e7d3b7d1 RS |
275 | "RUNTEST=$(RUNTEST)" \ |
276 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
aecc5459 ILT |
277 | "BISON=$(BISON)" |
278 | ||
5287eacd | 279 | # All source files that go into linking GDB. |
853a233b | 280 | # Links made at configuration time should not be specified here, since |
5287eacd FF |
281 | # SFILES is used in building the distribution archive. |
282 | ||
7ae7b919 RP |
283 | SFILES = blockframe.c breakpoint.c buildsym.c c-exp.y c-lang.c \ |
284 | c-typeprint.c c-valprint.c ch-exp.y ch-lang.c ch-typeprint.c \ | |
285 | ch-valprint.c coffread.c command.c complaints.c core.c cp-valprint.c \ | |
286 | dbxread.c demangle.c dwarfread.c elfread.c environ.c eval.c expprint.c \ | |
287 | findvar.c gdbtypes.c infcmd.c inflow.c infrun.c language.c putenv.c \ | |
288 | m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c main.c maint.c \ | |
289 | mem-break.c minsyms.c mipsread.c objfiles.c parse.c printcmd.c \ | |
290 | remote.c source.c stabsread.c stack.c symfile.c symmisc.c symtab.c \ | |
291 | target.c typeprint.c utils.c valarith.c valops.c valprint.c values.c \ | |
292 | serial.c ser-unix.c | |
293 | ||
294 | # Files that are not source code, but need to go into | |
295 | # gdb-$(VERSION).tar.Z. | |
296 | ||
297 | NONSRC = Makefile.in munch configure.in ChangeLog ChangeLog-9091 \ | |
298 | ChangeLog-92 ChangeLog-3.x gdb.1 refcard.ps README TODO TAGS NEWS \ | |
299 | Projects .gdbinit COPYING $(YYFILES) copying.c copying.awk \ | |
300 | saber.suppress standalone.c stuff.c kdb-start.c gcc.patch \ | |
301 | nindy-share/Makefile nindy-share/VERSION nindy-share/README \ | |
302 | vx-share/README 29k-share/udi/README config/convex/Convex.notes | |
2531303c | 303 | |
33cf356a SG |
304 | # All source files that lint should look at |
305 | LINTFILES = $(SFILES) $(YYFILES) init.c | |
306 | ||
307 | # Any additional files specified on these lines should also be added to | |
2531303c | 308 | # the NONSRC definition, so they go in the tar files. |
33cf356a SG |
309 | SFILES_STAND = $(SFILES) standalone.c |
310 | SFILES_KGDB = $(SFILES) stuff.c kdb-start.c | |
311 | ||
7ae7b919 RP |
312 | # "system" headers. Using these in dependencies is a rather personal |
313 | # choice. By default, we do not depend on these files. | |
314 | #getopt_h = $(INCLUDE_DIR)/getopt.h | |
315 | #ieee-float_h = $(INCLUDE_DIR)/ieee-float.h | |
316 | #bfd_h = $(BFD_DIR)/bfd.h | |
317 | #wait_h = $(INCLUDE_DIR)/wait.h | |
318 | #dis-asm_h = $(INCLUDE_DIR)/dis-asm.h | |
319 | ||
320 | readline_headers = \ | |
321 | $(READLINE_SRC)/chardefs.h \ | |
322 | $(READLINE_SRC)/history.h \ | |
323 | $(READLINE_SRC)/keymaps.h \ | |
324 | $(READLINE_SRC)/readline.h | |
325 | ||
326 | udiheaders = \ | |
327 | 29k-share/udi/udiproc.h \ | |
328 | 29k-share/udi/udiphcfg.h \ | |
329 | 29k-share/udi/udiphunix.h \ | |
330 | 29k-share/udi/udiptcfg.h \ | |
331 | 29k-share/udi/udipt29k.h \ | |
332 | 29k-share/udi/udisoc.h | |
333 | ||
334 | ||
335 | gdbcore_h = gdbcore.h $(bfd_h) | |
336 | ||
337 | frame_h = frame.h | |
338 | symtab_h = symtab.h | |
339 | gdbtypes_h = gdbtypes.h | |
340 | expression_h = expression.h | |
341 | value_h = value.h $(symtab_h) $(gdbtypes_h) $(expression_h) | |
342 | ||
343 | breakpoint_h = breakpoint.h $(frame_h) $(value_h) | |
344 | ||
345 | command_h = command.h | |
346 | gdbcmd_h = gdbcmd.h $(command_h) | |
347 | ||
348 | defs_h = defs.h xm.h tm.h nm.h config.status | |
349 | ||
350 | inferior_h = inferior.h $(breakpoint_h) | |
351 | ||
352 | # Header files that are not named in config/*/* Makefile fragments go | |
353 | # into HFILES. | |
354 | ||
355 | HFILES = buildsym.h call-cmds.h defs.h environ.h $(gdbcmd_h) \ | |
356 | $(gdbcore_h) gdb-stabs.h $(inferior_h) language.h minimon.h monitor.h \ | |
357 | objfiles.h parser-defs.h partial-stab.h serial.h signals.h solib.h \ | |
358 | symfile.h stabsread.h target.h terminal.h typeprint.h xcoffsolib.h \ | |
359 | c-lang.h ch-lang.h m2-lang.h complaints.h ns32k-opcode.h valprint.h \ | |
360 | config/m68k/tm-m68k.h config/pa/tm-hppa.h config/i960/tm-i960.h \ | |
361 | config/sparc/tm-sparc.h config/tm-sunos.h config/tm-sysv4.h \ | |
362 | config/m68k/xm-m68k.h config/sparc/xm-sparc.h config/xm-sysv4.h \ | |
363 | config/vax/xm-vax.h config/nm-trash.h $(udiheaders) \ | |
364 | 29k-share/udi/udiids.h 29k-share/udi_soc nindy-share/b.out.h \ | |
365 | nindy-share/block_io.h nindy-share/coff.h nindy-share/demux.h \ | |
366 | nindy-share/env.h nindy-share/stop.h nindy-share/ttycntl.h \ | |
367 | vx-share/dbgRpcLib.h vx-share/ptrace.h vx-share/vxTypes.h \ | |
368 | vx-share/vxWorks.h vx-share/wait.h vx-share/xdr_ld.h \ | |
369 | vx-share/xdr_ptrace.h vx-share/xdr_rdb.h | |
2531303c FF |
370 | |
371 | # GDB "info" files, which should be included in their entirety | |
372 | INFOFILES = gdb.info* | |
33cf356a | 373 | |
22473f72 | 374 | REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar |
33cf356a | 375 | |
7ae7b919 | 376 | POSSLIBS = regex.c regex.h |
33cf356a | 377 | |
33cf356a SG |
378 | # Subdirectories of gdb, which should be included in their entirety in |
379 | # gdb-xxx.tar.Z: | |
7ae7b919 | 380 | TARDIRS = doc sparclite |
33cf356a | 381 | |
fd382d28 JK |
382 | # {X,T,NAT}DEPFILES are something of a pain in that it's hard to |
383 | # default their values the way we do for SER_HARDWIRE; in the future | |
384 | # maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other | |
385 | # variables analogous to SER_HARDWIRE which get defaulted in this | |
386 | # Makefile.in | |
387 | ||
7ae7b919 | 388 | DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) |
33cf356a | 389 | |
2531303c | 390 | SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES) |
853a233b JK |
391 | # Don't include YYFILES (*.tab.c) because we already include *.y in SFILES, |
392 | # and it's more useful to see it in the .y file. | |
7ae7b919 RP |
393 | TAGFILES = $(SFILES) $(HFILES) $(ALLPARAM) $(POSSLIBS) |
394 | ||
395 | TARFILES = $(SFILES) $(HFILES) $(NONSRC) $(ALLDEPFILES) $(ALLCONFIG) \ | |
396 | $(ALLPARAM) $(INFOFILES) $(POSSLIBS) $(REMOTE_EXAMPLES) | |
397 | ||
398 | ||
399 | OBS = version.o main.o blockframe.o breakpoint.o findvar.o stack.o \ | |
400 | source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o \ | |
401 | symtab.o symfile.o symmisc.o infcmd.o infrun.o remote.o command.o \ | |
402 | utils.o expprint.o environ.o gdbtypes.o copying.o $(DEPFILES) \ | |
403 | mem-break.o target.o putenv.o parse.o language.o $(YYOBJ) buildsym.o \ | |
404 | objfiles.o minsyms.o maint.o demangle.o dbxread.o coffread.o elfread.o \ | |
405 | dwarfread.o mipsread.o stabsread.o core.o c-lang.o ch-lang.o m2-lang.o \ | |
406 | complaints.o typeprint.o c-typeprint.o ch-typeprint.o m2-typeprint.o \ | |
407 | c-valprint.o cp-valprint.o ch-valprint.o m2-valprint.o serial.o | |
33cf356a SG |
408 | |
409 | RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES) | |
410 | ||
c9c23412 | 411 | TSOBS = inflow.o |
33cf356a SG |
412 | |
413 | NTSOBS = standalone.o | |
414 | ||
415 | TSSTART = /lib/crt0.o | |
416 | ||
417 | NTSSTART = kdb-start.o | |
418 | ||
aecc5459 | 419 | SUBDIRS = doc testsuite |
33cf356a SG |
420 | |
421 | # For now, shortcut the "configure GDB for fewer languages" stuff. | |
e58de8a2 FF |
422 | YYFILES = c-exp.tab.c m2-exp.tab.c ch-exp.tab.c |
423 | YYOBJ = c-exp.tab.o m2-exp.tab.o ch-exp.tab.o | |
33cf356a SG |
424 | |
425 | # Prevent Sun make from putting in the machine type. Setting | |
426 | # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1. | |
427 | .c.o: | |
7ae7b919 | 428 | $(CC) -c $(INTERNAL_CFLAGS) $< |
33cf356a SG |
429 | |
430 | all: gdb | |
0139c441 | 431 | @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do |
6fcb280e | 432 | |
80c8fd72 | 433 | installcheck: |
e7d3b7d1 | 434 | check: force |
0139c441 | 435 | @rootme=`pwd`; export rootme; $(MAKE) $(TARGET_FLAGS_TO_PASS) DO=check DODIRS=testsuite subdir_do |
7ae7b919 | 436 | info dvi install-info clean-info: force |
0139c441 | 437 | @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do |
33cf356a SG |
438 | |
439 | gdb.z:gdb.1 | |
440 | nroff -man $(srcdir)/gdb.1 | col -b > gdb.t | |
441 | pack gdb.t ; rm -f gdb.t | |
442 | mv gdb.t.z gdb.z | |
443 | ||
7ae7b919 | 444 | # Traditionally "install" depends on "all". But it may be useful |
702c0ff7 JK |
445 | # not to; for example, if the user has made some trivial change to a |
446 | # source file and doesn't care about rebuilding or just wants to save the | |
447 | # time it takes for make to check that all is up to date. | |
7ae7b919 RP |
448 | # install-only is intended to address that need. |
449 | install: all install-only | |
450 | install-only: | |
98a7278b DZ |
451 | $(INSTALL_XFORM) gdb $(bindir)/gdb |
452 | $(INSTALL_XFORM1) $(srcdir)/gdb.1 $(man1dir)/gdb.1 | |
b68b44fa | 453 | $(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$n.1 |
33cf356a | 454 | $(M_INSTALL) |
7ae7b919 | 455 | @$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do |
33cf356a | 456 | |
7ae7b919 RP |
457 | uninstall: force |
458 | rm -f $(bindir)/gdb $(man1dir)/gdb.1 $(man1dir)/$$n.1 | |
459 | $(M_UNINSTALL) | |
460 | @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do | |
33cf356a | 461 | |
7ae7b919 RP |
462 | init.c: munch $(OBS) $(TSOBS) |
463 | $(srcdir)/munch $(MUNCH_DEFINE) $(OBS) $(TSOBS) > init.c | |
464 | ||
465 | gdb: $(OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o | |
466 | $(CC-LD) $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdb \ | |
33cf356a SG |
467 | init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES) |
468 | ||
469 | saber_gdb: $(SFILES) $(DEPFILES) copying.c version.c | |
7ae7b919 | 470 | #setopt load_flags $(CFLAGS) $(BFD_CFLAGS) -DHOST_SYS=SUN4_SYS |
33cf356a | 471 | #load ./init.c $(SFILES) |
7ae7b919 RP |
472 | #unload $(srcdir)/c-exp.y $(srcdir)/m2-exp.y $(srcdir)/ch-exp.y |
473 | #unload vx-share/*.h | |
474 | #unload nindy-share/[A-Z]* | |
e58de8a2 | 475 | #load c-exp.tab.c m2-exp.tab.c ch-exp.tab.c |
33cf356a | 476 | #load copying.c version.c |
1e4f3c20 | 477 | #load ../opcodes/libopcodes.a |
33cf356a SG |
478 | #load ../libiberty/libiberty.a |
479 | #load ../bfd/libbfd.a | |
480 | #load ../readline/libreadline.a | |
481 | #load ../mmalloc/libmmalloc.a | |
482 | #load -ltermcap | |
483 | #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'` | |
484 | echo "Load .c corresponding to:" $(DEPFILES) | |
485 | ||
486 | ||
487 | # This is useful when debugging GDB, because some Unix's don't let you run GDB | |
488 | # on itself without copying the executable. So "make gdb1" will make | |
489 | # gdb and put a copy in gdb1, and you can run it with "gdb gdb1". | |
490 | # Removing gdb1 before the copy is the right thing if gdb1 is open | |
491 | # in another process. | |
492 | gdb1: gdb | |
493 | rm -f gdb1 | |
494 | cp gdb gdb1 | |
495 | ||
496 | # This is a remote stub which runs under unix and starts up an | |
497 | # inferior process. This is at least useful for debugging GDB's | |
498 | # remote support. | |
499 | rapp: $(RAPP_OBS) | |
500 | rm -f rapp_init.c | |
7ae7b919 RP |
501 | $(srcdir)/munch $(MUNCH_DEFINE) $(RAPP_OBS) > rapp_init.c |
502 | $(CC-LD) $(LDFLAGS) -o $@ rapp_init.c $(RAPP_OBS) | |
503 | ||
33cf356a SG |
504 | config.status: |
505 | @echo "You must configure gdb. Look at the README file for details." | |
506 | @false | |
507 | ||
7ae7b919 | 508 | ### fixme - this can't be right. |
ef131e13 JG |
509 | # This checks the configure.in file versus the config/ directory. |
510 | config-check: config-check-hosts config-check-targets | |
511 | config-check-hosts: | |
7ae7b919 | 512 | grep gdb_host= $(srcdir)/configure.in | \ |
ef131e13 | 513 | sed -e 's/.*gdb_host=//' -e 's/ ;;$$/.mh/' | sort -u >HOSTconf.o |
7ae7b919 | 514 | (cd $(srcdir)/config; ls *.mh) >HOSTdir.o |
ef131e13 JG |
515 | diff -u HOSTconf.o HOSTdir.o |
516 | ||
7ae7b919 | 517 | ### fixme - nor can this. |
ef131e13 | 518 | config-check-targets: |
7ae7b919 | 519 | grep gdb_target= $(srcdir)/configure.in | \ |
ef131e13 | 520 | sed -e 's/.*gdb_target=//' -e 's/ ;;$$/.mh/' | sort -u >TARGconf.o |
7ae7b919 | 521 | (cd $(srcdir)/config; ls *.mt) >TARGdir.o |
ef131e13 JG |
522 | diff -u HOSTconf.o HOSTdir.o |
523 | ||
7ae7b919 | 524 | # FIXME. These are not generated by "make depend" because they only are there |
33cf356a SG |
525 | # for some machines. |
526 | # But these rules don't do what we want; we want to hack the foo.o: tm.h | |
527 | # dependency to do the right thing. | |
2225eb85 FF |
528 | tm-isi.h tm-sun3.h tm-news.h tm-hp300bsd.h tm-altos.h: tm-m68k.h |
529 | tm-hp300hpux.h tm-sun2.h tm-3b1.h: tm-m68k.h | |
33cf356a SG |
530 | xm-news1000.h: xm-news.h |
531 | xm-i386-sv32.h: xm-i386.h | |
532 | tm-i386gas.h: tm-i386.h | |
533 | xm-sun4os4.h: xm-sparc.h | |
534 | tm-sun4os4.h: tm-sparc.h | |
535 | xm-vaxult.h: xm-vax.h | |
536 | xm-vaxbsd.h: xm-vax.h | |
537 | ||
7ae7b919 | 538 | kdb: $(NTSSTART) $(OBS) $(NTSOBS) $(ADD_DEPS) $(CDEPS) |
33cf356a | 539 | rm -f init.c |
7ae7b919 | 540 | $(srcdir)/munch $(MUNCH_DEFINE) $(OBS) $(NTSOBS) > init.c |
33cf356a SG |
541 | $(CC) $(LDFLAGS) -c init.c $(CLIBS) |
542 | ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \ | |
543 | -lc $(CLIBS) | |
544 | ||
8d57a263 JK |
545 | # Put the proper machine-specific files first, so M-. on a machine |
546 | # specific routine gets the one for the correct machine. | |
db7c818b | 547 | # The xyzzy stuff below deals with empty DEPFILES |
7ae7b919 RP |
548 | TAGS: |
549 | etags `find $(srcdir)/config \( -name $(TM_FILE) \ | |
550 | -o -name $(XM_FILE) \ | |
551 | -o -name $(NAT_FILE) \) -print` \ | |
552 | `(for i in $(DEPFILES) $(TAGFILES); do \ | |
553 | echo $(srcdir)/$$i ; \ | |
554 | done) | sed -e 's/\.o$$/\.c/'` \ | |
555 | ||
33cf356a SG |
556 | tags: TAGS |
557 | ||
558 | # Making distributions of GDB and friends. | |
559 | ||
33cf356a SG |
560 | # Make a tar file containing the GDB directory of the distribution. |
561 | gdb.tar.Z: force_update | |
562 | $(MAKE) $(MFLAGS) -f Makefile.in setup-to-dist | |
563 | $(MAKE) $(MFLAGS) -f Makefile.in gdb-$(VERSION).tar.Z | |
564 | ||
2531303c FF |
565 | # Make a directory `proto-gdb.dir' that contains an image of the GDB |
566 | # directory of the distribution, built up with symlinks. Note that this | |
567 | # make target is not directly referenced by any other rules in this makefile, | |
568 | # it is referenced by the makefile in the parent directory. | |
569 | make-proto-gdb.dir: force_update | |
570 | $(MAKE) $(MFLAGS) -f Makefile.in setup-to-dist | |
571 | $(MAKE) $(MFLAGS) -f Makefile make-proto-gdb-1 | |
572 | ||
573 | # Set up the GDB source directory for distribution, by building all files that | |
574 | # are products of other files. | |
7ae7b919 | 575 | setup-to-dist: force_update |
2531303c FF |
576 | ../configure none |
577 | (cd doc; $(MAKE) $(MFLAGS) GDBvn.texi) | |
578 | $(MAKE) $(MFLAGS) gdb.info | |
579 | $(MAKE) $(MFLAGS) refcard.ps | |
22473f72 | 580 | |
7ae7b919 RP |
581 | # Update the "alldeps.mak" file in a source directory. |
582 | update-alldeps: force_update | |
b3d4dd73 | 583 | ../configure none -norecursion |
7ae7b919 RP |
584 | rm -f alldeps.mak |
585 | $(MAKE) $(MFLAGS) alldeps.mak | |
22473f72 | 586 | |
33cf356a SG |
587 | # Build a tar file from a proto-gdb.dir. |
588 | gdb-$(VERSION).tar.Z: force_update | |
589 | rm -f gdb.tar gdb-$(VERSION).tar.Z | |
2531303c | 590 | $(MAKE) $(MFLAGS) -f Makefile make-proto-gdb-1 |
33cf356a SG |
591 | ln -s proto-gdb.dir $(DIST) |
592 | tar chf - $(DIST) | compress >gdb-$(VERSION).tar.Z | |
593 | rm -rf $(DIST) proto-gdb.dir | |
594 | ||
595 | # Build a proto-gdb.dir after GDB has been set up for distribution. | |
596 | # This stuff must be run in `Makefile', not `Makefile.in`; we use the makefile | |
597 | # built in the setup-to-dist process, since it defines things like ALLCONFIG | |
598 | # and ALLDEPFILES, that we need. | |
7ae7b919 | 599 | make-proto-gdb-1: $(TARFILES) $(TARDIRS) gdb.info |
33cf356a SG |
600 | rm -rf proto-gdb.dir |
601 | mkdir proto-gdb.dir | |
2531303c | 602 | rootme=`pwd`/ ; export rootme ; \ |
7ae7b919 | 603 | for i in `echo $(TARDIRS)`; do \ |
2531303c FF |
604 | (cd proto-gdb.dir ; \ |
605 | mkdir -p $$i; \ | |
606 | cd $$i; \ | |
607 | ln -s $${rootme}/$$i/* .; \ | |
608 | rm -rf SCCS CVS CVS.adm RCS config.status; \ | |
609 | if test -f Makefile.in; then rm Makefile; else true; fi;); \ | |
610 | done ; \ | |
7ae7b919 | 611 | for i in `echo $(TARFILES)`; do \ |
2531303c FF |
612 | (cd proto-gdb.dir ; \ |
613 | dir=`dirname $$i`; \ | |
614 | if test -d $$dir; then true; else mkdir -p $$dir; fi; \ | |
615 | ln -s $${rootme}/$$i $$i;); \ | |
616 | done | |
33cf356a SG |
617 | chmod og=u `find . -print` |
618 | ||
97e72c06 FF |
619 | # Build a proto-testsuite.dir. |
620 | make-proto-testsuite.dir: force_update | |
621 | rm -rf proto-testsuite.dir | |
622 | mkdir proto-testsuite.dir | |
623 | rootme=`pwd`/ ; export rootme ; \ | |
624 | for i in `find testsuite -type f -print`; do \ | |
625 | (cd proto-testsuite.dir ; \ | |
626 | dir=`dirname $$i`; \ | |
627 | if test -d $$dir; then true; else mkdir -p $$dir; fi; \ | |
628 | ln -s $${rootme}/$$i $$i;); \ | |
629 | done | |
630 | find proto-testsuite.dir -name Makefile -exec rm {} \; | |
631 | find proto-testsuite.dir -name config.status -exec rm {} \; | |
632 | ||
33cf356a | 633 | clean: |
4e772f44 | 634 | @$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(SUBDIRS)" subdir_do |
7ae7b919 | 635 | rm -f *.o $(ADD_FILES) *~ |
33cf356a | 636 | rm -f init.c version.c |
2531303c | 637 | rm -f gdb core make.log |
33cf356a | 638 | rm -f gdb[0-9] |
33cf356a | 639 | |
39d4639b JK |
640 | # This used to depend on c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS |
641 | # I believe this is wrong; the makefile standards for distclean just | |
642 | # describe removing files; the only sort of "re-create a distribution" | |
643 | # functionality described is if the distributed files are unmodified. | |
644 | distclean: clean | |
4e772f44 | 645 | @$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(SUBDIRS)" subdir_do |
39d4639b | 646 | rm -f nm.h tm.h xm.h config.status |
33cf356a | 647 | rm -f y.output yacc.acts yacc.tmp |
7ae7b919 | 648 | rm -f Makefile |
33cf356a SG |
649 | |
650 | realclean: clean | |
4e772f44 | 651 | @$(MAKE) $(FLAGS_TO_PASS) DO=realclean "DODIRS=$(SUBDIRS)" subdir_do |
e58de8a2 | 652 | rm -f c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS |
39d4639b JK |
653 | rm -f nm.h tm.h xm.h config.status |
654 | rm -f y.output yacc.acts yacc.tmp | |
7ae7b919 | 655 | rm -f Makefile |
33cf356a SG |
656 | |
657 | subdir_do: force | |
658 | @for i in $(DODIRS); do \ | |
6f4a4fbb | 659 | if [ -f ./$$i/Makefile ] ; then \ |
33cf356a | 660 | if (cd ./$$i; \ |
ef131e13 | 661 | $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ |
33cf356a SG |
662 | else exit 1 ; fi ; \ |
663 | else true ; fi ; \ | |
664 | done | |
d941d8c3 | 665 | |
7ae7b919 RP |
666 | Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag) |
667 | $(SHELL) config.status | |
d941d8c3 | 668 | |
33cf356a | 669 | force: |
d941d8c3 | 670 | |
33cf356a SG |
671 | # Documentation! |
672 | # GDB QUICK REFERENCE (TeX dvi file, CM fonts) | |
2b21d8aa | 673 | refcard.dvi: |
7ae7b919 RP |
674 | ( cd doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS) ) |
675 | mv doc/refcard.dvi . | |
d941d8c3 | 676 | |
33cf356a | 677 | # GDB QUICK REFERENCE (PostScript output, common PS fonts) |
2b21d8aa | 678 | refcard.ps: |
7ae7b919 RP |
679 | ( cd doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS) ) |
680 | mv doc/refcard.ps . | |
d941d8c3 | 681 | |
33cf356a | 682 | # GDB MANUAL: TeX dvi file |
259d1dea | 683 | gdb.dvi: |
7ae7b919 RP |
684 | ( cd doc; $(MAKE) gdb.dvi $(FLAGS_TO_PASS) ) |
685 | mv doc/gdb.dvi . | |
d941d8c3 | 686 | |
33cf356a | 687 | # GDB MANUAL: info file |
259d1dea | 688 | gdb.info: |
7ae7b919 RP |
689 | ( cd doc; $(MAKE) gdb.info $(FLAGS_TO_PASS) ) |
690 | mv doc/gdb.info* . | |
d941d8c3 | 691 | |
33cf356a | 692 | # Make copying.c from COPYING |
7ae7b919 RP |
693 | copying.c: COPYING copying.awk |
694 | awk -f $(srcdir)/copying.awk < $(srcdir)/COPYING > copying.c | |
d941d8c3 | 695 | |
33cf356a SG |
696 | version.c: Makefile |
697 | echo 'char *version = "$(VERSION)";' >version.c | |
90494078 RP |
698 | echo 'char *host_canonical = "$(host_canonical)";' >> version.c |
699 | echo 'char *target_canonical = "$(target_canonical)";' >> version.c | |
d941d8c3 | 700 | |
7ae7b919 RP |
701 | # c-exp.tab.c is generated in objdir from c-exp.y if it doesn't exist |
702 | # in srcdir, then compiled in objdir to c-exp.tab.o. | |
703 | # c-exp.tab.c is so the command argument will never match c-exp.y | |
f4ed8840 | 704 | # (some "makes" rewrite the VPATH into command arguments if they match deps). |
9aa44833 SG |
705 | # Remove bogus decls for malloc/realloc/free which conflict with everything |
706 | # else. | |
33cf356a | 707 | c-exp.tab.o: c-exp.tab.c |
7ae7b919 | 708 | c-exp.tab.c: c-exp.y Makefile.in |
33cf356a | 709 | @echo 'Expect 4 shift/reduce conflicts.' |
7ae7b919 | 710 | $(YACC) $(YFLAGS) $(srcdir)/c-exp.y |
9aa44833 SG |
711 | -sed -e '/extern.*malloc/d' \ |
712 | -e '/extern.*realloc/d' \ | |
713 | -e '/extern.*free/d' \ | |
e58de8a2 | 714 | -e '/include.*malloc.h/d' \ |
e35843d4 FF |
715 | -e 's/malloc/xmalloc/g' \ |
716 | -e 's/realloc/xrealloc/g' \ | |
39d4639b | 717 | < y.tab.c > c-exp.new |
9aa44833 | 718 | -rm y.tab.c |
7ae7b919 | 719 | mv c-exp.new c-exp.tab.c |
d941d8c3 | 720 | |
7ae7b919 RP |
721 | # ch-exp.tab.c is generated in objdir from ch-exp.y if it doesn't exist |
722 | # in srcdir, then compiled in objdir to ch-exp.tab.o. | |
e58de8a2 FF |
723 | # Remove bogus decls for malloc/realloc/free which conflict with everything |
724 | # else. | |
725 | ch-exp.tab.o: ch-exp.tab.c | |
7ae7b919 RP |
726 | # the dependency here on c-exp.tab.c is artificial. Without this |
727 | # dependency, a parallel make will attempt to build both at the same | |
728 | # time and the second yacc will pollute the first y.tab.c file. | |
729 | ch-exp.tab.c: ch-exp.y Makefile.in c-exp.tab.c | |
730 | $(YACC) $(YFLAGS) $(srcdir)/ch-exp.y | |
e58de8a2 FF |
731 | -sed -e '/extern.*malloc/d' \ |
732 | -e '/extern.*realloc/d' \ | |
733 | -e '/extern.*free/d' \ | |
734 | -e '/include.*malloc.h/d' \ | |
735 | -e 's/malloc/xmalloc/g' \ | |
736 | -e 's/realloc/xrealloc/g' \ | |
39d4639b | 737 | < y.tab.c > ch-exp.new |
e58de8a2 | 738 | -rm y.tab.c |
7ae7b919 | 739 | mv ch-exp.new ch-exp.tab.c |
e58de8a2 | 740 | |
7ae7b919 RP |
741 | # m2-exp.tab.c is generated in objdir from m2-exp.y if it doesn't exist |
742 | # in srcdir, then compiled in objdir to m2-exp.tab.o. | |
e58de8a2 FF |
743 | # Remove bogus decls for malloc/realloc/free which conflict with everything |
744 | # else. | |
33cf356a | 745 | m2-exp.tab.o: m2-exp.tab.c |
7ae7b919 RP |
746 | # the dependency here on ch-exp.tab.c is artificial. Without this |
747 | # dependency, a parallel make will attempt to build both at the same | |
748 | # time and the second yacc will pollute the first y.tab.c file. | |
749 | m2-exp.tab.c: m2-exp.y Makefile.in ch-exp.tab.c | |
750 | $(YACC) $(YFLAGS) $(srcdir)/m2-exp.y | |
9aa44833 SG |
751 | -sed -e '/extern.*malloc/d' \ |
752 | -e '/extern.*realloc/d' \ | |
753 | -e '/extern.*free/d' \ | |
e58de8a2 | 754 | -e '/include.*malloc.h/d' \ |
e35843d4 FF |
755 | -e 's/malloc/xmalloc/g' \ |
756 | -e 's/realloc/xrealloc/g' \ | |
39d4639b | 757 | < y.tab.c > m2-exp.new |
9aa44833 | 758 | -rm y.tab.c |
7ae7b919 | 759 | mv m2-exp.new m2-exp.tab.c |
39d4639b JK |
760 | |
761 | # These files are updated atomically, so make never has to remove them | |
762 | .PRECIOUS: m2-exp.tab.c ch-exp.tab.c c-exp.tab.c | |
d941d8c3 | 763 | |
33cf356a SG |
764 | lint: $(LINTFILES) |
765 | $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \ | |
7ae7b919 | 766 | `echo $(DEPFILES) | sed 's/\.o /\.c /g' |
d941d8c3 | 767 | |
33cf356a SG |
768 | gdb.cxref: $(SFILES) |
769 | cxref -I. $(SFILES) >gdb.cxref | |
d941d8c3 | 770 | |
33cf356a | 771 | force_update: |
d941d8c3 | 772 | |
33cf356a SG |
773 | # GNU Make has an annoying habit of putting *all* the Makefile variables |
774 | # into the environment, unless you include this target as a circumvention. | |
775 | # Rumor is that this will be fixed (and this target can be removed) | |
776 | # in GNU Make 4.0. | |
777 | .NOEXPORT: | |
d941d8c3 | 778 | |
aecc5459 ILT |
779 | # GNU Make 3.63 has a different problem: it keeps tacking command line |
780 | # overrides onto the definition of $(MAKE). This variable setting | |
781 | # will remove them. | |
782 | MAKEOVERRIDES= | |
783 | ||
58bb1e76 ILT |
784 | ## This is ugly, but I don't want GNU make to put these variables in |
785 | ## the environment. Older makes will see this as a set of targets | |
786 | ## with no dependencies and no actions. | |
787 | unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET : | |
58bb1e76 | 788 | |
7ae7b919 RP |
789 | # These are things from config/*/*.m? fragments. There is no good reason |
790 | # why they are separate from the lists of files above. | |
791 | ||
792 | ALLDEPFILES = 29k-share/udi/udi/udip2soc.c 29k-share/udi/udi/udr.c \ | |
793 | a29k-pinsn.c a29k-tdep.c a68v-nat.c altos-xdep.c arm-convert.s \ | |
794 | arm-pinsn.c arm-tdep.c arm-xdep.c convex-pinsn.c convex-tdep.c \ | |
795 | convex-xdep.c core-svr4.c coredep.c corelow.c exec.c fork-child.c \ | |
796 | go32-xdep.c gould-pinsn.c gould-xdep.c h8300-tdep.c h8500-tdep.c \ | |
797 | hp300ux-nat.c hppa-pinsn.c hppa-tdep.c hppab-nat.c hppah-nat.c \ | |
798 | i386-pinsn.c i386-tdep.c i386b-nat.c i386mach-nat.c i386v-nat.c \ | |
799 | i386aix-nat.c i386v4-nat.c i387-tdep.c i960-pinsn.c i960-tdep.c \ | |
800 | infptrace.c inftarg.c irix4-nat.c isi-xdep.c m68k-pinsn.c m68k-tdep.c \ | |
801 | m88k-nat.c m88k-pinsn.c m88k-tdep.c mips-nat.c mips-pinsn.c \ | |
802 | mips-tdep.c news-xdep.c nindy-share/Onindy.c nindy-share/nindy.c \ | |
803 | nindy-share/ttybreak.c nindy-share/ttyflush.c nindy-tdep.c \ | |
804 | ns32k-pinsn.c paread.c procfs.c pyr-pinsn.c pyr-tdep.c pyr-xdep.c \ | |
805 | remote-adapt.c remote-eb.c remote-es.c remote-hms.c remote-mips.c \ | |
806 | remote-mm.c remote-monitor.c remote-nindy.c remote-sim.c remote-st.c \ | |
807 | remote-udi.c remote-vx.c remote-z8k.c rs6000-nat.c rs6000-pinsn.c \ | |
808 | rs6000-tdep.c ser-go32.c ser-tcp.c sh-tdep.c solib.c sparc-nat.c \ | |
809 | sparc-pinsn.c sparc-tdep.c sun3-nat.c sun386-nat.c symm-tdep.c \ | |
810 | symm-xdep.c tahoe-pinsn.c ultra3-nat.c ultra3-xdep.c umax-xdep.c \ | |
811 | vax-pinsn.c vx-share/xdr_ld.c vx-share/xdr_ptrace.c vx-share/xdr_rdb.c \ | |
812 | xcoffexec.c xcoffread.c xcoffsolib.c z8k-tdep.c | |
813 | ||
814 | ALLPARAM = config/a29k/nm-ultra3.h config/a29k/tm-a29k.h \ | |
815 | config/a29k/tm-ultra3.h config/a29k/xm-ultra3.h config/arm/tm-arm.h \ | |
816 | config/arm/xm-arm.h config/convex/tm-convex.h \ | |
817 | config/convex/xm-convex.h config/gould/tm-np1.h config/gould/tm-pn.h \ | |
818 | config/gould/xm-np1.h config/gould/xm-pn.h config/h8300/tm-h8300.h \ | |
819 | config/h8500/tm-h8500.h config/i386/nm-i386aix.h \ | |
820 | config/i386/nm-i386bsd.h config/i386/nm-i386lynx.h \ | |
821 | config/i386/nm-i386mach.h config/i386/nm-i386sco.h \ | |
822 | config/i386/nm-i386sco4.h config/i386/nm-i386v.h \ | |
823 | config/i386/nm-i386v4.h config/i386/nm-linux.h config/i386/nm-sun386.h \ | |
824 | config/i386/tm-i386aix.h config/i386/tm-i386bsd.h \ | |
825 | config/i386/tm-i386lynx.h config/i386/tm-i386v.h \ | |
826 | config/i386/tm-i386v4.h config/i386/tm-linux.h config/i386/tm-sun386.h \ | |
827 | config/i386/tm-symmetry.h config/i386/xm-go32.h \ | |
828 | config/i386/xm-i386aix.h config/i386/xm-i386bsd.h \ | |
829 | config/i386/xm-i386lynx.h config/i386/xm-i386mach.h \ | |
830 | config/i386/xm-i386sco.h config/i386/xm-i386v.h \ | |
831 | config/i386/xm-i386v32.h config/i386/xm-i386v4.h \ | |
832 | config/i386/xm-linux.h config/i386/xm-sun386.h \ | |
833 | config/i386/xm-symmetry.h config/i960/tm-nindy960.h \ | |
834 | config/i960/tm-vx960.h config/m68k/nm-apollo68b.h \ | |
835 | config/m68k/nm-apollo68v.h config/m68k/nm-hp300bsd.h \ | |
836 | config/m68k/nm-hp300hpux.h config/m68k/nm-news.h config/m68k/nm-sun2.h \ | |
837 | config/m68k/nm-sun3.h config/m68k/tm-3b1.h config/m68k/tm-altos.h \ | |
838 | config/m68k/tm-amix.h config/m68k/tm-es1800.h \ | |
839 | config/m68k/tm-hp300bsd.h config/m68k/tm-hp300hpux.h \ | |
840 | config/m68k/tm-isi.h config/m68k/tm-m68k-fp.h \ | |
841 | config/m68k/tm-m68k-nofp.h config/m68k/tm-monitor.h \ | |
842 | config/m68k/tm-news.h config/m68k/tm-os68k.h config/m68k/tm-st2000.h \ | |
843 | config/m68k/tm-sun2.h config/m68k/tm-sun2os4.h config/m68k/tm-sun3.h \ | |
844 | config/m68k/tm-sun3os4.h config/m68k/tm-vx68.h config/m68k/xm-3b1.h \ | |
845 | config/m68k/xm-altos.h config/m68k/xm-amix.h \ | |
846 | config/m68k/xm-apollo68b.h config/m68k/xm-apollo68v.h \ | |
847 | config/m68k/xm-hp300bsd.h config/m68k/xm-hp300hpux.h \ | |
848 | config/m68k/xm-isi.h config/m68k/xm-news.h config/m68k/xm-news1000.h \ | |
849 | config/m68k/xm-sun2.h config/m68k/xm-sun3.h config/m68k/xm-sun3os4.h \ | |
850 | config/m88k/nm-m88k.h config/m88k/tm-delta88.h config/m88k/tm-m88k.h \ | |
851 | config/m88k/xm-delta88.h config/m88k/xm-m88k.h config/mips/nm-irix3.h \ | |
852 | config/mips/nm-irix4.h config/mips/nm-mips.h config/mips/tm-bigmips.h \ | |
853 | config/mips/tm-irix3.h config/mips/tm-mips.h config/mips/xm-irix3.h \ | |
854 | config/mips/xm-irix4.h config/mips/xm-mips.h config/nm-sysv4.h \ | |
855 | config/none/nm-none.h config/none/tm-none.h config/none/xm-none.h \ | |
856 | config/ns32k/nm-umax.h config/ns32k/tm-merlin.h config/ns32k/tm-umax.h \ | |
857 | config/ns32k/xm-merlin.h config/ns32k/xm-umax.h config/pa/nm-hppab.h \ | |
858 | config/pa/nm-hppah.h config/pa/tm-hppab.h config/pa/tm-hppah.h \ | |
859 | config/pa/xm-hppab.h config/pa/xm-hppah.h config/pyr/tm-pyr.h \ | |
860 | config/pyr/xm-pyr.h config/romp/xm-rtbsd.h config/rs6000/nm-rs6000.h \ | |
861 | config/rs6000/tm-rs6000.h config/rs6000/xm-rs6000.h config/sh/tm-sh.h \ | |
862 | config/sparc/nm-sun4os4.h config/sparc/tm-sparclite.h \ | |
863 | config/sparc/tm-spc-em.h config/sparc/tm-sun4os4.h \ | |
864 | config/sparc/tm-sun4sol2.h config/sparc/tm-vxsparc.h \ | |
865 | config/sparc/xm-sun4os4.h config/sparc/xm-sun4sol2.h \ | |
866 | config/tahoe/tm-tahoe.h config/tahoe/xm-tahoe.h config/vax/nm-vax.h \ | |
867 | config/vax/tm-vax.h config/vax/xm-vaxbsd.h config/vax/xm-vaxult.h \ | |
868 | config/vax/xm-vaxult2.h config/z8k/tm-z8k.h | |
869 | ||
870 | ALLCONFIG = config/a29k/a29k-kern.mt config/a29k/a29k-udi.mt \ | |
871 | config/a29k/a29k.mt config/a29k/ultra3.mh config/a29k/ultra3.mt \ | |
872 | config/arm/arm.mh config/arm/arm.mt config/convex/convex.mh \ | |
873 | config/convex/convex.mt config/gould/np1.mh config/gould/np1.mt \ | |
874 | config/gould/pn.mh config/gould/pn.mt config/h8300/h8300hms.mt \ | |
875 | config/h8500/h8500hms.mt config/i386/go32.mh config/i386/i386aix.mh \ | |
876 | config/i386/i386aix.mt config/i386/i386aout.mt config/i386/i386bsd.mh \ | |
877 | config/i386/i386bsd.mt config/i386/i386lynx.mh config/i386/i386lynx.mt \ | |
878 | config/i386/i386mach.mh config/i386/i386sco.mh config/i386/i386sco4.mh \ | |
879 | config/i386/i386sol2.mh config/i386/i386sol2.mt config/i386/i386v.mh \ | |
880 | config/i386/i386v.mt config/i386/i386v32.mh config/i386/i386v4.mh \ | |
881 | config/i386/i386v4.mt config/i386/linux.mh config/i386/linux.mt \ | |
882 | config/i386/ncr3000.mh config/i386/ncr3000.mt config/i386/sun386.mh \ | |
883 | config/i386/sun386.mt config/i386/symmetry.mh config/i386/symmetry.mt \ | |
884 | config/i960/nindy960.mt config/i960/vxworks960.mt config/m68k/3b1.mh \ | |
885 | config/m68k/3b1.mt config/m68k/altos.mh config/m68k/altos.mt \ | |
886 | config/m68k/amix.mh config/m68k/amix.mt config/m68k/apollo68b.mh \ | |
887 | config/m68k/apollo68v.mh config/m68k/es1800.mt config/m68k/hp300bsd.mh \ | |
888 | config/m68k/hp300bsd.mt config/m68k/hp300hpux.mh \ | |
889 | config/m68k/hp300hpux.mt config/m68k/isi.mh config/m68k/isi.mt \ | |
890 | config/m68k/m68k-fp.mt config/m68k/m68k-nofp.mt config/m68k/monitor.mt \ | |
891 | config/m68k/news.mh config/m68k/news.mt config/m68k/news1000.mh \ | |
892 | config/m68k/os68k.mt config/m68k/st2000.mt config/m68k/sun2os3.mh \ | |
893 | config/m68k/sun2os3.mt config/m68k/sun2os4.mh config/m68k/sun2os4.mt \ | |
894 | config/m68k/sun3os3.mh config/m68k/sun3os3.mt config/m68k/sun3os4.mh \ | |
895 | config/m68k/sun3os4.mt config/m68k/vxworks68.mt config/m88k/delta88.mh \ | |
896 | config/m88k/delta88.mt config/m88k/m88k.mh config/m88k/m88k.mt \ | |
897 | config/mips/bigmips.mt config/mips/decstation.mh \ | |
898 | config/mips/decstation.mt config/mips/idt.mt config/mips/idtl.mt \ | |
899 | config/mips/irix3.mh config/mips/irix3.mt config/mips/irix4.mh \ | |
900 | config/mips/littlemips.mh config/mips/littlemips.mt \ | |
901 | config/none/none.mh config/none/none.mt config/ns32k/merlin.mh \ | |
902 | config/ns32k/merlin.mt config/ns32k/umax.mh config/ns32k/umax.mt \ | |
903 | config/pa/hppabsd.mh config/pa/hppabsd.mt config/pa/hppahpux.mh \ | |
904 | config/pa/hppahpux.mt config/pyr/pyramid.mh config/pyr/pyramid.mt \ | |
905 | config/romp/rtbsd.mh config/rs6000/rs6000.mh config/rs6000/rs6000.mt \ | |
906 | config/sh/sh.mt config/sparc/sparc-em.mt config/sparc/sparclite.mt \ | |
907 | config/sparc/sun4os4.mh config/sparc/sun4os4.mt \ | |
908 | config/sparc/sun4sol2.mh config/sparc/sun4sol2.mt \ | |
909 | config/sparc/vxsparc.mt config/tahoe/tahoe.mh config/tahoe/tahoe.mt \ | |
910 | config/vax/vax.mt config/vax/vaxbsd.mh config/vax/vaxult.mh \ | |
911 | config/vax/vaxult2.mh config/z8k/z8ksim.mt | |
912 | ||
913 | ||
914 | udip2soc.o: 29k-share/udi/udip2soc.c $(udiheaders) | |
915 | $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udip2soc.c | |
916 | ||
917 | udr.o: 29k-share/udi/udr.c $(udiheaders) | |
918 | $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udr.c | |
919 | ||
920 | a29k-pinsn.o: a29k-pinsn.c $(bfd_h) $(dis-asm_h) | |
921 | a29k-tdep.o: a29k-tdep.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) | |
922 | a68v-nat.o: a68v-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
923 | altos-xdep.o: altos-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
924 | arm-pinsn.o: arm-pinsn.c $(OP_INCLUDE)/arm.h $(defs_h) $(symtab_h) | |
925 | ||
926 | blockframe.o: blockframe.c $(defs_h) $(gdbcore_h) $(inferior_h) \ | |
927 | objfiles.h symfile.h target.h | |
928 | ||
929 | breakpoint.o: breakpoint.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \ | |
930 | $(inferior_h) language.h target.h | |
931 | ||
932 | buildsym.o: buildsym.c $(bfd_h) buildsym.h complaints.h $(defs_h) \ | |
933 | objfiles.h symfile.h $(symtab_h) | |
934 | ||
935 | c-lang.o: c-lang.c c-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \ | |
936 | language.h parser-defs.h $(symtab_h) | |
937 | ||
938 | c-typeprint.o: c-typeprint.c c-lang.h $(defs_h) $(expression_h) \ | |
939 | $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \ | |
940 | typeprint.h $(value_h) | |
941 | ||
942 | c-valprint.o: c-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \ | |
943 | language.h $(symtab_h) valprint.h $(value_h) | |
944 | ||
945 | ch-lang.o: ch-lang.c ch-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \ | |
946 | language.h parser-defs.h $(symtab_h) | |
947 | ||
948 | ch-typeprint.o: ch-typeprint.c ch-lang.h $(defs_h) $(expression_h) \ | |
949 | $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \ | |
950 | $(value_h) | |
951 | ||
952 | ch-valprint.o: ch-valprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \ | |
953 | language.h $(symtab_h) valprint.h $(value_h) | |
954 | ||
955 | coffread.o: coffread.c $(bfd_h) $(breakpoint_h) buildsym.h \ | |
956 | complaints.h $(defs_h) $(expression_h) $(gdbtypes_h) objfiles.h \ | |
957 | symfile.h $(symtab_h) | |
958 | ||
959 | command.o: command.c $(defs_h) $(expression_h) $(gdbcmd_h) \ | |
960 | $(gdbtypes_h) $(symtab_h) $(value_h) | |
961 | ||
962 | complaints.o: complaints.c complaints.h $(defs_h) $(gdbcmd_h) | |
963 | ||
964 | convex-pinsn.o: convex-pinsn.c $(OP_INCLUDE)/convex.h $(defs_h) \ | |
965 | $(symtab_h) | |
966 | ||
967 | convex-tdep.o: convex-tdep.c $(wait_h) $(defs_h) $(gdbcmd_h) \ | |
968 | $(gdbcore_h) $(inferior_h) | |
969 | ||
970 | convex-xdep.o: convex-xdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \ | |
971 | $(inferior_h) | |
972 | ||
973 | core-svr4.o: core-svr4.c $(command_h) $(defs_h) $(gdbcore_h) \ | |
974 | $(inferior_h) target.h | |
975 | ||
976 | core.o: core.c $(dis-asm_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \ | |
977 | $(inferior_h) target.h | |
978 | ||
979 | coredep.o: coredep.c $(defs_h) $(gdbcore_h) | |
980 | ||
981 | corelow.o: corelow.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \ | |
982 | target.h | |
983 | ||
984 | cp-valprint.o: cp-valprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \ | |
985 | $(gdbtypes_h) $(symtab_h) $(value_h) | |
986 | ||
987 | dbxread.o: dbxread.c $(breakpoint_h) buildsym.h $(command_h) \ | |
988 | complaints.h $(defs_h) $(expression_h) gdb-stabs.h $(gdbcore_h) \ | |
989 | $(gdbtypes_h) language.h objfiles.h partial-stab.h stabsread.h \ | |
990 | symfile.h $(symtab_h) target.h | |
991 | ||
992 | demangle.o: demangle.c $(defs_h) $(gdbcmd_h) | |
993 | ||
994 | dwarfread.o: dwarfread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \ | |
995 | $(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \ | |
996 | $(symtab_h) | |
997 | ||
998 | elfread.o: elfread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \ | |
999 | gdb-stabs.h objfiles.h symfile.h $(symtab_h) | |
1000 | ||
1001 | environ.o: environ.c $(defs_h) environ.h | |
1002 | ||
1003 | eval.o: eval.c $(bfd_h) $(defs_h) $(expression_h) $(frame_h) \ | |
1004 | $(gdbtypes_h) language.h $(symtab_h) target.h $(value_h) | |
1005 | ||
1006 | exec.o: exec.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \ | |
1007 | target.h | |
1008 | ||
1009 | expprint.o: expprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \ | |
1010 | language.h parser-defs.h $(symtab_h) $(value_h) | |
1011 | ||
1012 | findvar.o: findvar.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h | |
1013 | ||
1014 | fork-child.o: fork-child.c $(wait_h) $(defs_h) $(gdbcore_h) \ | |
1015 | $(inferior_h) target.h terminal.h | |
1016 | ||
1017 | gdbtypes.o: gdbtypes.c $(bfd_h) complaints.h $(defs_h) $(expression_h) \ | |
1018 | $(gdbtypes_h) language.h objfiles.h symfile.h $(symtab_h) target.h \ | |
1019 | $(value_h) | |
1020 | ||
1021 | go32-xdep.o: go32-xdep.c | |
1022 | ||
1023 | gould-pinsn.o: gould-pinsn.c $(OP_INCLUDE)/np1.h $(defs_h) $(frame_h) \ | |
1024 | $(gdbcore_h) $(symtab_h) | |
1025 | ||
1026 | gould-xdep.o: gould-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
1027 | h8300-tdep.o: h8300-tdep.c $(defs_h) $(frame_h) $(symtab_h) | |
1028 | ||
1029 | h8500-tdep.o: h8500-tdep.c $(bfd_h) $(dis-asm_h) $(defs_h) \ | |
1030 | $(expression_h) $(frame_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) \ | |
1031 | $(value_h) | |
1032 | ||
1033 | hp300ux-nat.o: hp300ux-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
1034 | hppa-pinsn.o: hppa-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h) | |
1035 | ||
1036 | hppa-tdep.o: hppa-tdep.c $(wait_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \ | |
1037 | $(inferior_h) objfiles.h symfile.h target.h | |
1038 | ||
1039 | hppab-nat.o: hppab-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h | |
1040 | hppah-nat.o: hppah-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h | |
1041 | i386-pinsn.o: i386-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h) | |
1042 | i386-tdep.o: i386-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h | |
1043 | i386b-nat.o: i386b-nat.c $(defs_h) | |
1044 | i386mach-nat.o: i386mach-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
1045 | ||
1046 | i386v-nat.o: i386v-nat.c $(ieee-float_h) $(defs_h) $(gdbcore_h) \ | |
1047 | $(inferior_h) language.h target.h | |
1048 | ||
1049 | i386v4-nat.o: i386v4-nat.c $(defs_h) | |
1050 | ||
1051 | i387-tdep.o: i387-tdep.c $(ieee-float_h) $(defs_h) $(gdbcore_h) \ | |
1052 | $(inferior_h) language.h | |
1053 | ||
1054 | i960-pinsn.o: i960-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h) | |
1055 | ||
1056 | i960-tdep.o: i960-tdep.c $(ieee-float_h) $(defs_h) $(expression_h) \ | |
1057 | $(frame_h) $(gdbtypes_h) $(symtab_h) $(value_h) | |
1058 | ||
1059 | infcmd.o: infcmd.c $(defs_h) environ.h $(gdbcmd_h) $(gdbcore_h) \ | |
1060 | $(inferior_h) target.h | |
1061 | ||
1062 | inflow.o: inflow.c $(bfd_h) $(command_h) $(defs_h) $(inferior_h) \ | |
1063 | signals.h target.h terminal.h | |
1064 | ||
1065 | infptrace.o: infptrace.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h | |
1066 | ||
1067 | infrun.o: infrun.c $(wait_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \ | |
1068 | $(inferior_h) target.h | |
1069 | ||
1070 | inftarg.o: inftarg.c $(wait_h) $(defs_h) $(gdbcore_h) $(inferior_h) \ | |
1071 | target.h terminal.h | |
1072 | ||
1073 | irix4-nat.o: irix4-nat.c $(defs_h) $(inferior_h) | |
1074 | isi-xdep.o: isi-xdep.c | |
1075 | ||
1076 | language.o: language.c $(bfd_h) $(defs_h) $(expression_h) $(frame_h) \ | |
1077 | $(gdbcmd_h) $(gdbtypes_h) language.h parser-defs.h $(symtab_h) \ | |
1078 | target.h $(value_h) | |
1079 | ||
1080 | m2-lang.o: m2-lang.c $(defs_h) $(expression_h) $(gdbtypes_h) \ | |
1081 | language.h m2-lang.h parser-defs.h $(symtab_h) | |
1082 | ||
1083 | m2-typeprint.o: m2-typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \ | |
1084 | $(gdbcore_h) $(gdbtypes_h) language.h m2-lang.h $(symtab_h) target.h \ | |
1085 | $(value_h) | |
1086 | ||
1087 | m2-valprint.o: m2-valprint.c $(defs_h) $(gdbtypes_h) $(symtab_h) \ | |
1088 | valprint.h | |
1089 | ||
1090 | m68k-pinsn.o: m68k-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h) | |
1091 | m68k-tdep.o: m68k-tdep.c $(defs_h) $(frame_h) $(symtab_h) | |
1092 | m88k-nat.o: m88k-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
1093 | m88k-pinsn.o: m88k-pinsn.c $(defs_h) $(symtab_h) | |
1094 | m88k-tdep.o: m88k-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
1095 | ||
1096 | main.o: main.c $(bfd_h) $(getopt_h) $(readline_headers) call-cmds.h \ | |
1097 | $(defs_h) $(gdbcmd_h) $(inferior_h) language.h signals.h target.h | |
1098 | $(CC) -c $(INTERNAL_CFLAGS) $(READLINE_CFLAGS) $(srcdir)/main.c | |
1099 | ||
1100 | maint.o: maint.c $(defs_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) | |
1101 | mem-break.o: mem-break.c $(defs_h) | |
1102 | ||
1103 | minsyms.o: minsyms.c $(bfd_h) $(defs_h) objfiles.h symfile.h \ | |
1104 | $(symtab_h) | |
1105 | ||
1106 | mips-nat.o: mips-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
1107 | mips-pinsn.o: mips-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h) | |
1108 | ||
1109 | mips-tdep.o: mips-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \ | |
1110 | $(inferior_h) language.h objfiles.h symfile.h | |
1111 | ||
1112 | mipsread.o: mipsread.c buildsym.h complaints.h $(defs_h) \ | |
1113 | $(expression_h) gdb-stabs.h $(gdbcore_h) $(gdbtypes_h) language.h \ | |
1114 | objfiles.h partial-stab.h stabsread.h symfile.h $(symtab_h) | |
1115 | ||
1116 | news-xdep.o: news-xdep.c | |
1117 | ||
1118 | Onindy.o: nindy-share/Onindy.c $(wait_h) nindy-share/block_io.h \ | |
1119 | nindy-share/env.h nindy-share/ttycntl.h | |
1120 | $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/Onindy.c | |
1121 | ||
1122 | nindy.o: nindy-share/nindy.c $(wait_h) nindy-share/block_io.h \ | |
1123 | nindy-share/env.h nindy-share/ttycntl.h | |
1124 | $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/nindy.c | |
1125 | ||
1126 | ttybreak.o: nindy-share/ttybreak.c nindy-share/ttycntl.h | |
1127 | $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/ttybreak.c | |
1128 | ||
1129 | ttyflush.o: nindy-share/ttyflush.c nindy-share/ttycntl.h | |
1130 | $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/ttyflush.c | |
1131 | ||
1132 | nindy-tdep.o: nindy-tdep.c $(defs_h) $(frame_h) $(symtab_h) | |
1133 | ||
1134 | ns32k-pinsn.o: ns32k-pinsn.c $(defs_h) $(gdbcore_h) ns32k-opcode.h \ | |
1135 | $(symtab_h) | |
1136 | ||
1137 | objfiles.o: objfiles.c $(bfd_h) $(defs_h) objfiles.h symfile.h \ | |
1138 | $(symtab_h) | |
1139 | ||
1140 | paread.o: paread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \ | |
1141 | gdb-stabs.h objfiles.h symfile.h $(symtab_h) | |
1142 | ||
1143 | parse.o: parse.c $(command_h) $(defs_h) $(expression_h) $(frame_h) \ | |
1144 | $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h) | |
1145 | ||
1146 | printcmd.o: printcmd.c $(breakpoint_h) $(defs_h) $(expression_h) \ | |
1147 | $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h objfiles.h symfile.h \ | |
1148 | $(symtab_h) target.h | |
1149 | ||
1150 | procfs.o: procfs.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \ | |
1151 | target.h | |
1152 | ||
1153 | putenv.o: putenv.c | |
1154 | ||
1155 | pyr-pinsn.o: pyr-pinsn.c $(OP_INCLUDE)/pyr.h $(defs_h) $(gdbcore_h) \ | |
1156 | $(symtab_h) | |
1157 | ||
1158 | pyr-tdep.o: pyr-tdep.c $(defs_h) | |
1159 | pyr-xdep.o: pyr-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
1160 | ||
1161 | remote-adapt.o: remote-adapt.c $(wait_h) $(defs_h) $(gdbcore_h) \ | |
1162 | $(inferior_h) target.h terminal.h | |
1163 | ||
1164 | remote-eb.o: remote-eb.c $(wait_h) $(srcdir)/config/a29k/tm-a29k.h \ | |
1165 | $(defs_h) $(gdbcore_h) $(inferior_h) symfile.h target.h terminal.h | |
1166 | ||
1167 | remote-es.o: remote-es.c $(bfd_h) $(wait_h) $(command_h) $(defs_h) \ | |
1168 | $(inferior_h) target.h terminal.h | |
1169 | ||
1170 | remote-hms.o: remote-hms.c $(wait_h) $(defs_h) $(gdbcore_h) \ | |
1171 | $(inferior_h) serial.h target.h terminal.h | |
1172 | ||
1173 | remote-mips.o: remote-mips.c $(wait_h) $(defs_h) $(gdbcmd_h) \ | |
1174 | $(gdbcore_h) $(inferior_h) serial.h symfile.h target.h | |
1175 | ||
1176 | remote-mm.o: remote-mm.c $(bfd_h) $(wait_h) $(defs_h) $(inferior_h) \ | |
1177 | minimon.h target.h terminal.h | |
1178 | ||
1179 | remote-monitor.o: remote-monitor.c $(wait_h) $(command_h) $(defs_h) \ | |
1180 | $(gdbcore_h) monitor.h serial.h target.h | |
1181 | ||
1182 | remote-nindy.o: remote-nindy.c $(ieee-float_h) $(wait_h) $(command_h) \ | |
1183 | $(defs_h) $(gdbcore_h) $(inferior_h) nindy-share/demux.h \ | |
1184 | nindy-share/env.h nindy-share/stop.h nindy-share/ttycntl.h \ | |
1185 | symfile.h target.h | |
1186 | ||
1187 | remote-sim.o: remote-sim.c $(wait_h) $(defs_h) $(gdbcore_h) \ | |
1188 | $(inferior_h) target.h terminal.h | |
1189 | ||
1190 | remote-st.o: remote-st.c $(wait_h) $(defs_h) $(gdbcore_h) serial.h \ | |
1191 | target.h | |
1192 | ||
1193 | remote-udi.o: remote-udi.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \ | |
1194 | $(inferior_h) target.h terminal.h $(udiheaders) | |
1195 | ||
1196 | remote-vx.o: remote-vx.c $(wait_h) complaints.h $(defs_h) $(gdbcmd_h) \ | |
1197 | $(gdbcore_h) $(inferior_h) target.h vx-share/dbgRpcLib.h \ | |
1198 | vx-share/ptrace.h vx-share/xdr_ld.h vx-share/xdr_ptrace.h \ | |
1199 | vx-share/xdr_rdb.h | |
1200 | ||
1201 | remote-z8k.o: remote-z8k.c $(wait_h) $(srcdir)/../sim/z8k/sim.h \ | |
1202 | $(defs_h) $(gdbcore_h) $(inferior_h) target.h terminal.h | |
1203 | ||
1204 | remote.o: remote.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \ | |
1205 | $(inferior_h) serial.h symfile.h target.h terminal.h | |
1206 | ||
1207 | rs6000-nat.o: rs6000-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h | |
1208 | ||
1209 | rs6000-pinsn.o: rs6000-pinsn.c $(OP_INCLUDE)/rs6k.h $(defs_h) | |
1210 | ||
1211 | rs6000-tdep.o: rs6000-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \ | |
1212 | target.h xcoffsolib.h | |
1213 | ||
1214 | ser-go32.o: ser-go32.c $(defs_h) serial.h | |
1215 | ser-tcp.o: ser-tcp.c $(defs_h) serial.h signals.h | |
1216 | ser-unix.o: ser-unix.c $(defs_h) serial.h | |
1217 | serial.o: serial.c $(defs_h) serial.h | |
1218 | ||
1219 | sh-tdep.o: sh-tdep.c $(bfd_h) $(dis-asm_h) \ | |
1220 | $(srcdir)/../opcodes/sh-opc.h $(defs_h) $(expression_h) $(frame_h) \ | |
1221 | $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) $(value_h) | |
1222 | ||
1223 | solib.o: solib.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \ | |
1224 | objfiles.h regex.h symfile.h target.h | |
1225 | ||
1226 | source.o: source.c $(defs_h) $(expression_h) $(frame_h) $(gdbcmd_h) \ | |
1227 | $(gdbcore_h) language.h objfiles.h regex.h symfile.h $(symtab_h) | |
1228 | ||
1229 | sparc-nat.o: sparc-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h | |
1230 | sparc-pinsn.o: sparc-pinsn.c $(bfd_h) $(dis-asm_h) $(defs_h) | |
1231 | ||
1232 | sparc-tdep.o: sparc-tdep.c $(ieee-float_h) $(defs_h) $(gdbcore_h) \ | |
1233 | $(inferior_h) objfiles.h symfile.h target.h | |
1234 | ||
1235 | stabsread.o: stabsread.c $(bfd_h) $(INCLUDE_DIR)/aout/stab.def \ | |
1236 | $(INCLUDE_DIR)/aout/stab_gnu.h buildsym.h complaints.h $(defs_h) \ | |
1237 | $(gdbtypes_h) objfiles.h stabsread.h symfile.h $(symtab_h) | |
1238 | ||
1239 | stack.o: stack.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \ | |
1240 | language.h target.h | |
1241 | ||
1242 | sun3-nat.o: sun3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
1243 | sun386-nat.o: sun386-nat.c $(defs_h) $(inferior_h) $(gdbcore_h) | |
1244 | ||
1245 | symfile.o: symfile.c $(breakpoint_h) complaints.h $(defs_h) \ | |
1246 | $(expression_h) $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) \ | |
1247 | language.h objfiles.h symfile.h $(symtab_h) target.h | |
1248 | ||
1249 | symm-tdep.o: symm-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
1250 | symm-xdep.o: symm-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
1251 | ||
1252 | symmisc.o: symmisc.c $(bfd_h) $(breakpoint_h) $(command_h) $(defs_h) \ | |
1253 | $(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \ | |
1254 | $(symtab_h) | |
1255 | ||
1256 | symtab.o: symtab.c call-cmds.h $(defs_h) $(expression_h) $(frame_h) \ | |
1257 | $(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h objfiles.h \ | |
1258 | regex.h symfile.h $(symtab_h) target.h $(value_h) | |
1259 | ||
1260 | tahoe-pinsn.o: tahoe-pinsn.c $(OP_INCLUDE)/tahoe.h $(defs_h) \ | |
1261 | $(symtab_h) | |
1262 | ||
1263 | target.o: target.c $(bfd_h) $(defs_h) $(gdbcmd_h) $(inferior_h) \ | |
1264 | objfiles.h symfile.h target.h | |
1265 | ||
1266 | typeprint.o: typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \ | |
1267 | $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \ | |
1268 | $(value_h) | |
1269 | ||
1270 | ultra3-nat.o: ultra3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) | |
1271 | ultra3-xdep.o: ultra3-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h | |
1272 | umax-xdep.o: umax-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h | |
1273 | ||
1274 | utils.o: utils.c $(bfd_h) $(defs_h) $(expression_h) $(gdbcmd_h) \ | |
1275 | language.h signals.h target.h terminal.h | |
1276 | ||
1277 | valarith.o: valarith.c $(bfd_h) $(defs_h) $(expression_h) \ | |
1278 | $(gdbtypes_h) language.h $(symtab_h) target.h $(value_h) | |
1279 | ||
1280 | valops.o: valops.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h | |
1281 | ||
1282 | valprint.o: valprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \ | |
1283 | $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \ | |
1284 | $(value_h) | |
1285 | ||
1286 | values.o: values.c $(defs_h) $(expression_h) $(frame_h) $(gdbcmd_h) \ | |
1287 | $(gdbcore_h) $(gdbtypes_h) $(symtab_h) target.h $(value_h) | |
1288 | ||
1289 | vax-pinsn.o: vax-pinsn.c $(OP_INCLUDE)/vax.h $(defs_h) $(symtab_h) | |
1290 | ||
1291 | xdr_ld.o: vx-share/xdr_ld.c $(defs_h) vx-share/vxTypes.h \ | |
1292 | vx-share/vxWorks.h vx-share/xdr_ld.h | |
1293 | $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_ld.c | |
1294 | ||
1295 | xdr_ptrace.o: vx-share/xdr_ptrace.c $(defs_h) vx-share/vxTypes.h \ | |
1296 | vx-share/vxWorks.h vx-share/xdr_ptrace.h | |
1297 | $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_ptrace.c | |
1298 | ||
1299 | xdr_rdb.o: vx-share/xdr_rdb.c $(defs_h) vx-share/vxTypes.h \ | |
1300 | vx-share/vxWorks.h vx-share/xdr_rdb.h | |
1301 | $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_rdb.c | |
1302 | ||
1303 | xcoffexec.o: xcoffexec.c $(BFD_SRC)/libbfd.h $(defs_h) $(gdbcmd_h) \ | |
1304 | $(gdbcore_h) $(inferior_h) objfiles.h symfile.h target.h xcoffsolib.h | |
1305 | ||
1306 | xcoffread.o: xcoffread.c $(bfd_h) $(INCLUDE_DIR)/aout/stab.def \ | |
1307 | $(INCLUDE_DIR)/aout/stab_gnu.h $(INCLUDE_DIR)/coff/internal.h \ | |
1308 | $(INCLUDE_DIR)/coff/rs6000.h $(BFD_SRC)/libcoff.h buildsym.h \ | |
1309 | complaints.h $(defs_h) $(gdbtypes_h) objfiles.h stabsread.h symfile.h \ | |
1310 | $(symtab_h) | |
1311 | ||
1312 | xcoffsolib.o: xcoffsolib.c $(bfd_h) $(defs_h) xcoffsolib.h | |
1313 | ||
1314 | z8k-tdep.o: z8k-tdep.c $(bfd_h) $(dis-asm_h) $(defs_h) $(frame_h) \ | |
1315 | $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) | |
1316 | ||
1317 | c-exp.tab.o: c-exp.tab.c c-lang.h $(defs_h) $(expression_h) \ | |
1318 | $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h) | |
1319 | ||
1320 | ch-exp.tab.o: ch-exp.tab.c ch-lang.h $(defs_h) $(expression_h) \ | |
1321 | $(gdbtypes_h) language.h parser-defs.h $(symtab_h) $(value_h) | |
1322 | ||
1323 | m2-exp.tab.o: m2-exp.tab.c $(defs_h) $(expression_h) $(gdbtypes_h) \ | |
1324 | language.h m2-lang.h parser-defs.h $(symtab_h) $(value_h) | |
1325 | ||
1326 | ### end of the gdb Makefile.in. |