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