1 #Copyright 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
3 # This file is part of GDB.
5 # This program is free software; you can redistribute it and/or modify
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.
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.
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
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 program_transform_name
=
22 exec_prefix = $(prefix)
23 bindir = $(exec_prefix)/bin
24 libdir = $(exec_prefix)/lib
25 tooldir
= $(libdir)/$(target_alias
)
27 datadir = $(prefix)/lib
28 mandir = $(prefix)/man
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
38 infodir = $(prefix)/info
39 includedir = $(prefix)/include
40 docdir
= $(datadir)/doc
44 INSTALL
= `cd $(srcdir)/..;pwd`/install.sh
-c
45 INSTALL_PROGRAM
= $(INSTALL
)
46 INSTALL_DATA
= $(INSTALL
)
47 INSTALL_XFORM
= $(INSTALL
) -t
='$(program_transform_name)'
48 INSTALL_XFORM1
= $(INSTALL_XFORM
) -b
=.1
54 # Flags that describe where you can find the termcap library.
55 # This can be overridden in the host Makefile fragment file.
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.
63 # If you are compiling with GCC, make sure that either 1) You use the
64 # -traditional flag, or 2) You have the fixed include files where GCC
65 # can reach them. Otherwise the ioctl calls in inflow.c
66 # will be incorrectly compiled. The "fixincludes" script in the gcc
67 # distribution will fix your include files up.
72 # Directory containing source files. Don't clean up the spacing,
73 # this exact string is matched for by the "configure" script.
76 # It is also possible that you will need to add -I/usr/include/sys to the
77 # CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
78 # is where it should be according to Posix).
80 # If you use bison instead of yacc, it needs to include the "-y" argument.
85 # where to find texinfo; GDB dist should include a recent one
86 TEXIDIR
=${srcdir}/..
/texinfo
88 # where to find makeinfo, preferably one designed for texinfo-2
91 # Set this up with gcc if you have gnu ld and the loader will print out
92 # line numbers for undefinded refs.
96 # Where is the "include" directory? Traditionally ../include or ./include
97 INCLUDE_DIR
= ${srcdir}/..
/include
98 INCLUDE_DEP
= $$(INCLUDE_DIR
)
100 # Where is the source dir for the MMALLOC library? Traditionally ../mmalloc
101 # or ./mmalloc (When we want the binary library built from it, we use
102 # ${MMALLOC_DIR}${subdir}.)
103 # Note that mmalloc can still be used on systems without mmap().
104 # To use your system malloc, comment out the following defines.
105 MMALLOC_DIR
= ${srcdir}/..
/mmalloc
106 MMALLOC_DEP
= $$(MMALLOC_DIR
)
107 MMALLOC_LIB
= .
/..
/mmalloc
${subdir}/libmmalloc.a
108 # To use your system malloc, uncomment MMALLOC_DISABLE.
109 #MMALLOC_DISABLE = -DNO_MMALLOC
110 # To use mmalloc but disable corruption checking, uncomment MMALLOC_CHECK
111 #MMALLOC_CHECK = -DNO_MMALLOC_CHECK
112 MMALLOC_CFLAGS
= ${MMALLOC_CHECK} ${MMALLOC_DISABLE}
114 # Where are the source and binary directories for the BFD library?
115 BFD_SRC_DIR
= ${srcdir}/..
/bfd
116 BFD_OBJ_DIR
= .
/..
/bfd
${subdir}
117 BFD_DEP
= $$(BFD_SRC_DIR
)
118 BFD_LIB
= $(BFD_OBJ_DIR
)/libbfd.a
119 BFD_INCLUDES
= -I
${BFD_SRC_DIR} -I
${BFD_OBJ_DIR}
121 # Where is the source dir for the READLINE library? Traditionally in .. or .
122 # (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
123 READLINE_DIR
= ${srcdir}/..
/readline
124 READLINE_DEP
= $$(READLINE_DIR
)
125 RL_LIB
= .
/..
/readline
${subdir}/libreadline.a
127 # All the includes used for CFLAGS and for lint.
128 # -I. for config files.
129 # -I${srcdir} possibly for regex.h also.
130 # -I${srcdir}/config for more generic config files.
131 INCLUDE_CFLAGS
= -I.
-I
${srcdir} -I
${srcdir}/config \
132 -I
$(INCLUDE_DIR
) -I..
/include ${BFD_INCLUDES}
134 # M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
135 # from the config/ directory.
136 GLOBAL_CFLAGS
= ${MT_CFLAGS} ${MH_CFLAGS}
137 #PROFILE_CFLAGS = -pg
139 # CFLAGS is specifically reserved for setting from the command line
140 # when running make. I.E. "make USER_CFLAGS=-Wmissing-prototypes".
142 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
143 INTERNAL_CFLAGS
= ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${MMALLOC_CFLAGS} ${INCLUDE_CFLAGS} ${USER_CFLAGS}
144 # None of the things in CFLAGS will do any harm, and on some systems
145 # (e.g. SunOS4) it is important to use the MH_CFLAGS.
148 # Where is the "-liberty" library, containing getopt and obstack?
149 LIBIBERTY_DIR
= ${srcdir}/..
/libiberty
150 LIBIBERTY
= .
/..
/libiberty
${subdir}/libiberty.a
152 # Where is the "-lopcodes" library, with (some of) the opcode tables and
154 OPCODES
= .
/..
/opcodes
${subdir}/libopcodes.a
156 # The config/mh-* file must define REGEX and REGEX1 on USG machines.
157 # If your system is missing alloca(), or, more likely, it's there but
158 # it doesn't work, define ALLOCA & ALLOCA1 too.
160 # Libraries and corresponding dependencies for compiling gdb.
161 # {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
162 # TERMCAP comes after readline, since readline depends on it.
163 # If you have the Cygnus libraries installed,
164 # you can use 'CLIBS=${INSTALLED_LIBS}' 'CDEPS='
165 INSTALLED_LIBS
=-lbfd
-lreadline
${TERMCAP} -lopcodes
-lmmalloc \
166 -liberty
${XM_CLIBS} ${TM_CLIBS} ${NAT_CLIBS}
167 CLIBS
= ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} \
168 ${LIBIBERTY} ${XM_CLIBS} ${TM_CLIBS} ${NAT_CLIBS}
169 CDEPS
= ${XM_CDEPS} ${TM_CDEPS} ${NAT_CDEPS} \
170 ${BFD_LIB} ${RL_LIB} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY}
172 ADD_FILES
= ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES} \
174 ADD_DEPS
= ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} \
181 LINTFLAGS
= ${BFD_INCLUDES}
186 # This is ser-unix.o for any system which supports a v7/BSD/SYSV/POSIX
187 # interface to the serial port. Hopefully if get ported to OS/2, VMS,
188 # etc., then there will be (as part of the C library or perhaps as
189 # part of libiberty) a POSIX interface. But at least for now the
190 # host-dependent makefile fragment might need to use something else
192 SER_HARDWIRE
=ser-unix.o
194 # Host and target-dependent makefile fragments come in here.
196 # End of host and target-dependent makefile fragments
200 "exec_prefix=$(exec_prefix)" \
201 "against=$(against)" \
203 "AR_FLAGS=$(AR_FLAGS)" \
206 "CHILLFLAGS=$(CHILLFLAGS)" \
208 "CHILL_LIB=$(CHILL_LIB)" \
210 "CXXFLAGS=$(CXXFLAGS)" \
212 "MAKEINFO=$(MAKEINFO)" \
213 "INSTALL=$(INSTALL)" \
214 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
215 "INSTALL_DATA=$(INSTALL_DATA)" \
216 "RUNTEST=$(RUNTEST)" \
217 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
220 # Flags that we pass when building the testsuite.
223 if [ -f $${rootme}/../gcc/Makefile ] ; then \
224 echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
226 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
229 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
236 if [ -f $${rootme}/../gcc/Makefile ] ; then \
237 echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
239 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
242 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
246 CHILLFLAGS
= $(CFLAGS
)
248 CHILL_FOR_TARGET
= ` \
249 if [ -f $${rootme}/../gcc/Makefile ] ; then \
250 echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -L$${rootme}/../chillrt/; \
252 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
255 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
260 # The use of $$(x_FOR_TARGET) reduces the command line length by not
261 # duplicating the lengthy definition.
262 TARGET_FLAGS_TO_PASS
= \
264 "exec_prefix=$(exec_prefix)" \
265 "against=$(against)" \
266 'CC=$$(CC_FOR_TARGET)' \
267 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
269 "CHILLFLAGS=$(CHILLFLAGS)" \
270 'CHILL=$$(CHILL_FOR_TARGET)' \
271 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
272 "CHILL_LIB=$(CHILL_LIB)" \
273 'CXX=$$(CXX_FOR_TARGET)' \
274 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
275 "CXXFLAGS=$(CXXFLAGS)" \
276 "MAKEINFO=$(MAKEINFO)" \
277 "INSTALL=$(INSTALL)" \
278 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
279 "INSTALL_DATA=$(INSTALL_DATA)" \
280 "RUNTEST=$(RUNTEST)" \
281 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
284 # All source files that go into linking GDB.
285 # Links made at configuration time should not be specified here, since
286 # SFILES is used in building the distribution archive.
288 SFILES
= ${srcdir}/blockframe.c
${srcdir}/breakpoint.c
${srcdir}/buildsym.c \
289 ${srcdir}/c-exp.y
${srcdir}/c-lang.c
${srcdir}/c-typeprint.c \
290 ${srcdir}/c-valprint.c
${srcdir}/ch-exp.y
${srcdir}/ch-lang.c \
291 ${srcdir}/ch-typeprint.c
${srcdir}/ch-valprint.c
${srcdir}/coffread.c \
292 ${srcdir}/command.c
${srcdir}/complaints.c
${srcdir}/core.c \
293 ${srcdir}/cp-valprint.c
${srcdir}/dbxread.c
${srcdir}/demangle.c \
294 ${srcdir}/dwarfread.c
${srcdir}/elfread.c
${srcdir}/environ.c \
295 ${srcdir}/eval.c
${srcdir}/expprint.c
${srcdir}/findvar.c \
296 ${srcdir}/gdbtypes.c \
297 ${srcdir}/infcmd.c
${srcdir}/inflow.c
${srcdir}/infrun.c \
298 ${srcdir}/language.c
${srcdir}/putenv.c
${srcdir}/m2-exp.y \
299 ${srcdir}/m2-lang.c
${srcdir}/m2-typeprint.c \
300 ${srcdir}/m2-valprint.c
${srcdir}/main.c
${srcdir}/maint.c \
301 ${srcdir}/mem-break.c
${srcdir}/minsyms.c
${srcdir}/mipsread.c \
302 ${srcdir}/objfiles.c
${srcdir}/parse.c
${srcdir}/printcmd.c \
303 ${srcdir}/remote.c
${srcdir}/source.c
${srcdir}/stabsread.c \
305 ${srcdir}/symfile.c
${srcdir}/symmisc.c
${srcdir}/symtab.c \
306 ${srcdir}/target.c
${srcdir}/typeprint.c
${srcdir}/utils.c \
307 ${srcdir}/valarith.c \
308 ${srcdir}/valops.c
${srcdir}/valprint.c
${srcdir}/values.c \
309 ${srcdir}/serial.c
${srcdir}/ser-unix.c
311 # Files that are not source code, but need to go into gdb-$(VERSION).tar.Z.
312 NONSRC
= ${srcdir}/Makefile.in
${srcdir}/depend \
313 ${srcdir}/munch
${srcdir}/configure.in \
314 ${srcdir}/ChangeLog
${srcdir}/ChangeLog-9091
${srcdir}/ChangeLog-92 \
315 ${srcdir}/ChangeLog-3.x \
316 ${srcdir}/gdb
.1 ${srcdir}/refcard.ps
${srcdir}/README
${srcdir}/TODO \
317 TAGS
${srcdir}/NEWS
${srcdir}/Projects
${srcdir}/.gdbinit \
318 ${srcdir}/COPYING
$(YYFILES
) ${srcdir}/copying.c \
319 ${srcdir}/copying.awk \
320 ${srcdir}/saber.suppress
${srcdir}/standalone.c
${srcdir}/stuff.c \
321 ${srcdir}/kdb-start.c
${srcdir}/gcc.patch \
322 ${srcdir}/nindy-share
/Makefile
${srcdir}/nindy-share
/VERSION \
323 ${srcdir}/nindy-share
/README
${srcdir}/vx-share
/README \
324 ${srcdir}/29k-share
/README \
325 ${srcdir}/config
/convex
/Convex.notes
327 # All source files that lint should look at
328 LINTFILES
= $(SFILES
) $(YYFILES
) init.c
330 # Any additional files specified on these lines should also be added to
331 # the NONSRC definition, so they go in the tar files.
332 SFILES_STAND
= $(SFILES
) standalone.c
333 SFILES_KGDB
= $(SFILES
) stuff.c kdb-start.c
335 # Header files that are not named in config/*/* Makefile fragments go here.
336 HFILES
= ${srcdir}/breakpoint.h
${srcdir}/buildsym.h
${srcdir}/call-cmds.h \
337 ${srcdir}/command.h
${srcdir}/defs.h
${srcdir}/environ.h \
338 ${srcdir}/expression.h
${srcdir}/frame.h
${srcdir}/gdbcmd.h \
339 ${srcdir}/gdbcore.h
${srcdir}/gdbtypes.h
${srcdir}/gdb-stabs.h \
340 ${srcdir}/inferior.h
${srcdir}/language.h
${srcdir}/minimon.h \
341 ${srcdir}/objfiles.h
${srcdir}/parser-defs.h \
342 ${srcdir}/partial-stab.h
${srcdir}/serial.h
${srcdir}/signals.h \
343 ${srcdir}/solib.h
${srcdir}/symfile.h
${srcdir}/symtab.h \
344 ${srcdir}/stabsread.h
${srcdir}/target.h
${srcdir}/terminal.h \
345 ${srcdir}/typeprint.h
${srcdir}/xcoffsolib.h
${srcdir}/value.h \
346 ${srcdir}/c-lang.h
${srcdir}/ch-lang.h
${srcdir}/m2-lang.h \
347 ${srcdir}/complaints.h
${srcdir}/ns32k-opcode.h
${srcdir}/valprint.h \
348 ${srcdir}/config
/m68k
/tm-m68k.h
${srcdir}/config
/pa
/tm-hppa.h \
349 ${srcdir}/config
/i960
/tm-i960.h
${srcdir}/config
/sparc
/tm-sparc.h \
350 ${srcdir}/config
/tm-sunos.h \
351 ${srcdir}/config
/tm-sysv4.h
${srcdir}/config
/m68k
/xm-m68k.h \
352 ${srcdir}/config
/sparc
/xm-sparc.h \
353 ${srcdir}/config
/xm-sysv4.h
${srcdir}/config
/vax
/xm-vax.h \
354 ${srcdir}/config
/nm-trash.h
${srcdir}/29k-share
/udi
/udiids.h \
355 ${srcdir}/29k-share
/udi
/udiphcfg.h
${srcdir}/29k-share
/udi
/udiphunix.h \
356 ${srcdir}/29k-share
/udi
/udiproc.h
${srcdir}/29k-share
/udi
/udipt29k.h \
357 ${srcdir}/29k-share
/udi
/udiptcfg.h
${srcdir}/29k-share
/udi
/udisoc.h \
358 ${srcdir}/29k-share
/udi_soc
${srcdir}/nindy-share
/b.out.h \
359 ${srcdir}/nindy-share
/block_io.h
${srcdir}/nindy-share
/coff.h \
360 ${srcdir}/nindy-share
/demux.h
${srcdir}/nindy-share
/env.h \
361 ${srcdir}/nindy-share
/stop.h
${srcdir}/nindy-share
/ttycntl.h \
362 ${srcdir}/vx-share
/dbgRpcLib.h
${srcdir}/vx-share
/ptrace.h \
363 ${srcdir}/vx-share
/vxTypes.h
${srcdir}/vx-share
/vxWorks.h \
364 ${srcdir}/vx-share
/wait.h
${srcdir}/vx-share
/xdr_ld.h \
365 ${srcdir}/vx-share
/xdr_ptrace.h
${srcdir}/vx-share
/xdr_rdb.h \
368 # These are things from config/*/*.m? fragments. There is no good reason
369 # why they are separate from the lists of files above.
371 ${srcdir}/29k-share
/udi
/udip2soc.c\
372 ${srcdir}/29k-share
/udi
/udr.c\
373 ${srcdir}/a29k-pinsn.c\
374 ${srcdir}/a29k-tdep.c\
375 ${srcdir}/a68v-nat.c\
376 ${srcdir}/altos-xdep.c\
377 ${srcdir}/arm-convert.s\
378 ${srcdir}/arm-pinsn.c\
379 ${srcdir}/arm-tdep.c\
380 ${srcdir}/arm-xdep.c\
381 ${srcdir}/convex-pinsn.c\
382 ${srcdir}/convex-tdep.c\
383 ${srcdir}/convex-xdep.c\
384 ${srcdir}/core-svr4.c\
388 ${srcdir}/fork-child.c\
389 ${srcdir}/go32-xdep.c\
390 ${srcdir}/gould-pinsn.c\
391 ${srcdir}/gould-xdep.c\
392 ${srcdir}/h8300-tdep.c\
393 ${srcdir}/h8500-tdep.c\
394 ${srcdir}/hp300ux-nat.c\
395 ${srcdir}/hppa-pinsn.c\
396 ${srcdir}/hppa-tdep.c\
397 ${srcdir}/hppab-nat.c\
398 ${srcdir}/hppah-nat.c\
399 ${srcdir}/i386-pinsn.c\
400 ${srcdir}/i386-tdep.c\
401 ${srcdir}/i386b-nat.c\
402 ${srcdir}/i386mach-nat.c\
403 ${srcdir}/i386v-nat.c\
404 ${srcdir}/i386aix-nat.c\
405 ${srcdir}/i386v4-nat.c\
406 ${srcdir}/i387-tdep.c\
407 ${srcdir}/i960-pinsn.c\
408 ${srcdir}/i960-tdep.c\
409 ${srcdir}/infptrace.c\
411 ${srcdir}/irix4-nat.c\
412 ${srcdir}/isi-xdep.c\
413 ${srcdir}/m68k-pinsn.c\
414 ${srcdir}/m68k-tdep.c\
415 ${srcdir}/m88k-nat.c\
416 ${srcdir}/m88k-pinsn.c\
417 ${srcdir}/m88k-tdep.c\
418 ${srcdir}/mips-nat.c\
419 ${srcdir}/mips-pinsn.c\
420 ${srcdir}/mips-tdep.c\
421 ${srcdir}/news-xdep.c\
422 ${srcdir}/nindy-share
/Onindy.c\
423 ${srcdir}/nindy-share
/nindy.c\
424 ${srcdir}/nindy-share
/ttybreak.c\
425 ${srcdir}/nindy-share
/ttyflush.c\
426 ${srcdir}/nindy-tdep.c\
427 ${srcdir}/ns32k-pinsn.c\
430 ${srcdir}/pyr-pinsn.c\
431 ${srcdir}/pyr-tdep.c\
432 ${srcdir}/pyr-xdep.c\
433 ${srcdir}/remote-adapt.c\
434 ${srcdir}/remote-eb.c\
435 ${srcdir}/remote-es.c\
436 ${srcdir}/remote-hms.c\
437 ${srcdir}/remote-mips.c\
438 ${srcdir}/remote-mm.c\
439 ${srcdir}/remote-monitor.c\
440 ${srcdir}/remote-nindy.c\
441 ${srcdir}/remote-sim.c\
442 ${srcdir}/remote-st.c\
443 ${srcdir}/remote-udi.c\
444 ${srcdir}/remote-vx.c\
445 ${srcdir}/remote-z8k.c\
446 ${srcdir}/rs6000-nat.c\
447 ${srcdir}/rs6000-pinsn.c\
448 ${srcdir}/rs6000-tdep.c\
449 ${srcdir}/ser-go32.c\
453 ${srcdir}/sparc-nat.c\
454 ${srcdir}/sparc-pinsn.c\
455 ${srcdir}/sparc-tdep.c\
456 ${srcdir}/sun3-nat.c\
457 ${srcdir}/sun386-nat.c\
458 ${srcdir}/symm-tdep.c\
459 ${srcdir}/symm-xdep.c\
460 ${srcdir}/tahoe-pinsn.c\
461 ${srcdir}/ultra3-nat.c\
462 ${srcdir}/ultra3-xdep.c\
463 ${srcdir}/umax-xdep.c\
464 ${srcdir}/vax-pinsn.c\
465 ${srcdir}/vx-share
/xdr_ld.c\
466 ${srcdir}/vx-share
/xdr_ptrace.c\
467 ${srcdir}/vx-share
/xdr_rdb.c\
468 ${srcdir}/xcoffexec.c\
469 ${srcdir}/xcoffread.c\
470 ${srcdir}/xcoffsolib.c\
474 ${srcdir}/config
/a29k
/nm-ultra3.h\
475 ${srcdir}/config
/a29k
/tm-a29k.h\
476 ${srcdir}/config
/a29k
/tm-ultra3.h\
477 ${srcdir}/config
/a29k
/xm-ultra3.h\
478 ${srcdir}/config
/arm
/tm-arm.h\
479 ${srcdir}/config
/arm
/xm-arm.h\
480 ${srcdir}/config
/convex
/tm-convex.h\
481 ${srcdir}/config
/convex
/xm-convex.h\
482 ${srcdir}/config
/gould
/tm-np1.h\
483 ${srcdir}/config
/gould
/tm-pn.h\
484 ${srcdir}/config
/gould
/xm-np1.h\
485 ${srcdir}/config
/gould
/xm-pn.h\
486 ${srcdir}/config
/h8300
/tm-h8300.h\
487 ${srcdir}/config
/h8500
/tm-h8500.h\
488 ${srcdir}/config
/i386
/nm-i386aix.h\
489 ${srcdir}/config
/i386
/nm-i386bsd.h\
490 ${srcdir}/config
/i386
/nm-i386lynx.h\
491 ${srcdir}/config
/i386
/nm-i386mach.h\
492 ${srcdir}/config
/i386
/nm-i386sco.h\
493 ${srcdir}/config
/i386
/nm-i386sco4.h\
494 ${srcdir}/config
/i386
/nm-i386v.h\
495 ${srcdir}/config
/i386
/nm-i386v4.h\
496 ${srcdir}/config
/i386
/nm-linux.h\
497 ${srcdir}/config
/i386
/nm-sun386.h\
498 ${srcdir}/config
/i386
/tm-i386aix.h\
499 ${srcdir}/config
/i386
/tm-i386bsd.h\
500 ${srcdir}/config
/i386
/tm-i386lynx.h\
501 ${srcdir}/config
/i386
/tm-i386v.h\
502 ${srcdir}/config
/i386
/tm-i386v4.h\
503 ${srcdir}/config
/i386
/tm-linux.h\
504 ${srcdir}/config
/i386
/tm-sun386.h\
505 ${srcdir}/config
/i386
/tm-symmetry.h\
506 ${srcdir}/config
/i386
/xm-go32.h\
507 ${srcdir}/config
/i386
/xm-i386aix.h\
508 ${srcdir}/config
/i386
/xm-i386bsd.h\
509 ${srcdir}/config
/i386
/xm-i386lynx.h\
510 ${srcdir}/config
/i386
/xm-i386mach.h\
511 ${srcdir}/config
/i386
/xm-i386sco.h\
512 ${srcdir}/config
/i386
/xm-i386v.h\
513 ${srcdir}/config
/i386
/xm-i386v32.h\
514 ${srcdir}/config
/i386
/xm-i386v4.h\
515 ${srcdir}/config
/i386
/xm-linux.h\
516 ${srcdir}/config
/i386
/xm-sun386.h\
517 ${srcdir}/config
/i386
/xm-symmetry.h\
518 ${srcdir}/config
/i960
/tm-nindy960.h\
519 ${srcdir}/config
/i960
/tm-vx960.h\
520 ${srcdir}/config
/m68k
/nm-apollo68b.h\
521 ${srcdir}/config
/m68k
/nm-apollo68v.h\
522 ${srcdir}/config
/m68k
/nm-hp300bsd.h\
523 ${srcdir}/config
/m68k
/nm-hp300hpux.h\
524 ${srcdir}/config
/m68k
/nm-news.h\
525 ${srcdir}/config
/m68k
/nm-sun2.h\
526 ${srcdir}/config
/m68k
/nm-sun3.h\
527 ${srcdir}/config
/m68k
/tm-3b1.h\
528 ${srcdir}/config
/m68k
/tm-altos.h\
529 ${srcdir}/config
/m68k
/tm-amix.h\
530 ${srcdir}/config
/m68k
/tm-es1800.h\
531 ${srcdir}/config
/m68k
/tm-hp300bsd.h\
532 ${srcdir}/config
/m68k
/tm-hp300hpux.h\
533 ${srcdir}/config
/m68k
/tm-isi.h\
534 ${srcdir}/config
/m68k
/tm-m68k-fp.h\
535 ${srcdir}/config
/m68k
/tm-m68k-nofp.h\
536 ${srcdir}/config
/m68k
/tm-monitor.h\
537 ${srcdir}/config
/m68k
/tm-news.h\
538 ${srcdir}/config
/m68k
/tm-os68k.h\
539 ${srcdir}/config
/m68k
/tm-st2000.h\
540 ${srcdir}/config
/m68k
/tm-sun2.h\
541 ${srcdir}/config
/m68k
/tm-sun2os4.h\
542 ${srcdir}/config
/m68k
/tm-sun3.h\
543 ${srcdir}/config
/m68k
/tm-sun3os4.h\
544 ${srcdir}/config
/m68k
/tm-vx68.h\
545 ${srcdir}/config
/m68k
/xm-3b1.h\
546 ${srcdir}/config
/m68k
/xm-altos.h\
547 ${srcdir}/config
/m68k
/xm-amix.h\
548 ${srcdir}/config
/m68k
/xm-apollo68b.h\
549 ${srcdir}/config
/m68k
/xm-apollo68v.h\
550 ${srcdir}/config
/m68k
/xm-hp300bsd.h\
551 ${srcdir}/config
/m68k
/xm-hp300hpux.h\
552 ${srcdir}/config
/m68k
/xm-isi.h\
553 ${srcdir}/config
/m68k
/xm-news.h\
554 ${srcdir}/config
/m68k
/xm-news1000.h\
555 ${srcdir}/config
/m68k
/xm-sun2.h\
556 ${srcdir}/config
/m68k
/xm-sun3.h\
557 ${srcdir}/config
/m68k
/xm-sun3os4.h\
558 ${srcdir}/config
/m88k
/nm-m88k.h\
559 ${srcdir}/config
/m88k
/tm-delta88.h\
560 ${srcdir}/config
/m88k
/tm-m88k.h\
561 ${srcdir}/config
/m88k
/xm-delta88.h\
562 ${srcdir}/config
/m88k
/xm-m88k.h\
563 ${srcdir}/config
/mips
/nm-irix3.h\
564 ${srcdir}/config
/mips
/nm-irix4.h\
565 ${srcdir}/config
/mips
/nm-mips.h\
566 ${srcdir}/config
/mips
/tm-bigmips.h\
567 ${srcdir}/config
/mips
/tm-irix3.h\
568 ${srcdir}/config
/mips
/tm-mips.h\
569 ${srcdir}/config
/mips
/xm-irix3.h\
570 ${srcdir}/config
/mips
/xm-irix4.h\
571 ${srcdir}/config
/mips
/xm-mips.h\
572 ${srcdir}/config
/nm-sysv4.h\
573 ${srcdir}/config
/none
/nm-none.h\
574 ${srcdir}/config
/none
/tm-none.h\
575 ${srcdir}/config
/none
/xm-none.h\
576 ${srcdir}/config
/ns32k
/nm-umax.h\
577 ${srcdir}/config
/ns32k
/tm-merlin.h\
578 ${srcdir}/config
/ns32k
/tm-umax.h\
579 ${srcdir}/config
/ns32k
/xm-merlin.h\
580 ${srcdir}/config
/ns32k
/xm-umax.h\
581 ${srcdir}/config
/pa
/nm-hppab.h\
582 ${srcdir}/config
/pa
/nm-hppah.h\
583 ${srcdir}/config
/pa
/tm-hppab.h\
584 ${srcdir}/config
/pa
/tm-hppah.h\
585 ${srcdir}/config
/pa
/xm-hppab.h\
586 ${srcdir}/config
/pa
/xm-hppah.h\
587 ${srcdir}/config
/pyr
/tm-pyr.h\
588 ${srcdir}/config
/pyr
/xm-pyr.h\
589 ${srcdir}/config
/romp
/xm-rtbsd.h\
590 ${srcdir}/config
/rs6000
/nm-rs6000.h\
591 ${srcdir}/config
/rs6000
/tm-rs6000.h\
592 ${srcdir}/config
/rs6000
/xm-rs6000.h\
593 ${srcdir}/config
/sh
/tm-sh.h\
594 ${srcdir}/config
/sparc
/nm-sun4os4.h\
595 ${srcdir}/config
/sparc
/tm-sparclite.h\
596 ${srcdir}/config
/sparc
/tm-spc-em.h\
597 ${srcdir}/config
/sparc
/tm-sun4os4.h\
598 ${srcdir}/config
/sparc
/tm-sun4sol2.h\
599 ${srcdir}/config
/sparc
/tm-vxsparc.h\
600 ${srcdir}/config
/sparc
/xm-sun4os4.h\
601 ${srcdir}/config
/sparc
/xm-sun4sol2.h\
602 ${srcdir}/config
/tahoe
/tm-tahoe.h\
603 ${srcdir}/config
/tahoe
/xm-tahoe.h\
604 ${srcdir}/config
/vax
/nm-vax.h\
605 ${srcdir}/config
/vax
/tm-vax.h\
606 ${srcdir}/config
/vax
/xm-vaxbsd.h\
607 ${srcdir}/config
/vax
/xm-vaxult.h\
608 ${srcdir}/config
/vax
/xm-vaxult2.h\
609 ${srcdir}/config
/z8k
/tm-z8k.h
612 ${srcdir}/config
/a29k
/a29k-kern.mt\
613 ${srcdir}/config
/a29k
/a29k-udi.mt\
614 ${srcdir}/config
/a29k
/a29k.mt\
615 ${srcdir}/config
/a29k
/ultra3.mh\
616 ${srcdir}/config
/a29k
/ultra3.mt\
617 ${srcdir}/config
/arm
/arm.mh\
618 ${srcdir}/config
/arm
/arm.mt\
619 ${srcdir}/config
/convex
/convex.mh\
620 ${srcdir}/config
/convex
/convex.mt\
621 ${srcdir}/config
/gould
/np1.mh\
622 ${srcdir}/config
/gould
/np1.mt\
623 ${srcdir}/config
/gould
/pn.mh\
624 ${srcdir}/config
/gould
/pn.mt\
625 ${srcdir}/config
/h8300
/h8300hms.mt\
626 ${srcdir}/config
/h8500
/h8500hms.mt\
627 ${srcdir}/config
/i386
/go32.mh\
628 ${srcdir}/config
/i386
/i386aix.mh\
629 ${srcdir}/config
/i386
/i386aix.mt\
630 ${srcdir}/config
/i386
/i386aout.mt\
631 ${srcdir}/config
/i386
/i386bsd.mh\
632 ${srcdir}/config
/i386
/i386bsd.mt\
633 ${srcdir}/config
/i386
/i386lynx.mh\
634 ${srcdir}/config
/i386
/i386lynx.mt\
635 ${srcdir}/config
/i386
/i386mach.mh\
636 ${srcdir}/config
/i386
/i386sco.mh\
637 ${srcdir}/config
/i386
/i386sco4.mh\
638 ${srcdir}/config
/i386
/i386sol2.mh\
639 ${srcdir}/config
/i386
/i386sol2.mt\
640 ${srcdir}/config
/i386
/i386v.mh\
641 ${srcdir}/config
/i386
/i386v.mt\
642 ${srcdir}/config
/i386
/i386v32.mh\
643 ${srcdir}/config
/i386
/i386v4.mh\
644 ${srcdir}/config
/i386
/i386v4.mt\
645 ${srcdir}/config
/i386
/linux.mh\
646 ${srcdir}/config
/i386
/linux.mt\
647 ${srcdir}/config
/i386
/ncr3000.mh\
648 ${srcdir}/config
/i386
/ncr3000.mt\
649 ${srcdir}/config
/i386
/sun386.mh\
650 ${srcdir}/config
/i386
/sun386.mt\
651 ${srcdir}/config
/i386
/symmetry.mh\
652 ${srcdir}/config
/i386
/symmetry.mt\
653 ${srcdir}/config
/i960
/nindy960.mt\
654 ${srcdir}/config
/i960
/vxworks960.mt\
655 ${srcdir}/config
/m68k
/3b1.mh\
656 ${srcdir}/config
/m68k
/3b1.mt\
657 ${srcdir}/config
/m68k
/altos.mh\
658 ${srcdir}/config
/m68k
/altos.mt\
659 ${srcdir}/config
/m68k
/amix.mh\
660 ${srcdir}/config
/m68k
/amix.mt\
661 ${srcdir}/config
/m68k
/apollo68b.mh\
662 ${srcdir}/config
/m68k
/apollo68v.mh\
663 ${srcdir}/config
/m68k
/es1800.mt\
664 ${srcdir}/config
/m68k
/hp300bsd.mh\
665 ${srcdir}/config
/m68k
/hp300bsd.mt\
666 ${srcdir}/config
/m68k
/hp300hpux.mh\
667 ${srcdir}/config
/m68k
/hp300hpux.mt\
668 ${srcdir}/config
/m68k
/isi.mh\
669 ${srcdir}/config
/m68k
/isi.mt\
670 ${srcdir}/config
/m68k
/m68k-fp.mt\
671 ${srcdir}/config
/m68k
/m68k-nofp.mt\
672 ${srcdir}/config
/m68k
/monitor.mt\
673 ${srcdir}/config
/m68k
/news.mh\
674 ${srcdir}/config
/m68k
/news.mt\
675 ${srcdir}/config
/m68k
/news1000.mh\
676 ${srcdir}/config
/m68k
/os68k.mt\
677 ${srcdir}/config
/m68k
/st2000.mt\
678 ${srcdir}/config
/m68k
/sun2os3.mh\
679 ${srcdir}/config
/m68k
/sun2os3.mt\
680 ${srcdir}/config
/m68k
/sun2os4.mh\
681 ${srcdir}/config
/m68k
/sun2os4.mt\
682 ${srcdir}/config
/m68k
/sun3os3.mh\
683 ${srcdir}/config
/m68k
/sun3os3.mt\
684 ${srcdir}/config
/m68k
/sun3os4.mh\
685 ${srcdir}/config
/m68k
/sun3os4.mt\
686 ${srcdir}/config
/m68k
/vxworks68.mt\
687 ${srcdir}/config
/m88k
/delta88.mh\
688 ${srcdir}/config
/m88k
/delta88.mt\
689 ${srcdir}/config
/m88k
/m88k.mh\
690 ${srcdir}/config
/m88k
/m88k.mt\
691 ${srcdir}/config
/mips
/bigmips.mt\
692 ${srcdir}/config
/mips
/decstation.mh\
693 ${srcdir}/config
/mips
/decstation.mt\
694 ${srcdir}/config
/mips
/idt.mt\
695 ${srcdir}/config
/mips
/idtl.mt\
696 ${srcdir}/config
/mips
/irix3.mh\
697 ${srcdir}/config
/mips
/irix3.mt\
698 ${srcdir}/config
/mips
/irix4.mh\
699 ${srcdir}/config
/mips
/littlemips.mh\
700 ${srcdir}/config
/mips
/littlemips.mt\
701 ${srcdir}/config
/none
/none.mh\
702 ${srcdir}/config
/none
/none.mt\
703 ${srcdir}/config
/ns32k
/merlin.mh\
704 ${srcdir}/config
/ns32k
/merlin.mt\
705 ${srcdir}/config
/ns32k
/umax.mh\
706 ${srcdir}/config
/ns32k
/umax.mt\
707 ${srcdir}/config
/pa
/hppabsd.mh\
708 ${srcdir}/config
/pa
/hppabsd.mt\
709 ${srcdir}/config
/pa
/hppahpux.mh\
710 ${srcdir}/config
/pa
/hppahpux.mt\
711 ${srcdir}/config
/pyr
/pyramid.mh\
712 ${srcdir}/config
/pyr
/pyramid.mt\
713 ${srcdir}/config
/romp
/rtbsd.mh\
714 ${srcdir}/config
/rs6000
/rs6000.mh\
715 ${srcdir}/config
/rs6000
/rs6000.mt\
716 ${srcdir}/config
/sh
/sh.mt\
717 ${srcdir}/config
/sparc
/sparc-em.mt\
718 ${srcdir}/config
/sparc
/sparclite.mt\
719 ${srcdir}/config
/sparc
/sun4os4.mh\
720 ${srcdir}/config
/sparc
/sun4os4.mt\
721 ${srcdir}/config
/sparc
/sun4sol2.mh\
722 ${srcdir}/config
/sparc
/sun4sol2.mt\
723 ${srcdir}/config
/sparc
/vxsparc.mt\
724 ${srcdir}/config
/tahoe
/tahoe.mh\
725 ${srcdir}/config
/tahoe
/tahoe.mt\
726 ${srcdir}/config
/vax
/vax.mt\
727 ${srcdir}/config
/vax
/vaxbsd.mh\
728 ${srcdir}/config
/vax
/vaxult.mh\
729 ${srcdir}/config
/vax
/vaxult2.mh\
730 ${srcdir}/config
/z8k
/z8ksim.mt
732 # GDB "info" files, which should be included in their entirety
733 INFOFILES
= gdb.
info*
735 REMOTE_EXAMPLES
= m68k-stub.c i386-stub.c sparc-stub.c rem-multi.
shar
737 POSSLIBS
= ${srcdir}/regex.c
${srcdir}/regex.h
${srcdir}/alloca.c
739 TESTS
= testbpt.c testfun.c testrec.c testreg.c testregs.c
741 # Subdirectories of gdb, which should be included in their entirety in
743 TARDIRS
= doc sparclite
# tests
745 # {X,T,NAT}DEPFILES are something of a pain in that it's hard to
746 # default their values the way we do for SER_HARDWIRE; in the future
747 # maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other
748 # variables analogous to SER_HARDWIRE which get defaulted in this
751 DEPFILES
= ${TDEPFILES} ${XDEPFILES} ${SER_HARDWIRE} ${NATDEPFILES}
753 SOURCES
= $(SFILES
) $(ALLDEPFILES
) $(YYFILES
)
754 # Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
755 # and it's more useful to see it in the .y file.
756 TAGFILES
= ${SFILES} ${ALLDEPFILES} ${ALLPARAM} ${POSSLIBS}
758 TARFILES
= ${SFILES} ${HFILES} ${NONSRC} ${ALLDEPFILES} $(ALLCONFIG
) \
759 $(ALLPARAM
) $(INFOFILES
) ${POSSLIBS} ${REMOTE_EXAMPLES}
761 OBS
= version.o main.o blockframe.o breakpoint.o findvar.o stack.o source.o \
762 values.o eval.o valops.o valarith.o valprint.o printcmd.o \
763 symtab.o symfile.o symmisc.o infcmd.o infrun.o remote.o \
764 command.o utils.o expprint.o environ.o gdbtypes.o \
765 copying.o
$(DEPFILES
) mem-break.o target.o \
766 putenv.o parse.o language.o
$(YYOBJ
) \
767 buildsym.o objfiles.o minsyms.o maint.o demangle.o \
768 dbxread.o coffread.o elfread.o dwarfread.o mipsread.o \
769 stabsread.o core.o c-lang.o ch-lang.o m2-lang.o complaints.o \
770 typeprint.o c-typeprint.o ch-typeprint.o m2-typeprint.o \
771 c-valprint.o cp-valprint.o ch-valprint.o m2-valprint.o \
774 RAPP_OBS
= rgdb.o rudp.o rserial.o serial.o udp.o
$(XDEPFILES
)
778 NTSOBS
= standalone.o
780 TSSTART
= /lib
/crt0.o
782 NTSSTART
= kdb-start.o
784 SUBDIRS
= doc testsuite
786 # For now, shortcut the "configure GDB for fewer languages" stuff.
787 YYFILES
= c-exp.tab.c m2-exp.tab.c ch-exp.tab.c
788 YYOBJ
= c-exp.tab.o m2-exp.tab.o ch-exp.tab.o
790 # Prevent Sun make from putting in the machine type. Setting
791 # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
793 ${CC} -c
${INTERNAL_CFLAGS} $<
796 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
800 @rootme
=`pwd`; export rootme
; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) DO
=check DODIRS
=testsuite subdir_do
802 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
804 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=install-info
"DODIRS=$(SUBDIRS)" subdir_do
806 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=clean-info
"DODIRS=$(SUBDIRS)" subdir_do
809 nroff
-man
$(srcdir)/gdb
.1 | col
-b
> gdb.t
810 pack gdb.t
; rm -f gdb.t
813 # Traditionally this depends on "all". But it is probably more useful
814 # not to; for example, if the user has made some trivial change to a
815 # source file and doesn't care about rebuilding or just wants to save the
816 # time it takes for make to check that all is up to date.
818 $(INSTALL_XFORM
) gdb
$(bindir)/gdb
819 $(INSTALL_XFORM1
) $(srcdir)/gdb
.1 $(man1dir)/gdb
.1
820 $(INSTALL_DATA
) $(srcdir)/gdb
.1 $(man1dir)/$$n.1
822 @
$(MAKE
) DO
=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS
) subdir_do
824 init.c
: $(srcdir)/munch
$(OBS
) $(TSOBS
)
825 $(srcdir)/munch
${MUNCH_DEFINE} $(OBS
) $(TSOBS
) > init.c
827 gdb
: $(OBS
) $(TSOBS
) ${ADD_DEPS} ${CDEPS} init.o
828 ${CC-LD
} $(GLOBAL_CFLAGS
) $(LDFLAGS
) -o gdb \
829 init.o
$(OBS
) $(TSOBS
) $(ADD_FILES
) $(CLIBS
) $(LOADLIBES
)
831 saber_gdb
: $(SFILES
) $(DEPFILES
) copying.c version.c
832 #setopt load_flags $(CFLAGS) ${BFD_INCLUDES} -DHOST_SYS=SUN4_SYS
833 #load ./init.c $(SFILES)
834 #unload ${srcdir}/c-exp.y ${srcdir}/m2-exp.y ${srcdir}/ch-exp.y
835 #unload ${srcdir}/vx-share/*.h
836 #unload ${srcdir}/nindy-share/[A-Z]*
837 #load c-exp.tab.c m2-exp.tab.c ch-exp.tab.c
838 #load copying.c version.c
839 #load ../opcodes/libopcodes.a
840 #load ../libiberty/libiberty.a
841 #load ../bfd/libbfd.a
842 #load ../readline/libreadline.a
843 #load ../mmalloc/libmmalloc.a
845 #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
846 echo
"Load .c corresponding to:" $(DEPFILES
)
849 # This is useful when debugging GDB, because some Unix's don't let you run GDB
850 # on itself without copying the executable. So "make gdb1" will make
851 # gdb and put a copy in gdb1, and you can run it with "gdb gdb1".
852 # Removing gdb1 before the copy is the right thing if gdb1 is open
853 # in another process.
858 # This is a remote stub which runs under unix and starts up an
859 # inferior process. This is at least useful for debugging GDB's
863 ${srcdir}/munch
${MUNCH_DEFINE} ${RAPP_OBS} > rapp_init.c
864 ${CC-LD
} $(LDFLAGS
) -o
$@ rapp_init.c
$(RAPP_OBS
)
866 depend
: $(SOURCES
) Makefile.in
867 @echo Ignore errors about non-existent system-supplied
include files
868 @echo for systems other than the one you are using.
869 @echo Also ignore any errors in arm-convert.s.
870 -$(GCC
) -MM
-nostdinc
-I
/usr
/include ${BFD_INCLUDES} \
871 -I
${READLINE_DIR} $(INTERNAL_CFLAGS
) \
872 `ls $(SOURCES) | grep -v '\.[hy]$$' | \
874 #BEGIN COMMENTED OUT CODE -- this should now be taken care of below.
875 # If running in srcdir, translate "./foo.c" into "$srcdir/foo.c" except
876 # for xm.h, tm.h and nm.h. This allows the same "depend" file to be used
877 # by the various subdirectories.
878 # if [ "${srcdir}" = "." ] ; then \
880 # -e 's; ./xm.h; xm.h;g' \
881 # -e 's; ./tm.h; tm.h;g' \
882 # -e 's; ./nm.h; nm.h;g' \
883 # -e 's; \./; $${srcdir}/;g' \
884 # -e 's; vx-share/; $${srcdir}/vx-share/;g' \
885 # -e 's; nindy-share/; $${srcdir}/nindy-share/;g' \
886 # -e 's; 29k-share/; $${srcdir}/29k-share/;g' \
889 # mv depend.tm2 depend.tmp; \
891 #END COMMENTED OUT CODE
892 # Make everything which depends on {x,t,n}m.h depend on config.status as
893 # well, in case someone reconfigures gdb out from under an already
896 # Translate SRCDIR/foo.c to $srcdir/foo.c. This allows this "depend" file
897 # to be used by any dir, or included in a distribution. It's possible
898 # we should write the generated copy into SRCDIR like "make headers" does
899 # in bfd. We do not try to quote the regexp, so if SRCDIR/ is "./" it will
900 # also match any single character followed by "/". This is OK.
902 -e
's; $(INCLUDE_DIR)/; $(INCLUDE_DEP)/;g' \
903 -e
's; $(READLINE_DIR)/; $(READLINE_DEP)/;g' \
904 -e
's; [a-z0-9./]*bfd/; $(BFD_DEP)/;g' \
905 -e
's; $(INCLUDE_DEP)/bfd\.h; $$(BFD_OBJ_DIR)/../include/bfd.h;g' \
906 -e
's; \./xm.h; xm.h config.status;g' \
907 -e
's; \./tm.h; tm.h config.status;g' \
908 -e
's; \./nm.h; nm.h config.status;g' \
909 -e
's; ${srcdir}/; $${srcdir}/;g' \
910 -e
's; vx-share/; $${srcdir}/vx-share/;g' \
911 -e
's; nindy-share/; $${srcdir}/nindy-share/;g' \
912 -e
's; 29k-share/; $${srcdir}/29k-share/;g' \
914 # OK, get your sed manual out. This script makes the rules in
915 # depend explicitly state the rule, rather than relying on VPATH
916 # or a .c.o implicit rule. This is needed for Sun make, and should
917 # be portable to any make worthy of the name.
918 # There is one exception: the *.tab.c files can exist either in srcdir
919 # or in ., so make sure not to use an explicit rule for them.
921 # Adding -I${BFD_SRC_DIR} and -I${BFD_OBJ_DIR}/../include is required for all
922 # the files which use BFD internals. This is because some bfd include files
923 # are in the source directory, and some (bfd.h for example) are generated in
924 # a sibling include directory of the bfd build directory.
925 # Adding -I${READLINE_DIR} is required because the readline header files
926 # are in readline not in include. They probably should be moved.
932 -e
'/:.*\.tab\.c/d' \
933 -e
's/.*:\(.*\.c\).*/ $${CC} -c $${INTERNAL_CFLAGS} \1/' \
934 -e
's;$${srcdir}/xcoffread.c;$${BFD_INCLUDES} &;' \
935 -e
's;$${srcdir}/xcoffexec.c;$${BFD_INCLUDES} &;' \
936 -e
's;$${srcdir}/paread.c;$${BFD_INCLUDES} &;' \
937 -e
's;$${srcdir}/stabsread.c;$${BFD_INCLUDES} &;' \
938 -e
's;$${srcdir}/dwarfread.c;$${BFD_INCLUDES} &;' \
939 -e
's;$${srcdir}/elfread.c;$${BFD_INCLUDES} &;' \
940 -e
's;$${srcdir}/mipsread.c;$${BFD_INCLUDES} &;' \
941 -e
's;$${srcdir}/coffread.c;$${BFD_INCLUDES} &;' \
942 -e
's;$${srcdir}/dbxread.c;$${BFD_INCLUDES} &;' \
943 -e
's;$${srcdir}/main.c;-I$${READLINE_DIR} &;' \
950 @echo
"You must configure gdb. Look at the README file for details."
953 # This checks the configure.in file versus the config/ directory.
954 config-check
: config-check-hosts config-check-targets
956 grep gdb_host
= ${srcdir}/configure.in | \
957 sed
-e
's/.*gdb_host=//' -e
's/ ;;$$/.mh/' |
sort -u
>HOSTconf.o
958 (cd
${srcdir}/config
; ls
*.mh
) >HOSTdir.o
959 diff
-u HOSTconf.o HOSTdir.o
961 config-check-targets
:
962 grep gdb_target
= ${srcdir}/configure.in | \
963 sed
-e
's/.*gdb_target=//' -e
's/ ;;$$/.mh/' |
sort -u
>TARGconf.o
964 (cd
${srcdir}/config
; ls
*.mt
) >TARGdir.o
965 diff
-u HOSTconf.o HOSTdir.o
967 # These are not generated by "make depend" because they only are there
969 # But these rules don't do what we want; we want to hack the foo.o: tm.h
970 # dependency to do the right thing.
971 tm-isi.h tm-sun3.h tm-news.h tm-hp300bsd.h tm-altos.h
: tm-m68k.h
972 tm-hp300hpux.h tm-sun2.h tm-3b1.h
: tm-m68k.h
973 xm-news1000.h
: xm-news.h
974 xm-i386-sv32.h
: xm-i386.h
975 tm-i386gas.h
: tm-i386.h
976 xm-sun4os4.h
: xm-sparc.h
977 tm-sun4os4.h
: tm-sparc.h
978 xm-vaxult.h
: xm-vax.h
979 xm-vaxbsd.h
: xm-vax.h
981 kdb
: $(NTSSTART
) $(OBS
) $(NTSOBS
) ${ADD_DEPS} ${CDEPS}
983 $(srcdir)/munch
${MUNCH_DEFINE} $(OBS
) $(NTSOBS
) > init.c
984 $(CC
) $(LDFLAGS
) -c init.c
$(CLIBS
)
985 ld -o kdb
$(NTSSTART
) $(OBS
) $(NTSOBS
) init.o
$(ADD_FILES
) \
988 # Put the proper machine-specific files first, so M-. on a machine
989 # specific routine gets the one for the correct machine.
990 # The xyzzy stuff below deals with empty DEPFILES
992 etags
`find ${srcdir}/config -name $(TM_FILE) -print` \
993 `find ${srcdir}/config -name ${XM_FILE} -print` \
994 `find ${srcdir}/config -name ${NAT_FILE} -print` \
995 `for i in yzzy ${DEPFILES}; do \
996 if [ x$$i != xyzzy ]; then \
997 echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \
1003 # Making distributions of GDB and friends.
1005 # Make a tar file containing the GDB directory of the distribution.
1006 gdb.
tar.Z
: force_update
1007 $(MAKE
) $(MFLAGS
) -f Makefile.in setup-to-dist
1008 $(MAKE
) $(MFLAGS
) -f Makefile.in gdb-
$(VERSION
).
tar.Z
1010 # Make a directory `proto-gdb.dir' that contains an image of the GDB
1011 # directory of the distribution, built up with symlinks. Note that this
1012 # make target is not directly referenced by any other rules in this makefile,
1013 # it is referenced by the makefile in the parent directory.
1014 make-proto-gdb.
dir: force_update
1015 $(MAKE
) $(MFLAGS
) -f Makefile.in setup-to-dist
1016 $(MAKE
) $(MFLAGS
) -f Makefile make-proto-gdb-1
1018 # Set up the GDB source directory for distribution, by building all files that
1019 # are products of other files.
1020 setup-to-dist
: update-depend force_update
1022 (cd doc
; $(MAKE
) $(MFLAGS
) GDBvn.texi
)
1023 $(MAKE
) $(MFLAGS
) gdb.
info
1024 $(MAKE
) $(MFLAGS
) refcard.ps
1026 # Update the "depend" file in a source directory.
1027 update-depend
: force_update
1028 ..
/configure none
-norecursion
1029 (cd ..
/bfd
; ..
/configure sun4
-norecursion
; rm -f stmp-bfd.h
)
1030 (cd ..
/bfd
; $(MAKE
) $(MFLAGS
) bfd.h
)
1032 $(MAKE
) $(MFLAGS
) depend
1034 # Build a tar file from a proto-gdb.dir.
1035 gdb-
$(VERSION
).
tar.Z
: force_update
1036 rm -f gdb.
tar gdb-
$(VERSION
).
tar.Z
1037 $(MAKE
) $(MFLAGS
) -f Makefile make-proto-gdb-1
1038 ln
-s proto-gdb.
dir $(DIST
)
1039 tar chf
- $(DIST
) | compress
>gdb-
$(VERSION
).
tar.Z
1040 rm -rf
$(DIST
) proto-gdb.
dir
1042 # Build a proto-gdb.dir after GDB has been set up for distribution.
1043 # This stuff must be run in `Makefile', not `Makefile.in`; we use the makefile
1044 # built in the setup-to-dist process, since it defines things like ALLCONFIG
1045 # and ALLDEPFILES, that we need.
1046 make-proto-gdb-1
: ${TARFILES} ${TARDIRS} gdb.
info
1047 rm -rf proto-gdb.
dir
1049 rootme
=`pwd`/ ; export rootme
; \
1050 for i in
`echo ${TARDIRS}`; do \
1051 (cd proto-gdb.
dir ; \
1054 ln
-s
$${rootme}/$$i/* .
; \
1055 rm -rf SCCS CVS CVS.adm RCS config.status
; \
1056 if
test -f Makefile.in
; then
rm Makefile
; else true
; fi
;); \
1058 for i in
`echo ${TARFILES}`; do \
1059 (cd proto-gdb.
dir ; \
1060 dir=`dirname $$i`; \
1061 if
test -d
$$dir; then true
; else mkdir
-p
$$dir; fi
; \
1062 ln
-s
$${rootme}/$$i $$i;); \
1064 chmod og
=u
`find . -print`
1066 # Build a proto-testsuite.dir.
1067 make-proto-testsuite.
dir: force_update
1068 rm -rf proto-testsuite.
dir
1069 mkdir proto-testsuite.
dir
1070 rootme
=`pwd`/ ; export rootme
; \
1071 for i in
`find testsuite -type f -print`; do \
1072 (cd proto-testsuite.
dir ; \
1073 dir=`dirname $$i`; \
1074 if
test -d
$$dir; then true
; else mkdir
-p
$$dir; fi
; \
1075 ln
-s
$${rootme}/$$i $$i;); \
1077 find proto-testsuite.
dir -name Makefile
-exec
rm {} \
;
1078 find proto-testsuite.
dir -name config.status
-exec
rm {} \
;
1081 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=clean "DODIRS=$(SUBDIRS)" subdir_do
1082 rm -f
*.o
${ADD_FILES} *~
1083 rm -f init.c version.c
1084 rm -f gdb core make.log
1087 # This used to depend on c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS
1088 # I believe this is wrong; the makefile standards for distclean just
1089 # describe removing files; the only sort of "re-create a distribution"
1090 # functionality described is if the distributed files are unmodified.
1092 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=distclean "DODIRS=$(SUBDIRS)" subdir_do
1093 rm -f nm.h tm.h xm.h config.status
1094 rm -f y.output
yacc.acts
yacc.tmp
1095 rm -f
${TESTS} Makefile depend
1098 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=realclean "DODIRS=$(SUBDIRS)" subdir_do
1099 rm -f c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS
1100 rm -f nm.h tm.h xm.h config.status
1101 rm -f y.output
yacc.acts
yacc.tmp
1102 rm -f
${TESTS} Makefile depend
1104 STAGESTUFF
=${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES} init.c init.o version.c gdb
1107 @for i in
$(DODIRS
); do \
1108 if
[ -f .
/$$i/Makefile
] ; then \
1110 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1111 else exit
1 ; fi
; \
1115 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
1116 $(SHELL
) .
/config.status
1121 # GDB QUICK REFERENCE (TeX dvi file, CM fonts)
1123 ( cd .
/doc
; $(MAKE
) refcard.
dvi $(FLAGS_TO_PASS
) )
1124 mv .
/doc
/refcard.
dvi .
1126 # GDB QUICK REFERENCE (PostScript output, common PS fonts)
1128 ( cd .
/doc
; $(MAKE
) refcard.ps
$(FLAGS_TO_PASS
) )
1129 mv .
/doc
/refcard.ps .
1131 # GDB MANUAL: TeX dvi file
1133 ( cd .
/doc
; $(MAKE
) gdb.
dvi $(FLAGS_TO_PASS
) )
1136 # GDB MANUAL: info file
1138 ( cd .
/doc
; $(MAKE
) gdb.
info $(FLAGS_TO_PASS
) )
1139 mv .
/doc
/gdb.
info* .
1141 # Make copying.c from COPYING
1142 copying.c
: ${srcdir}/COPYING
${srcdir}/copying.awk
1143 awk
-f
${srcdir}/copying.awk
< ${srcdir}/COPYING
> copying.c
1146 echo
'char *version = "$(VERSION)";' >version.c
1147 echo
'char *host_canonical = "$(host_canonical)";' >> version.c
1148 echo
'char *target_canonical = "$(target_canonical)";' >> version.c
1150 # c-exp.tab.c is generated in target dir from c-exp.y if it doesn't exist
1151 # in srcdir, then compiled in target dir to c-exp.tab.o.
1152 # ././c-exp.tab.c is so the command argument will never match $(srcdir)/c-exp.y
1153 # (some "makes" rewrite the VPATH into command arguments if they match deps).
1154 # Remove bogus decls for malloc/realloc/free which conflict with everything
1156 c-exp.tab.o
: c-exp.tab.c
1157 c-exp.tab.c
: $(srcdir)/c-exp.y
$(srcdir)/Makefile.in
1158 @echo
'Expect 4 shift/reduce conflicts.'
1159 ${YACC} ${YFLAGS} $(srcdir)/c-exp.y
1160 -sed
-e
'/extern.*malloc/d' \
1161 -e
'/extern.*realloc/d' \
1162 -e
'/extern.*free/d' \
1163 -e
'/include.*malloc.h/d' \
1164 -e
's/malloc/xmalloc/g' \
1165 -e
's/realloc/xrealloc/g' \
1166 < y.tab.c
> c-exp.new
1168 mv c-exp.new .
/.
/c-exp.tab.c
1170 # ch-exp.tab.c is generated in target dir from ch-exp.y if it doesn't exist
1171 # in srcdir, then compiled in target dir to ch-exp.tab.o.
1172 # Remove bogus decls for malloc/realloc/free which conflict with everything
1174 ch-exp.tab.o
: ch-exp.tab.c
1175 ch-exp.tab.c
: $(srcdir)/ch-exp.y
$(srcdir)/Makefile.in
1176 ${YACC} ${YFLAGS} $(srcdir)/ch-exp.y
1177 -sed
-e
'/extern.*malloc/d' \
1178 -e
'/extern.*realloc/d' \
1179 -e
'/extern.*free/d' \
1180 -e
'/include.*malloc.h/d' \
1181 -e
's/malloc/xmalloc/g' \
1182 -e
's/realloc/xrealloc/g' \
1183 < y.tab.c
> ch-exp.new
1185 mv ch-exp.new .
/.
/ch-exp.tab.c
1187 # m2-exp.tab.c is generated in target dir from m2-exp.y if it doesn't exist
1188 # in srcdir, then compiled in target dir to m2-exp.tab.o.
1189 # Remove bogus decls for malloc/realloc/free which conflict with everything
1191 m2-exp.tab.o
: m2-exp.tab.c
1192 m2-exp.tab.c
: $(srcdir)/m2-exp.y
$(srcdir)/Makefile.in
1193 ${YACC} ${YFLAGS} $(srcdir)/m2-exp.y
1194 -sed
-e
'/extern.*malloc/d' \
1195 -e
'/extern.*realloc/d' \
1196 -e
'/extern.*free/d' \
1197 -e
'/include.*malloc.h/d' \
1198 -e
's/malloc/xmalloc/g' \
1199 -e
's/realloc/xrealloc/g' \
1200 < y.tab.c
> m2-exp.new
1202 mv m2-exp.new .
/.
/m2-exp.tab.c
1204 # These files are updated atomically, so make never has to remove them
1205 .PRECIOUS
: m2-exp.tab.c ch-exp.tab.c c-exp.tab.c
1208 $(LINT
) $(INCLUDE_CFLAGS
) $(LINTFLAGS
) $(LINTFILES
) \
1209 `echo ${DEPFILES} | sed 's/\.o /\.c /g'
1211 gdb.cxref: $(SFILES)
1212 cxref -I. $(SFILES) >gdb.cxref
1216 # GNU Make has an annoying habit of putting *all* the Makefile variables
1217 # into the environment, unless you include this target as a circumvention.
1218 # Rumor is that this will be fixed (and this target can be removed)
1222 # GNU Make 3.63 has a different problem: it keeps tacking command line
1223 # overrides onto the definition of $(MAKE). This variable setting
1227 ## This is ugly, but I don't want GNU make to put these variables in
1228 ## the environment. Older makes will see this as a set of targets
1229 ## with no dependencies and no actions.
1230 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
1232 # This is the end of "Makefile.in". When built into "Makefile"
1233 # by the configure script, two things are added below this point:
1234 # depend -- what .o files depend on what .c and .h files,
1235 # for all configurations.