Enabled target gdb.info
[deliverable/binutils-gdb.git] / gdb / Makefile.in
1 ##Copyright (C) 1989-1991 Free Software Foundation, Inc.
2
3 # This file is part of GDB.
4
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.
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
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19 # Host and target-dependent makefile fragments come in here.
20 ####
21 # End of host and target-dependent makefile fragments
22
23 # Destination directory of the software tree build
24 destdir = /usr/local
25
26 # Place to install binaries in the destination tree.
27 bindir=$(destdir)/bin
28
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.
33
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.
39 #CC=cc
40 #CC=gcc -traditional
41 GCC=gcc
42
43 # Directory containing source files. Don't clean up the spacing,
44 # this exact string is matched for by the "configure" script.
45 srcdir = .
46
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).
50
51 YACC=bison -y
52 # YACC=yacc
53 SHELL=/bin/sh
54 MAKE=make
55
56 # Documentation (gdb.dvi) needs either GNU m4 or SysV m4;
57 # Berkeley/Sun don't have quite enough.
58 #M4=/usr/5bin/m4
59 M4=gm4
60 # where to find texinfo; if you have PostScript fonts you may want to try
61 # the Cygnus mods (which also have different header/footer layout)
62 #TEXIDIR=${srcdir}/../texinfo/cygnus
63 TEXIDIR=${srcdir}/../texinfo/fsf
64
65 # Set this up with gcc if you have gnu ld and the loader will print out
66 # line numbers for undefinded refs.
67 #CC-LD=gcc -static
68 CC-LD=${CC}
69
70 # define this to be "gmalloc.o" if you want to use the gnu malloc routine
71 # (useful for debugging memory allocation problems in gdb). To use your
72 # system malloc, uncomment the following two lines.
73 #GNU_MALLOC =
74 #MALLOC_CFLAGS = -DNO_MALLOC_CHECK
75 GNU_MALLOC = gmalloc.o mcheck.o mtrace.o
76 MALLOC_CFLAGS =
77
78 # Where is the "include" directory? Traditionally ../include or ./include
79 INCLUDE_DIR = ${srcdir}/../include
80 INCLUDE_DEP = $$(INCLUDE_DIR)
81
82 # Where is the source dir for the BFD library? Traditionally ../bfd or ./bfd
83 # (When we want the binary library built from it, we use ${BFD_DIR}${subdir}.)
84 BFD_DIR = ${srcdir}/../bfd
85 BFD_DEP = $$(BFD_DIR)
86 BFD_LIB = $(BFD_DIR)${subdir}/libbfd.a
87
88 # Where is the source dir for the READLINE library? Traditionally in .. or .
89 # (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
90 READLINE_DIR = ${srcdir}/../readline
91 READLINE_DEP = $$(READLINE_DIR)
92 RL_LIB = $(READLINE_DIR)${subdir}/libreadline.a
93
94 # All the includes used for CFLAGS and for lint.
95 # -I. for config files.
96 # -I${srcdir} possibly for regex.h also.
97 INCLUDE_CFLAGS = -I. -I${srcdir} -I$(INCLUDE_DIR) -I$(READLINE_DIR) -I${srcdir}/vx-share
98
99 # {X,T}M_CFLAGS, if defined, has system-dependent CFLAGS.
100 # CFLAGS for GDB
101 GLOBAL_CFLAGS = -g ${TM_CFLAGS} ${XM_CFLAGS}
102 #PROFILE_CFLAGS = -pg
103
104 CFLAGS = ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${MALLOC_CFLAGS} ${INCLUDE_CFLAGS}
105 # None of the things in CFLAGS will do any harm, and on some systems
106 # (e.g. SunOS4) it is important to use the M_CFLAGS.
107 LDFLAGS = $(CFLAGS)
108
109 # Where is the "-liberty" library, containing getopt and obstack?
110 LIBIBERTY_DIR = ${srcdir}/../libiberty
111 LIBIBERTY = ${LIBIBERTY_DIR}${subdir}/libiberty.a
112
113 # Flags that describe where you can find the termcap library.
114 # You may need to make other arrangements for USG.
115 TERMCAP = -ltermcap
116
117 # The xconfig file must define REGEX and REGEX1 on USG machines.
118 # If your sysyem is missing alloca(), or, more likely, it's there but
119 # it doesn't work, define ALLOCA & ALLOCA1 too.
120 # If your system is missing putenv(), add putenv.c to XM_ADD_FILES.
121
122 # Libraries and corresponding dependencies for compiling gdb.
123 # {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
124 # TERMCAP comes last, since readline depends on it.
125 CLIBS = $(XM_CLIBS) ${TM_CLIBS} ${BFD_LIB} ${LIBIBERTY} ${RL_LIB} ${TERMCAP}
126 CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${LIBIBERTY} ${RL_LIB}
127
128 ADD_FILES = ${REGEX} ${ALLOCA} ${GNU_MALLOC} ${XM_ADD_FILES} ${TM_ADD_FILES}
129 ADD_DEPS = ${REGEX1} ${ALLOCA1} ${GNU_MALLOC} ${XM_ADD_FILES} ${TM_ADD_FILES}
130
131 VERSION = 3.96
132 DIST=gdb-$(VERSION)
133
134 LINT=/usr/5bin/lint
135 LINTFLAGS=
136
137 # Source files in the main directory.
138 # Files which are included via a tconfig/* or xconfig/* file
139 # should *not* be specified here; they're in "ALLDEPFILES".
140 SFILES_MAINDIR = \
141 blockframe.c breakpoint.c command.c core.c \
142 environ.c eval.c expprint.c findvar.c infcmd.c inflow.c infrun.c \
143 main.c printcmd.c \
144 remote.c source.c stack.c symmisc.c symtab.c symfile.c \
145 utils.c valarith.c valops.c valprint.c values.c expread.y \
146 signame.c cplus-dem.c mem-break.c target.c inftarg.c \
147 dbxread.c coffread.c \
148 ieee-float.c
149
150 # Source files in subdirectories (which will be handled separately by
151 # 'make gdb.tar.Z').
152 # Files which are included via a tconfig/* or xconfig/* file
153 # should *not* be specified here; they're in "ALLDEPFILES".
154 SFILES_SUBDIR = \
155 ${srcdir}/vx-share/dbgRpcLib.h \
156 ${srcdir}/vx-share/ptrace.h \
157 ${srcdir}/vx-share/reg.h \
158 ${srcdir}/vx-share/vxTypes.h \
159 ${srcdir}/vx-share/vxWorks.h \
160 ${srcdir}/vx-share/wait.h \
161 ${srcdir}/vx-share/xdr_ld.h \
162 ${srcdir}/vx-share/xdr_ptrace.h \
163 ${srcdir}/vx-share/xdr_rdb.h \
164 ${srcdir}/vx-share/xdr_regs.h \
165 ${srcdir}/nindy-share/Makefile \
166 ${srcdir}/nindy-share/VERSION \
167 ${srcdir}/nindy-share/b.out.h \
168 ${srcdir}/nindy-share/block_io.h \
169 ${srcdir}/nindy-share/coff.h \
170 ${srcdir}/nindy-share/demux.h \
171 ${srcdir}/nindy-share/env.h \
172 ${srcdir}/nindy-share/stop.h \
173 ${srcdir}/nindy-share/ttycntl.h
174
175 # All source files that go into linking GDB, except config-specified files.
176 SFILES = $(SFILES_MAINDIR) $(SFILES_SUBDIR)
177
178 # All source files that lint should look at
179 LINTFILES = $(SFILES) expread.tab.c init.c
180
181 # Documentation source files
182 SFILES_DOCDIR = \
183 ${srcdir}/doc/gdb.texinfo \
184 ${srcdir}/doc/pretex.m4 \
185 ${srcdir}/doc/none.m4 \
186 ${srcdir}/doc/all.m4 \
187 ${srcdir}/doc/gdb.alter-m4 \
188 ${srcdir}/doc/gdb.bugs-m4 \
189 ${srcdir}/doc/gdb.canned-m4 \
190 ${srcdir}/doc/gdb.cmds-m4 \
191 ${srcdir}/doc/gdb.ctl-m4 \
192 ${srcdir}/doc/gdb.data-m4 \
193 ${srcdir}/doc/gdb.emacs-m4 \
194 ${srcdir}/doc/gdb.files-m4 \
195 ${srcdir}/doc/gdb.gpl-m4 \
196 ${srcdir}/doc/gdb.install-m4 \
197 ${srcdir}/doc/gdb.inv.m-m4 \
198 ${srcdir}/doc/gdb.inv.s-m4 \
199 ${srcdir}/doc/gdb.invoc-m4 \
200 ${srcdir}/doc/gdb.rdln-m4 \
201 ${srcdir}/doc/gdb.rename-m4 \
202 ${srcdir}/doc/gdb.run-m4 \
203 ${srcdir}/doc/gdb.sample-m4 \
204 ${srcdir}/doc/gdb.src-m4 \
205 ${srcdir}/doc/gdb.stack-m4 \
206 ${srcdir}/doc/gdb.stop-m4 \
207 ${srcdir}/doc/gdb.symb-m4 \
208 ${srcdir}/doc/gdb.tgts-m4 \
209 ${srcdir}/doc/gdb.top-m4
210
211 # Any additional files specified on these lines should also be added to
212 # the OTHERS = definition below, so they go in the tar files.
213 SFILES_STAND = $(SFILES) standalone.c
214 SFILES_KGDB = $(SFILES) stuff.c kdb-start.c
215
216 # Header files that are not named in tconfig/* or xconfig/* go here.
217 HFILES= breakpoint.h command.h defs.h environ.h \
218 expression.h frame.h gdbcmd.h gdbcore.h \
219 getpagesize.h ieee-float.h inferior.h param-no-tm.h param.h \
220 signals.h signame.h symfile.h symtab.h \
221 target.h tdesc.h terminal.h tm-68k.h tm-i960.h tm-sunos.h \
222 value.h
223
224 # Header files for machine opcode tables.
225 # when OPCODE_DIR changes to ../include, remove the whole $(OPCODES)
226 # business, since they will be included in the separate includes tar file
227 # rather than in the gdb tar file.
228 OPCODE_DIR =
229 OPCODES = $(OPCODE_DIR)pn-opcode.h $(OPCODE_DIR)np1-opcode.h \
230 $(OPCODE_DIR)sparc-opcode.h $(OPCODE_DIR)vax-opcode.h \
231 $(OPCODE_DIR)m68k-opcode.h $(OPCODE_DIR)ns32k-opcode.h \
232 $(OPCODE_DIR)convx-opcode.h $(OPCODE_DIR)pyr-opcode.h \
233 $(OPCODE_DIR)mips-opcode.h $(OPCODE_DIR)am29k-opcode.h \
234 $(OPCODE_DIR)arm-opcode.h $(OPCODE_DIR)m88k-opcode.h \
235 $(OPCODE_DIR)tahoe-opcode.h
236
237 REMOTE_EXAMPLES = m68k-stub.c i386-stub.c rem-multi.shar
238
239 MALLOCSRC = gmalloc.c mcheck.c mtrace.c mtrace.awk \
240 ansidecl.h gmalloc.h
241
242 POSSLIBS_MAINDIR = regex.c regex.h alloca.c $(MALLOCSRC)
243 POSSLIBS = $(POSSLIBS_MAINDIR)
244
245 TESTS = testbpt.c testfun.c testrec.c testreg.c testregs.c
246
247 # tdesc-lib cannot be named simply tdesc, because if it were, GNU make
248 # would try to make it from tdesc.c.
249 # tdesc-lib removed from the list due to Motorola copyrights...gnu@cygnus.com
250 OTHERS = Makefile Makefile.in depend alldeps.mak Makefile.conf \
251 createtags munch configure configure.in config.status \
252 ChangeLog ChangeLog-3.x \
253 README TODO TAGS WHATS.NEW Projects \
254 .gdbinit COPYING expread.tab.c \
255 copying.c Convex.notes copying.awk \
256 saber.suppress standalone.c stuff.c kdb-start.c \
257 putenv.c
258
259 # Subdirectories of gdb, which should be included in their entirety in
260 # gdb-xxx.tar.Z:
261 TARDIRS = doc hp-include # tests
262
263 DEPFILES= ${TDEPFILES} ${XDEPFILES}
264
265 SOURCES=$(SFILES) $(ALLDEPFILES)
266 TAGFILES = $(SOURCES) ${HFILES} ${OPCODES} ${ALLPARAM} ${POSSLIBS}
267 TAGFILES_MAINDIR = $(SFILES_MAINDIR) $(ALLDEPFILES_MAINDIR) \
268 ${HFILES} ${OPCODES} ${ALLPARAM} ${POSSLIBS_MAINDIR}
269 TARFILES = ${TAGFILES_MAINDIR} ${OTHERS} ${REMOTE_EXAMPLES}
270
271 OBS = main.o blockframe.o breakpoint.o findvar.o stack.o source.o \
272 values.o eval.o valops.o valarith.o valprint.o printcmd.o \
273 symtab.o symfile.o symmisc.o infcmd.o infrun.o remote.o \
274 command.o utils.o expread.o expprint.o environ.o version.o \
275 copying.o $(DEPFILES) signame.o cplus-dem.o mem-break.o target.o \
276 inftarg.o ieee-float.o putenv.o \
277 dbxread.o coffread.o # mipsread.o
278
279 RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES)
280
281 TSOBS = core.o inflow.o
282
283 NTSOBS = standalone.o
284
285 TSSTART = /lib/crt0.o
286
287 NTSSTART = kdb-start.o
288
289 # Prevent Sun make from putting in the machine type. Setting
290 # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
291 .c.o:
292 ${CC} -c ${CFLAGS} $<
293
294 all: gdb
295
296 install: gdb
297 cp gdb $(bindir)/gdb.new
298 mv $(bindir)/gdb.new $(bindir)/gdb
299 $(M_INSTALL)
300
301 init.c: $(srcdir)/munch $(MUNCH_DEFINE) $(OBS) $(TSOBS)
302 $(srcdir)/munch ${MUNCH_DEFINE} $(OBS) $(TSOBS) > init.c
303
304 gdb: $(OBS) $(TSOBS) ${ADD_DEPS} ${CDEPS} init.o
305 ${CC-LD} $(LDFLAGS) -o gdb init.o $(OBS) $(TSOBS) $(ADD_FILES) \
306 $(CLIBS)
307
308 saber_gdb: $(SFILES) $(DEPFILES) copying.c version.c
309 #setopt load_flags $(CFLAGS) -I$(BFD_DIR) -DHOST_SYS=SUN4_SYS
310 #load ./init.c $(SFILES)
311 #unload ${srcdir}/expread.y ${srcdir}/vx-share/*.h
312 #unload ${srcdir}/nindy-share/[A-Z]*
313 #load ${srcdir}/expread.tab.c
314 #load copying.c version.c
315 #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
316 #load ${LIBIBERTY_DIR}/*.c
317 #load ${BFD_DIR}/*.c
318 #load ${READLINE_DIR}/*.c
319 #load -ltermcap
320 ##void mcheck(a) void (*a)(); { }
321 ##void mtrace() { }
322
323
324
325 # This is useful when debugging GDB, because some Unix's don't let you run GDB
326 # on itself without copying the executable. So "make gdb1" will make
327 # gdb and put a copy in gdb1, and you can run it with "gdb gdb1".
328 # Removing gdb1 before the copy is the right thing if gdb1 is open
329 # in another process.
330 gdb1: gdb
331 rm -f gdb1
332 cp gdb gdb1
333
334 # This is a remote stub which runs under unix and starts up an
335 # inferior process. This is at least useful for debugging GDB's
336 # remote support.
337 rapp: $(RAPP_OBS)
338 rm -f rapp_init.c
339 ${srcdir}/munch ${RAPP_OBS} > rapp_init.c
340 ${CC-LD} $(LDFLAGS) -o $@ rapp_init.c $(RAPP_OBS)
341
342 # Support for building Makefile out of configured pieces, automatically
343 # generated dependencies, etc. Makefile.conf is built by configure,
344 # and includes the body of Makefile.in as well as configuration
345 # settings. We add alldeps.mak and depend to get Makefile.
346 # See also "make-depend:", where we also rebuild Makefile after making depend.
347 Makefiles= Makefile.conf alldeps.mak depend
348
349 make-Makefile: $(Makefiles) depend
350 cat ${Makefiles} > ./Makefile
351
352 alldeps.mak: ${srcdir}/tconfig ${srcdir}/xconfig
353 rm -f alldeps.mak alldeps.tmp allparam.tmp allconfig.tmp
354 for i in `ls -d ${srcdir}/tconfig/*[0-9A-Za-z] \
355 ${srcdir}/xconfig/*[0-9A-Za-z] | \
356 grep -v RCS | grep -v CVS.adm | grep -v SCCS` ; do \
357 echo $$i >>allconfig.tmp; \
358 awk <$$i ' \
359 $$1 == "TDEPFILES=" || $$1 == "XDEPFILES=" { \
360 for (i = 2; i <= NF; i++) \
361 print $$i >> "alldeps.tmp" ; \
362 } \
363 $$1 == "TM_FILE=" || $$1 == "XM_FILE=" { \
364 print $$2 >> "allparam.tmp" }' ; \
365 done
366 sort <alldeps.tmp | uniq | \
367 sed -e 's/arm-convert.o/arm-convert.s/' \
368 -e 's!^Onindy.o!nindy-share/Onindy.c!' \
369 -e 's!^nindy.o!nindy-share/nindy.c!' \
370 -e 's!ttybreak.o!nindy-share/ttybreak.c!' \
371 -e 's!ttyflush.o!nindy-share/ttyflush.c!' \
372 -e 's!xdr_ld.o!vx-share/xdr_ld.c!' \
373 -e 's!xdr_ptrace.o!vx-share/xdr_ptrace.c!' \
374 -e 's!xdr_rdb.o!vx-share/xdr_rdb.c!' \
375 -e 's!xdr_regs.o!vx-share/xdr_regs.c!' \
376 -e 's/\.o/.c/' \
377 >alldeps2.tmp
378 echo 'ALLDEPFILES = $$(ALLDEPFILES_MAINDIR) $$(ALLDEPFILES_SUBDIR)' \
379 >>alldeps.mak;
380 grep -v / alldeps2.tmp | \
381 awk 'BEGIN {printf "ALLDEPFILES_MAINDIR="} \
382 NR == 0 {printf $$0;} \
383 NR != 0 {printf "\\\n" $$0} \
384 END {printf "\n\n"}' >>alldeps.mak;
385 grep / alldeps2.tmp | \
386 awk 'BEGIN {printf "ALLDEPFILES_SUBDIR="} \
387 NR == 0 {printf $$0;} \
388 NR != 0 {printf "\\\n" $$0} \
389 END {printf "\n\n"}' >>alldeps.mak;
390 sort <allparam.tmp | uniq | awk 'BEGIN {printf "ALLPARAM="} \
391 NR == 0 {printf $$0;} \
392 NR != 0 {printf "\\\n" $$0} \
393 END {printf "\n\n"}' >>alldeps.mak;
394 sort <allconfig.tmp | uniq | awk 'BEGIN {printf "ALLCONFIG="} \
395 NR == 0 {printf $$0;} \
396 NR != 0 {printf "\\\n" $$0} \
397 END {printf "\n\n"}' >>alldeps.mak;
398 rm -f alldeps.tmp alldeps2.tmp allparam.tmp allconfig.tmp
399
400 # The sed script makes everything which depends on {x,t}m.h depend on
401 # config.status as well, in case someone reconfigures gdb out from
402 # under an already compiled gdb.
403 make-depend: $(SOURCES) Makefile.in
404 @echo Ignore errors about non-existent system-supplied include files
405 @echo for systems other than the one you are using.
406 @echo "If xm.h and tm.h don't exist, the error messages saying so"
407 @echo can safely be ignored.
408 @echo Also ignore parse errors in valops.c, and any errors in
409 @echo arm-convert.s.
410 -$(GCC) -MM $(CFLAGS) -I$(BFD_DIR) \
411 `ls $(SOURCES) | grep -v \.h$$ |sort -u` >depend.tmp
412 # If running in srcdir, translate "./foo.c" into "$srcdir/foo.c" except
413 # for xm.h and tm.h. This allows the same "depend" file to be used
414 # by the various subdirectories.
415 if [ "${srcdir}" = "." ] ; then \
416 <depend.tmp sed \
417 -e 's; ./xm.h; xm.h;g' \
418 -e 's; ./tm.h; tm.h;g' \
419 -e 's; \./; $${srcdir}/;g' \
420 -e 's; vx-share/; $${srcdir}/vx-share/;g' \
421 -e 's; nindy-share/; $${srcdir}/nindy-share/;g' \
422 >depend.tm2; \
423 rm depend.tmp; \
424 mv depend.tm2 depend.tmp; \
425 fi
426 <depend.tmp sed \
427 -e 's; [xt]m.h;& config.status;g' \
428 -e 's; $(INCLUDE_DIR)/; $(INCLUDE_DEP)/;g' \
429 -e 's; $(READLINE_DIR)/; $(READLINE_DEP)/;g' \
430 -e 's; [a-z0-9./]*bfd/; $(BFD_DEP)/;g' \
431 -e 's; ./xm.h; xm.h config.status;g' \
432 -e 's; ./tm.h; tm.h config.status;g' \
433 >depend
434 rm depend.tmp
435
436 config.status:
437 @echo "You must configure gdb. Look at the README file for details."
438 @false
439
440 # These are not generated by "make depend" because they only are there
441 # for some machines.
442 # But these rules don't do what we want; we want to hack the foo.o: tm.h
443 # dependency to do the right thing.
444 tm-isi.h tm-sun3.h tm-news.h tm-hp300bsd.h tm-altos.h : tm-68k.h
445 tm-hp300hpux.h tm-sun2.h tm-3b1.h : tm-68k.h
446 xm-news1000.h : xm-news.h
447 xm-i386-sv32.h : xm-i386.h
448 tm-i386gas.h: tm-i386.h
449 xm-sun4os4.h : xm-sparc.h
450 tm-sun4os4.h : tm-sparc.h
451
452 kdb : $(NTSSTART) $(OBS) $(NTSOBS) ${ADD_DEPS} ${CDEPS}
453 rm -f init.c
454 $(srcdir)/munch ${MUNCH_DEFINE} $(OBS) $(NTSOBS) > init.c
455 $(CC) $(LDFLAGS) -c init.c $(CLIBS)
456 ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \
457 -lc $(CLIBS)
458
459 # Put the proper machine-specific files first.
460 # createtags will edit the .o in DEPFILES into .c
461 TAGS: ${TAGFILES}
462 $(srcdir)/createtags $(TM_FILE) ${XM_FILE} $(DEPFILES) ${TAGFILES}
463 tags: TAGS
464
465 # FIXME: Get alldeps.mak up to date, ./configure none, THEN make gdb.tar.Z!
466 gdb.tar.Z: ${TARFILES} ${TARDIRS}
467 rm -f gdb.tar; rm -rf $(DIST)
468 mkdir $(DIST)
469 cd $(DIST) ; for i in ${TARFILES} ; do ln -s ../$$i . ; done
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) $(ALLDEPFILES_SUBDIR); \
480 do ln -s ../../$$i ../$$i ; done
481 tar chf - $(DIST) | compress >gdb.tar.Z
482 rm -rf $(DIST)
483
484 clean:
485 rm -f ${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES}
486 rm -f init.c init.o version.c
487 rm -f gdb core gdb.tar gdb.tar.Z make.log
488 rm -f gdb[0-9]
489 rm -f gdb.dvi rdl-apps.texinfo gdb-all*
490
491 distclean: clean expread.tab.c TAGS
492 rm -f tm.h xm.h config.status
493 rm -f y.output yacc.acts yacc.tmp
494 rm -f ${TESTS} Makefile Makefile.conf depend
495
496 realclean: clean
497 rm -f expread.tab.c TAGS
498 rm -f tm.h xm.h config.status
499 rm -f Makefile Makefile.conf depend
500
501 rdl-apps.texinfo: ${READLINE_DIR}/inc-readline.texinfo \
502 ${READLINE_DIR}/inc-history.texinfo
503 echo "@include ${READLINE_DIR}/inc-readline.texinfo" >rdl-apps.texinfo
504 echo "@include ${READLINE_DIR}/inc-history.texinfo" >>rdl-apps.texinfo
505
506 gdb-all.texinfo: ${SFILES_DOCDIR}
507 ( cd $(srcdir)/doc; \
508 ${M4} pretex.m4 none.m4 all.m4 gdb.texinfo ) >gdb-all.texinfo
509
510 gdb.dvi : gdb-all.texinfo rdl-apps.texinfo
511 TEXINPUTS=${TEXIDIR}:$$TEXINPUTS tex gdb-all.texinfo
512 texindex gdb-all.??
513 TEXINPUTS=${TEXIDIR}:$$TEXINPUTS tex gdb-all.texinfo
514 mv gdb-all.dvi gdb.dvi
515 rm -f gdb-all.?? gdb-all.???
516
517 # We're using texinfo2, and many makeinfo's
518 # can't cope with all the markup. In the meantime, we distribute the info
519 # files as formatted by the elisp texinfo2 code.
520 gdb.info: gdb-all.texinfo
521 makeinfo gdb-all.texinfo
522
523 # Make copying.c from COPYING
524 copying.c : COPYING copying.awk
525 awk -f copying.awk < COPYING > copying.c
526
527 version.c : Makefile.in
528 echo 'char *version = "$(VERSION)";' >version.c
529
530 ${srcdir}/expread.tab.c : $(srcdir)/expread.y
531 @echo 'Expect 4 shift/reduce conflict.'
532 ${YACC} $(srcdir)/expread.y
533 mv y.tab.c ${srcdir}/expread.tab.c
534
535 expread.o : ${srcdir}/expread.tab.c defs.h param.h symtab.h \
536 frame.h expression.h
537 $(CC) -c ${CFLAGS} `echo ${srcdir}/expread.tab.c | sed 's,^\./,,'`
538 mv expread.tab.o expread.o
539
540 # dbxread, coffread, mipsread have dependencies on BFD header files.
541 dbxread.o: ${srcdir}/dbxread.c
542 ${CC} -c ${CFLAGS} -I$(BFD_DIR) ${srcdir}/dbxread.c
543
544 coffread.o: ${srcdir}/coffread.c
545 ${CC} -c ${CFLAGS} -I$(BFD_DIR) ${srcdir}/coffread.c
546
547 mipsread.o: ${srcdir}/mipsread.c
548 ${CC} -c ${CFLAGS} -I$(BFD_DIR) ${srcdir}/mipsread.c
549
550 # Drag in the files that are in another directory.
551
552 xdr_ld.o: ${srcdir}/vx-share/xdr_ld.c
553 ${CC} -c ${CFLAGS} ${srcdir}/vx-share/xdr_ld.c
554
555 xdr_ptrace.o: ${srcdir}/vx-share/xdr_ptrace.c
556 ${CC} -c ${CFLAGS} ${srcdir}/vx-share/xdr_ptrace.c
557
558 xdr_rdb.o: ${srcdir}/vx-share/xdr_rdb.c
559 ${CC} -c ${CFLAGS} ${srcdir}/vx-share/xdr_rdb.c
560
561 xdr_regs.o: ${srcdir}/vx-share/xdr_regs.c
562 ${CC} -c ${CFLAGS} ${srcdir}/vx-share/xdr_regs.c
563
564 nindy.o: ${srcdir}/nindy-share/nindy.c
565 ${CC} -c ${CFLAGS} ${srcdir}/nindy-share/nindy.c
566
567 Onindy.o: ${srcdir}/nindy-share/Onindy.c
568 ${CC} -c ${CFLAGS} ${srcdir}/nindy-share/Onindy.c
569
570 ttybreak.o: ${srcdir}/nindy-share/ttybreak.c
571 ${CC} -c ${CFLAGS} ${srcdir}/nindy-share/ttybreak.c
572
573 ttyflush.o: ${srcdir}/nindy-share/ttyflush.c
574 ${CC} -c ${CFLAGS} ${srcdir}/nindy-share/ttyflush.c
575
576 tdesc-lib/libdc.o : force_update
577 cd tdesc-lib ; ${MAKE} "SYSV_DEFINE=${SYSV_DEFINE}"
578
579 lint: $(LINTFILES)
580 $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES)
581
582 gdb.cxref: $(SFILES)
583 cxref -I. $(SFILES) >gdb.cxref
584
585 force_update :
586
587 # When used with GDB, the demangler should never look for leading
588 # underscores because GDB strips them off during symbol read-in. Thus
589 # -Dnounderscore.
590
591 cplus-dem.o : cplus-dem.c
592 ${CC} -c ${CFLAGS} -Dnounderscore \
593 `echo ${srcdir}/cplus-dem.c | sed 's,^\./,,'`
This page took 0.042842 seconds and 5 git commands to generate.