| 1 | #
|
|---|
| 2 | # Makefile
|
|---|
| 3 | # Copyright (C) 1990, 91-99, 2000, 2001, 2002, 2003
|
|---|
| 4 | # Free Software Foundation
|
|---|
| 5 | #
|
|---|
| 6 | # This file is part of the libiberty library.
|
|---|
| 7 | # Libiberty is free software; you can redistribute it and/or
|
|---|
| 8 | # modify it under the terms of the GNU Library General Public
|
|---|
| 9 | # License as published by the Free Software Foundation; either
|
|---|
| 10 | # version 2 of the License, or (at your option) any later version.
|
|---|
| 11 | #
|
|---|
| 12 | # Libiberty is distributed in the hope that it will be useful,
|
|---|
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|---|
| 15 | # Library General Public License for more details.
|
|---|
| 16 | #
|
|---|
| 17 | # You should have received a copy of the GNU Library General Public
|
|---|
| 18 | # License along with libiberty; see the file COPYING.LIB. If not,
|
|---|
| 19 | # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|---|
| 20 | # Boston, MA 02111-1307, USA.
|
|---|
| 21 | #
|
|---|
| 22 |
|
|---|
| 23 | # This file was written by K. Richard Pixley <rich@cygnus.com>.
|
|---|
| 24 |
|
|---|
| 25 | #
|
|---|
| 26 | # Makefile for libiberty directory
|
|---|
| 27 | #
|
|---|
| 28 |
|
|---|
| 29 | libiberty_topdir = @libiberty_topdir@
|
|---|
| 30 | srcdir = @srcdir@
|
|---|
| 31 | VPATH = @srcdir@
|
|---|
| 32 |
|
|---|
| 33 | prefix = @prefix@
|
|---|
| 34 |
|
|---|
| 35 | exec_prefix = @exec_prefix@
|
|---|
| 36 | bindir = @bindir@
|
|---|
| 37 | libdir = @libdir@
|
|---|
| 38 | includedir = @includedir@
|
|---|
| 39 | target_header_dir = @target_header_dir@
|
|---|
| 40 |
|
|---|
| 41 | SHELL = @SHELL@
|
|---|
| 42 |
|
|---|
| 43 | # Multilib support variables.
|
|---|
| 44 | MULTISRCTOP =
|
|---|
| 45 | MULTIBUILDTOP =
|
|---|
| 46 | MULTIDIRS =
|
|---|
| 47 | MULTISUBDIR =
|
|---|
| 48 | MULTIDO = true
|
|---|
| 49 | MULTICLEAN = true
|
|---|
| 50 |
|
|---|
| 51 | INSTALL = @INSTALL@
|
|---|
| 52 | INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|---|
| 53 | 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@
|
|---|
| 60 | AR_FLAGS = rc
|
|---|
| 61 |
|
|---|
| 62 | CC = @CC@
|
|---|
| 63 | CFLAGS = @CFLAGS@
|
|---|
| 64 | LIBCFLAGS = $(CFLAGS)
|
|---|
| 65 | RANLIB = @RANLIB@
|
|---|
| 66 | MAKEINFO = @MAKEINFO@
|
|---|
| 67 | PERL = @PERL@
|
|---|
| 68 |
|
|---|
| 69 | PICFLAG =
|
|---|
| 70 |
|
|---|
| 71 | MAKEOVERRIDES =
|
|---|
| 72 |
|
|---|
| 73 | TARGETLIB = libiberty.a
|
|---|
| 74 | TESTLIB = testlib.a
|
|---|
| 75 |
|
|---|
| 76 | LIBOBJS = @LIBOBJS@
|
|---|
| 77 |
|
|---|
| 78 | # A configuration can specify extra .o files that should be included,
|
|---|
| 79 | # even if they are in libc. (Perhaps the libc version is buggy.)
|
|---|
| 80 | EXTRA_OFILES =
|
|---|
| 81 |
|
|---|
| 82 | # Flags to pass to a recursive make.
|
|---|
| 83 | FLAGS_TO_PASS = \
|
|---|
| 84 | "AR=$(AR)" \
|
|---|
| 85 | "AR_FLAGS=$(AR_FLAGS)" \
|
|---|
| 86 | "CC=$(CC)" \
|
|---|
| 87 | "CFLAGS=$(CFLAGS)" \
|
|---|
| 88 | "DESTDIR=$(DESTDIR)" \
|
|---|
| 89 | "LIBCFLAGS=$(LIBCFLAGS)" \
|
|---|
| 90 | "EXTRA_OFILES=$(EXTRA_OFILES)" \
|
|---|
| 91 | "HDEFINES=$(HDEFINES)" \
|
|---|
| 92 | "INSTALL=$(INSTALL)" \
|
|---|
| 93 | "INSTALL_DATA=$(INSTALL_DATA)" \
|
|---|
| 94 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|---|
| 95 | "LDFLAGS=$(LDFLAGS)" \
|
|---|
| 96 | "LOADLIBES=$(LOADLIBES)" \
|
|---|
| 97 | "RANLIB=$(RANLIB)" \
|
|---|
| 98 | "SHELL=$(SHELL)" \
|
|---|
| 99 | "prefix=$(prefix)" \
|
|---|
| 100 | "exec_prefix=$(exec_prefix)" \
|
|---|
| 101 | "libdir=$(libdir)" \
|
|---|
| 102 | "libsubdir=$(libsubdir)" \
|
|---|
| 103 | "tooldir=$(tooldir)"
|
|---|
| 104 |
|
|---|
| 105 | # Subdirectories to recurse into. We need to override this during cleaning
|
|---|
| 106 | 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
|
|---|
| 110 | ifeq "$(BUILD_PLATFORM)" "OS2"
|
|---|
| 111 | $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
|
|---|
| 112 | else
|
|---|
| 113 | @: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
|
|---|
| 114 | endif
|
|---|
| 115 |
|
|---|
| 116 | .PHONY: check installcheck
|
|---|
| 117 | check: check-subdir
|
|---|
| 118 | installcheck: installcheck-subdir
|
|---|
| 119 |
|
|---|
| 120 | @host_makefile_frag@
|
|---|
| 121 |
|
|---|
| 122 | INCDIR=$(srcdir)/$(MULTISRCTOP)../include
|
|---|
| 123 |
|
|---|
| 124 | COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@
|
|---|
| 125 | .c.o:
|
|---|
| 126 | if [ x"$(PICFLAG)" != x ]; then \
|
|---|
| 127 | $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \
|
|---|
| 128 | else true; fi
|
|---|
| 129 | $(COMPILE.c) $< $(OUTPUT_OPTION)
|
|---|
| 130 |
|
|---|
| 131 | # NOTE: If you add new files to the library, add them to this list
|
|---|
| 132 | # (alphabetical), and add them to REQUIRED_OFILES, or
|
|---|
| 133 | # CONFIGURED_OFILES and funcs in configure.in.
|
|---|
| 134 | CFILES = alloca.c argv.c asprintf.c atexit.c \
|
|---|
| 135 | basename.c bcmp.c bcopy.c bsearch.c bzero.c \
|
|---|
| 136 | calloc.c choose-temp.c clock.c concat.c cp-demangle.c \
|
|---|
| 137 | cplus-dem.c \
|
|---|
| 138 | dyn-string.c \
|
|---|
| 139 | fdmatch.c ffs.c fibheap.c floatformat.c fnmatch.c \
|
|---|
| 140 | getcwd.c getopt.c getopt1.c getpagesize.c getpwd.c getruntime.c \
|
|---|
| 141 | hashtab.c hex.c \
|
|---|
| 142 | index.c insque.c \
|
|---|
| 143 | lbasename.c \
|
|---|
| 144 | lrealpath.c \
|
|---|
| 145 | make-relative-prefix.c \
|
|---|
| 146 | make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmove.c \
|
|---|
| 147 | mempcpy.c memset.c mkstemps.c \
|
|---|
| 148 | objalloc.c obstack.c \
|
|---|
| 149 | partition.c \
|
|---|
| 150 | pex-djgpp.c pex-mpw.c pex-msdos.c pex-os2.c \
|
|---|
| 151 | pex-unix.c pex-win32.c \
|
|---|
| 152 | physmem.c putenv.c \
|
|---|
| 153 | random.c regex.c rename.c rindex.c \
|
|---|
| 154 | safe-ctype.c setenv.c sigsetmask.c snprintf.c sort.c spaces.c \
|
|---|
| 155 | splay-tree.c stpcpy.c stpncpy.c strcasecmp.c strchr.c strdup.c \
|
|---|
| 156 | strerror.c strncasecmp.c strncmp.c strrchr.c strsignal.c \
|
|---|
| 157 | strstr.c strtod.c strtol.c strtoul.c \
|
|---|
| 158 | ternary.c tmpnam.c \
|
|---|
| 159 | vasprintf.c vfork.c vfprintf.c vprintf.c vsnprintf.c vsprintf.c \
|
|---|
| 160 | waitpid.c \
|
|---|
| 161 | xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c
|
|---|
| 162 |
|
|---|
| 163 | # These are always included in the library. The first four are listed
|
|---|
| 164 | # first and by compile time to optimize parallel builds.
|
|---|
| 165 | REQUIRED_OFILES = regex.o cplus-dem.o cp-demangle.o md5.o \
|
|---|
| 166 | alloca.o argv.o \
|
|---|
| 167 | choose-temp.o concat.o \
|
|---|
| 168 | dyn-string.o \
|
|---|
| 169 | fdmatch.o fibheap.o floatformat.o fnmatch.o \
|
|---|
| 170 | getopt.o getopt1.o getpwd.o getruntime.o \
|
|---|
| 171 | hashtab.o hex.o \
|
|---|
| 172 | lbasename.o \
|
|---|
| 173 | lrealpath.o \
|
|---|
| 174 | make-relative-prefix.o \
|
|---|
| 175 | make-temp-file.o \
|
|---|
| 176 | objalloc.o obstack.o \
|
|---|
| 177 | partition.o physmem.o @pexecute@ \
|
|---|
| 178 | safe-ctype.o sort.o spaces.o splay-tree.o strerror.o \
|
|---|
| 179 | strsignal.o \
|
|---|
| 180 | ternary.o \
|
|---|
| 181 | xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o
|
|---|
| 182 |
|
|---|
| 183 | # These are all the objects that configure may add to the library via
|
|---|
| 184 | # $funcs or EXTRA_OFILES. This list exists here only for "make
|
|---|
| 185 | # maint-missing" and "make check".
|
|---|
| 186 | CONFIGURED_OFILES = asprintf.o atexit.o \
|
|---|
| 187 | basename.o bcmp.o bcopy.o bsearch.o bzero.o \
|
|---|
| 188 | calloc.o clock.o copysign.o \
|
|---|
| 189 | _doprnt.o \
|
|---|
| 190 | ffs.o \
|
|---|
| 191 | getcwd.o getpagesize.o \
|
|---|
| 192 | index.o insque.o \
|
|---|
| 193 | memchr.o memcmp.o memcpy.o memmove.o mempcpy.o memset.o mkstemps.o \
|
|---|
| 194 | pex-djgpp.o pex-mpw.o pex-msdos.o pex-os2.o \
|
|---|
| 195 | pex-unix.o pex-win32.o \
|
|---|
| 196 | putenv.o \
|
|---|
| 197 | random.o rename.o rindex.o \
|
|---|
| 198 | setenv.o sigsetmask.o snprintf.o stpcpy.o stpncpy.o strcasecmp.o \
|
|---|
| 199 | strchr.o strdup.o strncasecmp.o strncmp.o strrchr.o strstr.o \
|
|---|
| 200 | strtod.o strtol.o strtoul.o \
|
|---|
| 201 | tmpnam.o \
|
|---|
| 202 | vasprintf.o vfork.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \
|
|---|
| 203 | waitpid.o
|
|---|
| 204 |
|
|---|
| 205 | # These files are installed if the library has been configured to do so.
|
|---|
| 206 | INSTALLED_HEADERS = \
|
|---|
| 207 | $(INCDIR)/ansidecl.h \
|
|---|
| 208 | $(INCDIR)/demangle.h \
|
|---|
| 209 | $(INCDIR)/dyn-string.h \
|
|---|
| 210 | $(INCDIR)/fibheap.h \
|
|---|
| 211 | $(INCDIR)/floatformat.h \
|
|---|
| 212 | $(INCDIR)/hashtab.h \
|
|---|
| 213 | $(INCDIR)/libiberty.h \
|
|---|
| 214 | $(INCDIR)/objalloc.h \
|
|---|
| 215 | $(INCDIR)/partition.h \
|
|---|
| 216 | $(INCDIR)/safe-ctype.h \
|
|---|
| 217 | $(INCDIR)/sort.h \
|
|---|
| 218 | $(INCDIR)/splay-tree.h \
|
|---|
| 219 | $(INCDIR)/ternary.h
|
|---|
| 220 |
|
|---|
| 221 | $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
|
|---|
| 222 | -rm -f $(TARGETLIB) pic/$(TARGETLIB)
|
|---|
| 223 | $(AR) $(AR_FLAGS) $(TARGETLIB) \
|
|---|
| 224 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
|
|---|
| 225 | $(RANLIB) $(TARGETLIB)
|
|---|
| 226 | if [ x"$(PICFLAG)" != x ]; then \
|
|---|
| 227 | cd pic; \
|
|---|
| 228 | $(AR) $(AR_FLAGS) $(TARGETLIB) \
|
|---|
| 229 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
|
|---|
| 230 | $(RANLIB) $(TARGETLIB); \
|
|---|
| 231 | cd ..; \
|
|---|
| 232 | else true; fi
|
|---|
| 233 |
|
|---|
| 234 | $(TESTLIB): $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
|
|---|
| 235 | -rm -f $(TESTLIB)
|
|---|
| 236 | $(AR) $(AR_FLAGS) $(TESTLIB) \
|
|---|
| 237 | $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
|
|---|
| 238 | $(RANLIB) $(TESTLIB)
|
|---|
| 239 |
|
|---|
| 240 | info: libiberty.info info-subdir
|
|---|
| 241 | install-info: install-info-subdir
|
|---|
| 242 | clean-info: clean-info-subdir
|
|---|
| 243 | dvi: libiberty.dvi dvi-subdir
|
|---|
| 244 | html: libiberty.html
|
|---|
| 245 |
|
|---|
| 246 | TEXISRC = \
|
|---|
| 247 | $(srcdir)/libiberty.texi \
|
|---|
| 248 | $(srcdir)/copying-lib.texi \
|
|---|
| 249 | $(srcdir)/obstacks.texi \
|
|---|
| 250 | $(srcdir)/functions.texi
|
|---|
| 251 |
|
|---|
| 252 | # Additional files that have texi snippets that need to be collected
|
|---|
| 253 | # and sorted. Some are here because the sources are imported from
|
|---|
| 254 | # elsewhere. Others represent headers in ../include.
|
|---|
| 255 | TEXIFILES = fnmatch.txh pexecute.txh
|
|---|
| 256 |
|
|---|
| 257 | libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC)
|
|---|
| 258 | $(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi
|
|---|
| 259 |
|
|---|
| 260 | libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC)
|
|---|
| 261 | texi2dvi $(srcdir)/libiberty.texi
|
|---|
| 262 |
|
|---|
| 263 | libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC)
|
|---|
| 264 | $(MAKEINFO) --html -I$(srcdir) $(srcdir)/libiberty.texi
|
|---|
| 265 |
|
|---|
| 266 | @MAINT@$(srcdir)/functions.texi : stamp-functions
|
|---|
| 267 | @MAINT@ @true
|
|---|
| 268 |
|
|---|
| 269 | @MAINT@stamp-functions : $(CFILES) $(TEXIFILES) $(srcdir)/gather-docs Makefile
|
|---|
| 270 | @MAINT@@HAVE_PERL@ $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES)
|
|---|
| 271 | @MAINT@ echo stamp > stamp-functions
|
|---|
| 272 |
|
|---|
| 273 | INSTALL_DEST = @INSTALL_DEST@
|
|---|
| 274 | install: install_to_$(INSTALL_DEST) install-subdir
|
|---|
| 275 |
|
|---|
| 276 | install_to_libdir: all
|
|---|
| 277 | ${mkinstalldirs} $(DESTDIR)$(libdir)$(MULTISUBDIR)
|
|---|
| 278 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
|
|---|
| 279 | ( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
|
|---|
| 280 | mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)
|
|---|
| 281 | if test -n "${target_header_dir}"; then \
|
|---|
| 282 | case "${target_header_dir}" in \
|
|---|
| 283 | /*) thd=${target_header_dir};; \
|
|---|
| 284 | *) thd=${includedir}${MULTISUBDIR}/${target_header_dir};; \
|
|---|
| 285 | esac; \
|
|---|
| 286 | ${mkinstalldirs} $(DESTDIR)$${thd}; \
|
|---|
| 287 | for h in ${INSTALLED_HEADERS}; do \
|
|---|
| 288 | ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
|
|---|
| 289 | done; \
|
|---|
| 290 | fi
|
|---|
| 291 | @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
|
|---|
| 292 |
|
|---|
| 293 | # This is tricky. Even though CC in the Makefile contains
|
|---|
| 294 | # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
|
|---|
| 295 | # default multilib, so we have to take LIBCFLAGS into account as well,
|
|---|
| 296 | # since it will be passed the multilib flags.
|
|---|
| 297 | MULTIOSDIR = `$(CC) $(LIBCFLAGS) -print-multi-os-directory`
|
|---|
| 298 | install_to_tooldir: all
|
|---|
| 299 | ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
|
|---|
| 300 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
|
|---|
| 301 | ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; $(RANLIB) $(TARGETLIB)n )
|
|---|
| 302 | mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
|
|---|
| 303 | @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
|
|---|
| 304 |
|
|---|
| 305 | # needed-list is used by libstdc++. NEEDED is the list of functions
|
|---|
| 306 | # to include there. Do not add anything LGPL to this list; libstdc++
|
|---|
| 307 | # can't use anything encumbering.
|
|---|
| 308 | NEEDED = atexit calloc memchr memcmp memcpy memmove memset rename strchr \
|
|---|
| 309 | strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf \
|
|---|
| 310 | vfork waitpid bcmp bcopy bzero
|
|---|
| 311 | needed-list: Makefile
|
|---|
| 312 | rm -f needed-list; touch needed-list; \
|
|---|
| 313 | for f in $(NEEDED); do \
|
|---|
| 314 | for g in $(LIBOBJS) $(EXTRA_OFILES); do \
|
|---|
| 315 | case "$$g" in \
|
|---|
| 316 | *$$f*) echo $$g >> needed-list ;; \
|
|---|
| 317 | esac; \
|
|---|
| 318 | done; \
|
|---|
| 319 | done
|
|---|
| 320 |
|
|---|
| 321 | # required-list was used when building a shared bfd/opcodes/libiberty
|
|---|
| 322 | # library. I don't know if it used by anything currently.
|
|---|
| 323 | required-list: Makefile
|
|---|
| 324 | echo $(REQUIRED_OFILES) > required-list
|
|---|
| 325 |
|
|---|
| 326 | stamp-picdir:
|
|---|
| 327 | if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
|
|---|
| 328 | mkdir pic; \
|
|---|
| 329 | else true; fi
|
|---|
| 330 | touch stamp-picdir
|
|---|
| 331 |
|
|---|
| 332 | .PHONY: all etags tags ls clean stage1 stage2
|
|---|
| 333 |
|
|---|
| 334 | etags tags: TAGS etags-subdir
|
|---|
| 335 |
|
|---|
| 336 | TAGS: $(CFILES)
|
|---|
| 337 | etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
|
|---|
| 338 |
|
|---|
| 339 | # The standalone demangler (c++filt) has been moved to binutils.
|
|---|
| 340 | demangle:
|
|---|
| 341 | @echo "The standalone demangler, now named c++filt, is now"
|
|---|
| 342 | @echo "a part of binutils."
|
|---|
| 343 | @false
|
|---|
| 344 |
|
|---|
| 345 | ls:
|
|---|
| 346 | @echo Makefile $(CFILES)
|
|---|
| 347 |
|
|---|
| 348 | # Various targets for maintainers.
|
|---|
| 349 |
|
|---|
| 350 | maint-missing :
|
|---|
| 351 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
|
|---|
| 352 |
|
|---|
| 353 | maint-buildall : $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
|
|---|
| 354 | @true
|
|---|
| 355 |
|
|---|
| 356 | maint-undoc : $(srcdir)/functions.texi
|
|---|
| 357 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc
|
|---|
| 358 |
|
|---|
| 359 | maint-deps :
|
|---|
| 360 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR)
|
|---|
| 361 |
|
|---|
| 362 | # Need to deal with profiled libraries, too.
|
|---|
| 363 |
|
|---|
| 364 | # Cleaning has to be done carefully to ensure that we don't clean our SUBDIRS
|
|---|
| 365 | # multiple times, hence our explicit recursion with an empty SUBDIRS.
|
|---|
| 366 | mostlyclean: mostlyclean-subdir
|
|---|
| 367 | -rm -rf *.o pic core errs \#* *.E a.out
|
|---|
| 368 | -rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-*
|
|---|
| 369 | -rm -f $(CONFIG_H) $(NEEDED_LIST) stamp-picdir
|
|---|
| 370 | -rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky
|
|---|
| 371 | -rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg
|
|---|
| 372 | -rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr
|
|---|
| 373 | -rm -f libtexi.stamp
|
|---|
| 374 | @$(MULTICLEAN) multi-clean DO=mostlyclean
|
|---|
| 375 | clean: clean-subdir
|
|---|
| 376 | $(MAKE) SUBDIRS="" mostlyclean
|
|---|
| 377 | -rm -f *.a required-list tmpmulti.out
|
|---|
| 378 | -rm -f libiberty.dvi libiberty.info* libiberty.html
|
|---|
| 379 | @$(MULTICLEAN) multi-clean DO=clean
|
|---|
| 380 | distclean: distclean-subdir
|
|---|
| 381 | $(MAKE) SUBDIRS="" clean
|
|---|
| 382 | @$(MULTICLEAN) multi-clean DO=distclean
|
|---|
| 383 | -rm -f *~ Makefile config.status xhost-mkfrag TAGS multilib.out
|
|---|
| 384 | -rm -f config.log
|
|---|
| 385 | -rmdir testsuite 2>/dev/null
|
|---|
| 386 | maintainer-clean realclean: maintainer-clean-subdir
|
|---|
| 387 | $(MAKE) SUBDIRS="" distclean
|
|---|
| 388 |
|
|---|
| 389 | force:
|
|---|
| 390 |
|
|---|
| 391 | Makefile: $(srcdir)/Makefile.in config.status
|
|---|
| 392 | CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
|---|
| 393 |
|
|---|
| 394 | # Depending on Makefile makes sure that config.status has been re-run
|
|---|
| 395 | # if needed. This prevents problems with parallel builds.
|
|---|
| 396 | config.h: stamp-h ; @true
|
|---|
| 397 | stamp-h: config.in config.status Makefile
|
|---|
| 398 | CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
|
|---|
| 399 |
|
|---|
| 400 | config.status: $(srcdir)/configure $(srcdir)/config.table
|
|---|
| 401 | $(SHELL) ./config.status --recheck
|
|---|
| 402 |
|
|---|
| 403 | # Depending on config.h makes sure that config.status has been re-run
|
|---|
| 404 | # if needed. This prevents problems with parallel builds, in case
|
|---|
| 405 | # subdirectories need to run config.status also.
|
|---|
| 406 | all-subdir check-subdir installcheck-subdir info-subdir \
|
|---|
| 407 | install-info-subdir clean-info-subdir dvi-subdir install-subdir \
|
|---|
| 408 | etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
|
|---|
| 409 | maintainer-clean-subdir: config.h
|
|---|
| 410 | @subdirs='$(SUBDIRS)'; \
|
|---|
| 411 | target=`echo $@ | sed -e 's/-subdir//'`; \
|
|---|
| 412 | for dir in $$subdirs ; do \
|
|---|
| 413 | cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \
|
|---|
| 414 | done
|
|---|
| 415 |
|
|---|
| 416 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir
|
|---|
| 417 | $(CONFIGURED_OFILES): stamp-picdir
|
|---|
| 418 |
|
|---|
| 419 | # The dependencies in the remainder of this file are automatically
|
|---|
| 420 | # generated by "make maint-deps". Manual edits will be lost.
|
|---|
| 421 |
|
|---|
| 422 | _doprnt.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
|
|---|
| 423 | alloca.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 424 | argv.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 425 | asprintf.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 426 | atexit.o: config.h
|
|---|
| 427 | basename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|---|
| 428 | $(INCDIR)/safe-ctype.h
|
|---|
| 429 | bsearch.o: config.h $(INCDIR)/ansidecl.h
|
|---|
| 430 | calloc.o: $(INCDIR)/ansidecl.h
|
|---|
| 431 | choose-temp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 432 | clock.o: config.h
|
|---|
| 433 | concat.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 434 | copysign.o: $(INCDIR)/ansidecl.h
|
|---|
| 435 | cp-demangle.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h \
|
|---|
| 436 | $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h
|
|---|
| 437 | cplus-dem.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h \
|
|---|
| 438 | $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
|
|---|
| 439 | dyn-string.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/dyn-string.h \
|
|---|
| 440 | $(INCDIR)/libiberty.h
|
|---|
| 441 | fdmatch.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 442 | fibheap.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/fibheap.h \
|
|---|
| 443 | $(INCDIR)/libiberty.h
|
|---|
| 444 | floatformat.o: $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h
|
|---|
| 445 | fnmatch.o: config.h $(INCDIR)/fnmatch.h $(INCDIR)/safe-ctype.h
|
|---|
| 446 | getcwd.o: config.h
|
|---|
| 447 | getopt.o: config.h $(INCDIR)/getopt.h
|
|---|
| 448 | getopt1.o: config.h $(INCDIR)/getopt.h
|
|---|
| 449 | getpagesize.o: config.h
|
|---|
| 450 | getpwd.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 451 | getruntime.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 452 | hashtab.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/hashtab.h \
|
|---|
| 453 | $(INCDIR)/libiberty.h
|
|---|
| 454 | hex.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 455 | lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|---|
| 456 | $(INCDIR)/safe-ctype.h
|
|---|
| 457 | lrealpath.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 458 | make-relative-prefix.o: config.h $(INCDIR)/ansidecl.h \
|
|---|
| 459 | $(INCDIR)/libiberty.h
|
|---|
| 460 | make-temp-file.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 461 | md5.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
|
|---|
| 462 | memchr.o: $(INCDIR)/ansidecl.h
|
|---|
| 463 | memcmp.o: $(INCDIR)/ansidecl.h
|
|---|
| 464 | memcpy.o: $(INCDIR)/ansidecl.h
|
|---|
| 465 | memmove.o: $(INCDIR)/ansidecl.h
|
|---|
| 466 | mempcpy.o: $(INCDIR)/ansidecl.h
|
|---|
| 467 | memset.o: $(INCDIR)/ansidecl.h
|
|---|
| 468 | mkstemps.o: config.h $(INCDIR)/ansidecl.h
|
|---|
| 469 | objalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/objalloc.h
|
|---|
| 470 | obstack.o: config.h $(INCDIR)/obstack.h
|
|---|
| 471 | partition.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|---|
| 472 | $(INCDIR)/partition.h
|
|---|
| 473 | pex-djgpp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|---|
| 474 | $(srcdir)/pex-common.h
|
|---|
| 475 | pex-mpw.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|---|
| 476 | $(srcdir)/pex-common.h
|
|---|
| 477 | pex-msdos.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|---|
| 478 | $(srcdir)/pex-common.h $(INCDIR)/safe-ctype.h
|
|---|
| 479 | pex-os2.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|---|
| 480 | $(srcdir)/pex-common.h
|
|---|
| 481 | pex-unix.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|---|
| 482 | $(srcdir)/pex-common.h
|
|---|
| 483 | pex-win32.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|---|
| 484 | $(srcdir)/pex-common.h
|
|---|
| 485 | physmem.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 486 | putenv.o: config.h $(INCDIR)/ansidecl.h
|
|---|
| 487 | random.o: $(INCDIR)/ansidecl.h
|
|---|
| 488 | regex.o: config.h $(INCDIR)/xregex.h $(INCDIR)/xregex2.h
|
|---|
| 489 | rename.o: config.h $(INCDIR)/ansidecl.h
|
|---|
| 490 | safe-ctype.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
|
|---|
| 491 | setenv.o: config.h $(INCDIR)/ansidecl.h
|
|---|
| 492 | sigsetmask.o: $(INCDIR)/ansidecl.h
|
|---|
| 493 | snprintf.o: $(INCDIR)/ansidecl.h
|
|---|
| 494 | sort.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|---|
| 495 | $(INCDIR)/sort.h
|
|---|
| 496 | spaces.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 497 | splay-tree.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|---|
| 498 | $(INCDIR)/splay-tree.h
|
|---|
| 499 | stpcpy.o: $(INCDIR)/ansidecl.h
|
|---|
| 500 | stpncpy.o: $(INCDIR)/ansidecl.h
|
|---|
| 501 | strcasecmp.o: $(INCDIR)/ansidecl.h
|
|---|
| 502 | strchr.o: $(INCDIR)/ansidecl.h
|
|---|
| 503 | strdup.o: $(INCDIR)/ansidecl.h
|
|---|
| 504 | strerror.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 505 | strncasecmp.o: $(INCDIR)/ansidecl.h
|
|---|
| 506 | strncmp.o: $(INCDIR)/ansidecl.h
|
|---|
| 507 | strrchr.o: $(INCDIR)/ansidecl.h
|
|---|
| 508 | strsignal.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 509 | strtod.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
|
|---|
| 510 | strtol.o: config.h $(INCDIR)/safe-ctype.h
|
|---|
| 511 | strtoul.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
|
|---|
| 512 | ternary.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|---|
| 513 | $(INCDIR)/ternary.h
|
|---|
| 514 | vasprintf.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 515 | vfork.o: $(INCDIR)/ansidecl.h
|
|---|
| 516 | vfprintf.o: $(INCDIR)/ansidecl.h
|
|---|
| 517 | vprintf.o: $(INCDIR)/ansidecl.h
|
|---|
| 518 | vsnprintf.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 519 | vsprintf.o: $(INCDIR)/ansidecl.h
|
|---|
| 520 | waitpid.o: config.h
|
|---|
| 521 | xatexit.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 522 | xexit.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 523 | xmalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 524 | xmemdup.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 525 | xstrdup.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|
| 526 | xstrerror.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|---|