1 ##Copyright (C) 1989-1991 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.
19 # Host and target-dependent makefile fragments come in here.
21 # End of host and target-dependent makefile fragments
23 # Destination directory of the software tree build
26 # Place to install binaries in the destination tree.
29 # System V: If you compile gdb with a compiler which uses the coff
30 # encapsulation feature (this is a function of the compiler used, NOT
31 # of the m-?.h file selected by config.gdb), you must make sure that
32 # the GNU nm is the one that is used by munch.
34 # If you are compiling with GCC, make sure that either 1) You use the
35 # -traditional flag, or 2) You have the fixed include files where GCC
36 # can reach them. Otherwise the ioctl calls in inflow.c
37 # will be incorrectly compiled. The "fixincludes" script in the gcc
38 # distribution will fix your include files up.
43 # Directory containing source files. Don't clean up the spacing,
44 # this exact string is matched for by the "configure" script.
47 # It is also possible that you will need to add -I/usr/include/sys to the
48 # CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
49 # is where it should be according to Posix).
53 YACC
=$(BISON
) $(BISONFLAGS
)
58 # Documentation (gdb.dvi) needs either GNU m4 or SysV m4;
59 # Berkeley/Sun don't have quite enough.
63 # where to find texinfo; GDB dist should include a recent one
64 TEXIDIR
=${srcdir}/..
/texinfo
/fsf
66 # where to find makeinfo, preferably one designed for texinfo-2
69 # Set this up with gcc if you have gnu ld and the loader will print out
70 # line numbers for undefinded refs.
74 # define this to be "gmalloc.o" if you want to use the gnu malloc routine
75 # (useful for debugging memory allocation problems in gdb). To use your
76 # system malloc, uncomment the following two lines.
78 #MALLOC_CFLAGS = -DNO_MALLOC_CHECK
79 GNU_MALLOC
= gmalloc.o mcheck.o mtrace.o
82 # Where is the "include" directory? Traditionally ../include or ./include
83 INCLUDE_DIR
= ${srcdir}/..
/include
84 INCLUDE_DEP
= $$(INCLUDE_DIR
)
86 # Where is the source dir for the BFD library? Traditionally ../bfd or ./bfd
87 # (When we want the binary library built from it, we use ${BFD_DIR}${subdir}.)
88 BFD_DIR
= ${srcdir}/..
/bfd
90 BFD_LIB
= $(BFD_DIR
)${subdir}/libbfd.a
92 # Where is the source dir for the READLINE library? Traditionally in .. or .
93 # (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
94 READLINE_DIR
= ${srcdir}/..
/readline
95 READLINE_DEP
= $$(READLINE_DIR
)
96 RL_LIB
= $(READLINE_DIR
)${subdir}/libreadline.a
98 # All the includes used for CFLAGS and for lint.
99 # -I. for config files.
100 # -I${srcdir} possibly for regex.h also.
101 INCLUDE_CFLAGS
= -I.
-I
${srcdir} -I
$(INCLUDE_DIR
) -I
$(READLINE_DIR
) -I
${srcdir}/vx-share
103 # {X,T}M_CFLAGS, if defined, has system-dependent CFLAGS.
105 GLOBAL_CFLAGS
= -g
${TM_CFLAGS} ${XM_CFLAGS}
106 #PROFILE_CFLAGS = -pg
108 CFLAGS
= ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${MALLOC_CFLAGS} ${INCLUDE_CFLAGS}
109 # None of the things in CFLAGS will do any harm, and on some systems
110 # (e.g. SunOS4) it is important to use the M_CFLAGS.
113 # Where is the "-liberty" library, containing getopt and obstack?
114 LIBIBERTY_DIR
= ${srcdir}/..
/libiberty
115 LIBIBERTY
= ${LIBIBERTY_DIR}${subdir}/libiberty.a
117 # Flags that describe where you can find the termcap library.
118 # You may need to make other arrangements for USG.
121 # The xconfig file must define REGEX and REGEX1 on USG machines.
122 # If your sysyem is missing alloca(), or, more likely, it's there but
123 # it doesn't work, define ALLOCA & ALLOCA1 too.
124 # If your system is missing putenv(), add putenv.c to XM_ADD_FILES.
126 # Libraries and corresponding dependencies for compiling gdb.
127 # {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
128 # TERMCAP comes last, since readline depends on it.
129 CLIBS
= $(XM_CLIBS
) ${TM_CLIBS} ${BFD_LIB} ${LIBIBERTY} ${RL_LIB} ${TERMCAP}
130 CDEPS
= ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${LIBIBERTY} ${RL_LIB}
132 ADD_FILES
= ${REGEX} ${ALLOCA} ${GNU_MALLOC} ${XM_ADD_FILES} ${TM_ADD_FILES}
133 ADD_DEPS
= ${REGEX1} ${ALLOCA1} ${GNU_MALLOC} ${XM_ADD_FILES} ${TM_ADD_FILES}
141 # Source files in the main directory.
142 # Files which are included via a tconfig/* or xconfig/* file
143 # should *not* be specified here; they're in "ALLDEPFILES".
145 blockframe.c breakpoint.c command.c core.c \
146 environ.c eval.c expprint.c findvar.c infcmd.c inflow.c infrun.c \
148 remote.c source.c stack.c symmisc.c symtab.c symfile.c \
149 utils.c valarith.c valops.c valprint.c values.c expread.y \
150 signame.c cplus-dem.c mem-break.c target.c inftarg.c \
151 dbxread.c coffread.c \
154 # Source files in subdirectories (which will be handled separately by
156 # Files which are included via a tconfig/* or xconfig/* file
157 # should *not* be specified here; they're in "ALLDEPFILES".
159 ${srcdir}/vx-share
/dbgRpcLib.h \
160 ${srcdir}/vx-share
/ptrace.h \
161 ${srcdir}/vx-share
/reg.h \
162 ${srcdir}/vx-share
/vxTypes.h \
163 ${srcdir}/vx-share
/vxWorks.h \
164 ${srcdir}/vx-share
/wait.h \
165 ${srcdir}/vx-share
/xdr_ld.h \
166 ${srcdir}/vx-share
/xdr_ptrace.h \
167 ${srcdir}/vx-share
/xdr_rdb.h \
168 ${srcdir}/vx-share
/xdr_regs.h \
169 ${srcdir}/nindy-share
/b.out.h \
170 ${srcdir}/nindy-share
/block_io.h \
171 ${srcdir}/nindy-share
/coff.h \
172 ${srcdir}/nindy-share
/demux.h \
173 ${srcdir}/nindy-share
/env.h \
174 ${srcdir}/nindy-share
/stop.h \
175 ${srcdir}/nindy-share
/ttycntl.h
177 # Non-source files in subdirs, that should go into gdb.tar.Z.
179 ${srcdir}/nindy-share
/Makefile \
180 ${srcdir}/nindy-share
/VERSION
182 # All source files that go into linking GDB, except config-specified files.
183 SFILES
= $(SFILES_MAINDIR
) $(SFILES_SUBDIR
)
185 # All source files that lint should look at
186 LINTFILES
= $(SFILES
) expread.tab.c init.c
188 # Documentation source files
190 ${srcdir}/doc
/gdb.texinfo \
191 ${srcdir}/doc
/pretex.m4 \
192 ${srcdir}/doc
/none.m4 \
193 ${srcdir}/doc
/all.m4 \
194 ${srcdir}/doc
/gdbinv-m.m4 \
195 ${srcdir}/doc
/gdbinv-s.m4
197 # Any additional files specified on these lines should also be added to
198 # the OTHERS = definition below, so they go in the tar files.
199 SFILES_STAND
= $(SFILES
) standalone.c
200 SFILES_KGDB
= $(SFILES
) stuff.c kdb-start.c
202 # Header files that are not named in tconfig/* or xconfig/* go here.
203 HFILES
= breakpoint.h command.h defs.h environ.h \
204 expression.h frame.h gdbcmd.h gdbcore.h \
205 getpagesize.h ieee-float.h inferior.h param-no-tm.h param.h \
206 signals.h signame.h symfile.h symtab.h \
207 target.h tdesc.h terminal.h tm-68k.h tm-i960.h tm-sunos.h \
210 # Header files for machine opcode tables.
211 # when OPCODE_DIR changes to ../include, remove the whole $(OPCODES)
212 # business, since they will be included in the separate includes tar file
213 # rather than in the gdb tar file.
215 OPCODES
= $(OPCODE_DIR
)pn-opcode.h
$(OPCODE_DIR
)np1-opcode.h \
216 $(OPCODE_DIR
)sparc-opcode.h
$(OPCODE_DIR
)vax-opcode.h \
217 $(OPCODE_DIR
)m68k-opcode.h
$(OPCODE_DIR
)ns32k-opcode.h \
218 $(OPCODE_DIR
)convx-opcode.h
$(OPCODE_DIR
)pyr-opcode.h \
219 $(OPCODE_DIR
)mips-opcode.h
$(OPCODE_DIR
)am29k-opcode.h \
220 $(OPCODE_DIR
)arm-opcode.h
$(OPCODE_DIR
)m88k-opcode.h \
221 $(OPCODE_DIR
)tahoe-opcode.h
223 REMOTE_EXAMPLES
= m68k-stub.c i386-stub.c rem-multi.
shar
225 MALLOCSRC
= gmalloc.c mcheck.c mtrace.c mtrace.awk \
228 POSSLIBS_MAINDIR
= regex.c regex.h alloca.c
$(MALLOCSRC
)
229 POSSLIBS
= $(POSSLIBS_MAINDIR
)
231 TESTS
= testbpt.c testfun.c testrec.c testreg.c testregs.c
233 # tdesc-lib cannot be named simply tdesc, because if it were, GNU make
234 # would try to make it from tdesc.c.
235 # tdesc-lib removed from the list due to Motorola copyrights...gnu@cygnus.com
236 OTHERS
= Makefile.in depend alldeps.mak \
237 createtags munch configure configure.in \
238 ChangeLog ChangeLog-3.x \
239 README TODO TAGS WHATS.NEW Projects \
240 .gdbinit COPYING expread.tab.c \
241 copying.c Convex.notes copying.awk \
242 saber.suppress standalone.c stuff.c kdb-start.c \
245 # Subdirectories of gdb, which should be included in their entirety in
247 TARDIRS
= doc hp-include
# tests
249 # GDB "info" files, which should be included in their entirety
250 INFOFILES
= gdb.
info*
252 DEPFILES
= ${TDEPFILES} ${XDEPFILES}
254 SOURCES
=$(SFILES
) $(ALLDEPFILES
)
255 TAGFILES
= $(SOURCES
) ${HFILES} ${OPCODES} ${ALLPARAM} ${POSSLIBS}
256 TAGFILES_MAINDIR
= $(SFILES_MAINDIR
) $(ALLDEPFILES_MAINDIR
) \
257 ${HFILES} ${OPCODES} ${ALLPARAM} ${POSSLIBS_MAINDIR}
258 TARFILES
= ${TAGFILES_MAINDIR} ${OTHERS} ${REMOTE_EXAMPLES}
260 OBS
= main.o blockframe.o breakpoint.o findvar.o stack.o source.o \
261 values.o eval.o valops.o valarith.o valprint.o printcmd.o \
262 symtab.o symfile.o symmisc.o infcmd.o infrun.o remote.o \
263 command.o utils.o expread.o expprint.o environ.o version.o \
264 copying.o
$(DEPFILES
) signame.o cplus-dem.o mem-break.o target.o \
265 inftarg.o ieee-float.o putenv.o \
266 dbxread.o coffread.o
# mipsread.o
268 RAPP_OBS
= rgdb.o rudp.o rserial.o serial.o udp.o
$(XDEPFILES
)
270 TSOBS
= core.o inflow.o
272 NTSOBS
= standalone.o
274 TSSTART
= /lib
/crt0.o
276 NTSSTART
= kdb-start.o
278 # Prevent Sun make from putting in the machine type. Setting
279 # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
281 ${CC} -c
${CFLAGS} $<
286 cp gdb
$(bindir)/gdb.new
287 mv
$(bindir)/gdb.new
$(bindir)/gdb
290 init.c
: $(srcdir)/munch
$(MUNCH_DEFINE
) $(OBS
) $(TSOBS
)
291 $(srcdir)/munch
${MUNCH_DEFINE} $(OBS
) $(TSOBS
) > init.c
293 gdb
: $(OBS
) $(TSOBS
) ${ADD_DEPS} ${CDEPS} init.o
294 ${CC-LD
} $(LDFLAGS
) -o gdb init.o
$(OBS
) $(TSOBS
) $(ADD_FILES
) \
297 saber_gdb
: $(SFILES
) $(DEPFILES
) copying.c version.c
298 #setopt load_flags $(CFLAGS) -I$(BFD_DIR) -DHOST_SYS=SUN4_SYS
299 #load ./init.c $(SFILES)
300 #unload ${srcdir}/expread.y ${srcdir}/vx-share/*.h
301 #unload ${srcdir}/nindy-share/[A-Z]*
302 #load ${srcdir}/expread.tab.c
303 #load copying.c version.c
304 #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
305 #load ${LIBIBERTY_DIR}/*.c
307 #load ${READLINE_DIR}/*.c
309 ##void mcheck(a) void (*a)(); { }
314 # This is useful when debugging GDB, because some Unix's don't let you run GDB
315 # on itself without copying the executable. So "make gdb1" will make
316 # gdb and put a copy in gdb1, and you can run it with "gdb gdb1".
317 # Removing gdb1 before the copy is the right thing if gdb1 is open
318 # in another process.
323 # This is a remote stub which runs under unix and starts up an
324 # inferior process. This is at least useful for debugging GDB's
328 ${srcdir}/munch
${RAPP_OBS} > rapp_init.c
329 ${CC-LD
} $(LDFLAGS
) -o
$@ rapp_init.c
$(RAPP_OBS
)
331 # Support for building Makefile out of configured pieces, automatically
332 # generated dependencies, etc. alldeps.mak is a file that contains
333 # "make" variable definitions for all ALLDEPFILES, ALLDEPFILES_MAINDIR,
334 # ALLDEPFILES_SUBDIR, ALLPARAM, and ALLCONFIG, all cadged from the current
335 # contents of the xconfig and tconfig subdirectories.
337 alldeps.mak
: ${srcdir}/tconfig
${srcdir}/xconfig
338 rm -f alldeps.mak alldeps.tmp allparam.tmp allconfig.tmp
339 for i in
`ls -d ${srcdir}/tconfig/*[0-9A-Za-z] \
340 ${srcdir}/xconfig/*[0-9A-Za-z] | \
341 grep -v RCS | grep -v CVS.adm | grep -v SCCS` ; do \
342 echo
$$i >>allconfig.tmp
; \
344 $$1 == "TDEPFILES=" || $$1 == "XDEPFILES=" { \
345 for (i = 2; i <= NF; i++) \
346 print $$i >> "alldeps.tmp" ; \
348 $$1 == "TM_FILE=" || $$1 == "XM_FILE=" { \
349 print $$2 >> "allparam.tmp" }' ; \
351 sort <alldeps.tmp | uniq | \
352 sed
-e
's/arm-convert.o/arm-convert.s/' \
353 -e
's!^Onindy.o!nindy-share/Onindy.c!' \
354 -e
's!^nindy.o!nindy-share/nindy.c!' \
355 -e
's!ttybreak.o!nindy-share/ttybreak.c!' \
356 -e
's!ttyflush.o!nindy-share/ttyflush.c!' \
357 -e
's!xdr_ld.o!vx-share/xdr_ld.c!' \
358 -e
's!xdr_ptrace.o!vx-share/xdr_ptrace.c!' \
359 -e
's!xdr_rdb.o!vx-share/xdr_rdb.c!' \
360 -e
's!xdr_regs.o!vx-share/xdr_regs.c!' \
363 echo
'# Start of "alldeps.mak" definitions' \
365 echo
'ALLDEPFILES = $$(ALLDEPFILES_MAINDIR) $$(ALLDEPFILES_SUBDIR)' \
367 grep
-v
/ alldeps2.tmp | \
368 awk
'BEGIN {printf "ALLDEPFILES_MAINDIR="} \
369 NR == 0 {printf $$0;} \
370 NR != 0 {printf "\\\n" $$0} \
371 END {printf "\n\n"}' >>alldeps.mak
;
372 grep
/ alldeps2.tmp | \
373 awk
'BEGIN {printf "ALLDEPFILES_SUBDIR="} \
374 NR == 0 {printf $$0;} \
375 NR != 0 {printf "\\\n" $$0} \
376 END {printf "\n\n"}' >>alldeps.mak
;
377 sort <allparam.tmp | uniq | awk
'BEGIN {printf "ALLPARAM="} \
378 NR == 0 {printf $$0;} \
379 NR != 0 {printf "\\\n" $$0} \
380 END {printf "\n\n"}' >>alldeps.mak
;
381 sort <allconfig.tmp | uniq | awk
'BEGIN {printf "ALLCONFIG="} \
382 NR == 0 {printf $$0;} \
383 NR != 0 {printf "\\\n" $$0} \
384 END {printf "\n\n"}' >>alldeps.mak
;
385 echo
'# End of "alldeps.mak" definitions' \
387 rm -f alldeps.tmp alldeps2.tmp allparam.tmp allconfig.tmp
389 # The sed script makes everything which depends on {x,t}m.h depend on
390 # config.status as well, in case someone reconfigures gdb out from
391 # under an already compiled gdb.
392 depend
: $(SOURCES
) Makefile.in
393 @echo Ignore errors about non-existent system-supplied
include files
394 @echo for systems other than the one you are using.
395 @echo
"If xm.h and tm.h don't exist, the error messages saying so"
396 @echo can safely be ignored.
397 @echo Also ignore parse errors in valops.c
, and any errors in
399 -$(GCC
) -MM
$(CFLAGS
) -I
$(BFD_DIR
) \
400 `ls $(SOURCES) | grep -v '\.[hy]$$' |sort -u` >depend.tmp
401 # If running in srcdir, translate "./foo.c" into "$srcdir/foo.c" except
402 # for xm.h and tm.h. This allows the same "depend" file to be used
403 # by the various subdirectories.
404 if
[ "${srcdir}" = "." ] ; then \
406 -e
's; ./xm.h; xm.h;g' \
407 -e
's; ./tm.h; tm.h;g' \
408 -e
's; \./; $${srcdir}/;g' \
409 -e
's; vx-share/; $${srcdir}/vx-share/;g' \
410 -e
's; nindy-share/; $${srcdir}/nindy-share/;g' \
413 mv depend.tm2 depend.tmp
; \
416 -e
's; [xt]m.h;& config.status;g' \
417 -e
's; $(INCLUDE_DIR)/; $(INCLUDE_DEP)/;g' \
418 -e
's; $(READLINE_DIR)/; $(READLINE_DEP)/;g' \
419 -e
's; [a-z0-9./]*bfd/; $(BFD_DEP)/;g' \
420 -e
's; ./xm.h; xm.h config.status;g' \
421 -e
's; ./tm.h; tm.h config.status;g' \
426 @echo
"You must configure gdb. Look at the README file for details."
429 # These are not generated by "make depend" because they only are there
431 # But these rules don't do what we want; we want to hack the foo.o: tm.h
432 # dependency to do the right thing.
433 tm-isi.h tm-sun3.h tm-news.h tm-hp300bsd.h tm-altos.h
: tm-68k.h
434 tm-hp300hpux.h tm-sun2.h tm-3b1.h
: tm-68k.h
435 xm-news1000.h
: xm-news.h
436 xm-i386-sv32.h
: xm-i386.h
437 tm-i386gas.h
: tm-i386.h
438 xm-sun4os4.h
: xm-sparc.h
439 tm-sun4os4.h
: tm-sparc.h
441 kdb
: $(NTSSTART
) $(OBS
) $(NTSOBS
) ${ADD_DEPS} ${CDEPS}
443 $(srcdir)/munch
${MUNCH_DEFINE} $(OBS
) $(NTSOBS
) > init.c
444 $(CC
) $(LDFLAGS
) -c init.c
$(CLIBS
)
445 ld -o kdb
$(NTSSTART
) $(OBS
) $(NTSOBS
) init.o
$(ADD_FILES
) \
448 # Put the proper machine-specific files first.
449 # createtags will edit the .o in DEPFILES into .c
451 $(srcdir)/createtags
$(TM_FILE
) ${XM_FILE} $(DEPFILES
) ${TAGFILES}
454 gdb.
tar.Z
: force_update
457 $(MAKE
) $(MFLAGS
) alldeps.mak
460 $(MAKE
) $(MFLAGS
) depend
462 $(MAKE
) $(MFLAGS
) gdb.
info
463 $(MAKE
) $(MFLAGS
) gdb-
$(VERSION
).
tar.Z
465 gdb-
$(VERSION
).
tar.Z
: ${TARFILES} ${TARDIRS} gdb.
info
466 rm -f gdb.
tar gdb-
$(VERSION
).
tar.Z
; rm -rf
$(DIST
)
468 cd
$(DIST
) ; for i in
${TARFILES} ; do ln
-s ..
/$$i .
; done
469 cd
$(DIST
) ; ln
-s ..
/${INFOFILES} .
470 cd
$(DIST
); for i in
${TARDIRS}; do \
471 (mkdir
$$i; cd
$$i; \
472 ln
-s ..
/..
/$$i/* .
; \
473 rm -rf SCCS CVS.adm RCS
); done
474 mkdir
$(DIST
)/xconfig
${DIST}/tconfig
475 cd
$(DIST
)/tconfig
; \
476 for i in
$(ALLCONFIG
) ; do ln
-s ..
/..
/$$i ..
/$$i ; done
477 mkdir
$(DIST
)/vx-share
$(DIST
)/nindy-share
478 cd
$(DIST
)/tconfig
; \
479 for i in
$(SFILES_SUBDIR
) $(NONSRC_SUBDIR
) $(ALLDEPFILES_SUBDIR
); \
480 do ln
-s ..
/..
/$$i ..
/$$i ; done
481 chmod og
=u
`find . -print`
482 tar chf
- $(DIST
) | compress
>gdb-
$(VERSION
).
tar.Z
486 rm -f
${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES}
487 rm -f init.c init.o version.c
488 rm -f gdb core gdb.
tar gdb.
tar.Z make.log
490 rm -f gdb.
dvi rdl-apps.texinfo gdb-all
*
491 rm -f gdbrc.ps gdbrc.
dvi doc
/rcfonts.
tex doc
/gdbrc.log
493 distclean: clean expread.tab.c TAGS
494 rm -f tm.h xm.h config.status
495 rm -f y.output
yacc.acts
yacc.tmp
496 rm -f
${TESTS} Makefile depend
499 rm -f expread.tab.c TAGS
500 rm -f tm.h xm.h config.status
501 rm -f Makefile depend
504 # GDB QUICK REFERENCE (TeX dvi file, CM fonts)
505 gdbrc.
dvi : doc
/gdbrc.
tex
506 ( cd
$(srcdir)/doc
; \
507 rm -f rcfonts.
tex; cp rc-cm.
tex rcfonts.
tex; \
508 TEXINPUTS
=.
:$$TEXINPUTS tex gdbrc.
tex; rm -f gdbrc.log
)
509 mv
$(srcdir)/doc
/gdbrc.
dvi .
511 # GDB QUICK REFERENCE (PostScript output, common PS fonts)
512 gdbrc.ps
: doc
/gdbrc.
tex
513 ( cd
$(srcdir)/doc
; \
514 rm -f rcfonts.
tex; cp rc-ps.
tex rcfonts.
tex; \
515 TEXINPUTS
=.
:$$TEXINPUTS tex gdbrc.
tex; \
516 dvips
-t landscape gdbrc
-o
; rm -f gdbrc.
dvi gdbrc.log
)
517 mv
$(srcdir)/doc
/gdbrc.ps .
519 # Cover file for "Readline" appendices
520 rdl-apps.texinfo
: ${READLINE_DIR}/inc-readline.texinfo \
521 ${READLINE_DIR}/inc-history.texinfo
522 echo
"@include ${READLINE_DIR}/inc-readline.texinfo" >rdl-apps.texinfo
523 echo
"@include ${READLINE_DIR}/inc-history.texinfo" >>rdl-apps.texinfo
525 # GDB MANUAL: texinfo source, created by preprocessing w/m4
526 # Be sure to not create a bad gdb-all.texinfo if ${M4} is missing or aborts...
527 gdb-all.texinfo
: ${SFILES_DOCDIR}
528 rm -f gdb-all.texinfo foobus.texinfo
529 ( cd
$(srcdir)/doc
; \
530 ${M4} pretex.m4 none.m4
all.m4 gdb.texinfo
) >foobus.texinfo
531 mv foobus.texinfo gdb-all.texinfo
533 # GDB MANUAL: TeX dvi file
534 gdb.
dvi : gdb-all.texinfo rdl-apps.texinfo
535 TEXINPUTS
=${TEXIDIR}:$$TEXINPUTS tex gdb-all.texinfo
537 TEXINPUTS
=${TEXIDIR}:$$TEXINPUTS tex gdb-all.texinfo
538 mv gdb-all.
dvi gdb.
dvi
539 rm -f gdb-all.?? gdb-all.???
541 # GDB MANUAL: info file
542 # We're using texinfo2, and older makeinfo's may not be able to
543 # cope with all the markup. In the meantime, we distribute the info
544 # files as formatted by the elisp texinfo2 code.
545 gdb.
info: gdb-all.texinfo
546 ${MAKEINFO} gdb-all.texinfo
548 # Make copying.c from COPYING
549 copying.c
: COPYING copying.awk
550 awk
-f copying.awk
< COPYING
> copying.c
552 version.c
: Makefile.in
553 echo
'char *version = "$(VERSION)";' >version.c
555 # expread.tab.c is generated in srcdir from expread.y, then compiled in target
556 # directory to expread.o.
557 ${srcdir}/expread.tab.c
: $(srcdir)/expread.y
558 @echo
'Expect 4 shift/reduce conflicts.'
559 ${YACC} $(srcdir)/expread.y
560 mv y.tab.c
${srcdir}/expread.tab.c
562 expread.o
: ${srcdir}/expread.tab.c defs.h param.h symtab.h \
563 frame.h expression.h value.h command.h
564 $(CC
) -c
${CFLAGS} `echo ${srcdir}/expread.tab.c | sed 's,^\./,,'`
565 mv expread.tab.o expread.o
567 # dbxread, coffread, mipsread have dependencies on BFD header files.
568 dbxread.o
: ${srcdir}/dbxread.c
569 ${CC} -c
${CFLAGS} -I
$(BFD_DIR
) ${srcdir}/dbxread.c
571 coffread.o
: ${srcdir}/coffread.c
572 ${CC} -c
${CFLAGS} -I
$(BFD_DIR
) ${srcdir}/coffread.c
574 mipsread.o
: ${srcdir}/mipsread.c
575 ${CC} -c
${CFLAGS} -I
$(BFD_DIR
) ${srcdir}/mipsread.c
577 # Drag in the files that are in another directory.
579 xdr_ld.o
: ${srcdir}/vx-share
/xdr_ld.c
580 ${CC} -c
${CFLAGS} ${srcdir}/vx-share
/xdr_ld.c
582 xdr_ptrace.o
: ${srcdir}/vx-share
/xdr_ptrace.c
583 ${CC} -c
${CFLAGS} ${srcdir}/vx-share
/xdr_ptrace.c
585 xdr_rdb.o
: ${srcdir}/vx-share
/xdr_rdb.c
586 ${CC} -c
${CFLAGS} ${srcdir}/vx-share
/xdr_rdb.c
588 xdr_regs.o
: ${srcdir}/vx-share
/xdr_regs.c
589 ${CC} -c
${CFLAGS} ${srcdir}/vx-share
/xdr_regs.c
591 nindy.o
: ${srcdir}/nindy-share
/nindy.c
592 ${CC} -c
${CFLAGS} ${srcdir}/nindy-share
/nindy.c
594 Onindy.o
: ${srcdir}/nindy-share
/Onindy.c
595 ${CC} -c
${CFLAGS} ${srcdir}/nindy-share
/Onindy.c
597 ttybreak.o
: ${srcdir}/nindy-share
/ttybreak.c
598 ${CC} -c
${CFLAGS} ${srcdir}/nindy-share
/ttybreak.c
600 ttyflush.o
: ${srcdir}/nindy-share
/ttyflush.c
601 ${CC} -c
${CFLAGS} ${srcdir}/nindy-share
/ttyflush.c
603 tdesc-lib
/libdc.o
: force_update
604 cd tdesc-lib
; ${MAKE} "SYSV_DEFINE=${SYSV_DEFINE}"
607 $(LINT
) $(INCLUDE_CFLAGS
) $(LINTFLAGS
) $(LINTFILES
)
610 cxref
-I.
$(SFILES
) >gdb.cxref
614 # When used with GDB, the demangler should never look for leading
615 # underscores because GDB strips them off during symbol read-in. Thus
618 cplus-dem.o
: cplus-dem.c
619 ${CC} -c
${CFLAGS} -Dnounderscore \
620 `echo ${srcdir}/cplus-dem.c | sed 's,^\./,,'`
622 # This is the end of "Makefile.in". When built into "Makefile"
623 # by the configure script, two things are added below this point:
624 # alldeps.mak -- defintions of all files that are used in
625 # host- or target-dependent configurations
626 # depend -- what .o files depend on what .c and .h files,
627 # for all configurations.