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