]>
Commit | Line | Data |
---|---|---|
6599da04 JM |
1 | # |
2 | # Makefile | |
cde515d9 | 3 | # Copyright (C) 1990, 91-99, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
3affd5f0 | 4 | # Free Software Foundation |
6599da04 JM |
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, | |
ee58dffd NC |
19 | # write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, |
20 | # Boston, MA 02110-1301, USA. | |
6599da04 JM |
21 | # |
22 | ||
3affd5f0 | 23 | # This file was written by K. Richard Pixley <rich@cygnus.com>. |
6599da04 JM |
24 | |
25 | # | |
26 | # Makefile for libiberty directory | |
27 | # | |
28 | ||
d8c22ce7 | 29 | libiberty_topdir = @libiberty_topdir@ |
3affd5f0 | 30 | srcdir = @srcdir@ |
6599da04 | 31 | |
3affd5f0 | 32 | prefix = @prefix@ |
6599da04 | 33 | |
3affd5f0 JL |
34 | exec_prefix = @exec_prefix@ |
35 | bindir = @bindir@ | |
36 | libdir = @libdir@ | |
48d7db63 PE |
37 | includedir = @includedir@ |
38 | target_header_dir = @target_header_dir@ | |
6599da04 | 39 | |
3affd5f0 | 40 | SHELL = @SHELL@ |
6599da04 JM |
41 | |
42 | # Multilib support variables. | |
43 | MULTISRCTOP = | |
44 | MULTIBUILDTOP = | |
45 | MULTIDIRS = | |
46 | MULTISUBDIR = | |
47 | MULTIDO = true | |
48 | MULTICLEAN = true | |
49 | ||
3affd5f0 JL |
50 | INSTALL = @INSTALL@ |
51 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
52 | INSTALL_DATA = @INSTALL_DATA@ | |
d8c22ce7 | 53 | mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs |
6599da04 | 54 | |
24f2cabb L |
55 | # Some compilers can't handle cc -c blah.c -o foo/blah.o. |
56 | OUTPUT_OPTION = @OUTPUT_OPTION@ | |
57 | ||
3affd5f0 | 58 | AR = @AR@ |
6599da04 JM |
59 | AR_FLAGS = rc |
60 | ||
3affd5f0 JL |
61 | CC = @CC@ |
62 | CFLAGS = @CFLAGS@ | |
6599da04 | 63 | LIBCFLAGS = $(CFLAGS) |
3affd5f0 | 64 | RANLIB = @RANLIB@ |
aaa5f039 DD |
65 | MAKEINFO = @MAKEINFO@ |
66 | PERL = @PERL@ | |
6599da04 JM |
67 | |
68 | PICFLAG = | |
69 | ||
70 | MAKEOVERRIDES = | |
71 | ||
398b3deb DD |
72 | TARGETLIB = ./libiberty.a |
73 | TESTLIB = ./testlib.a | |
6599da04 | 74 | |
3affd5f0 | 75 | LIBOBJS = @LIBOBJS@ |
6599da04 JM |
76 | |
77 | # A configuration can specify extra .o files that should be included, | |
78 | # even if they are in libc. (Perhaps the libc version is buggy.) | |
79 | EXTRA_OFILES = | |
80 | ||
81 | # Flags to pass to a recursive make. | |
82 | FLAGS_TO_PASS = \ | |
83 | "AR=$(AR)" \ | |
84 | "AR_FLAGS=$(AR_FLAGS)" \ | |
85 | "CC=$(CC)" \ | |
86 | "CFLAGS=$(CFLAGS)" \ | |
90e5b39f | 87 | "DESTDIR=$(DESTDIR)" \ |
6599da04 JM |
88 | "LIBCFLAGS=$(LIBCFLAGS)" \ |
89 | "EXTRA_OFILES=$(EXTRA_OFILES)" \ | |
90 | "HDEFINES=$(HDEFINES)" \ | |
91 | "INSTALL=$(INSTALL)" \ | |
92 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
93 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
94 | "LDFLAGS=$(LDFLAGS)" \ | |
95 | "LOADLIBES=$(LOADLIBES)" \ | |
6599da04 | 96 | "RANLIB=$(RANLIB)" \ |
76632dd0 DJ |
97 | "SHELL=$(SHELL)" \ |
98 | "prefix=$(prefix)" \ | |
99 | "exec_prefix=$(exec_prefix)" \ | |
100 | "libdir=$(libdir)" \ | |
101 | "libsubdir=$(libsubdir)" \ | |
102 | "tooldir=$(tooldir)" | |
6599da04 | 103 | |
2c375143 NS |
104 | # Subdirectories to recurse into. We need to override this during cleaning |
105 | SUBDIRS = testsuite | |
106 | ||
aaa5f039 | 107 | # FIXME: add @BUILD_INFO@ once we're sure it works for everyone. |
24f2cabb | 108 | all: stamp-picdir $(TARGETLIB) needed-list required-list all-subdir |
6c5d742e | 109 | @: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all |
6599da04 JM |
110 | |
111 | .PHONY: check installcheck | |
7c72138a TT |
112 | check: check-subdir |
113 | installcheck: installcheck-subdir | |
6599da04 | 114 | |
3affd5f0 | 115 | @host_makefile_frag@ |
6599da04 JM |
116 | |
117 | INCDIR=$(srcdir)/$(MULTISRCTOP)../include | |
118 | ||
1eaf7d9c | 119 | COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@ |
398b3deb DD |
120 | |
121 | # Just to make sure we don't use a built-in rule with VPATH | |
6599da04 | 122 | .c.o: |
398b3deb | 123 | false |
6599da04 | 124 | |
6599da04 | 125 | # NOTE: If you add new files to the library, add them to this list |
24f2cabb L |
126 | # (alphabetical), and add them to REQUIRED_OFILES, or |
127 | # CONFIGURED_OFILES and funcs in configure.ac. Also run "make maint-deps" | |
128 | # to build the new rules. | |
9ce3f7e5 DD |
129 | CFILES = alloca.c argv.c asprintf.c atexit.c \ |
130 | basename.c bcmp.c bcopy.c bsearch.c bzero.c \ | |
131 | calloc.c choose-temp.c clock.c concat.c cp-demangle.c \ | |
398b3deb | 132 | cp-demint.c cplus-dem.c \ |
9ce3f7e5 | 133 | dyn-string.c \ |
cde515d9 JB |
134 | fdmatch.c ffs.c fibheap.c filename_cmp.c floatformat.c \ |
135 | fnmatch.c fopen_unlocked.c \ | |
9ce3f7e5 | 136 | getcwd.c getopt.c getopt1.c getpagesize.c getpwd.c getruntime.c \ |
17049f0b | 137 | gettimeofday.c \ |
9ce3f7e5 DD |
138 | hashtab.c hex.c \ |
139 | index.c insque.c \ | |
140 | lbasename.c \ | |
4876b2b4 | 141 | lrealpath.c \ |
42766f8d | 142 | make-relative-prefix.c \ |
9ce3f7e5 | 143 | make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmove.c \ |
029bcc09 | 144 | mempcpy.c memset.c mkstemps.c \ |
9ce3f7e5 | 145 | objalloc.c obstack.c \ |
a584cf65 ILT |
146 | partition.c pexecute.c \ |
147 | pex-common.c pex-djgpp.c pex-msdos.c pex-one.c \ | |
55d0e5e0 | 148 | pex-unix.c pex-win32.c \ |
a354191e | 149 | physmem.c putenv.c \ |
9ce3f7e5 | 150 | random.c regex.c rename.c rindex.c \ |
bd3fbc6b | 151 | safe-ctype.c setenv.c sigsetmask.c snprintf.c sort.c spaces.c \ |
029bcc09 KG |
152 | splay-tree.c stpcpy.c stpncpy.c strcasecmp.c strchr.c strdup.c \ |
153 | strerror.c strncasecmp.c strncmp.c strrchr.c strsignal.c \ | |
83fbfe42 | 154 | strstr.c strtod.c strtol.c strtoul.c strndup.c strverscmp.c \ |
9ce3f7e5 | 155 | ternary.c tmpnam.c \ |
c363985d | 156 | unlink-if-ordinary.c \ |
bd3fbc6b | 157 | vasprintf.c vfork.c vfprintf.c vprintf.c vsnprintf.c vsprintf.c \ |
9ce3f7e5 | 158 | waitpid.c \ |
17998b22 KG |
159 | xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c \ |
160 | xstrndup.c | |
9ce3f7e5 DD |
161 | |
162 | # These are always included in the library. The first four are listed | |
163 | # first and by compile time to optimize parallel builds. | |
e8190aa2 ILT |
164 | REQUIRED_OFILES = ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o \ |
165 | ./alloca.o ./argv.o \ | |
166 | ./choose-temp.o ./concat.o ./cp-demint.o \ | |
398b3deb | 167 | ./dyn-string.o \ |
cde515d9 JB |
168 | ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o \ |
169 | ./fnmatch.o ./fopen_unlocked.o \ | |
e8190aa2 ILT |
170 | ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o \ |
171 | ./hashtab.o ./hex.o \ | |
172 | ./lbasename.o ./lrealpath.o \ | |
173 | ./make-relative-prefix.o ./make-temp-file.o \ | |
174 | ./objalloc.o ./obstack.o \ | |
a584cf65 ILT |
175 | ./partition.o ./pexecute.o ./physmem.o \ |
176 | ./pex-common.o ./pex-one.o @pexecute@ \ | |
e8190aa2 | 177 | ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o \ |
398b3deb DD |
178 | ./strsignal.o \ |
179 | ./ternary.o \ | |
c363985d | 180 | ./unlink-if-ordinary.o \ |
e8190aa2 | 181 | ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o \ |
17998b22 | 182 | ./xstrerror.o ./xstrndup.o |
b548dffb | 183 | |
aaa5f039 | 184 | # These are all the objects that configure may add to the library via |
9ce3f7e5 DD |
185 | # $funcs or EXTRA_OFILES. This list exists here only for "make |
186 | # maint-missing" and "make check". | |
e8190aa2 ILT |
187 | CONFIGURED_OFILES = ./asprintf.o ./atexit.o \ |
188 | ./basename.o ./bcmp.o ./bcopy.o ./bsearch.o ./bzero.o \ | |
189 | ./calloc.o ./clock.o ./copysign.o \ | |
398b3deb DD |
190 | ./_doprnt.o \ |
191 | ./ffs.o \ | |
17049f0b | 192 | ./getcwd.o ./getpagesize.o ./gettimeofday.o \ |
398b3deb | 193 | ./index.o ./insque.o \ |
e8190aa2 ILT |
194 | ./memchr.o ./memcmp.o ./memcpy.o ./memmove.o ./mempcpy.o \ |
195 | ./memset.o ./mkstemps.o \ | |
6af8bd50 | 196 | ./pex-djgpp.o ./pex-msdos.o \ |
e8190aa2 | 197 | ./pex-unix.o ./pex-win32.o \ |
398b3deb | 198 | ./putenv.o \ |
e8190aa2 ILT |
199 | ./random.o ./rename.o ./rindex.o \ |
200 | ./setenv.o ./sigsetmask.o ./snprintf.o ./stpcpy.o ./stpncpy.o \ | |
201 | ./strcasecmp.o ./strchr.o ./strdup.o ./strncasecmp.o \ | |
17998b22 | 202 | ./strncmp.o ./strndup.o ./strrchr.o ./strstr.o \ |
83fbfe42 | 203 | ./strtod.o ./strtol.o ./strtoul.o ./strverscmp.o \ |
398b3deb | 204 | ./tmpnam.o \ |
e8190aa2 ILT |
205 | ./vasprintf.o ./vfork.o ./vfprintf.o ./vprintf.o ./vsnprintf.o \ |
206 | ./vsprintf.o \ | |
398b3deb | 207 | ./waitpid.o |
aaa5f039 | 208 | |
48d7db63 PE |
209 | # These files are installed if the library has been configured to do so. |
210 | INSTALLED_HEADERS = \ | |
211 | $(INCDIR)/ansidecl.h \ | |
212 | $(INCDIR)/demangle.h \ | |
213 | $(INCDIR)/dyn-string.h \ | |
214 | $(INCDIR)/fibheap.h \ | |
215 | $(INCDIR)/floatformat.h \ | |
216 | $(INCDIR)/hashtab.h \ | |
217 | $(INCDIR)/libiberty.h \ | |
218 | $(INCDIR)/objalloc.h \ | |
219 | $(INCDIR)/partition.h \ | |
220 | $(INCDIR)/safe-ctype.h \ | |
221 | $(INCDIR)/sort.h \ | |
222 | $(INCDIR)/splay-tree.h \ | |
223 | $(INCDIR)/ternary.h | |
224 | ||
24f2cabb L |
225 | $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
226 | -rm -f $(TARGETLIB) pic/$(TARGETLIB) | |
227 | $(AR) $(AR_FLAGS) $(TARGETLIB) \ | |
228 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) | |
229 | $(RANLIB) $(TARGETLIB) | |
230 | if [ x"$(PICFLAG)" != x ]; then \ | |
231 | cd pic; \ | |
afb649d5 L |
232 | $(AR) $(AR_FLAGS) $(TARGETLIB) \ |
233 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ | |
234 | $(RANLIB) $(TARGETLIB); \ | |
235 | cd ..; \ | |
236 | else true; fi | |
6599da04 | 237 | |
24f2cabb L |
238 | $(TESTLIB): $(REQUIRED_OFILES) $(CONFIGURED_OFILES) |
239 | -rm -f $(TESTLIB) | |
240 | $(AR) $(AR_FLAGS) $(TESTLIB) \ | |
241 | $(REQUIRED_OFILES) $(CONFIGURED_OFILES) | |
242 | $(RANLIB) $(TESTLIB) | |
9ce3f7e5 | 243 | |
aaa5f039 DD |
244 | info: libiberty.info info-subdir |
245 | install-info: install-info-subdir | |
246 | clean-info: clean-info-subdir | |
247 | dvi: libiberty.dvi dvi-subdir | |
267686a7 BM |
248 | |
249 | LIBIBERTY_PDFFILES = libiberty.pdf | |
250 | ||
251 | pdf: $(LIBIBERTY_PDFFILES) pdf-subdir | |
252 | ||
253 | .PHONY: install-pdf | |
254 | ||
255 | pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | |
256 | ||
257 | install-pdf: $(LIBIBERTY_PDFFILES) | |
258 | @$(NORMAL_INSTALL) | |
259 | test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)" | |
260 | @list='$(LIBIBERTY_PDFFILES)'; for p in $$list; do \ | |
261 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | |
262 | f=$(pdf__strip_dir) \ | |
263 | echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \ | |
264 | $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \ | |
265 | done | |
cf61af07 CD |
266 | |
267 | # html, install-html targets | |
268 | HTMLS = libiberty.html | |
269 | ||
270 | html: $(HTMLS) | |
271 | ||
272 | .PHONY: install-html install-html-am install-html-recursive | |
273 | ||
274 | NORMAL_INSTALL = : | |
275 | mkdir_p = mkdir -p -- | |
276 | ||
277 | html__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | |
278 | ||
279 | install-html: install-html-recursive install-html-am | |
280 | ||
281 | install-html-am: $(HTMLS) | |
282 | @$(NORMAL_INSTALL) | |
283 | test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)" | |
284 | @list='$(HTMLS)'; for p in $$list; do \ | |
285 | if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \ | |
286 | f=$(html__strip_dir) \ | |
287 | if test -d "$$d$$p"; then \ | |
288 | echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \ | |
289 | $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ | |
290 | echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \ | |
291 | $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \ | |
292 | else \ | |
293 | echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \ | |
294 | $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \ | |
295 | fi; \ | |
296 | done | |
297 | ||
298 | install-html-recursive: | |
299 | @failcom='exit 1'; \ | |
300 | for f in x $$MAKEFLAGS; do \ | |
301 | case $$f in \ | |
302 | *=* | --[!k]*);; \ | |
303 | *k*) failcom='fail=yes';; \ | |
304 | esac; \ | |
305 | done; \ | |
306 | dot_seen=no; \ | |
307 | target=`echo $@ | sed s/-recursive//`; \ | |
308 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
309 | echo "Making $$target in $$subdir"; \ | |
310 | if test "$$subdir" = "."; then \ | |
311 | dot_seen=yes; \ | |
312 | local_target="$$target-am"; \ | |
313 | else \ | |
314 | local_target="$$target"; \ | |
315 | fi; \ | |
316 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
317 | || eval $$failcom; \ | |
318 | done; \ | |
319 | if test "$$dot_seen" = "no"; then \ | |
320 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | |
321 | fi; test -z "$$fail" | |
aaa5f039 DD |
322 | |
323 | TEXISRC = \ | |
324 | $(srcdir)/libiberty.texi \ | |
325 | $(srcdir)/copying-lib.texi \ | |
326 | $(srcdir)/obstacks.texi \ | |
327 | $(srcdir)/functions.texi | |
328 | ||
329 | # Additional files that have texi snippets that need to be collected | |
aac04c15 DD |
330 | # and sorted. Some are here because the sources are imported from |
331 | # elsewhere. Others represent headers in ../include. | |
55d0e5e0 | 332 | TEXIFILES = fnmatch.txh pexecute.txh |
aaa5f039 DD |
333 | |
334 | libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC) | |
335 | $(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi | |
336 | ||
337 | libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC) | |
338 | texi2dvi $(srcdir)/libiberty.texi | |
339 | ||
b5422ad7 BM |
340 | libiberty.pdf : $(srcdir)/libiberty.texi $(TEXISRC) |
341 | texi2pdf $(srcdir)/libiberty.texi | |
342 | ||
aaa5f039 | 343 | libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC) |
610784f0 | 344 | $(MAKEINFO) --no-split --html -I$(srcdir) -o $@ $< |
aaa5f039 DD |
345 | |
346 | @MAINT@$(srcdir)/functions.texi : stamp-functions | |
347 | @MAINT@ @true | |
348 | ||
83fbfe42 | 349 | @MAINT@stamp-functions : $(CFILES:%=$(srcdir)/%) $(TEXIFILES:%=$(srcdir)/%) $(srcdir)/gather-docs Makefile |
aaa5f039 DD |
350 | @MAINT@@HAVE_PERL@ $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES) |
351 | @MAINT@ echo stamp > stamp-functions | |
352 | ||
3affd5f0 | 353 | INSTALL_DEST = @INSTALL_DEST@ |
7c72138a | 354 | install: install_to_$(INSTALL_DEST) install-subdir |
6599da04 | 355 | |
5f81370d PB |
356 | # This is tricky. Even though CC in the Makefile contains |
357 | # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the | |
358 | # default multilib, so we have to take LIBCFLAGS into account as well, | |
359 | # since it will be passed the multilib flags. | |
360 | MULTIOSDIR = `$(CC) $(LIBCFLAGS) -print-multi-os-directory` | |
6599da04 | 361 | install_to_libdir: all |
5f81370d PB |
362 | ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR) |
363 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n | |
364 | ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n ) | |
365 | mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB) | |
48d7db63 PE |
366 | if test -n "${target_header_dir}"; then \ |
367 | case "${target_header_dir}" in \ | |
368 | /*) thd=${target_header_dir};; \ | |
5f81370d | 369 | *) thd=${includedir}/${target_header_dir};; \ |
48d7db63 | 370 | esac; \ |
112bae77 | 371 | ${mkinstalldirs} $(DESTDIR)$${thd}; \ |
48d7db63 | 372 | for h in ${INSTALLED_HEADERS}; do \ |
112bae77 | 373 | ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \ |
48d7db63 PE |
374 | done; \ |
375 | fi | |
6599da04 JM |
376 | @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install |
377 | ||
378 | install_to_tooldir: all | |
9f2e0608 AO |
379 | ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) |
380 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n | |
706601d9 | 381 | ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n; $(RANLIB) $(TARGETLIB)n ) |
9f2e0608 | 382 | mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB) |
6599da04 JM |
383 | @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install |
384 | ||
a4494286 JM |
385 | # needed-list is used by libstdc++. NEEDED is the list of functions |
386 | # to include there. Do not add anything LGPL to this list; libstdc++ | |
387 | # can't use anything encumbering. | |
388 | NEEDED = atexit calloc memchr memcmp memcpy memmove memset rename strchr \ | |
209bbe34 | 389 | strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf \ |
8f1824d9 | 390 | vfork waitpid bcmp bcopy bzero |
3affd5f0 | 391 | needed-list: Makefile |
a4494286 | 392 | rm -f needed-list; touch needed-list; \ |
a4494286 | 393 | for f in $(NEEDED); do \ |
a6541767 JM |
394 | for g in $(LIBOBJS) $(EXTRA_OFILES); do \ |
395 | case "$$g" in \ | |
396 | *$$f*) echo $$g >> needed-list ;; \ | |
397 | esac; \ | |
398 | done; \ | |
a4494286 | 399 | done |
3affd5f0 JL |
400 | |
401 | # required-list was used when building a shared bfd/opcodes/libiberty | |
402 | # library. I don't know if it used by anything currently. | |
6599da04 JM |
403 | required-list: Makefile |
404 | echo $(REQUIRED_OFILES) > required-list | |
405 | ||
24f2cabb L |
406 | stamp-picdir: |
407 | if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \ | |
408 | mkdir pic; \ | |
409 | else true; fi | |
410 | touch stamp-picdir | |
411 | ||
3affd5f0 | 412 | .PHONY: all etags tags ls clean stage1 stage2 |
6599da04 | 413 | |
7c72138a | 414 | etags tags: TAGS etags-subdir |
6599da04 | 415 | |
b548dffb ZW |
416 | TAGS: $(CFILES) |
417 | etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done` | |
6599da04 JM |
418 | |
419 | # The standalone demangler (c++filt) has been moved to binutils. | |
420 | demangle: | |
421 | @echo "The standalone demangler, now named c++filt, is now" | |
422 | @echo "a part of binutils." | |
423 | @false | |
424 | ||
425 | ls: | |
b548dffb | 426 | @echo Makefile $(CFILES) |
6599da04 | 427 | |
aaa5f039 DD |
428 | # Various targets for maintainers. |
429 | ||
430 | maint-missing : | |
24f2cabb | 431 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_OFILES) $(CONFIGURED_OFILES) |
aaa5f039 | 432 | |
24f2cabb | 433 | maint-buildall : $(REQUIRED_OFILES) $(CONFIGURED_OFILES) |
aaa5f039 DD |
434 | @true |
435 | ||
aac04c15 DD |
436 | maint-undoc : $(srcdir)/functions.texi |
437 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc | |
438 | ||
9ce3f7e5 DD |
439 | maint-deps : |
440 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR) | |
441 | ||
6599da04 JM |
442 | # Need to deal with profiled libraries, too. |
443 | ||
2c375143 NS |
444 | # Cleaning has to be done carefully to ensure that we don't clean our SUBDIRS |
445 | # multiple times, hence our explicit recursion with an empty SUBDIRS. | |
7c72138a | 446 | mostlyclean: mostlyclean-subdir |
24f2cabb | 447 | -rm -rf *.o pic core errs \#* *.E a.out |
5a2eb52b | 448 | -rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-* |
24f2cabb | 449 | -rm -f $(CONFIG_H) $(NEEDED_LIST) stamp-picdir |
aaa5f039 DD |
450 | -rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky |
451 | -rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg | |
452 | -rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr | |
453 | -rm -f libtexi.stamp | |
6599da04 | 454 | @$(MULTICLEAN) multi-clean DO=mostlyclean |
2c375143 NS |
455 | clean: clean-subdir |
456 | $(MAKE) SUBDIRS="" mostlyclean | |
5a2eb52b | 457 | -rm -f *.a required-list tmpmulti.out |
b5422ad7 | 458 | -rm -f libiberty.dvi libiberty.pdf libiberty.info* libiberty.html |
6599da04 | 459 | @$(MULTICLEAN) multi-clean DO=clean |
2c375143 NS |
460 | distclean: distclean-subdir |
461 | $(MAKE) SUBDIRS="" clean | |
6599da04 | 462 | @$(MULTICLEAN) multi-clean DO=distclean |
0046e342 | 463 | -rm -f *~ Makefile config.cache config.status xhost-mkfrag TAGS multilib.out |
5a2eb52b | 464 | -rm -f config.log |
b25a8973 | 465 | -rmdir testsuite 2>/dev/null |
2c375143 NS |
466 | maintainer-clean realclean: maintainer-clean-subdir |
467 | $(MAKE) SUBDIRS="" distclean | |
6599da04 JM |
468 | |
469 | force: | |
470 | ||
3affd5f0 JL |
471 | Makefile: $(srcdir)/Makefile.in config.status |
472 | CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status | |
473 | ||
97e620cf DD |
474 | # Depending on Makefile makes sure that config.status has been re-run |
475 | # if needed. This prevents problems with parallel builds. | |
3affd5f0 | 476 | config.h: stamp-h ; @true |
398b3deb DD |
477 | stamp-h: $(srcdir)/config.in config.status Makefile |
478 | CONFIG_FILES= CONFIG_HEADERS=config.h:$(srcdir)/config.in $(SHELL) ./config.status | |
3affd5f0 | 479 | |
769b009e | 480 | config.status: $(srcdir)/configure |
3affd5f0 | 481 | $(SHELL) ./config.status --recheck |
6599da04 | 482 | |
0f3d38b6 | 483 | # Depending on stamp-h makes sure that config.status has been re-run |
97e620cf DD |
484 | # if needed. This prevents problems with parallel builds, in case |
485 | # subdirectories need to run config.status also. | |
7c72138a | 486 | all-subdir check-subdir installcheck-subdir info-subdir \ |
b5422ad7 | 487 | install-info-subdir clean-info-subdir dvi-subdir pdf-subdir install-subdir \ |
7c72138a | 488 | etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \ |
0f3d38b6 | 489 | maintainer-clean-subdir: stamp-h |
3b94497c | 490 | @subdirs='$(SUBDIRS)'; \ |
7277f72d | 491 | target=`echo $@ | sed -e 's/-subdir//'`; \ |
3b94497c | 492 | for dir in $$subdirs ; do \ |
4ce1921a | 493 | cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \ |
2c375143 | 494 | done |
7c72138a | 495 | |
24f2cabb L |
496 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir |
497 | $(CONFIGURED_OFILES): stamp-picdir | |
498 | ||
17049f0b MM |
499 | # Don't export variables to the environment, in order to not confuse |
500 | # configure. | |
501 | .NOEXPORT: | |
502 | ||
9ce3f7e5 DD |
503 | # The dependencies in the remainder of this file are automatically |
504 | # generated by "make maint-deps". Manual edits will be lost. | |
7b195f77 | 505 | |
0f3d38b6 | 506 | ./_doprnt.o: $(srcdir)/_doprnt.c stamp-h $(INCDIR)/ansidecl.h \ |
9ce3f7e5 | 507 | $(INCDIR)/safe-ctype.h |
24f2cabb L |
508 | if [ x"$(PICFLAG)" != x ]; then \ |
509 | $(COMPILE.c) $(PICFLAG) $(srcdir)/_doprnt.c -o pic/$@; \ | |
510 | else true; fi | |
511 | $(COMPILE.c) $(srcdir)/_doprnt.c $(OUTPUT_OPTION) | |
398b3deb | 512 | |
0f3d38b6 | 513 | ./alloca.o: $(srcdir)/alloca.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
24f2cabb L |
514 | if [ x"$(PICFLAG)" != x ]; then \ |
515 | $(COMPILE.c) $(PICFLAG) $(srcdir)/alloca.c -o pic/$@; \ | |
516 | else true; fi | |
517 | $(COMPILE.c) $(srcdir)/alloca.c $(OUTPUT_OPTION) | |
398b3deb | 518 | |
0f3d38b6 | 519 | ./argv.o: $(srcdir)/argv.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
97393d0a | 520 | $(INCDIR)/safe-ctype.h |
24f2cabb L |
521 | if [ x"$(PICFLAG)" != x ]; then \ |
522 | $(COMPILE.c) $(PICFLAG) $(srcdir)/argv.c -o pic/$@; \ | |
523 | else true; fi | |
524 | $(COMPILE.c) $(srcdir)/argv.c $(OUTPUT_OPTION) | |
398b3deb | 525 | |
0f3d38b6 | 526 | ./asprintf.o: $(srcdir)/asprintf.c stamp-h $(INCDIR)/ansidecl.h \ |
bd7d50f8 | 527 | $(INCDIR)/libiberty.h |
24f2cabb L |
528 | if [ x"$(PICFLAG)" != x ]; then \ |
529 | $(COMPILE.c) $(PICFLAG) $(srcdir)/asprintf.c -o pic/$@; \ | |
530 | else true; fi | |
531 | $(COMPILE.c) $(srcdir)/asprintf.c $(OUTPUT_OPTION) | |
398b3deb | 532 | |
0f3d38b6 | 533 | ./atexit.o: $(srcdir)/atexit.c stamp-h |
24f2cabb L |
534 | if [ x"$(PICFLAG)" != x ]; then \ |
535 | $(COMPILE.c) $(PICFLAG) $(srcdir)/atexit.c -o pic/$@; \ | |
536 | else true; fi | |
537 | $(COMPILE.c) $(srcdir)/atexit.c $(OUTPUT_OPTION) | |
398b3deb | 538 | |
0f3d38b6 | 539 | ./basename.o: $(srcdir)/basename.c stamp-h $(INCDIR)/ansidecl.h \ |
bd7d50f8 | 540 | $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h |
24f2cabb L |
541 | if [ x"$(PICFLAG)" != x ]; then \ |
542 | $(COMPILE.c) $(PICFLAG) $(srcdir)/basename.c -o pic/$@; \ | |
543 | else true; fi | |
544 | $(COMPILE.c) $(srcdir)/basename.c $(OUTPUT_OPTION) | |
398b3deb | 545 | |
24f2cabb L |
546 | ./bcmp.o: $(srcdir)/bcmp.c |
547 | if [ x"$(PICFLAG)" != x ]; then \ | |
548 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bcmp.c -o pic/$@; \ | |
549 | else true; fi | |
550 | $(COMPILE.c) $(srcdir)/bcmp.c $(OUTPUT_OPTION) | |
398b3deb | 551 | |
24f2cabb L |
552 | ./bcopy.o: $(srcdir)/bcopy.c |
553 | if [ x"$(PICFLAG)" != x ]; then \ | |
554 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bcopy.c -o pic/$@; \ | |
555 | else true; fi | |
556 | $(COMPILE.c) $(srcdir)/bcopy.c $(OUTPUT_OPTION) | |
398b3deb | 557 | |
0f3d38b6 | 558 | ./bsearch.o: $(srcdir)/bsearch.c stamp-h $(INCDIR)/ansidecl.h |
24f2cabb L |
559 | if [ x"$(PICFLAG)" != x ]; then \ |
560 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch.c -o pic/$@; \ | |
561 | else true; fi | |
562 | $(COMPILE.c) $(srcdir)/bsearch.c $(OUTPUT_OPTION) | |
398b3deb | 563 | |
24f2cabb L |
564 | ./bzero.o: $(srcdir)/bzero.c |
565 | if [ x"$(PICFLAG)" != x ]; then \ | |
566 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bzero.c -o pic/$@; \ | |
567 | else true; fi | |
568 | $(COMPILE.c) $(srcdir)/bzero.c $(OUTPUT_OPTION) | |
398b3deb | 569 | |
24f2cabb L |
570 | ./calloc.o: $(srcdir)/calloc.c $(INCDIR)/ansidecl.h |
571 | if [ x"$(PICFLAG)" != x ]; then \ | |
572 | $(COMPILE.c) $(PICFLAG) $(srcdir)/calloc.c -o pic/$@; \ | |
573 | else true; fi | |
574 | $(COMPILE.c) $(srcdir)/calloc.c $(OUTPUT_OPTION) | |
398b3deb | 575 | |
0f3d38b6 | 576 | ./choose-temp.o: $(srcdir)/choose-temp.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 577 | $(INCDIR)/libiberty.h |
24f2cabb L |
578 | if [ x"$(PICFLAG)" != x ]; then \ |
579 | $(COMPILE.c) $(PICFLAG) $(srcdir)/choose-temp.c -o pic/$@; \ | |
580 | else true; fi | |
581 | $(COMPILE.c) $(srcdir)/choose-temp.c $(OUTPUT_OPTION) | |
398b3deb | 582 | |
0f3d38b6 | 583 | ./clock.o: $(srcdir)/clock.c stamp-h |
24f2cabb L |
584 | if [ x"$(PICFLAG)" != x ]; then \ |
585 | $(COMPILE.c) $(PICFLAG) $(srcdir)/clock.c -o pic/$@; \ | |
586 | else true; fi | |
587 | $(COMPILE.c) $(srcdir)/clock.c $(OUTPUT_OPTION) | |
398b3deb | 588 | |
0f3d38b6 | 589 | ./concat.o: $(srcdir)/concat.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
24f2cabb L |
590 | if [ x"$(PICFLAG)" != x ]; then \ |
591 | $(COMPILE.c) $(PICFLAG) $(srcdir)/concat.c -o pic/$@; \ | |
592 | else true; fi | |
593 | $(COMPILE.c) $(srcdir)/concat.c $(OUTPUT_OPTION) | |
398b3deb | 594 | |
24f2cabb L |
595 | ./copysign.o: $(srcdir)/copysign.c $(INCDIR)/ansidecl.h |
596 | if [ x"$(PICFLAG)" != x ]; then \ | |
597 | $(COMPILE.c) $(PICFLAG) $(srcdir)/copysign.c -o pic/$@; \ | |
598 | else true; fi | |
599 | $(COMPILE.c) $(srcdir)/copysign.c $(OUTPUT_OPTION) | |
398b3deb | 600 | |
0f3d38b6 | 601 | ./cp-demangle.o: $(srcdir)/cp-demangle.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb DD |
602 | $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \ |
603 | $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h | |
24f2cabb L |
604 | if [ x"$(PICFLAG)" != x ]; then \ |
605 | $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demangle.c -o pic/$@; \ | |
606 | else true; fi | |
607 | $(COMPILE.c) $(srcdir)/cp-demangle.c $(OUTPUT_OPTION) | |
398b3deb | 608 | |
0f3d38b6 | 609 | ./cp-demint.o: $(srcdir)/cp-demint.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 610 | $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \ |
9ce3f7e5 | 611 | $(INCDIR)/libiberty.h |
24f2cabb L |
612 | if [ x"$(PICFLAG)" != x ]; then \ |
613 | $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demint.c -o pic/$@; \ | |
614 | else true; fi | |
615 | $(COMPILE.c) $(srcdir)/cp-demint.c $(OUTPUT_OPTION) | |
398b3deb | 616 | |
0f3d38b6 | 617 | ./cplus-dem.o: $(srcdir)/cplus-dem.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb DD |
618 | $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \ |
619 | $(INCDIR)/safe-ctype.h | |
24f2cabb L |
620 | if [ x"$(PICFLAG)" != x ]; then \ |
621 | $(COMPILE.c) $(PICFLAG) $(srcdir)/cplus-dem.c -o pic/$@; \ | |
622 | else true; fi | |
623 | $(COMPILE.c) $(srcdir)/cplus-dem.c $(OUTPUT_OPTION) | |
398b3deb | 624 | |
0f3d38b6 | 625 | ./dyn-string.o: $(srcdir)/dyn-string.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 626 | $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h |
24f2cabb L |
627 | if [ x"$(PICFLAG)" != x ]; then \ |
628 | $(COMPILE.c) $(PICFLAG) $(srcdir)/dyn-string.c -o pic/$@; \ | |
629 | else true; fi | |
630 | $(COMPILE.c) $(srcdir)/dyn-string.c $(OUTPUT_OPTION) | |
398b3deb | 631 | |
0f3d38b6 | 632 | ./fdmatch.o: $(srcdir)/fdmatch.c stamp-h $(INCDIR)/ansidecl.h \ |
bd7d50f8 | 633 | $(INCDIR)/libiberty.h |
24f2cabb L |
634 | if [ x"$(PICFLAG)" != x ]; then \ |
635 | $(COMPILE.c) $(PICFLAG) $(srcdir)/fdmatch.c -o pic/$@; \ | |
636 | else true; fi | |
637 | $(COMPILE.c) $(srcdir)/fdmatch.c $(OUTPUT_OPTION) | |
398b3deb | 638 | |
24f2cabb L |
639 | ./ffs.o: $(srcdir)/ffs.c |
640 | if [ x"$(PICFLAG)" != x ]; then \ | |
641 | $(COMPILE.c) $(PICFLAG) $(srcdir)/ffs.c -o pic/$@; \ | |
642 | else true; fi | |
643 | $(COMPILE.c) $(srcdir)/ffs.c $(OUTPUT_OPTION) | |
398b3deb | 644 | |
0f3d38b6 AO |
645 | ./fibheap.o: $(srcdir)/fibheap.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/fibheap.h \ |
646 | $(INCDIR)/libiberty.h | |
24f2cabb L |
647 | if [ x"$(PICFLAG)" != x ]; then \ |
648 | $(COMPILE.c) $(PICFLAG) $(srcdir)/fibheap.c -o pic/$@; \ | |
649 | else true; fi | |
650 | $(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION) | |
398b3deb | 651 | |
0f3d38b6 | 652 | ./filename_cmp.o: $(srcdir)/filename_cmp.c stamp-h $(INCDIR)/filenames.h \ |
186c60ab | 653 | $(INCDIR)/safe-ctype.h |
cde515d9 JB |
654 | if [ x"$(PICFLAG)" != x ]; then \ |
655 | $(COMPILE.c) $(PICFLAG) $(srcdir)/filename_cmp.c -o pic/$@; \ | |
656 | else true; fi | |
657 | $(COMPILE.c) $(srcdir)/filename_cmp.c $(OUTPUT_OPTION) | |
658 | ||
0f3d38b6 | 659 | ./floatformat.o: $(srcdir)/floatformat.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 660 | $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h |
24f2cabb L |
661 | if [ x"$(PICFLAG)" != x ]; then \ |
662 | $(COMPILE.c) $(PICFLAG) $(srcdir)/floatformat.c -o pic/$@; \ | |
663 | else true; fi | |
664 | $(COMPILE.c) $(srcdir)/floatformat.c $(OUTPUT_OPTION) | |
398b3deb | 665 | |
0f3d38b6 | 666 | ./fnmatch.o: $(srcdir)/fnmatch.c stamp-h $(INCDIR)/fnmatch.h \ |
398b3deb | 667 | $(INCDIR)/safe-ctype.h |
24f2cabb L |
668 | if [ x"$(PICFLAG)" != x ]; then \ |
669 | $(COMPILE.c) $(PICFLAG) $(srcdir)/fnmatch.c -o pic/$@; \ | |
670 | else true; fi | |
671 | $(COMPILE.c) $(srcdir)/fnmatch.c $(OUTPUT_OPTION) | |
398b3deb | 672 | |
0f3d38b6 | 673 | ./fopen_unlocked.o: $(srcdir)/fopen_unlocked.c stamp-h $(INCDIR)/ansidecl.h \ |
78a7dc90 KG |
674 | $(INCDIR)/libiberty.h |
675 | if [ x"$(PICFLAG)" != x ]; then \ | |
676 | $(COMPILE.c) $(PICFLAG) $(srcdir)/fopen_unlocked.c -o pic/$@; \ | |
677 | else true; fi | |
678 | $(COMPILE.c) $(srcdir)/fopen_unlocked.c $(OUTPUT_OPTION) | |
679 | ||
0f3d38b6 | 680 | ./getcwd.o: $(srcdir)/getcwd.c stamp-h |
24f2cabb L |
681 | if [ x"$(PICFLAG)" != x ]; then \ |
682 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getcwd.c -o pic/$@; \ | |
683 | else true; fi | |
684 | $(COMPILE.c) $(srcdir)/getcwd.c $(OUTPUT_OPTION) | |
398b3deb | 685 | |
0f3d38b6 | 686 | ./getopt.o: $(srcdir)/getopt.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h |
24f2cabb L |
687 | if [ x"$(PICFLAG)" != x ]; then \ |
688 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt.c -o pic/$@; \ | |
689 | else true; fi | |
690 | $(COMPILE.c) $(srcdir)/getopt.c $(OUTPUT_OPTION) | |
398b3deb | 691 | |
0f3d38b6 | 692 | ./getopt1.o: $(srcdir)/getopt1.c stamp-h $(INCDIR)/getopt.h |
24f2cabb L |
693 | if [ x"$(PICFLAG)" != x ]; then \ |
694 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt1.c -o pic/$@; \ | |
695 | else true; fi | |
696 | $(COMPILE.c) $(srcdir)/getopt1.c $(OUTPUT_OPTION) | |
398b3deb | 697 | |
0f3d38b6 | 698 | ./getpagesize.o: $(srcdir)/getpagesize.c stamp-h |
24f2cabb L |
699 | if [ x"$(PICFLAG)" != x ]; then \ |
700 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getpagesize.c -o pic/$@; \ | |
701 | else true; fi | |
702 | $(COMPILE.c) $(srcdir)/getpagesize.c $(OUTPUT_OPTION) | |
398b3deb | 703 | |
0f3d38b6 | 704 | ./getpwd.o: $(srcdir)/getpwd.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
24f2cabb L |
705 | if [ x"$(PICFLAG)" != x ]; then \ |
706 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getpwd.c -o pic/$@; \ | |
707 | else true; fi | |
708 | $(COMPILE.c) $(srcdir)/getpwd.c $(OUTPUT_OPTION) | |
398b3deb | 709 | |
0f3d38b6 | 710 | ./getruntime.o: $(srcdir)/getruntime.c stamp-h $(INCDIR)/ansidecl.h \ |
9ce3f7e5 | 711 | $(INCDIR)/libiberty.h |
24f2cabb L |
712 | if [ x"$(PICFLAG)" != x ]; then \ |
713 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getruntime.c -o pic/$@; \ | |
714 | else true; fi | |
715 | $(COMPILE.c) $(srcdir)/getruntime.c $(OUTPUT_OPTION) | |
398b3deb | 716 | |
0f3d38b6 | 717 | ./gettimeofday.o: $(srcdir)/gettimeofday.c stamp-h $(INCDIR)/ansidecl.h \ |
17049f0b MM |
718 | $(INCDIR)/libiberty.h |
719 | if [ x"$(PICFLAG)" != x ]; then \ | |
720 | $(COMPILE.c) $(PICFLAG) $(srcdir)/gettimeofday.c -o pic/$@; \ | |
721 | else true; fi | |
722 | $(COMPILE.c) $(srcdir)/gettimeofday.c $(OUTPUT_OPTION) | |
723 | ||
0f3d38b6 AO |
724 | ./hashtab.o: $(srcdir)/hashtab.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/hashtab.h \ |
725 | $(INCDIR)/libiberty.h | |
24f2cabb L |
726 | if [ x"$(PICFLAG)" != x ]; then \ |
727 | $(COMPILE.c) $(PICFLAG) $(srcdir)/hashtab.c -o pic/$@; \ | |
728 | else true; fi | |
729 | $(COMPILE.c) $(srcdir)/hashtab.c $(OUTPUT_OPTION) | |
398b3deb | 730 | |
0f3d38b6 | 731 | ./hex.o: $(srcdir)/hex.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
21299dbd | 732 | $(INCDIR)/safe-ctype.h |
24f2cabb L |
733 | if [ x"$(PICFLAG)" != x ]; then \ |
734 | $(COMPILE.c) $(PICFLAG) $(srcdir)/hex.c -o pic/$@; \ | |
735 | else true; fi | |
736 | $(COMPILE.c) $(srcdir)/hex.c $(OUTPUT_OPTION) | |
398b3deb | 737 | |
24f2cabb L |
738 | ./index.o: $(srcdir)/index.c |
739 | if [ x"$(PICFLAG)" != x ]; then \ | |
740 | $(COMPILE.c) $(PICFLAG) $(srcdir)/index.c -o pic/$@; \ | |
741 | else true; fi | |
742 | $(COMPILE.c) $(srcdir)/index.c $(OUTPUT_OPTION) | |
398b3deb | 743 | |
24f2cabb L |
744 | ./insque.o: $(srcdir)/insque.c |
745 | if [ x"$(PICFLAG)" != x ]; then \ | |
746 | $(COMPILE.c) $(PICFLAG) $(srcdir)/insque.c -o pic/$@; \ | |
747 | else true; fi | |
748 | $(COMPILE.c) $(srcdir)/insque.c $(OUTPUT_OPTION) | |
398b3deb | 749 | |
0f3d38b6 | 750 | ./lbasename.o: $(srcdir)/lbasename.c stamp-h $(INCDIR)/ansidecl.h \ |
bd7d50f8 PB |
751 | $(INCDIR)/filenames.h $(INCDIR)/libiberty.h \ |
752 | $(INCDIR)/safe-ctype.h | |
24f2cabb L |
753 | if [ x"$(PICFLAG)" != x ]; then \ |
754 | $(COMPILE.c) $(PICFLAG) $(srcdir)/lbasename.c -o pic/$@; \ | |
755 | else true; fi | |
756 | $(COMPILE.c) $(srcdir)/lbasename.c $(OUTPUT_OPTION) | |
398b3deb | 757 | |
0f3d38b6 | 758 | ./lrealpath.o: $(srcdir)/lrealpath.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 759 | $(INCDIR)/libiberty.h |
24f2cabb L |
760 | if [ x"$(PICFLAG)" != x ]; then \ |
761 | $(COMPILE.c) $(PICFLAG) $(srcdir)/lrealpath.c -o pic/$@; \ | |
762 | else true; fi | |
763 | $(COMPILE.c) $(srcdir)/lrealpath.c $(OUTPUT_OPTION) | |
398b3deb | 764 | |
0f3d38b6 | 765 | ./make-relative-prefix.o: $(srcdir)/make-relative-prefix.c stamp-h \ |
398b3deb | 766 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
24f2cabb L |
767 | if [ x"$(PICFLAG)" != x ]; then \ |
768 | $(COMPILE.c) $(PICFLAG) $(srcdir)/make-relative-prefix.c -o pic/$@; \ | |
769 | else true; fi | |
770 | $(COMPILE.c) $(srcdir)/make-relative-prefix.c $(OUTPUT_OPTION) | |
398b3deb | 771 | |
0f3d38b6 | 772 | ./make-temp-file.o: $(srcdir)/make-temp-file.c stamp-h $(INCDIR)/ansidecl.h \ |
c9ac9147 | 773 | $(INCDIR)/libiberty.h |
24f2cabb L |
774 | if [ x"$(PICFLAG)" != x ]; then \ |
775 | $(COMPILE.c) $(PICFLAG) $(srcdir)/make-temp-file.c -o pic/$@; \ | |
776 | else true; fi | |
777 | $(COMPILE.c) $(srcdir)/make-temp-file.c $(OUTPUT_OPTION) | |
398b3deb | 778 | |
0f3d38b6 | 779 | ./md5.o: $(srcdir)/md5.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h |
24f2cabb L |
780 | if [ x"$(PICFLAG)" != x ]; then \ |
781 | $(COMPILE.c) $(PICFLAG) $(srcdir)/md5.c -o pic/$@; \ | |
782 | else true; fi | |
783 | $(COMPILE.c) $(srcdir)/md5.c $(OUTPUT_OPTION) | |
398b3deb | 784 | |
24f2cabb L |
785 | ./memchr.o: $(srcdir)/memchr.c $(INCDIR)/ansidecl.h |
786 | if [ x"$(PICFLAG)" != x ]; then \ | |
787 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memchr.c -o pic/$@; \ | |
788 | else true; fi | |
789 | $(COMPILE.c) $(srcdir)/memchr.c $(OUTPUT_OPTION) | |
398b3deb | 790 | |
24f2cabb L |
791 | ./memcmp.o: $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h |
792 | if [ x"$(PICFLAG)" != x ]; then \ | |
793 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memcmp.c -o pic/$@; \ | |
794 | else true; fi | |
795 | $(COMPILE.c) $(srcdir)/memcmp.c $(OUTPUT_OPTION) | |
398b3deb | 796 | |
24f2cabb L |
797 | ./memcpy.o: $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h |
798 | if [ x"$(PICFLAG)" != x ]; then \ | |
799 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memcpy.c -o pic/$@; \ | |
800 | else true; fi | |
801 | $(COMPILE.c) $(srcdir)/memcpy.c $(OUTPUT_OPTION) | |
398b3deb | 802 | |
24f2cabb L |
803 | ./memmove.o: $(srcdir)/memmove.c $(INCDIR)/ansidecl.h |
804 | if [ x"$(PICFLAG)" != x ]; then \ | |
805 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memmove.c -o pic/$@; \ | |
806 | else true; fi | |
807 | $(COMPILE.c) $(srcdir)/memmove.c $(OUTPUT_OPTION) | |
398b3deb | 808 | |
24f2cabb L |
809 | ./mempcpy.o: $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h |
810 | if [ x"$(PICFLAG)" != x ]; then \ | |
811 | $(COMPILE.c) $(PICFLAG) $(srcdir)/mempcpy.c -o pic/$@; \ | |
812 | else true; fi | |
813 | $(COMPILE.c) $(srcdir)/mempcpy.c $(OUTPUT_OPTION) | |
398b3deb | 814 | |
24f2cabb L |
815 | ./memset.o: $(srcdir)/memset.c $(INCDIR)/ansidecl.h |
816 | if [ x"$(PICFLAG)" != x ]; then \ | |
817 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memset.c -o pic/$@; \ | |
818 | else true; fi | |
819 | $(COMPILE.c) $(srcdir)/memset.c $(OUTPUT_OPTION) | |
398b3deb | 820 | |
0f3d38b6 | 821 | ./mkstemps.o: $(srcdir)/mkstemps.c stamp-h $(INCDIR)/ansidecl.h |
24f2cabb L |
822 | if [ x"$(PICFLAG)" != x ]; then \ |
823 | $(COMPILE.c) $(PICFLAG) $(srcdir)/mkstemps.c -o pic/$@; \ | |
824 | else true; fi | |
825 | $(COMPILE.c) $(srcdir)/mkstemps.c $(OUTPUT_OPTION) | |
398b3deb | 826 | |
24f2cabb L |
827 | ./msdos.o: $(srcdir)/msdos.c |
828 | if [ x"$(PICFLAG)" != x ]; then \ | |
829 | $(COMPILE.c) $(PICFLAG) $(srcdir)/msdos.c -o pic/$@; \ | |
830 | else true; fi | |
831 | $(COMPILE.c) $(srcdir)/msdos.c $(OUTPUT_OPTION) | |
398b3deb | 832 | |
0f3d38b6 | 833 | ./objalloc.o: $(srcdir)/objalloc.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 834 | $(INCDIR)/objalloc.h |
24f2cabb L |
835 | if [ x"$(PICFLAG)" != x ]; then \ |
836 | $(COMPILE.c) $(PICFLAG) $(srcdir)/objalloc.c -o pic/$@; \ | |
837 | else true; fi | |
838 | $(COMPILE.c) $(srcdir)/objalloc.c $(OUTPUT_OPTION) | |
398b3deb | 839 | |
0f3d38b6 | 840 | ./obstack.o: $(srcdir)/obstack.c stamp-h $(INCDIR)/obstack.h |
24f2cabb L |
841 | if [ x"$(PICFLAG)" != x ]; then \ |
842 | $(COMPILE.c) $(PICFLAG) $(srcdir)/obstack.c -o pic/$@; \ | |
843 | else true; fi | |
844 | $(COMPILE.c) $(srcdir)/obstack.c $(OUTPUT_OPTION) | |
398b3deb | 845 | |
0f3d38b6 | 846 | ./partition.o: $(srcdir)/partition.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 847 | $(INCDIR)/libiberty.h $(INCDIR)/partition.h |
24f2cabb L |
848 | if [ x"$(PICFLAG)" != x ]; then \ |
849 | $(COMPILE.c) $(PICFLAG) $(srcdir)/partition.c -o pic/$@; \ | |
850 | else true; fi | |
851 | $(COMPILE.c) $(srcdir)/partition.c $(OUTPUT_OPTION) | |
398b3deb | 852 | |
0f3d38b6 | 853 | ./pex-common.o: $(srcdir)/pex-common.c stamp-h $(INCDIR)/ansidecl.h \ |
a584cf65 ILT |
854 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
855 | if [ x"$(PICFLAG)" != x ]; then \ | |
856 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-common.c -o pic/$@; \ | |
857 | else true; fi | |
858 | $(COMPILE.c) $(srcdir)/pex-common.c $(OUTPUT_OPTION) | |
859 | ||
0f3d38b6 | 860 | ./pex-djgpp.o: $(srcdir)/pex-djgpp.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 861 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
24f2cabb L |
862 | if [ x"$(PICFLAG)" != x ]; then \ |
863 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-djgpp.c -o pic/$@; \ | |
864 | else true; fi | |
865 | $(COMPILE.c) $(srcdir)/pex-djgpp.c $(OUTPUT_OPTION) | |
398b3deb | 866 | |
0f3d38b6 | 867 | ./pex-msdos.o: $(srcdir)/pex-msdos.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb DD |
868 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \ |
869 | $(INCDIR)/safe-ctype.h | |
24f2cabb L |
870 | if [ x"$(PICFLAG)" != x ]; then \ |
871 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-msdos.c -o pic/$@; \ | |
872 | else true; fi | |
873 | $(COMPILE.c) $(srcdir)/pex-msdos.c $(OUTPUT_OPTION) | |
398b3deb | 874 | |
0f3d38b6 | 875 | ./pex-one.o: $(srcdir)/pex-one.c stamp-h $(INCDIR)/ansidecl.h \ |
a584cf65 ILT |
876 | $(INCDIR)/libiberty.h |
877 | if [ x"$(PICFLAG)" != x ]; then \ | |
878 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-one.c -o pic/$@; \ | |
879 | else true; fi | |
880 | $(COMPILE.c) $(srcdir)/pex-one.c $(OUTPUT_OPTION) | |
881 | ||
0f3d38b6 | 882 | ./pex-unix.o: $(srcdir)/pex-unix.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 883 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
24f2cabb L |
884 | if [ x"$(PICFLAG)" != x ]; then \ |
885 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-unix.c -o pic/$@; \ | |
886 | else true; fi | |
887 | $(COMPILE.c) $(srcdir)/pex-unix.c $(OUTPUT_OPTION) | |
398b3deb | 888 | |
0f3d38b6 | 889 | ./pex-win32.o: $(srcdir)/pex-win32.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 890 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
24f2cabb L |
891 | if [ x"$(PICFLAG)" != x ]; then \ |
892 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-win32.c -o pic/$@; \ | |
893 | else true; fi | |
894 | $(COMPILE.c) $(srcdir)/pex-win32.c $(OUTPUT_OPTION) | |
398b3deb | 895 | |
0f3d38b6 | 896 | ./pexecute.o: $(srcdir)/pexecute.c stamp-h $(INCDIR)/ansidecl.h \ |
a584cf65 ILT |
897 | $(INCDIR)/libiberty.h |
898 | if [ x"$(PICFLAG)" != x ]; then \ | |
899 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pexecute.c -o pic/$@; \ | |
900 | else true; fi | |
901 | $(COMPILE.c) $(srcdir)/pexecute.c $(OUTPUT_OPTION) | |
902 | ||
0f3d38b6 | 903 | ./physmem.o: $(srcdir)/physmem.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 904 | $(INCDIR)/libiberty.h |
24f2cabb L |
905 | if [ x"$(PICFLAG)" != x ]; then \ |
906 | $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \ | |
907 | else true; fi | |
908 | $(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION) | |
398b3deb | 909 | |
0f3d38b6 | 910 | ./putenv.o: $(srcdir)/putenv.c stamp-h $(INCDIR)/ansidecl.h |
24f2cabb L |
911 | if [ x"$(PICFLAG)" != x ]; then \ |
912 | $(COMPILE.c) $(PICFLAG) $(srcdir)/putenv.c -o pic/$@; \ | |
913 | else true; fi | |
914 | $(COMPILE.c) $(srcdir)/putenv.c $(OUTPUT_OPTION) | |
398b3deb | 915 | |
24f2cabb L |
916 | ./random.o: $(srcdir)/random.c $(INCDIR)/ansidecl.h |
917 | if [ x"$(PICFLAG)" != x ]; then \ | |
918 | $(COMPILE.c) $(PICFLAG) $(srcdir)/random.c -o pic/$@; \ | |
919 | else true; fi | |
920 | $(COMPILE.c) $(srcdir)/random.c $(OUTPUT_OPTION) | |
398b3deb | 921 | |
0f3d38b6 | 922 | ./regex.o: $(srcdir)/regex.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/xregex.h \ |
e8190aa2 | 923 | $(INCDIR)/xregex2.h |
24f2cabb L |
924 | if [ x"$(PICFLAG)" != x ]; then \ |
925 | $(COMPILE.c) $(PICFLAG) $(srcdir)/regex.c -o pic/$@; \ | |
926 | else true; fi | |
927 | $(COMPILE.c) $(srcdir)/regex.c $(OUTPUT_OPTION) | |
398b3deb | 928 | |
0f3d38b6 | 929 | ./rename.o: $(srcdir)/rename.c stamp-h $(INCDIR)/ansidecl.h |
24f2cabb L |
930 | if [ x"$(PICFLAG)" != x ]; then \ |
931 | $(COMPILE.c) $(PICFLAG) $(srcdir)/rename.c -o pic/$@; \ | |
932 | else true; fi | |
933 | $(COMPILE.c) $(srcdir)/rename.c $(OUTPUT_OPTION) | |
398b3deb | 934 | |
24f2cabb L |
935 | ./rindex.o: $(srcdir)/rindex.c |
936 | if [ x"$(PICFLAG)" != x ]; then \ | |
937 | $(COMPILE.c) $(PICFLAG) $(srcdir)/rindex.c -o pic/$@; \ | |
938 | else true; fi | |
939 | $(COMPILE.c) $(srcdir)/rindex.c $(OUTPUT_OPTION) | |
398b3deb | 940 | |
24f2cabb | 941 | ./safe-ctype.o: $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \ |
398b3deb | 942 | $(INCDIR)/safe-ctype.h |
24f2cabb L |
943 | if [ x"$(PICFLAG)" != x ]; then \ |
944 | $(COMPILE.c) $(PICFLAG) $(srcdir)/safe-ctype.c -o pic/$@; \ | |
945 | else true; fi | |
946 | $(COMPILE.c) $(srcdir)/safe-ctype.c $(OUTPUT_OPTION) | |
398b3deb | 947 | |
0f3d38b6 | 948 | ./setenv.o: $(srcdir)/setenv.c stamp-h $(INCDIR)/ansidecl.h |
24f2cabb L |
949 | if [ x"$(PICFLAG)" != x ]; then \ |
950 | $(COMPILE.c) $(PICFLAG) $(srcdir)/setenv.c -o pic/$@; \ | |
951 | else true; fi | |
952 | $(COMPILE.c) $(srcdir)/setenv.c $(OUTPUT_OPTION) | |
398b3deb | 953 | |
24f2cabb L |
954 | ./sigsetmask.o: $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h |
955 | if [ x"$(PICFLAG)" != x ]; then \ | |
956 | $(COMPILE.c) $(PICFLAG) $(srcdir)/sigsetmask.c -o pic/$@; \ | |
957 | else true; fi | |
958 | $(COMPILE.c) $(srcdir)/sigsetmask.c $(OUTPUT_OPTION) | |
398b3deb | 959 | |
24f2cabb L |
960 | ./snprintf.o: $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h |
961 | if [ x"$(PICFLAG)" != x ]; then \ | |
962 | $(COMPILE.c) $(PICFLAG) $(srcdir)/snprintf.c -o pic/$@; \ | |
963 | else true; fi | |
964 | $(COMPILE.c) $(srcdir)/snprintf.c $(OUTPUT_OPTION) | |
398b3deb | 965 | |
0f3d38b6 | 966 | ./sort.o: $(srcdir)/sort.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
9ce3f7e5 | 967 | $(INCDIR)/sort.h |
24f2cabb L |
968 | if [ x"$(PICFLAG)" != x ]; then \ |
969 | $(COMPILE.c) $(PICFLAG) $(srcdir)/sort.c -o pic/$@; \ | |
970 | else true; fi | |
971 | $(COMPILE.c) $(srcdir)/sort.c $(OUTPUT_OPTION) | |
398b3deb | 972 | |
0f3d38b6 | 973 | ./spaces.o: $(srcdir)/spaces.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
24f2cabb L |
974 | if [ x"$(PICFLAG)" != x ]; then \ |
975 | $(COMPILE.c) $(PICFLAG) $(srcdir)/spaces.c -o pic/$@; \ | |
976 | else true; fi | |
977 | $(COMPILE.c) $(srcdir)/spaces.c $(OUTPUT_OPTION) | |
398b3deb | 978 | |
0f3d38b6 | 979 | ./splay-tree.o: $(srcdir)/splay-tree.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 980 | $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h |
24f2cabb L |
981 | if [ x"$(PICFLAG)" != x ]; then \ |
982 | $(COMPILE.c) $(PICFLAG) $(srcdir)/splay-tree.c -o pic/$@; \ | |
983 | else true; fi | |
984 | $(COMPILE.c) $(srcdir)/splay-tree.c $(OUTPUT_OPTION) | |
398b3deb | 985 | |
24f2cabb L |
986 | ./stpcpy.o: $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h |
987 | if [ x"$(PICFLAG)" != x ]; then \ | |
988 | $(COMPILE.c) $(PICFLAG) $(srcdir)/stpcpy.c -o pic/$@; \ | |
989 | else true; fi | |
990 | $(COMPILE.c) $(srcdir)/stpcpy.c $(OUTPUT_OPTION) | |
398b3deb | 991 | |
24f2cabb L |
992 | ./stpncpy.o: $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h |
993 | if [ x"$(PICFLAG)" != x ]; then \ | |
994 | $(COMPILE.c) $(PICFLAG) $(srcdir)/stpncpy.c -o pic/$@; \ | |
995 | else true; fi | |
996 | $(COMPILE.c) $(srcdir)/stpncpy.c $(OUTPUT_OPTION) | |
398b3deb | 997 | |
24f2cabb L |
998 | ./strcasecmp.o: $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h |
999 | if [ x"$(PICFLAG)" != x ]; then \ | |
1000 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strcasecmp.c -o pic/$@; \ | |
1001 | else true; fi | |
1002 | $(COMPILE.c) $(srcdir)/strcasecmp.c $(OUTPUT_OPTION) | |
398b3deb | 1003 | |
24f2cabb L |
1004 | ./strchr.o: $(srcdir)/strchr.c $(INCDIR)/ansidecl.h |
1005 | if [ x"$(PICFLAG)" != x ]; then \ | |
1006 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strchr.c -o pic/$@; \ | |
1007 | else true; fi | |
1008 | $(COMPILE.c) $(srcdir)/strchr.c $(OUTPUT_OPTION) | |
398b3deb | 1009 | |
24f2cabb L |
1010 | ./strdup.o: $(srcdir)/strdup.c $(INCDIR)/ansidecl.h |
1011 | if [ x"$(PICFLAG)" != x ]; then \ | |
1012 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strdup.c -o pic/$@; \ | |
1013 | else true; fi | |
1014 | $(COMPILE.c) $(srcdir)/strdup.c $(OUTPUT_OPTION) | |
398b3deb | 1015 | |
0f3d38b6 | 1016 | ./strerror.o: $(srcdir)/strerror.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 1017 | $(INCDIR)/libiberty.h |
24f2cabb L |
1018 | if [ x"$(PICFLAG)" != x ]; then \ |
1019 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strerror.c -o pic/$@; \ | |
1020 | else true; fi | |
1021 | $(COMPILE.c) $(srcdir)/strerror.c $(OUTPUT_OPTION) | |
398b3deb | 1022 | |
24f2cabb L |
1023 | ./strncasecmp.o: $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h |
1024 | if [ x"$(PICFLAG)" != x ]; then \ | |
1025 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strncasecmp.c -o pic/$@; \ | |
1026 | else true; fi | |
1027 | $(COMPILE.c) $(srcdir)/strncasecmp.c $(OUTPUT_OPTION) | |
398b3deb | 1028 | |
24f2cabb L |
1029 | ./strncmp.o: $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h |
1030 | if [ x"$(PICFLAG)" != x ]; then \ | |
1031 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strncmp.c -o pic/$@; \ | |
1032 | else true; fi | |
1033 | $(COMPILE.c) $(srcdir)/strncmp.c $(OUTPUT_OPTION) | |
398b3deb | 1034 | |
17998b22 KG |
1035 | ./strndup.o: $(srcdir)/strndup.c $(INCDIR)/ansidecl.h |
1036 | if [ x"$(PICFLAG)" != x ]; then \ | |
1037 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strndup.c -o pic/$@; \ | |
1038 | else true; fi | |
1039 | $(COMPILE.c) $(srcdir)/strndup.c $(OUTPUT_OPTION) | |
1040 | ||
24f2cabb L |
1041 | ./strrchr.o: $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h |
1042 | if [ x"$(PICFLAG)" != x ]; then \ | |
1043 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strrchr.c -o pic/$@; \ | |
1044 | else true; fi | |
1045 | $(COMPILE.c) $(srcdir)/strrchr.c $(OUTPUT_OPTION) | |
398b3deb | 1046 | |
0f3d38b6 | 1047 | ./strsignal.o: $(srcdir)/strsignal.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 1048 | $(INCDIR)/libiberty.h |
24f2cabb L |
1049 | if [ x"$(PICFLAG)" != x ]; then \ |
1050 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strsignal.c -o pic/$@; \ | |
1051 | else true; fi | |
1052 | $(COMPILE.c) $(srcdir)/strsignal.c $(OUTPUT_OPTION) | |
398b3deb | 1053 | |
24f2cabb L |
1054 | ./strstr.o: $(srcdir)/strstr.c |
1055 | if [ x"$(PICFLAG)" != x ]; then \ | |
1056 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strstr.c -o pic/$@; \ | |
1057 | else true; fi | |
1058 | $(COMPILE.c) $(srcdir)/strstr.c $(OUTPUT_OPTION) | |
398b3deb | 1059 | |
24f2cabb L |
1060 | ./strtod.o: $(srcdir)/strtod.c $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h |
1061 | if [ x"$(PICFLAG)" != x ]; then \ | |
1062 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strtod.c -o pic/$@; \ | |
1063 | else true; fi | |
1064 | $(COMPILE.c) $(srcdir)/strtod.c $(OUTPUT_OPTION) | |
398b3deb | 1065 | |
0f3d38b6 | 1066 | ./strtol.o: $(srcdir)/strtol.c stamp-h $(INCDIR)/safe-ctype.h |
24f2cabb L |
1067 | if [ x"$(PICFLAG)" != x ]; then \ |
1068 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strtol.c -o pic/$@; \ | |
1069 | else true; fi | |
1070 | $(COMPILE.c) $(srcdir)/strtol.c $(OUTPUT_OPTION) | |
398b3deb | 1071 | |
0f3d38b6 | 1072 | ./strtoul.o: $(srcdir)/strtoul.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 1073 | $(INCDIR)/safe-ctype.h |
24f2cabb L |
1074 | if [ x"$(PICFLAG)" != x ]; then \ |
1075 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoul.c -o pic/$@; \ | |
1076 | else true; fi | |
1077 | $(COMPILE.c) $(srcdir)/strtoul.c $(OUTPUT_OPTION) | |
398b3deb | 1078 | |
97393d0a MM |
1079 | ./strverscmp.o: $(srcdir)/strverscmp.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
1080 | $(INCDIR)/safe-ctype.h | |
83fbfe42 GK |
1081 | if [ x"$(PICFLAG)" != x ]; then \ |
1082 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strverscmp.c -o pic/$@; \ | |
1083 | else true; fi | |
1084 | $(COMPILE.c) $(srcdir)/strverscmp.c $(OUTPUT_OPTION) | |
1085 | ||
0f3d38b6 | 1086 | ./ternary.o: $(srcdir)/ternary.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 1087 | $(INCDIR)/libiberty.h $(INCDIR)/ternary.h |
24f2cabb L |
1088 | if [ x"$(PICFLAG)" != x ]; then \ |
1089 | $(COMPILE.c) $(PICFLAG) $(srcdir)/ternary.c -o pic/$@; \ | |
1090 | else true; fi | |
1091 | $(COMPILE.c) $(srcdir)/ternary.c $(OUTPUT_OPTION) | |
398b3deb | 1092 | |
24f2cabb L |
1093 | ./tmpnam.o: $(srcdir)/tmpnam.c |
1094 | if [ x"$(PICFLAG)" != x ]; then \ | |
1095 | $(COMPILE.c) $(PICFLAG) $(srcdir)/tmpnam.c -o pic/$@; \ | |
1096 | else true; fi | |
1097 | $(COMPILE.c) $(srcdir)/tmpnam.c $(OUTPUT_OPTION) | |
398b3deb | 1098 | |
0f3d38b6 | 1099 | ./unlink-if-ordinary.o: $(srcdir)/unlink-if-ordinary.c stamp-h \ |
17049f0b | 1100 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
c363985d JB |
1101 | if [ x"$(PICFLAG)" != x ]; then \ |
1102 | $(COMPILE.c) $(PICFLAG) $(srcdir)/unlink-if-ordinary.c -o pic/$@; \ | |
1103 | else true; fi | |
1104 | $(COMPILE.c) $(srcdir)/unlink-if-ordinary.c $(OUTPUT_OPTION) | |
1105 | ||
0f3d38b6 | 1106 | ./vasprintf.o: $(srcdir)/vasprintf.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 1107 | $(INCDIR)/libiberty.h |
24f2cabb L |
1108 | if [ x"$(PICFLAG)" != x ]; then \ |
1109 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vasprintf.c -o pic/$@; \ | |
1110 | else true; fi | |
1111 | $(COMPILE.c) $(srcdir)/vasprintf.c $(OUTPUT_OPTION) | |
398b3deb | 1112 | |
24f2cabb L |
1113 | ./vfork.o: $(srcdir)/vfork.c $(INCDIR)/ansidecl.h |
1114 | if [ x"$(PICFLAG)" != x ]; then \ | |
1115 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vfork.c -o pic/$@; \ | |
1116 | else true; fi | |
1117 | $(COMPILE.c) $(srcdir)/vfork.c $(OUTPUT_OPTION) | |
398b3deb | 1118 | |
24f2cabb L |
1119 | ./vfprintf.o: $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h |
1120 | if [ x"$(PICFLAG)" != x ]; then \ | |
1121 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vfprintf.c -o pic/$@; \ | |
1122 | else true; fi | |
1123 | $(COMPILE.c) $(srcdir)/vfprintf.c $(OUTPUT_OPTION) | |
398b3deb | 1124 | |
24f2cabb L |
1125 | ./vprintf.o: $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h |
1126 | if [ x"$(PICFLAG)" != x ]; then \ | |
1127 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf.c -o pic/$@; \ | |
1128 | else true; fi | |
1129 | $(COMPILE.c) $(srcdir)/vprintf.c $(OUTPUT_OPTION) | |
398b3deb | 1130 | |
0f3d38b6 | 1131 | ./vsnprintf.o: $(srcdir)/vsnprintf.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 1132 | $(INCDIR)/libiberty.h |
24f2cabb L |
1133 | if [ x"$(PICFLAG)" != x ]; then \ |
1134 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vsnprintf.c -o pic/$@; \ | |
1135 | else true; fi | |
1136 | $(COMPILE.c) $(srcdir)/vsnprintf.c $(OUTPUT_OPTION) | |
398b3deb | 1137 | |
24f2cabb L |
1138 | ./vsprintf.o: $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h |
1139 | if [ x"$(PICFLAG)" != x ]; then \ | |
1140 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vsprintf.c -o pic/$@; \ | |
1141 | else true; fi | |
1142 | $(COMPILE.c) $(srcdir)/vsprintf.c $(OUTPUT_OPTION) | |
398b3deb | 1143 | |
0f3d38b6 | 1144 | ./waitpid.o: $(srcdir)/waitpid.c stamp-h $(INCDIR)/ansidecl.h |
24f2cabb L |
1145 | if [ x"$(PICFLAG)" != x ]; then \ |
1146 | $(COMPILE.c) $(PICFLAG) $(srcdir)/waitpid.c -o pic/$@; \ | |
1147 | else true; fi | |
1148 | $(COMPILE.c) $(srcdir)/waitpid.c $(OUTPUT_OPTION) | |
398b3deb | 1149 | |
0f3d38b6 | 1150 | ./xatexit.o: $(srcdir)/xatexit.c stamp-h $(INCDIR)/ansidecl.h \ |
bd7d50f8 | 1151 | $(INCDIR)/libiberty.h |
24f2cabb L |
1152 | if [ x"$(PICFLAG)" != x ]; then \ |
1153 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xatexit.c -o pic/$@; \ | |
1154 | else true; fi | |
1155 | $(COMPILE.c) $(srcdir)/xatexit.c $(OUTPUT_OPTION) | |
398b3deb | 1156 | |
0f3d38b6 | 1157 | ./xexit.o: $(srcdir)/xexit.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
24f2cabb L |
1158 | if [ x"$(PICFLAG)" != x ]; then \ |
1159 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xexit.c -o pic/$@; \ | |
1160 | else true; fi | |
1161 | $(COMPILE.c) $(srcdir)/xexit.c $(OUTPUT_OPTION) | |
398b3deb | 1162 | |
0f3d38b6 | 1163 | ./xmalloc.o: $(srcdir)/xmalloc.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 1164 | $(INCDIR)/libiberty.h |
24f2cabb L |
1165 | if [ x"$(PICFLAG)" != x ]; then \ |
1166 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xmalloc.c -o pic/$@; \ | |
1167 | else true; fi | |
1168 | $(COMPILE.c) $(srcdir)/xmalloc.c $(OUTPUT_OPTION) | |
398b3deb | 1169 | |
0f3d38b6 | 1170 | ./xmemdup.o: $(srcdir)/xmemdup.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 1171 | $(INCDIR)/libiberty.h |
24f2cabb L |
1172 | if [ x"$(PICFLAG)" != x ]; then \ |
1173 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xmemdup.c -o pic/$@; \ | |
1174 | else true; fi | |
1175 | $(COMPILE.c) $(srcdir)/xmemdup.c $(OUTPUT_OPTION) | |
398b3deb | 1176 | |
0f3d38b6 | 1177 | ./xstrdup.o: $(srcdir)/xstrdup.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 1178 | $(INCDIR)/libiberty.h |
24f2cabb L |
1179 | if [ x"$(PICFLAG)" != x ]; then \ |
1180 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/$@; \ | |
1181 | else true; fi | |
1182 | $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION) | |
398b3deb | 1183 | |
0f3d38b6 | 1184 | ./xstrerror.o: $(srcdir)/xstrerror.c stamp-h $(INCDIR)/ansidecl.h \ |
398b3deb | 1185 | $(INCDIR)/libiberty.h |
24f2cabb L |
1186 | if [ x"$(PICFLAG)" != x ]; then \ |
1187 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrerror.c -o pic/$@; \ | |
1188 | else true; fi | |
1189 | $(COMPILE.c) $(srcdir)/xstrerror.c $(OUTPUT_OPTION) | |
398b3deb | 1190 | |
0f3d38b6 | 1191 | ./xstrndup.o: $(srcdir)/xstrndup.c stamp-h $(INCDIR)/ansidecl.h \ |
17998b22 KG |
1192 | $(INCDIR)/libiberty.h |
1193 | if [ x"$(PICFLAG)" != x ]; then \ | |
1194 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrndup.c -o pic/$@; \ | |
1195 | else true; fi | |
1196 | $(COMPILE.c) $(srcdir)/xstrndup.c $(OUTPUT_OPTION) | |
1197 |