1 ##Copyright (C) 1989, 1990, 1991, 1992 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 bindir = $(prefix)/bin
22 datadir = $(prefix)/lib
23 libdir = $(prefix)/lib
24 mandir = $(datadir)/man
25 man1dir = $(mandir)/man1
26 man2dir = $(mandir)/man2
27 man3dir = $(mandir)/man3
28 man4dir = $(mandir)/man4
29 man5dir = $(mandir)/man5
30 man6dir = $(mandir)/man6
31 man7dir = $(mandir)/man7
32 man8dir = $(mandir)/man8
33 man9dir = $(mandir)/man9
34 infodir = $(datadir)/info
35 includedir = $(prefix)/include
36 docdir
= $(datadir)/doc
41 INSTALL_PROGRAM
= $(INSTALL
)
42 INSTALL_DATA
= $(INSTALL
)
48 # Flags that describe where you can find the termcap library.
49 # This can be overridden in the host Makefile fragment file.
52 #### Host, target, and site specific Makefile fragments come in here.
55 # Host and target-dependent makefile fragments come in here.
57 # End of host and target-dependent makefile fragments
59 # System V: If you compile gdb with a compiler which uses the coff
60 # encapsulation feature (this is a function of the compiler used, NOT
61 # of the m-?.h file selected by config.gdb), you must make sure that
62 # the GNU nm is the one that is used by munch.
64 # If you are compiling with GCC, make sure that either 1) You use the
65 # -traditional flag, or 2) You have the fixed include files where GCC
66 # can reach them. Otherwise the ioctl calls in inflow.c
67 # will be incorrectly compiled. The "fixincludes" script in the gcc
68 # distribution will fix your include files up.
73 # Directory containing source files. Don't clean up the spacing,
74 # this exact string is matched for by the "configure" script.
77 # It is also possible that you will need to add -I/usr/include/sys to the
78 # CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
79 # is where it should be according to Posix).
83 YACC
=$(BISON
) $(BISONFLAGS
)
87 # Documentation (gdb.dvi) needs either GNU m4 or SysV m4;
88 # Berkeley/Sun don't have quite enough.
92 # where to find texinfo; GDB dist should include a recent one
93 TEXIDIR
=${srcdir}/..
/texinfo
/fsf
95 # where to find makeinfo, preferably one designed for texinfo-2
98 # Set this up with gcc if you have gnu ld and the loader will print out
99 # line numbers for undefinded refs.
103 # define this to be "gmalloc.o" if you want to use the gnu malloc routine
104 # (useful for debugging memory allocation problems in gdb). To use your
105 # system malloc, uncomment the following two lines.
107 #MALLOC_CFLAGS = -DNO_MALLOC_CHECK
108 GNU_MALLOC
= gmalloc.o mcheck.o mtrace.o
111 # Where is the "include" directory? Traditionally ../include or ./include
112 INCLUDE_DIR
= ${srcdir}/..
/include
113 INCLUDE_DEP
= $$(INCLUDE_DIR
)
115 # Where is the source dir for the BFD library? Traditionally ../bfd or ./bfd
116 # (When we want the binary library built from it, we use ${BFD_DIR}${subdir}.)
117 BFD_DIR
= ${srcdir}/..
/bfd
118 BFD_DEP
= $$(BFD_DIR
)
119 BFD_LIB
= $(unsubdir
)/..
/bfd
${subdir}/libbfd.a
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
= $(unsubdir
)/..
/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 INCLUDE_CFLAGS
= -I.
-I
${srcdir} -I
$(INCLUDE_DIR
) -I
$(READLINE_DIR
) -I
${srcdir}/vx-share
132 # {X,T}M_CFLAGS, if defined, has system-dependent CFLAGS.
135 GLOBAL_CFLAGS
= ${MINUS_G} ${TM_CFLAGS} ${XM_CFLAGS}
136 #PROFILE_CFLAGS = -pg
138 # CFLAGS is the aggregate of several individual *_CFLAGS macros.
139 # USER_CFLAGS is specifically reserved for setting from the command line
140 # when running make. I.E. "make USER_CFLAGS=-Wmissing-prototypes".
141 CFLAGS
= ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${MALLOC_CFLAGS} ${INCLUDE_CFLAGS} ${USER_CFLAGS}
142 # None of the things in CFLAGS will do any harm, and on some systems
143 # (e.g. SunOS4) it is important to use the M_CFLAGS.
146 # Where is the "-liberty" library, containing getopt and obstack?
147 LIBIBERTY_DIR
= ${srcdir}/..
/libiberty
148 LIBIBERTY
= $(unsubdir
)/..
/libiberty
${subdir}/libiberty.a
150 # The config/mh-* file must define REGEX and REGEX1 on USG machines.
151 # If your sysyem is missing alloca(), or, more likely, it's there but
152 # it doesn't work, define ALLOCA & ALLOCA1 too.
153 # If your system is missing putenv(), add putenv.c to XM_ADD_FILES.
155 # Libraries and corresponding dependencies for compiling gdb.
156 # {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
157 # TERMCAP comes after readline, since readline depends on it.
158 CLIBS
= ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${LIBIBERTY} ${XM_CLIBS} ${TM_CLIBS}
159 CDEPS
= ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${LIBIBERTY} ${RL_LIB}
161 ADD_FILES
= ${REGEX} ${ALLOCA} ${GNU_MALLOC} ${XM_ADD_FILES} ${TM_ADD_FILES}
162 ADD_DEPS
= ${REGEX1} ${ALLOCA1} ${GNU_MALLOC} ${XM_ADD_FILES} ${TM_ADD_FILES}
168 LINTFLAGS
= -I
${BFD_DIR}
170 # Source files in the main directory.
171 # Files which are included via a config/* Makefile fragment
172 # should *not* be specified here; they're in "ALLDEPFILES".
174 blockframe.c breakpoint.c command.c core.c \
175 environ.c eval.c expprint.c findvar.c infcmd.c inflow.c infrun.c \
177 remote.c source.c stack.c symmisc.c symtab.c symfile.c \
178 utils.c valarith.c valops.c valprint.c values.c c-exp.y m2-exp.y \
179 signame.c cplus-dem.c mem-break.c target.c inftarg.c \
180 dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c \
181 ieee-float.c language.c parse.c buildsym.c
183 # Source files in subdirectories (which will be handled separately by
185 # Files which are included via a config/* Makefile fragment
186 # should *not* be specified here; they're in "ALLDEPFILES".
188 ${srcdir}/vx-share
/dbgRpcLib.h \
189 ${srcdir}/vx-share
/ptrace.h \
190 ${srcdir}/vx-share
/reg.h \
191 ${srcdir}/vx-share
/vxTypes.h \
192 ${srcdir}/vx-share
/vxWorks.h \
193 ${srcdir}/vx-share
/wait.h \
194 ${srcdir}/vx-share
/xdr_ld.h \
195 ${srcdir}/vx-share
/xdr_ptrace.h \
196 ${srcdir}/vx-share
/xdr_rdb.h \
197 ${srcdir}/vx-share
/xdr_regs.h \
198 ${srcdir}/nindy-share
/b.out.h \
199 ${srcdir}/nindy-share
/block_io.h \
200 ${srcdir}/nindy-share
/coff.h \
201 ${srcdir}/nindy-share
/demux.h \
202 ${srcdir}/nindy-share
/env.h \
203 ${srcdir}/nindy-share
/stop.h \
204 ${srcdir}/nindy-share
/ttycntl.h
206 # Non-source files in subdirs, that should go into gdb.tar.Z.
208 ${srcdir}/nindy-share
/Makefile \
209 ${srcdir}/nindy-share
/VERSION
211 # All source files that go into linking GDB, except config-specified files.
212 SFILES
= $(SFILES_MAINDIR
) $(SFILES_SUBDIR
)
214 # All source files that lint should look at
215 LINTFILES
= $(SFILES
) $(YYFILES
) init.c
217 # Any additional files specified on these lines should also be added to
218 # the OTHERS = definition below, so they go in the tar files.
219 SFILES_STAND
= $(SFILES
) standalone.c
220 SFILES_KGDB
= $(SFILES
) stuff.c kdb-start.c
222 # Header files that are not named in config/* Makefile fragments go here.
223 HFILES
= breakpoint.h buildsym.h command.h defs.h environ.h \
224 expression.h frame.h gdbcmd.h gdbcore.h \
225 ieee-float.h inferior.h minimon.h partial-stab.h \
226 signals.h signame.h symfile.h symtab.h \
227 target.h terminal.h tm-68k.h tm-i960.h tm-sunos.h tm-sysv4.h \
228 xm-m68k.h xm-sysv4.h language.h parser-defs.h value.h
230 REMOTE_EXAMPLES
= m68k-stub.c i386-stub.c rem-multi.
shar
232 MALLOCSRC
= gmalloc.c mcheck.c mtrace.c mtrace.awk \
235 POSSLIBS_MAINDIR
= regex.c regex.h alloca.c
$(MALLOCSRC
)
236 POSSLIBS
= $(POSSLIBS_MAINDIR
)
238 TESTS
= testbpt.c testfun.c testrec.c testreg.c testregs.c
240 OTHERS
= Makefile.in depend alldeps.mak createtags munch configure.in \
241 ChangeLog ChangeLog-9091 ChangeLog-3.x gdb
.1 refcard.ps \
242 README TODO TAGS WHATS.NEW Projects \
243 .gdbinit COPYING
$(YYFILES
) \
244 copying.c Convex.notes copying.awk \
245 saber.suppress standalone.c stuff.c kdb-start.c \
248 # Subdirectories of gdb, which should be included in their entirety in
250 TARDIRS
= doc
# tests
252 # GDB "info" files, which should be included in their entirety
253 INFOFILES
= gdb.
info*
255 DEPFILES
= ${TDEPFILES} ${XDEPFILES}
257 SOURCES
=$(SFILES
) $(ALLDEPFILES
) $(YYFILES
)
258 TAGFILES
= $(SOURCES
) ${HFILES} ${ALLPARAM} ${POSSLIBS}
259 TAGFILES_MAINDIR
= $(SFILES_MAINDIR
) $(ALLDEPFILES_MAINDIR
) \
260 ${HFILES} ${ALLPARAM} ${POSSLIBS_MAINDIR}
261 TARFILES
= ${TAGFILES_MAINDIR} ${OTHERS} ${REMOTE_EXAMPLES}
263 OBS
= main.o blockframe.o breakpoint.o findvar.o stack.o source.o \
264 values.o eval.o valops.o valarith.o valprint.o printcmd.o \
265 symtab.o symfile.o symmisc.o infcmd.o infrun.o remote.o \
266 command.o utils.o expprint.o environ.o version.o \
267 copying.o
$(DEPFILES
) signame.o cplus-dem.o mem-break.o target.o \
268 inftarg.o ieee-float.o putenv.o parse.o language.o
$(YYOBJ
) \
270 dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o
# mipsread.o
272 RAPP_OBS
= rgdb.o rudp.o rserial.o serial.o udp.o
$(XDEPFILES
)
274 TSOBS
= core.o inflow.o
276 NTSOBS
= standalone.o
278 TSSTART
= /lib
/crt0.o
280 NTSSTART
= kdb-start.o
284 # For now, shortcut the "configure GDB for fewer languages" stuff.
285 YYFILES
= c-exp.tab.c m2-exp.tab.c
286 YYOBJ
= c-exp.tab.o m2-exp.tab.o
288 # Prevent Sun make from putting in the machine type. Setting
289 # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
291 ${CC} -c
${CFLAGS} $<
294 $(MAKE
) subdir_do DO
=all "DODIRS=$(SUBDIRS)"
296 $(MAKE
) subdir_do DO
=info "DODIRS=$(SUBDIRS)"
298 $(MAKE
) subdir_do DO
=install-info
"DODIRS=$(SUBDIRS)"
300 $(MAKE
) subdir_do DO
=clean-info
"DODIRS=$(SUBDIRS)"
303 nroff
-man
$(srcdir)/gdb
.1 | col
-b
> gdb.t
304 pack gdb.t
; rm -f gdb.t
308 $(INSTALL_PROGRAM
) gdb
$(bindir)/gdb
310 $(MAKE
) subdir_do DO
=install "DODIRS=$(SUBDIRS)"
312 init.c
: $(srcdir)/munch
$(OBS
) $(TSOBS
)
313 $(srcdir)/munch
${MUNCH_DEFINE} $(OBS
) $(TSOBS
) > init.c
315 gdb
: $(OBS
) $(TSOBS
) ${ADD_DEPS} ${CDEPS} init.o
316 ${CC-LD
} $(LDFLAGS
) -o gdb init.o
$(OBS
) $(TSOBS
) $(ADD_FILES
) \
317 $(CLIBS
) $(LOADLIBES
)
319 saber_gdb
: $(SFILES
) $(DEPFILES
) copying.c version.c
320 #setopt load_flags $(CFLAGS) -I$(BFD_DIR) -DHOST_SYS=SUN4_SYS
321 #load ./init.c $(SFILES)
322 #unload ${srcdir}/c-exp.y ${srcdir}/m2-exp.y ${srcdir}/vx-share/*.h
323 #unload ${srcdir}/nindy-share/[A-Z]*
324 #load c-exp.tab.c m2-exp.tab.c
325 #load copying.c version.c
326 #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
327 #load ${LIBIBERTY_DIR}/*.c
329 #load ${READLINE_DIR}/*.c
331 ##void mcheck(a) void (*a)(); { }
336 # This is useful when debugging GDB, because some Unix's don't let you run GDB
337 # on itself without copying the executable. So "make gdb1" will make
338 # gdb and put a copy in gdb1, and you can run it with "gdb gdb1".
339 # Removing gdb1 before the copy is the right thing if gdb1 is open
340 # in another process.
345 # This is a remote stub which runs under unix and starts up an
346 # inferior process. This is at least useful for debugging GDB's
350 ${srcdir}/munch
${MUNCH_DEFINE} ${RAPP_OBS} > rapp_init.c
351 ${CC-LD
} $(LDFLAGS
) -o
$@ rapp_init.c
$(RAPP_OBS
)
353 # Support for building Makefile out of configured pieces, automatically
354 # generated dependencies, etc. alldeps.mak is a file that contains
355 # "make" variable definitions for all ALLDEPFILES, ALLDEPFILES_MAINDIR,
356 # ALLDEPFILES_SUBDIR, ALLPARAM, and ALLCONFIG, all cadged from the current
357 # contents of the config subdirectory.
359 alldeps.mak
: ${srcdir}/config
360 rm -f alldeps.mak alldeps.tmp allparam.tmp allconfig.tmp
361 for i in
`ls -d ${srcdir}/config/m[ht]-*` ; do \
362 echo
$$i >>allconfig.tmp
; \
364 $$1 == "TDEPFILES=" || $$1 == "XDEPFILES=" { \
365 for (i = 2; i <= NF; i++) \
366 print $$i >> "alldeps.tmp" ; \
368 $$1 == "TM_FILE=" || $$1 == "XM_FILE=" { \
369 print $$2 >> "allparam.tmp" }' ; \
371 sort <alldeps.tmp | uniq | \
372 sed
-e
's/arm-convert.o/arm-convert.s/' \
373 -e
's!^Onindy.o!nindy-share/Onindy.c!' \
374 -e
's!^nindy.o!nindy-share/nindy.c!' \
375 -e
's!ttybreak.o!nindy-share/ttybreak.c!' \
376 -e
's!ttyflush.o!nindy-share/ttyflush.c!' \
377 -e
's!xdr_ld.o!vx-share/xdr_ld.c!' \
378 -e
's!xdr_ptrace.o!vx-share/xdr_ptrace.c!' \
379 -e
's!xdr_rdb.o!vx-share/xdr_rdb.c!' \
380 -e
's!xdr_regs.o!vx-share/xdr_regs.c!' \
383 echo
'# Start of "alldeps.mak" definitions' \
385 echo
'ALLDEPFILES = $$(ALLDEPFILES_MAINDIR) $$(ALLDEPFILES_SUBDIR)' \
387 grep
-v
/ alldeps2.tmp | \
388 awk
'BEGIN {printf "ALLDEPFILES_MAINDIR="} \
389 NR == 0 {printf $$0;} \
390 NR != 0 {printf "\\\n" $$0} \
391 END {printf "\n\n"}' >>alldeps.mak
;
392 grep
/ alldeps2.tmp | \
393 awk
'BEGIN {printf "ALLDEPFILES_SUBDIR="} \
394 NR == 0 {printf $$0;} \
395 NR != 0 {printf "\\\n" $$0} \
396 END {printf "\n\n"}' >>alldeps.mak
;
397 sort <allparam.tmp | uniq | awk
'BEGIN {printf "ALLPARAM="} \
398 NR == 0 {printf $$0;} \
399 NR != 0 {printf "\\\n" $$0} \
400 END {printf "\n\n"}' >>alldeps.mak
;
401 sort <allconfig.tmp | uniq | awk
'BEGIN {printf "ALLCONFIG="} \
402 NR == 0 {printf $$0;} \
403 NR != 0 {printf "\\\n" $$0} \
404 END {printf "\n\n"}' >>alldeps.mak
;
405 echo
'# End of "alldeps.mak" definitions' \
407 rm -f alldeps.tmp alldeps2.tmp allparam.tmp allconfig.tmp
409 # The sed script makes everything which depends on {x,t}m.h depend on
410 # config.status as well, in case someone reconfigures gdb out from
411 # under an already compiled gdb.
412 depend
: $(SOURCES
) Makefile.in
413 @echo Ignore errors about non-existent system-supplied
include files
414 @echo for systems other than the one you are using.
415 @echo
"If xm.h and tm.h don't exist, the error messages saying so"
416 @echo can safely be ignored.
417 @echo Also ignore parse errors in valops.c
, and any errors in
419 -$(GCC
) -MM
$(CFLAGS
) -I
$(BFD_DIR
) \
420 `ls $(SOURCES) | grep -v '\.[hy]$$' |sort -u` >depend.tmp
421 # If running in srcdir, translate "./foo.c" into "$srcdir/foo.c" except
422 # for xm.h and tm.h. This allows the same "depend" file to be used
423 # by the various subdirectories.
424 if
[ "${srcdir}" = "." ] ; then \
426 -e
's; ./xm.h; xm.h;g' \
427 -e
's; ./tm.h; tm.h;g' \
428 -e
's; \./; $${srcdir}/;g' \
429 -e
's; vx-share/; $${srcdir}/vx-share/;g' \
430 -e
's; nindy-share/; $${srcdir}/nindy-share/;g' \
433 mv depend.tm2 depend.tmp
; \
436 -e
's; [xt]m.h;& config.status;g' \
437 -e
's; $(INCLUDE_DIR)/; $(INCLUDE_DEP)/;g' \
438 -e
's; $(READLINE_DIR)/; $(READLINE_DEP)/;g' \
439 -e
's; [a-z0-9./]*bfd/; $(BFD_DEP)/;g' \
440 -e
's; ./xm.h; xm.h config.status;g' \
441 -e
's; ./tm.h; tm.h config.status;g' \
446 @echo
"You must configure gdb. Look at the README file for details."
449 # These are not generated by "make depend" because they only are there
451 # But these rules don't do what we want; we want to hack the foo.o: tm.h
452 # dependency to do the right thing.
453 tm-isi.h tm-sun3.h tm-news.h tm-hp300bsd.h tm-altos.h
: tm-68k.h
454 tm-hp300hpux.h tm-sun2.h tm-3b1.h
: tm-68k.h
455 xm-news1000.h
: xm-news.h
456 xm-i386-sv32.h
: xm-i386.h
457 tm-i386gas.h
: tm-i386.h
458 xm-sun4os4.h
: xm-sparc.h
459 tm-sun4os4.h
: tm-sparc.h
461 kdb
: $(NTSSTART
) $(OBS
) $(NTSOBS
) ${ADD_DEPS} ${CDEPS}
463 $(srcdir)/munch
${MUNCH_DEFINE} $(OBS
) $(NTSOBS
) > init.c
464 $(CC
) $(LDFLAGS
) -c init.c
$(CLIBS
)
465 ld -o kdb
$(NTSSTART
) $(OBS
) $(NTSOBS
) init.o
$(ADD_FILES
) \
468 # Put the proper machine-specific files first.
469 # createtags will edit the .o in DEPFILES into .c
471 $(srcdir)/createtags
$(TM_FILE
) ${XM_FILE} $(DEPFILES
) ${TAGFILES}
474 # Making distributions of GDB and friends.
476 # Make a directory `proto-gdb.dir' that contains an image of the GDB
477 # directory of the distribution, built up with symlinks.
478 make-proto-gdb.
dir: force_update
479 $(MAKE
) $(MFLAGS
) -f Makefile.in setup-to-dist
480 $(MAKE
) $(MFLAGS
) -f Makefile make-proto-gdb-1
482 # Make a tar file containing the GDB directory of the distribution.
483 gdb.
tar.Z
: force_update
484 $(MAKE
) $(MFLAGS
) -f Makefile.in setup-to-dist
485 $(MAKE
) $(MFLAGS
) -f Makefile.in gdb-
$(VERSION
).
tar.Z
487 # Set up the GDB directory for distribution, by building all files that
488 # are products of other files.
489 setup-to-dist
: force_update
492 $(MAKE
) $(MFLAGS
) alldeps.mak
495 $(MAKE
) $(MFLAGS
) depend
497 (cd doc
; $(MAKE
) $(MFLAGS
) gdbVN.m4
)
498 $(MAKE
) $(MFLAGS
) gdb.
info
499 $(MAKE
) $(MFLAGS
) refcard.ps
501 # Build a tar file from a proto-gdb.dir.
502 gdb-
$(VERSION
).
tar.Z
: force_update
503 rm -f gdb.
tar gdb-
$(VERSION
).
tar.Z
504 $(MAKE
) $(MFLAGS
) -f Makefile make-proto-gdb-1
505 ln
-s proto-gdb.
dir $(DIST
)
506 tar chf
- $(DIST
) | compress
>gdb-
$(VERSION
).
tar.Z
507 rm -rf
$(DIST
) proto-gdb.
dir
509 # Build a proto-gdb.dir after GDB has been set up for distribution.
510 # This stuff must be run in `Makefile', not `Makefile.in`; we use the makefile
511 # built in the setup-to-dist process, since it defines things like ALLCONFIG
512 # and ALLDEPFILES, that we need.
513 make-proto-gdb-1
: ${TARFILES} ${TARDIRS} gdb.
info
516 cd proto-gdb.
dir ; for i in
${TARFILES} ; do ln
-s ..
/$$i .
; done
517 cd proto-gdb.
dir ; ln
-s ..
/${INFOFILES} .
518 cd proto-gdb.
dir ; for i in
${TARDIRS}; do \
519 (mkdir
$$i; cd
$$i; \
520 ln
-s ..
/..
/$$i/* .
; \
521 rm -rf SCCS CVS.adm RCS config.status
); done
522 mkdir proto-gdb.
dir/config
523 cd proto-gdb.
dir/config
; \
524 for i in
$(ALLCONFIG
) ; do ln
-s ..
/..
/$$i ..
/$$i ; done
525 mkdir proto-gdb.
dir/vx-share proto-gdb.
dir/nindy-share
526 cd proto-gdb.
dir/config
; \
527 for i in
$(SFILES_SUBDIR
) $(NONSRC_SUBDIR
) $(ALLDEPFILES_SUBDIR
); \
528 do ln
-s ..
/..
/$$i ..
/$$i ; done
529 chmod og
=u
`find . -print`
532 rm -f
${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES}
533 rm -f init.c init.o version.c
534 rm -f gdb core gdb.
tar gdb.
tar.Z make.log
536 $(MAKE
) subdir_do DO
=clean "DODIRS=$(SUBDIRS)"
538 distclean: clean c-exp.tab.c m2-exp.tab.c TAGS
539 rm -f tm.h xm.h config.status
540 rm -f y.output
yacc.acts
yacc.tmp
541 rm -f
${TESTS} Makefile depend
542 $(MAKE
) subdir_do DO
=distclean "DODIRS=$(SUBDIRS)"
545 rm -f c-exp.tab.c m2-exp.tab.c TAGS
546 rm -f tm.h xm.h config.status
547 rm -f Makefile depend
548 $(MAKE
) subdir_do DO
=realclean "DODIRS=$(SUBDIRS)"
550 STAGESTUFF
=${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES} init.c init.o version.c gdb
553 for i in
$(DODIRS
); do \
554 if
[ -d
$(unsubdir
)/$$i ] ; then \
555 if
(cd
$(unsubdir
)/$$i$(subdir
); \
557 "against=$(against)" \
559 "AR_FLAGS=$(AR_FLAGS)" \
562 "BISON=$(BISON)" $(DO
)) ; then true
; \
567 # Copy the object files from a particular stage into a subdirectory.
570 -mv
-f
$(STAGESTUFF
) stage1
571 $(MAKE
) subdir_do DO
=stage1
"DODIRS=$(SUBDIRS)"
575 -mv
-f
$(STAGESTUFF
) stage2
576 $(MAKE
) subdir_do DO
=stage2
"DODIRS=$(SUBDIRS)"
580 -mv
-f
$(STAGESTUFF
) stage3
581 $(MAKE
) subdir_do DO
=stage3
"DODIRS=$(SUBDIRS)"
586 for i in
$(STAGESTUFF
) ; do cmp
$$i $(against
)/$$i ; done
587 $(MAKE
) subdir_do DO
=comparison
"DODIRS=$(SUBDIRS)"
590 -(cd stage1
; mv
-f
* ..
)
592 $(MAKE
) subdir_do DO
=de-stage1
"DODIRS=$(SUBDIRS)"
595 -(cd stage2
; mv
-f
* ..
)
597 $(MAKE
) subdir_do DO
=de-stage2
"DODIRS=$(SUBDIRS)"
600 -(cd stage3
; mv
-f
* ..
)
602 $(MAKE
) subdir_do DO
=de-stage3
"DODIRS=$(SUBDIRS)"
604 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
605 $(SHELL
) .
/config.status
610 # GDB QUICK REFERENCE (TeX dvi file, CM fonts)
611 refcard.
dvi: $(srcdir)/doc
/refcard.
tex
612 ( cd
$(unsubdir
)/doc
; $(MAKE
) refcard.
dvi )
613 mv
$(unsubdir
)/doc
/refcard.
dvi .
615 # GDB QUICK REFERENCE (PostScript output, common PS fonts)
616 refcard.ps
: $(srcdir)/doc
/refcard.
tex
617 ( cd
$(unsubdir
)/doc
; $(MAKE
) refcard.ps
)
618 mv
$(unsubdir
)/doc
/refcard.ps .
620 # GDB MANUAL: TeX dvi file
621 gdb.
dvi: $(unsubdir
)/doc
/gdb-all.texi
622 ( cd
$(unsubdir
)/doc
; $(MAKE
) M4
=$(M4
) gdb.
dvi )
623 mv
$(unsubdir
)/doc
/gdb.
dvi .
625 # GDB MANUAL: info file
626 gdb.
info: $(unsubdir
)/doc
/gdb-all.texi
627 ( cd
$(unsubdir
)/doc
; $(MAKE
) M4
=$(M4
) gdb.
info )
628 mv
$(unsubdir
)/doc
/gdb.
info* .
630 $(unsubdir
)/doc
/gdb-all.texi
:
631 (cd
$(srcdir)/doc
; $(MAKE
) M4
=$(M4
) gdb-all.texi
)
633 # Make copying.c from COPYING
634 copying.c
: ${srcdir}/COPYING
${srcdir}/copying.awk
635 awk
-f
${srcdir}/copying.awk
< ${srcdir}/COPYING
> copying.c
637 version.c
: Makefile.in
638 echo
'char *version = "$(VERSION)";' >version.c
640 # c-exp.tab.c is generated in target dir from c-exp.y if it doesn't exist
641 # in srcdir, then compiled in target dir to c-exp.tab.o.
642 c-exp.tab.o
: c-exp.tab.c
643 c-exp.tab.c
: $(srcdir)/c-exp.y
644 @echo
'Expect 4 shift/reduce conflicts.'
645 ${YACC} $(srcdir)/c-exp.y
646 -mv y.tab.c c-exp.tab.c
648 # m2-exp.tab.c is generated in target dir from m2-exp.y if it doesn't exist
649 # in srcdir, then compiled in target dir to m2-exp.tab.o.
650 m2-exp.tab.o
: m2-exp.tab.c
651 m2-exp.tab.c
: $(srcdir)/m2-exp.y
652 ${YACC} $(srcdir)/m2-exp.y
653 -mv y.tab.c m2-exp.tab.c
655 # The symbol-file readers have dependencies on BFD header files.
656 dbxread.o
: ${srcdir}/dbxread.c
657 ${CC} -c
${CFLAGS} -I
$(BFD_DIR
) ${srcdir}/dbxread.c
659 coffread.o
: ${srcdir}/coffread.c
660 ${CC} -c
${CFLAGS} -I
$(BFD_DIR
) ${srcdir}/coffread.c
662 mipsread.o
: ${srcdir}/mipsread.c
663 ${CC} -c
${CFLAGS} -I
$(BFD_DIR
) ${srcdir}/mipsread.c
665 elfread.o
: ${srcdir}/elfread.c
666 ${CC} -c
${CFLAGS} -I
$(BFD_DIR
) ${srcdir}/elfread.c
668 xcoffread.o
: ${srcdir}/xcoffread.c
669 ${CC} -c
${CFLAGS} -I
$(BFD_DIR
) ${srcdir}/xcoffread.c
671 xcoffexec.o
: ${srcdir}/xcoffexec.c
672 ${CC} -c
${CFLAGS} -I
$(BFD_DIR
) ${srcdir}/xcoffexec.c
674 # Drag in the files that are in another directory.
676 xdr_ld.o
: ${srcdir}/vx-share
/xdr_ld.c
677 ${CC} -c
${CFLAGS} ${srcdir}/vx-share
/xdr_ld.c
679 xdr_ptrace.o
: ${srcdir}/vx-share
/xdr_ptrace.c
680 ${CC} -c
${CFLAGS} ${srcdir}/vx-share
/xdr_ptrace.c
682 xdr_rdb.o
: ${srcdir}/vx-share
/xdr_rdb.c
683 ${CC} -c
${CFLAGS} ${srcdir}/vx-share
/xdr_rdb.c
685 xdr_regs.o
: ${srcdir}/vx-share
/xdr_regs.c
686 ${CC} -c
${CFLAGS} ${srcdir}/vx-share
/xdr_regs.c
688 nindy.o
: ${srcdir}/nindy-share
/nindy.c
689 ${CC} -c
${CFLAGS} ${srcdir}/nindy-share
/nindy.c
691 Onindy.o
: ${srcdir}/nindy-share
/Onindy.c
692 ${CC} -c
${CFLAGS} ${srcdir}/nindy-share
/Onindy.c
694 ttybreak.o
: ${srcdir}/nindy-share
/ttybreak.c
695 ${CC} -c
${CFLAGS} ${srcdir}/nindy-share
/ttybreak.c
697 ttyflush.o
: ${srcdir}/nindy-share
/ttyflush.c
698 ${CC} -c
${CFLAGS} ${srcdir}/nindy-share
/ttyflush.c
701 $(LINT
) $(INCLUDE_CFLAGS
) $(LINTFLAGS
) $(LINTFILES
) \
702 `echo ${DEPFILES} | sed 's/\.o /\.c /g'
705 cxref -I. $(SFILES) >gdb.cxref
709 # When used with GDB, the demangler should never look for leading
710 # underscores because GDB strips them off during symbol read-in. Thus
713 cplus-dem.o: cplus-dem.c
714 ${CC} -c ${CFLAGS} -Dnounderscore \
715 `echo
${srcdir}/cplus-dem.c | sed
's,^\./,,'`
717 # GNU Make has an annoying habit of putting *all* the Makefile variables
718 # into the environment, unless you include this target as a circumvention.
719 # Rumor is that this will be fixed (and this target can be removed)
723 # This is the end of "Makefile.in". When built into "Makefile"
724 # by the configure script, two things are added below this point:
725 # alldeps.mak -- defintions of all files that are used in
726 # host- or target-dependent configurations
727 # depend -- what .o files depend on what .c and .h files,
728 # for all configurations.