1 |
# |
# |
2 |
# Makefile |
# Makefile |
3 |
# Copyright (C) 1990, 91-99, 2000 |
# Copyright (C) 1990, 91-99, 2000, 2001, 2002, 2003, 2004 |
4 |
# Free Software Foundation |
# Free Software Foundation |
5 |
# |
# |
6 |
# This file is part of the libiberty library. |
# This file is part of the libiberty library. |
26 |
# Makefile for libiberty directory |
# Makefile for libiberty directory |
27 |
# |
# |
28 |
|
|
29 |
|
libiberty_topdir = @libiberty_topdir@ |
30 |
srcdir = @srcdir@ |
srcdir = @srcdir@ |
31 |
VPATH = @srcdir@ |
VPATH = @srcdir@ |
32 |
|
|
35 |
exec_prefix = @exec_prefix@ |
exec_prefix = @exec_prefix@ |
36 |
bindir = @bindir@ |
bindir = @bindir@ |
37 |
libdir = @libdir@ |
libdir = @libdir@ |
38 |
|
includedir = @includedir@ |
39 |
|
target_header_dir = @target_header_dir@ |
40 |
|
|
41 |
SHELL = @SHELL@ |
SHELL = @SHELL@ |
42 |
|
|
51 |
INSTALL = @INSTALL@ |
INSTALL = @INSTALL@ |
52 |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
53 |
INSTALL_DATA = @INSTALL_DATA@ |
INSTALL_DATA = @INSTALL_DATA@ |
54 |
|
mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs |
55 |
|
|
56 |
|
# Some compilers can't handle cc -c blah.c -o foo/blah.o. |
57 |
|
OUTPUT_OPTION = @OUTPUT_OPTION@ |
58 |
|
|
59 |
AR = @AR@ |
AR = @AR@ |
60 |
AR_FLAGS = rc |
AR_FLAGS = rc |
63 |
CFLAGS = @CFLAGS@ |
CFLAGS = @CFLAGS@ |
64 |
LIBCFLAGS = $(CFLAGS) |
LIBCFLAGS = $(CFLAGS) |
65 |
RANLIB = @RANLIB@ |
RANLIB = @RANLIB@ |
66 |
|
MAKEINFO = @MAKEINFO@ |
67 |
|
PERL = @PERL@ |
68 |
|
|
69 |
PICFLAG = |
PICFLAG = |
70 |
|
|
71 |
MAKEOVERRIDES = |
MAKEOVERRIDES = |
72 |
|
|
73 |
TARGETLIB = libiberty.a |
TARGETLIB = libiberty.a |
74 |
|
TESTLIB = testlib.a |
75 |
|
|
76 |
LIBOBJS = @LIBOBJS@ |
LIBOBJS = @LIBOBJS@ |
|
ALLOCA = @ALLOCA@ |
|
77 |
|
|
78 |
# A configuration can specify extra .o files that should be included, |
# A configuration can specify extra .o files that should be included, |
79 |
# even if they are in libc. (Perhaps the libc version is buggy.) |
# even if they are in libc. (Perhaps the libc version is buggy.) |
85 |
"AR_FLAGS=$(AR_FLAGS)" \ |
"AR_FLAGS=$(AR_FLAGS)" \ |
86 |
"CC=$(CC)" \ |
"CC=$(CC)" \ |
87 |
"CFLAGS=$(CFLAGS)" \ |
"CFLAGS=$(CFLAGS)" \ |
88 |
|
"DESTDIR=$(DESTDIR)" \ |
89 |
"LIBCFLAGS=$(LIBCFLAGS)" \ |
"LIBCFLAGS=$(LIBCFLAGS)" \ |
90 |
"EXTRA_OFILES=$(EXTRA_OFILES)" \ |
"EXTRA_OFILES=$(EXTRA_OFILES)" \ |
91 |
"HDEFINES=$(HDEFINES)" \ |
"HDEFINES=$(HDEFINES)" \ |
105 |
# Subdirectories to recurse into. We need to override this during cleaning |
# Subdirectories to recurse into. We need to override this during cleaning |
106 |
SUBDIRS = testsuite |
SUBDIRS = testsuite |
107 |
|
|
108 |
|
# FIXME: add @BUILD_INFO@ once we're sure it works for everyone. |
109 |
all: stamp-picdir $(TARGETLIB) needed-list required-list all-subdir |
all: stamp-picdir $(TARGETLIB) needed-list required-list all-subdir |
110 |
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all |
@: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all |
111 |
|
|
112 |
.PHONY: check installcheck |
.PHONY: check installcheck |
113 |
check: check-subdir |
check: check-subdir |
115 |
|
|
116 |
@host_makefile_frag@ |
@host_makefile_frag@ |
117 |
|
|
118 |
INCDIR=$(srcdir)/include |
INCDIR=$(srcdir)/$(MULTISRCTOP)../include |
119 |
|
|
120 |
COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@ |
COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@ |
121 |
.c.o: |
.c.o: |
122 |
if [ x"$(PICFLAG)" != x ]; then \ |
if [ x"$(PICFLAG)" != x ]; then \ |
123 |
$(COMPILE.c) $(PICFLAG) $< -o pic/$@; \ |
$(COMPILE.c) $(PICFLAG) $< -o pic/$@; \ |
124 |
else true; fi |
else true; fi |
125 |
$(COMPILE.c) $< |
$(COMPILE.c) $< $(OUTPUT_OPTION) |
|
|
|
|
info: info-subdir |
|
|
install-info: install-info-subdir |
|
|
clean-info: clean-info-subdir |
|
|
dvi: dvi-subdir |
|
|
|
|
|
# Include files that are in this directory. |
|
|
HFILES = alloca-conf.h |
|
126 |
|
|
127 |
# NOTE: If you add new files to the library, add them to this list |
# NOTE: If you add new files to the library, add them to this list |
128 |
# (alphabetical), and add them to REQUIRED_OFILES or funcs in |
# (alphabetical), and add them to REQUIRED_OFILES, or |
129 |
# configure.in. |
# CONFIGURED_OFILES and funcs in configure.ac. |
130 |
CFILES = asprintf.c alloca.c argv.c atexit.c basename.c bcmp.c bcopy.c \ |
CFILES = alloca.c argv.c asprintf.c atexit.c \ |
131 |
bzero.c calloc.c choose-temp.c clock.c concat.c cplus-dem.c \ |
basename.c bcmp.c bcopy.c bsearch.c bzero.c \ |
132 |
cp-demangle.c dyn-string.c fdmatch.c fnmatch.c getcwd.c \ |
calloc.c choose-temp.c clock.c concat.c cp-demangle.c \ |
133 |
getpwd.c getopt.c getopt1.c getpagesize.c getruntime.c \ |
cp-demint.c cplus-dem.c \ |
134 |
floatformat.c hashtab.c hex.c index.c insque.c lbasename.c \ |
dyn-string.c \ |
135 |
md5.c memchr.c \ |
fdmatch.c ffs.c fibheap.c floatformat.c fnmatch.c \ |
136 |
memcmp.c memcpy.c memmove.c memset.c mkstemps.c objalloc.c obstack.c \ |
getcwd.c getopt.c getopt1.c getpagesize.c getpwd.c getruntime.c \ |
137 |
partition.c pexecute.c putenv.c random.c rename.c rindex.c setenv.c \ |
hashtab.c hex.c \ |
138 |
sigsetmask.c safe-ctype.c sort.c spaces.c splay-tree.c strcasecmp.c \ |
index.c insque.c \ |
139 |
strncasecmp.c strchr.c strdup.c strerror.c strncmp.c strrchr.c \ |
lbasename.c \ |
140 |
strsignal.c strstr.c strtod.c strtol.c strtoul.c tmpnam.c vasprintf.c \ |
lrealpath.c \ |
141 |
vfork.c vfprintf.c vprintf.c vsprintf.c waitpid.c xatexit.c xexit.c \ |
make-relative-prefix.c \ |
142 |
xmalloc.c xmemdup.c xstrdup.c xstrerror.c |
make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmove.c \ |
143 |
|
mempcpy.c memset.c mkstemps.c \ |
144 |
# These are always included in the library. |
objalloc.c obstack.c \ |
145 |
REQUIRED_OFILES = argv.o choose-temp.o concat.o cplus-dem.o cp-demangle.o \ |
partition.c \ |
146 |
dyn-string.o fdmatch.o fnmatch.o getopt.o getopt1.o getpwd.o \ |
pex-djgpp.c pex-mpw.c pex-msdos.c pex-os2.c \ |
147 |
getruntime.o hashtab.o hex.o floatformat.o lbasename.o md5.o \ |
pex-unix.c pex-win32.c \ |
148 |
objalloc.o obstack.o \ |
physmem.c putenv.c \ |
149 |
partition.o pexecute.o safe-ctype.o sort.o spaces.o splay-tree.o \ |
random.c regex.c rename.c rindex.c \ |
150 |
strerror.o strsignal.o xatexit.o xexit.o xmalloc.o xmemdup.o \ |
safe-ctype.c setenv.c sigsetmask.c snprintf.c sort.c spaces.c \ |
151 |
xstrdup.o xstrerror.o |
splay-tree.c stpcpy.c stpncpy.c strcasecmp.c strchr.c strdup.c \ |
152 |
|
strerror.c strncasecmp.c strncmp.c strrchr.c strsignal.c \ |
153 |
|
strstr.c strtod.c strtol.c strtoul.c \ |
154 |
|
ternary.c tmpnam.c \ |
155 |
|
vasprintf.c vfork.c vfprintf.c vprintf.c vsnprintf.c vsprintf.c \ |
156 |
|
waitpid.c \ |
157 |
|
xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c |
158 |
|
|
159 |
|
# These are always included in the library. The first four are listed |
160 |
|
# first and by compile time to optimize parallel builds. |
161 |
|
REQUIRED_OFILES = regex.o cplus-dem.o cp-demangle.o cp-demint.o md5.o \ |
162 |
|
alloca.o argv.o \ |
163 |
|
choose-temp.o concat.o \ |
164 |
|
dyn-string.o \ |
165 |
|
fdmatch.o fibheap.o floatformat.o fnmatch.o \ |
166 |
|
getopt.o getopt1.o getpwd.o getruntime.o \ |
167 |
|
hashtab.o hex.o \ |
168 |
|
lbasename.o \ |
169 |
|
lrealpath.o \ |
170 |
|
make-relative-prefix.o \ |
171 |
|
make-temp-file.o \ |
172 |
|
objalloc.o obstack.o \ |
173 |
|
partition.o physmem.o @pexecute@ \ |
174 |
|
safe-ctype.o sort.o spaces.o splay-tree.o strerror.o \ |
175 |
|
strsignal.o \ |
176 |
|
ternary.o \ |
177 |
|
xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o |
178 |
|
|
179 |
|
# These are all the objects that configure may add to the library via |
180 |
|
# $funcs or EXTRA_OFILES. This list exists here only for "make |
181 |
|
# maint-missing" and "make check". |
182 |
|
CONFIGURED_OFILES = asprintf.o atexit.o \ |
183 |
|
basename.o bcmp.o bcopy.o bsearch.o bzero.o \ |
184 |
|
calloc.o clock.o copysign.o \ |
185 |
|
_doprnt.o \ |
186 |
|
ffs.o \ |
187 |
|
getcwd.o getpagesize.o \ |
188 |
|
index.o insque.o \ |
189 |
|
memchr.o memcmp.o memcpy.o memmove.o mempcpy.o memset.o mkstemps.o \ |
190 |
|
pex-djgpp.o pex-mpw.o pex-msdos.o pex-os2.o \ |
191 |
|
pex-unix.o pex-win32.o \ |
192 |
|
putenv.o \ |
193 |
|
random.o rename.o rindex.o \ |
194 |
|
setenv.o sigsetmask.o snprintf.o stpcpy.o stpncpy.o strcasecmp.o \ |
195 |
|
strchr.o strdup.o strncasecmp.o strncmp.o strrchr.o strstr.o \ |
196 |
|
strtod.o strtol.o strtoul.o \ |
197 |
|
tmpnam.o \ |
198 |
|
vasprintf.o vfork.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \ |
199 |
|
waitpid.o |
200 |
|
|
201 |
|
# These files are installed if the library has been configured to do so. |
202 |
|
INSTALLED_HEADERS = \ |
203 |
|
$(INCDIR)/ansidecl.h \ |
204 |
|
$(INCDIR)/demangle.h \ |
205 |
|
$(INCDIR)/dyn-string.h \ |
206 |
|
$(INCDIR)/fibheap.h \ |
207 |
|
$(INCDIR)/floatformat.h \ |
208 |
|
$(INCDIR)/hashtab.h \ |
209 |
|
$(INCDIR)/libiberty.h \ |
210 |
|
$(INCDIR)/objalloc.h \ |
211 |
|
$(INCDIR)/partition.h \ |
212 |
|
$(INCDIR)/safe-ctype.h \ |
213 |
|
$(INCDIR)/sort.h \ |
214 |
|
$(INCDIR)/splay-tree.h \ |
215 |
|
$(INCDIR)/ternary.h |
216 |
|
|
217 |
$(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) $(ALLOCA) |
$(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
218 |
-rm -f $(TARGETLIB) |
-rm -f $(TARGETLIB) pic/$(TARGETLIB) |
219 |
$(AR) $(AR_FLAGS) $(TARGETLIB) \ |
$(AR) $(AR_FLAGS) $(TARGETLIB) \ |
220 |
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) $(ALLOCA) |
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
221 |
$(RANLIB) $(TARGETLIB) |
$(RANLIB) $(TARGETLIB) |
222 |
|
if [ x"$(PICFLAG)" != x ]; then \ |
223 |
|
cd pic; \ |
224 |
|
$(AR) $(AR_FLAGS) $(TARGETLIB) \ |
225 |
|
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ |
226 |
|
$(RANLIB) $(TARGETLIB); \ |
227 |
|
cd ..; \ |
228 |
|
else true; fi |
229 |
|
|
230 |
|
$(TESTLIB): $(REQUIRED_OFILES) $(CONFIGURED_OFILES) |
231 |
|
-rm -f $(TESTLIB) |
232 |
|
$(AR) $(AR_FLAGS) $(TESTLIB) \ |
233 |
|
$(REQUIRED_OFILES) $(CONFIGURED_OFILES) |
234 |
|
$(RANLIB) $(TESTLIB) |
235 |
|
|
236 |
|
info: libiberty.info info-subdir |
237 |
|
install-info: install-info-subdir |
238 |
|
clean-info: clean-info-subdir |
239 |
|
dvi: libiberty.dvi dvi-subdir |
240 |
|
html: libiberty.html |
241 |
|
|
242 |
|
TEXISRC = \ |
243 |
|
$(srcdir)/libiberty.texi \ |
244 |
|
$(srcdir)/copying-lib.texi \ |
245 |
|
$(srcdir)/obstacks.texi \ |
246 |
|
$(srcdir)/functions.texi |
247 |
|
|
248 |
|
# Additional files that have texi snippets that need to be collected |
249 |
|
# and sorted. Some are here because the sources are imported from |
250 |
|
# elsewhere. Others represent headers in ../include. |
251 |
|
TEXIFILES = fnmatch.txh pexecute.txh |
252 |
|
|
253 |
|
libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC) |
254 |
|
$(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi |
255 |
|
|
256 |
|
libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC) |
257 |
|
texi2dvi $(srcdir)/libiberty.texi |
258 |
|
|
259 |
|
libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC) |
260 |
|
$(MAKEINFO) --html -I$(srcdir) $(srcdir)/libiberty.texi |
261 |
|
|
262 |
|
@MAINT@$(srcdir)/functions.texi : stamp-functions |
263 |
|
@MAINT@ @true |
264 |
|
|
265 |
|
@MAINT@stamp-functions : $(CFILES) $(TEXIFILES) $(srcdir)/gather-docs Makefile |
266 |
|
@MAINT@@HAVE_PERL@ $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES) |
267 |
|
@MAINT@ echo stamp > stamp-functions |
268 |
|
|
269 |
INSTALL_DEST = @INSTALL_DEST@ |
INSTALL_DEST = @INSTALL_DEST@ |
270 |
install: install_to_$(INSTALL_DEST) install-subdir |
install: install_to_$(INSTALL_DEST) install-subdir |
271 |
|
|
272 |
install_to_libdir: all |
install_to_libdir: all |
273 |
|
${mkinstalldirs} $(DESTDIR)$(libdir)$(MULTISUBDIR) |
274 |
$(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n |
$(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n |
275 |
( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n ) |
( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n ) |
276 |
mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n \ |
mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB) |
277 |
$(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB) |
if test -n "${target_header_dir}"; then \ |
278 |
|
case "${target_header_dir}" in \ |
279 |
|
/*) thd=${target_header_dir};; \ |
280 |
|
*) thd=${includedir}${MULTISUBDIR}/${target_header_dir};; \ |
281 |
|
esac; \ |
282 |
|
${mkinstalldirs} $(DESTDIR)$${thd}; \ |
283 |
|
for h in ${INSTALLED_HEADERS}; do \ |
284 |
|
${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \ |
285 |
|
done; \ |
286 |
|
fi |
287 |
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install |
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install |
288 |
|
|
289 |
|
# This is tricky. Even though CC in the Makefile contains |
290 |
|
# multilib-specific flags, it's overridden by FLAGS_TO_PASS from the |
291 |
|
# default multilib, so we have to take LIBCFLAGS into account as well, |
292 |
|
# since it will be passed the multilib flags. |
293 |
|
MULTIOSDIR = `$(CC) $(LIBCFLAGS) -print-multi-os-directory` |
294 |
install_to_tooldir: all |
install_to_tooldir: all |
295 |
$(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n |
${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) |
296 |
( cd $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n ) |
$(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n |
297 |
mv -f $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n \ |
( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; $(RANLIB) $(TARGETLIB)n ) |
298 |
$(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB) |
mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB) |
299 |
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install |
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install |
300 |
|
|
301 |
# needed-list is used by libstdc++. NEEDED is the list of functions |
# needed-list is used by libstdc++. NEEDED is the list of functions |
329 |
|
|
330 |
etags tags: TAGS etags-subdir |
etags tags: TAGS etags-subdir |
331 |
|
|
332 |
TAGS: $(CFILES) $(HFILES) |
TAGS: $(CFILES) |
333 |
etags `for i in $(HFILES) $(CFILES); do echo $(srcdir)/$$i ; done` |
etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done` |
334 |
|
|
335 |
# The standalone demangler (c++filt) has been moved to binutils. |
# The standalone demangler (c++filt) has been moved to binutils. |
336 |
demangle: |
demangle: |
339 |
@false |
@false |
340 |
|
|
341 |
ls: |
ls: |
342 |
@echo Makefile $(HFILES) $(CFILES) |
@echo Makefile $(CFILES) |
343 |
|
|
344 |
|
# Various targets for maintainers. |
345 |
|
|
346 |
|
maint-missing : |
347 |
|
@$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_OFILES) $(CONFIGURED_OFILES) |
348 |
|
|
349 |
|
maint-buildall : $(REQUIRED_OFILES) $(CONFIGURED_OFILES) |
350 |
|
@true |
351 |
|
|
352 |
|
maint-undoc : $(srcdir)/functions.texi |
353 |
|
@$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc |
354 |
|
|
355 |
|
maint-deps : |
356 |
|
@$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR) |
357 |
|
|
358 |
# Need to deal with profiled libraries, too. |
# Need to deal with profiled libraries, too. |
359 |
|
|
363 |
-rm -rf *.o pic core errs \#* *.E a.out |
-rm -rf *.o pic core errs \#* *.E a.out |
364 |
-rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-* |
-rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-* |
365 |
-rm -f $(CONFIG_H) $(NEEDED_LIST) stamp-picdir |
-rm -f $(CONFIG_H) $(NEEDED_LIST) stamp-picdir |
366 |
|
-rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky |
367 |
|
-rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg |
368 |
|
-rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr |
369 |
|
-rm -f libtexi.stamp |
370 |
@$(MULTICLEAN) multi-clean DO=mostlyclean |
@$(MULTICLEAN) multi-clean DO=mostlyclean |
371 |
clean: clean-subdir |
clean: clean-subdir |
372 |
$(MAKE) SUBDIRS="" mostlyclean |
$(MAKE) SUBDIRS="" mostlyclean |
373 |
-rm -f *.a required-list tmpmulti.out |
-rm -f *.a required-list tmpmulti.out |
374 |
|
-rm -f libiberty.dvi libiberty.info* libiberty.html |
375 |
@$(MULTICLEAN) multi-clean DO=clean |
@$(MULTICLEAN) multi-clean DO=clean |
376 |
distclean: distclean-subdir |
distclean: distclean-subdir |
377 |
$(MAKE) SUBDIRS="" clean |
$(MAKE) SUBDIRS="" clean |
378 |
@$(MULTICLEAN) multi-clean DO=distclean |
@$(MULTICLEAN) multi-clean DO=distclean |
379 |
-rm -f *~ Makefile config.status xhost-mkfrag TAGS multilib.out |
-rm -f *~ Makefile config.cache config.status xhost-mkfrag TAGS multilib.out |
380 |
-rm -f config.log |
-rm -f config.log |
381 |
-rmdir testsuite 2>/dev/null |
-rmdir testsuite 2>/dev/null |
382 |
maintainer-clean realclean: maintainer-clean-subdir |
maintainer-clean realclean: maintainer-clean-subdir |
396 |
config.status: $(srcdir)/configure $(srcdir)/config.table |
config.status: $(srcdir)/configure $(srcdir)/config.table |
397 |
$(SHELL) ./config.status --recheck |
$(SHELL) ./config.status --recheck |
398 |
|
|
|
|
|
399 |
# Depending on config.h makes sure that config.status has been re-run |
# Depending on config.h makes sure that config.status has been re-run |
400 |
# if needed. This prevents problems with parallel builds, in case |
# if needed. This prevents problems with parallel builds, in case |
401 |
# subdirectories need to run config.status also. |
# subdirectories need to run config.status also. |
406 |
@subdirs='$(SUBDIRS)'; \ |
@subdirs='$(SUBDIRS)'; \ |
407 |
target=`echo $@ | sed -e 's/-subdir//'`; \ |
target=`echo $@ | sed -e 's/-subdir//'`; \ |
408 |
for dir in $$subdirs ; do \ |
for dir in $$subdirs ; do \ |
409 |
cd $$dir && $(MAKE) $$target; \ |
cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \ |
410 |
done |
done |
411 |
|
|
412 |
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) $(ALLOCA): stamp-picdir |
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir |
413 |
|
$(CONFIGURED_OFILES): stamp-picdir |
414 |
|
|
415 |
|
# The dependencies in the remainder of this file are automatically |
416 |
|
# generated by "make maint-deps". Manual edits will be lost. |
417 |
|
|
418 |
alloca.o: config.h |
_doprnt.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h |
419 |
|
alloca.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
420 |
|
argv.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
421 |
|
asprintf.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
422 |
atexit.o: config.h |
atexit.o: config.h |
423 |
argv.o: config.h alloca-conf.h $(INCDIR)/libiberty.h |
basename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
424 |
basename.o: $(INCDIR)/libiberty.h |
$(INCDIR)/safe-ctype.h |
425 |
choose-temp.o: config.h |
bsearch.o: config.h $(INCDIR)/ansidecl.h |
426 |
|
calloc.o: $(INCDIR)/ansidecl.h |
427 |
|
choose-temp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
428 |
clock.o: config.h |
clock.o: config.h |
429 |
concat.o: $(INCDIR)/libiberty.h |
concat.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
430 |
cplus-dem.o: config.h $(INCDIR)/demangle.h |
copysign.o: $(INCDIR)/ansidecl.h |
431 |
cp-demangle.o: config.h $(INCDIR)/dyn-string.h $(INCDIR)/demangle.h |
cp-demangle.o: config.h $(INCDIR)/ansidecl.h $(srcdir)/cp-demangle.h \ |
432 |
dyn-string.o: config.h $(INCDIR)/dyn-string.h |
$(INCDIR)/demangle.h $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h \ |
433 |
fdmatch.o: $(INCDIR)/libiberty.h |
$(INCDIR)/libiberty.h |
434 |
fnmatch.o: config.h $(INCDIR)/fnmatch.h |
cp-demint.o: config.h $(INCDIR)/ansidecl.h $(srcdir)/cp-demangle.h \ |
435 |
|
$(INCDIR)/demangle.h $(INCDIR)/libiberty.h |
436 |
|
cplus-dem.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h \ |
437 |
|
$(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h |
438 |
|
dyn-string.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/dyn-string.h \ |
439 |
|
$(INCDIR)/libiberty.h |
440 |
|
fdmatch.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
441 |
|
fibheap.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/fibheap.h \ |
442 |
|
$(INCDIR)/libiberty.h |
443 |
|
floatformat.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h \ |
444 |
|
$(INCDIR)/libiberty.h |
445 |
|
fnmatch.o: config.h $(INCDIR)/fnmatch.h $(INCDIR)/safe-ctype.h |
446 |
getcwd.o: config.h |
getcwd.o: config.h |
447 |
getopt.o: config.h $(INCDIR)/getopt.h |
getopt.o: config.h $(INCDIR)/getopt.h |
448 |
getopt1.o: config.h $(INCDIR)/getopt.h |
getopt1.o: config.h $(INCDIR)/getopt.h |
449 |
getpagesize.o: config.h |
getpagesize.o: config.h |
450 |
getpwd.o: config.h $(INCDIR)/libiberty.h |
getpwd.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
451 |
getruntime.o: config.h $(INCDIR)/libiberty.h |
getruntime.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
452 |
hex.o: $(INCDIR)/libiberty.h |
hashtab.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/hashtab.h \ |
453 |
floatformat.o: $(INCDIR)/floatformat.h |
$(INCDIR)/libiberty.h |
454 |
lbasename.o: $(INCDIR)/libiberty.h |
hex.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
455 |
mkstemps.o: config.h |
$(INCDIR)/safe-ctype.h |
456 |
md5.o: config.h |
lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/filenames.h \ |
457 |
objalloc.o: config.h $(INCDIR)/objalloc.h |
$(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h |
458 |
|
lrealpath.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
459 |
|
make-relative-prefix.o: config.h $(INCDIR)/ansidecl.h \ |
460 |
|
$(INCDIR)/libiberty.h |
461 |
|
make-temp-file.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
462 |
|
md5.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h |
463 |
|
memchr.o: $(INCDIR)/ansidecl.h |
464 |
|
memcmp.o: $(INCDIR)/ansidecl.h |
465 |
|
memcpy.o: $(INCDIR)/ansidecl.h |
466 |
|
memmove.o: $(INCDIR)/ansidecl.h |
467 |
|
mempcpy.o: $(INCDIR)/ansidecl.h |
468 |
|
memset.o: $(INCDIR)/ansidecl.h |
469 |
|
mkstemps.o: config.h $(INCDIR)/ansidecl.h |
470 |
|
objalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/objalloc.h |
471 |
obstack.o: config.h $(INCDIR)/obstack.h |
obstack.o: config.h $(INCDIR)/obstack.h |
472 |
partition.o: config.h $(INCDIR)/partition.h |
partition.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
473 |
pexecute.o: config.h $(INCDIR)/libiberty.h |
$(INCDIR)/partition.h |
474 |
rename.o: config.h |
pex-djgpp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
475 |
setenv.o: config.h |
$(srcdir)/pex-common.h |
476 |
sort.o: config.h $(INCDIR)/sort.h $(INCDIR)/ansidecl.h |
pex-mpw.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
477 |
spaces.o: $(INCDIR)/libiberty.h |
$(srcdir)/pex-common.h |
478 |
splay-tree.o: config.h $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h $(INCDIR)/ansidecl.h |
pex-msdos.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
479 |
strerror.o: config.h $(INCDIR)/libiberty.h |
$(srcdir)/pex-common.h $(INCDIR)/safe-ctype.h |
480 |
strsignal.o: config.h $(INCDIR)/libiberty.h |
pex-os2.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
481 |
strtol.o: config.h |
$(srcdir)/pex-common.h |
482 |
strtoul.o: config.h |
pex-unix.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
483 |
vasprintf.o: config.h |
$(srcdir)/pex-common.h |
484 |
xatexit.o: $(INCDIR)/libiberty.h |
pex-win32.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
485 |
xexit.o: config.h $(INCDIR)/libiberty.h |
$(srcdir)/pex-common.h |
486 |
xmalloc.o: config.h $(INCDIR)/libiberty.h |
physmem.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
487 |
xmemdup.o: config.h $(INCDIR)/libiberty.h |
putenv.o: config.h $(INCDIR)/ansidecl.h |
488 |
xstrdup.o: config.h $(INCDIR)/libiberty.h |
random.o: $(INCDIR)/ansidecl.h |
489 |
xstrerror.o: config.h $(INCDIR)/libiberty.h |
regex.o: config.h $(INCDIR)/xregex.h $(INCDIR)/xregex2.h |
490 |
|
rename.o: config.h $(INCDIR)/ansidecl.h |
491 |
|
safe-ctype.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h |
492 |
|
setenv.o: config.h $(INCDIR)/ansidecl.h |
493 |
|
sigsetmask.o: $(INCDIR)/ansidecl.h |
494 |
|
snprintf.o: $(INCDIR)/ansidecl.h |
495 |
|
sort.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
496 |
|
$(INCDIR)/sort.h |
497 |
|
spaces.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
498 |
|
splay-tree.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
499 |
|
$(INCDIR)/splay-tree.h |
500 |
|
stpcpy.o: $(INCDIR)/ansidecl.h |
501 |
|
stpncpy.o: $(INCDIR)/ansidecl.h |
502 |
|
strcasecmp.o: $(INCDIR)/ansidecl.h |
503 |
|
strchr.o: $(INCDIR)/ansidecl.h |
504 |
|
strdup.o: $(INCDIR)/ansidecl.h |
505 |
|
strerror.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
506 |
|
strncasecmp.o: $(INCDIR)/ansidecl.h |
507 |
|
strncmp.o: $(INCDIR)/ansidecl.h |
508 |
|
strrchr.o: $(INCDIR)/ansidecl.h |
509 |
|
strsignal.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
510 |
|
strtod.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h |
511 |
|
strtol.o: config.h $(INCDIR)/safe-ctype.h |
512 |
|
strtoul.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h |
513 |
|
ternary.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
514 |
|
$(INCDIR)/ternary.h |
515 |
|
vasprintf.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
516 |
|
vfork.o: $(INCDIR)/ansidecl.h |
517 |
|
vfprintf.o: $(INCDIR)/ansidecl.h |
518 |
|
vprintf.o: $(INCDIR)/ansidecl.h |
519 |
|
vsnprintf.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
520 |
|
vsprintf.o: $(INCDIR)/ansidecl.h |
521 |
waitpid.o: config.h |
waitpid.o: config.h |
522 |
hashtab.o: config.h $(INCDIR)/libiberty.h $(INCDIR)/hashtab.h $(INCDIR)/ansidecl.h |
xatexit.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
523 |
|
xexit.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
524 |
|
xmalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
525 |
|
xmemdup.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
526 |
|
xstrdup.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
527 |
|
xstrerror.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |