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