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