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