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