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