Commit | Line | Data |
---|---|---|
642c7534 BE |
1 | # Makefile for the libiberty library. |
2 | # Originally written by K. Richard Pixley <rich@cygnus.com>. | |
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@ | |
58 | LIBCFLAGS = $(CFLAGS) | |
59 | RANLIB = @RANLIB@ | |
39423523 DD |
60 | MAKEINFO = @MAKEINFO@ |
61 | PERL = @PERL@ | |
252b5132 RH |
62 | |
63 | PICFLAG = | |
64 | ||
65 | MAKEOVERRIDES = | |
66 | ||
37254c9a DD |
67 | TARGETLIB = ./libiberty.a |
68 | TESTLIB = ./testlib.a | |
252b5132 RH |
69 | |
70 | LIBOBJS = @LIBOBJS@ | |
252b5132 RH |
71 | |
72 | # A configuration can specify extra .o files that should be included, | |
73 | # even if they are in libc. (Perhaps the libc version is buggy.) | |
74 | EXTRA_OFILES = | |
75 | ||
76 | # Flags to pass to a recursive make. | |
77 | FLAGS_TO_PASS = \ | |
78 | "AR=$(AR)" \ | |
79 | "AR_FLAGS=$(AR_FLAGS)" \ | |
80 | "CC=$(CC)" \ | |
81 | "CFLAGS=$(CFLAGS)" \ | |
27a39a5f | 82 | "DESTDIR=$(DESTDIR)" \ |
252b5132 RH |
83 | "LIBCFLAGS=$(LIBCFLAGS)" \ |
84 | "EXTRA_OFILES=$(EXTRA_OFILES)" \ | |
85 | "HDEFINES=$(HDEFINES)" \ | |
86 | "INSTALL=$(INSTALL)" \ | |
87 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
88 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
89 | "LDFLAGS=$(LDFLAGS)" \ | |
90 | "LOADLIBES=$(LOADLIBES)" \ | |
91 | "RANLIB=$(RANLIB)" \ | |
0c0a36a4 ILT |
92 | "SHELL=$(SHELL)" \ |
93 | "prefix=$(prefix)" \ | |
94 | "exec_prefix=$(exec_prefix)" \ | |
95 | "libdir=$(libdir)" \ | |
96 | "libsubdir=$(libsubdir)" \ | |
97 | "tooldir=$(tooldir)" | |
252b5132 | 98 | |
0c0a36a4 ILT |
99 | # Subdirectories to recurse into. We need to override this during cleaning |
100 | SUBDIRS = testsuite | |
101 | ||
39423523 | 102 | # FIXME: add @BUILD_INFO@ once we're sure it works for everyone. |
46a10049 | 103 | all: stamp-picdir $(TARGETLIB) needed-list required-list all-subdir |
1b67de92 | 104 | @: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all |
252b5132 RH |
105 | |
106 | .PHONY: check installcheck | |
0c0a36a4 ILT |
107 | check: check-subdir |
108 | installcheck: installcheck-subdir | |
252b5132 RH |
109 | |
110 | @host_makefile_frag@ | |
111 | ||
112 | INCDIR=$(srcdir)/$(MULTISRCTOP)../include | |
113 | ||
eb383413 | 114 | COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@ |
37254c9a DD |
115 | |
116 | # Just to make sure we don't use a built-in rule with VPATH | |
252b5132 | 117 | .c.o: |
37254c9a | 118 | false |
252b5132 | 119 | |
252b5132 | 120 | # NOTE: If you add new files to the library, add them to this list |
46a10049 DD |
121 | # (alphabetical), and add them to REQUIRED_OFILES, or |
122 | # CONFIGURED_OFILES and funcs in configure.ac. Also run "make maint-deps" | |
123 | # to build the new rules. | |
cc096b71 DD |
124 | CFILES = alloca.c argv.c asprintf.c atexit.c \ |
125 | basename.c bcmp.c bcopy.c bsearch.c bzero.c \ | |
126 | calloc.c choose-temp.c clock.c concat.c cp-demangle.c \ | |
37254c9a | 127 | cp-demint.c cplus-dem.c \ |
cc096b71 | 128 | dyn-string.c \ |
9c577e89 DD |
129 | fdmatch.c ffs.c fibheap.c filename_cmp.c floatformat.c \ |
130 | fnmatch.c fopen_unlocked.c \ | |
cc096b71 | 131 | getcwd.c getopt.c getopt1.c getpagesize.c getpwd.c getruntime.c \ |
8ec32723 | 132 | gettimeofday.c \ |
cc096b71 DD |
133 | hashtab.c hex.c \ |
134 | index.c insque.c \ | |
135 | lbasename.c \ | |
ba61a412 | 136 | lrealpath.c \ |
2a80c0a4 | 137 | make-relative-prefix.c \ |
cc096b71 | 138 | make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmove.c \ |
10b57b38 | 139 | mempcpy.c memset.c mkstemps.c \ |
cc096b71 | 140 | objalloc.c obstack.c \ |
b109e79a ILT |
141 | partition.c pexecute.c \ |
142 | pex-common.c pex-djgpp.c pex-msdos.c pex-one.c \ | |
5a17353c | 143 | pex-unix.c pex-win32.c \ |
4938384a | 144 | physmem.c putenv.c \ |
cc096b71 | 145 | random.c regex.c rename.c rindex.c \ |
2ed1e5cc | 146 | safe-ctype.c setenv.c sigsetmask.c snprintf.c sort.c spaces.c \ |
10b57b38 DD |
147 | splay-tree.c stpcpy.c stpncpy.c strcasecmp.c strchr.c strdup.c \ |
148 | strerror.c strncasecmp.c strncmp.c strrchr.c strsignal.c \ | |
67f3cb05 | 149 | strstr.c strtod.c strtol.c strtoul.c strndup.c strverscmp.c \ |
642c7534 | 150 | tmpnam.c \ |
190eb137 | 151 | unlink-if-ordinary.c \ |
2ed1e5cc | 152 | vasprintf.c vfork.c vfprintf.c vprintf.c vsnprintf.c vsprintf.c \ |
cc096b71 | 153 | waitpid.c \ |
0fad4bdb DD |
154 | xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c \ |
155 | xstrndup.c | |
cc096b71 DD |
156 | |
157 | # These are always included in the library. The first four are listed | |
158 | # first and by compile time to optimize parallel builds. | |
e0c148a7 DD |
159 | REQUIRED_OFILES = ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o \ |
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 | |
351 | # default multilib, so we have to take LIBCFLAGS into account as well, | |
352 | # since it will be passed the multilib flags. | |
353 | MULTIOSDIR = `$(CC) $(LIBCFLAGS) -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 | ||
a590e8e7 | 476 | # Depending on stamp-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 \ |
a590e8e7 | 482 | maintainer-clean-subdir: stamp-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 | |
a590e8e7 | 499 | ./_doprnt.o: $(srcdir)/_doprnt.c stamp-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 | |
a590e8e7 | 506 | ./alloca.o: $(srcdir)/alloca.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
46a10049 DD |
507 | if [ x"$(PICFLAG)" != x ]; then \ |
508 | $(COMPILE.c) $(PICFLAG) $(srcdir)/alloca.c -o pic/$@; \ | |
509 | else true; fi | |
510 | $(COMPILE.c) $(srcdir)/alloca.c $(OUTPUT_OPTION) | |
37254c9a | 511 | |
a590e8e7 | 512 | ./argv.o: $(srcdir)/argv.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
7b17bc29 | 513 | $(INCDIR)/safe-ctype.h |
46a10049 DD |
514 | if [ x"$(PICFLAG)" != x ]; then \ |
515 | $(COMPILE.c) $(PICFLAG) $(srcdir)/argv.c -o pic/$@; \ | |
516 | else true; fi | |
517 | $(COMPILE.c) $(srcdir)/argv.c $(OUTPUT_OPTION) | |
37254c9a | 518 | |
a590e8e7 | 519 | ./asprintf.o: $(srcdir)/asprintf.c stamp-h $(INCDIR)/ansidecl.h \ |
75919f94 | 520 | $(INCDIR)/libiberty.h |
46a10049 DD |
521 | if [ x"$(PICFLAG)" != x ]; then \ |
522 | $(COMPILE.c) $(PICFLAG) $(srcdir)/asprintf.c -o pic/$@; \ | |
523 | else true; fi | |
524 | $(COMPILE.c) $(srcdir)/asprintf.c $(OUTPUT_OPTION) | |
37254c9a | 525 | |
a590e8e7 | 526 | ./atexit.o: $(srcdir)/atexit.c stamp-h |
46a10049 DD |
527 | if [ x"$(PICFLAG)" != x ]; then \ |
528 | $(COMPILE.c) $(PICFLAG) $(srcdir)/atexit.c -o pic/$@; \ | |
529 | else true; fi | |
530 | $(COMPILE.c) $(srcdir)/atexit.c $(OUTPUT_OPTION) | |
37254c9a | 531 | |
a590e8e7 | 532 | ./basename.o: $(srcdir)/basename.c stamp-h $(INCDIR)/ansidecl.h \ |
75919f94 | 533 | $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h |
46a10049 DD |
534 | if [ x"$(PICFLAG)" != x ]; then \ |
535 | $(COMPILE.c) $(PICFLAG) $(srcdir)/basename.c -o pic/$@; \ | |
536 | else true; fi | |
537 | $(COMPILE.c) $(srcdir)/basename.c $(OUTPUT_OPTION) | |
37254c9a | 538 | |
46a10049 DD |
539 | ./bcmp.o: $(srcdir)/bcmp.c |
540 | if [ x"$(PICFLAG)" != x ]; then \ | |
541 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bcmp.c -o pic/$@; \ | |
542 | else true; fi | |
543 | $(COMPILE.c) $(srcdir)/bcmp.c $(OUTPUT_OPTION) | |
37254c9a | 544 | |
46a10049 DD |
545 | ./bcopy.o: $(srcdir)/bcopy.c |
546 | if [ x"$(PICFLAG)" != x ]; then \ | |
547 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bcopy.c -o pic/$@; \ | |
548 | else true; fi | |
549 | $(COMPILE.c) $(srcdir)/bcopy.c $(OUTPUT_OPTION) | |
37254c9a | 550 | |
a590e8e7 | 551 | ./bsearch.o: $(srcdir)/bsearch.c stamp-h $(INCDIR)/ansidecl.h |
46a10049 DD |
552 | if [ x"$(PICFLAG)" != x ]; then \ |
553 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch.c -o pic/$@; \ | |
554 | else true; fi | |
555 | $(COMPILE.c) $(srcdir)/bsearch.c $(OUTPUT_OPTION) | |
37254c9a | 556 | |
46a10049 DD |
557 | ./bzero.o: $(srcdir)/bzero.c |
558 | if [ x"$(PICFLAG)" != x ]; then \ | |
559 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bzero.c -o pic/$@; \ | |
560 | else true; fi | |
561 | $(COMPILE.c) $(srcdir)/bzero.c $(OUTPUT_OPTION) | |
37254c9a | 562 | |
46a10049 DD |
563 | ./calloc.o: $(srcdir)/calloc.c $(INCDIR)/ansidecl.h |
564 | if [ x"$(PICFLAG)" != x ]; then \ | |
565 | $(COMPILE.c) $(PICFLAG) $(srcdir)/calloc.c -o pic/$@; \ | |
566 | else true; fi | |
567 | $(COMPILE.c) $(srcdir)/calloc.c $(OUTPUT_OPTION) | |
37254c9a | 568 | |
a590e8e7 | 569 | ./choose-temp.o: $(srcdir)/choose-temp.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 570 | $(INCDIR)/libiberty.h |
46a10049 DD |
571 | if [ x"$(PICFLAG)" != x ]; then \ |
572 | $(COMPILE.c) $(PICFLAG) $(srcdir)/choose-temp.c -o pic/$@; \ | |
573 | else true; fi | |
574 | $(COMPILE.c) $(srcdir)/choose-temp.c $(OUTPUT_OPTION) | |
37254c9a | 575 | |
a590e8e7 | 576 | ./clock.o: $(srcdir)/clock.c stamp-h |
46a10049 DD |
577 | if [ x"$(PICFLAG)" != x ]; then \ |
578 | $(COMPILE.c) $(PICFLAG) $(srcdir)/clock.c -o pic/$@; \ | |
579 | else true; fi | |
580 | $(COMPILE.c) $(srcdir)/clock.c $(OUTPUT_OPTION) | |
37254c9a | 581 | |
a590e8e7 | 582 | ./concat.o: $(srcdir)/concat.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
46a10049 DD |
583 | if [ x"$(PICFLAG)" != x ]; then \ |
584 | $(COMPILE.c) $(PICFLAG) $(srcdir)/concat.c -o pic/$@; \ | |
585 | else true; fi | |
586 | $(COMPILE.c) $(srcdir)/concat.c $(OUTPUT_OPTION) | |
37254c9a | 587 | |
46a10049 DD |
588 | ./copysign.o: $(srcdir)/copysign.c $(INCDIR)/ansidecl.h |
589 | if [ x"$(PICFLAG)" != x ]; then \ | |
590 | $(COMPILE.c) $(PICFLAG) $(srcdir)/copysign.c -o pic/$@; \ | |
591 | else true; fi | |
592 | $(COMPILE.c) $(srcdir)/copysign.c $(OUTPUT_OPTION) | |
37254c9a | 593 | |
a590e8e7 | 594 | ./cp-demangle.o: $(srcdir)/cp-demangle.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a DD |
595 | $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \ |
596 | $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h | |
46a10049 DD |
597 | if [ x"$(PICFLAG)" != x ]; then \ |
598 | $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demangle.c -o pic/$@; \ | |
599 | else true; fi | |
600 | $(COMPILE.c) $(srcdir)/cp-demangle.c $(OUTPUT_OPTION) | |
37254c9a | 601 | |
a590e8e7 | 602 | ./cp-demint.o: $(srcdir)/cp-demint.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 603 | $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \ |
cc096b71 | 604 | $(INCDIR)/libiberty.h |
46a10049 DD |
605 | if [ x"$(PICFLAG)" != x ]; then \ |
606 | $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demint.c -o pic/$@; \ | |
607 | else true; fi | |
608 | $(COMPILE.c) $(srcdir)/cp-demint.c $(OUTPUT_OPTION) | |
37254c9a | 609 | |
a590e8e7 | 610 | ./cplus-dem.o: $(srcdir)/cplus-dem.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a DD |
611 | $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \ |
612 | $(INCDIR)/safe-ctype.h | |
46a10049 DD |
613 | if [ x"$(PICFLAG)" != x ]; then \ |
614 | $(COMPILE.c) $(PICFLAG) $(srcdir)/cplus-dem.c -o pic/$@; \ | |
615 | else true; fi | |
616 | $(COMPILE.c) $(srcdir)/cplus-dem.c $(OUTPUT_OPTION) | |
37254c9a | 617 | |
a590e8e7 | 618 | ./dyn-string.o: $(srcdir)/dyn-string.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 619 | $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h |
46a10049 DD |
620 | if [ x"$(PICFLAG)" != x ]; then \ |
621 | $(COMPILE.c) $(PICFLAG) $(srcdir)/dyn-string.c -o pic/$@; \ | |
622 | else true; fi | |
623 | $(COMPILE.c) $(srcdir)/dyn-string.c $(OUTPUT_OPTION) | |
37254c9a | 624 | |
a590e8e7 | 625 | ./fdmatch.o: $(srcdir)/fdmatch.c stamp-h $(INCDIR)/ansidecl.h \ |
75919f94 | 626 | $(INCDIR)/libiberty.h |
46a10049 DD |
627 | if [ x"$(PICFLAG)" != x ]; then \ |
628 | $(COMPILE.c) $(PICFLAG) $(srcdir)/fdmatch.c -o pic/$@; \ | |
629 | else true; fi | |
630 | $(COMPILE.c) $(srcdir)/fdmatch.c $(OUTPUT_OPTION) | |
37254c9a | 631 | |
46a10049 DD |
632 | ./ffs.o: $(srcdir)/ffs.c |
633 | if [ x"$(PICFLAG)" != x ]; then \ | |
634 | $(COMPILE.c) $(PICFLAG) $(srcdir)/ffs.c -o pic/$@; \ | |
635 | else true; fi | |
636 | $(COMPILE.c) $(srcdir)/ffs.c $(OUTPUT_OPTION) | |
37254c9a | 637 | |
a590e8e7 AO |
638 | ./fibheap.o: $(srcdir)/fibheap.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/fibheap.h \ |
639 | $(INCDIR)/libiberty.h | |
46a10049 DD |
640 | if [ x"$(PICFLAG)" != x ]; then \ |
641 | $(COMPILE.c) $(PICFLAG) $(srcdir)/fibheap.c -o pic/$@; \ | |
642 | else true; fi | |
643 | $(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION) | |
37254c9a | 644 | |
a590e8e7 | 645 | ./filename_cmp.o: $(srcdir)/filename_cmp.c stamp-h $(INCDIR)/filenames.h \ |
73bdefcf | 646 | $(INCDIR)/safe-ctype.h |
9c577e89 DD |
647 | if [ x"$(PICFLAG)" != x ]; then \ |
648 | $(COMPILE.c) $(PICFLAG) $(srcdir)/filename_cmp.c -o pic/$@; \ | |
649 | else true; fi | |
650 | $(COMPILE.c) $(srcdir)/filename_cmp.c $(OUTPUT_OPTION) | |
651 | ||
a590e8e7 | 652 | ./floatformat.o: $(srcdir)/floatformat.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 653 | $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h |
46a10049 DD |
654 | if [ x"$(PICFLAG)" != x ]; then \ |
655 | $(COMPILE.c) $(PICFLAG) $(srcdir)/floatformat.c -o pic/$@; \ | |
656 | else true; fi | |
657 | $(COMPILE.c) $(srcdir)/floatformat.c $(OUTPUT_OPTION) | |
37254c9a | 658 | |
a590e8e7 | 659 | ./fnmatch.o: $(srcdir)/fnmatch.c stamp-h $(INCDIR)/fnmatch.h \ |
37254c9a | 660 | $(INCDIR)/safe-ctype.h |
46a10049 DD |
661 | if [ x"$(PICFLAG)" != x ]; then \ |
662 | $(COMPILE.c) $(PICFLAG) $(srcdir)/fnmatch.c -o pic/$@; \ | |
663 | else true; fi | |
664 | $(COMPILE.c) $(srcdir)/fnmatch.c $(OUTPUT_OPTION) | |
37254c9a | 665 | |
a590e8e7 | 666 | ./fopen_unlocked.o: $(srcdir)/fopen_unlocked.c stamp-h $(INCDIR)/ansidecl.h \ |
ac119ae8 DD |
667 | $(INCDIR)/libiberty.h |
668 | if [ x"$(PICFLAG)" != x ]; then \ | |
669 | $(COMPILE.c) $(PICFLAG) $(srcdir)/fopen_unlocked.c -o pic/$@; \ | |
670 | else true; fi | |
671 | $(COMPILE.c) $(srcdir)/fopen_unlocked.c $(OUTPUT_OPTION) | |
672 | ||
a590e8e7 | 673 | ./getcwd.o: $(srcdir)/getcwd.c stamp-h |
46a10049 DD |
674 | if [ x"$(PICFLAG)" != x ]; then \ |
675 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getcwd.c -o pic/$@; \ | |
676 | else true; fi | |
677 | $(COMPILE.c) $(srcdir)/getcwd.c $(OUTPUT_OPTION) | |
37254c9a | 678 | |
a590e8e7 | 679 | ./getopt.o: $(srcdir)/getopt.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h |
46a10049 DD |
680 | if [ x"$(PICFLAG)" != x ]; then \ |
681 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt.c -o pic/$@; \ | |
682 | else true; fi | |
683 | $(COMPILE.c) $(srcdir)/getopt.c $(OUTPUT_OPTION) | |
37254c9a | 684 | |
a590e8e7 | 685 | ./getopt1.o: $(srcdir)/getopt1.c stamp-h $(INCDIR)/getopt.h |
46a10049 DD |
686 | if [ x"$(PICFLAG)" != x ]; then \ |
687 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt1.c -o pic/$@; \ | |
688 | else true; fi | |
689 | $(COMPILE.c) $(srcdir)/getopt1.c $(OUTPUT_OPTION) | |
37254c9a | 690 | |
a590e8e7 | 691 | ./getpagesize.o: $(srcdir)/getpagesize.c stamp-h |
46a10049 DD |
692 | if [ x"$(PICFLAG)" != x ]; then \ |
693 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getpagesize.c -o pic/$@; \ | |
694 | else true; fi | |
695 | $(COMPILE.c) $(srcdir)/getpagesize.c $(OUTPUT_OPTION) | |
37254c9a | 696 | |
a590e8e7 | 697 | ./getpwd.o: $(srcdir)/getpwd.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
46a10049 DD |
698 | if [ x"$(PICFLAG)" != x ]; then \ |
699 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getpwd.c -o pic/$@; \ | |
700 | else true; fi | |
701 | $(COMPILE.c) $(srcdir)/getpwd.c $(OUTPUT_OPTION) | |
37254c9a | 702 | |
a590e8e7 | 703 | ./getruntime.o: $(srcdir)/getruntime.c stamp-h $(INCDIR)/ansidecl.h \ |
cc096b71 | 704 | $(INCDIR)/libiberty.h |
46a10049 DD |
705 | if [ x"$(PICFLAG)" != x ]; then \ |
706 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getruntime.c -o pic/$@; \ | |
707 | else true; fi | |
708 | $(COMPILE.c) $(srcdir)/getruntime.c $(OUTPUT_OPTION) | |
37254c9a | 709 | |
a590e8e7 | 710 | ./gettimeofday.o: $(srcdir)/gettimeofday.c stamp-h $(INCDIR)/ansidecl.h \ |
8ec32723 DD |
711 | $(INCDIR)/libiberty.h |
712 | if [ x"$(PICFLAG)" != x ]; then \ | |
713 | $(COMPILE.c) $(PICFLAG) $(srcdir)/gettimeofday.c -o pic/$@; \ | |
714 | else true; fi | |
715 | $(COMPILE.c) $(srcdir)/gettimeofday.c $(OUTPUT_OPTION) | |
716 | ||
a590e8e7 AO |
717 | ./hashtab.o: $(srcdir)/hashtab.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/hashtab.h \ |
718 | $(INCDIR)/libiberty.h | |
46a10049 DD |
719 | if [ x"$(PICFLAG)" != x ]; then \ |
720 | $(COMPILE.c) $(PICFLAG) $(srcdir)/hashtab.c -o pic/$@; \ | |
721 | else true; fi | |
722 | $(COMPILE.c) $(srcdir)/hashtab.c $(OUTPUT_OPTION) | |
37254c9a | 723 | |
a590e8e7 | 724 | ./hex.o: $(srcdir)/hex.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
70ecf948 | 725 | $(INCDIR)/safe-ctype.h |
46a10049 DD |
726 | if [ x"$(PICFLAG)" != x ]; then \ |
727 | $(COMPILE.c) $(PICFLAG) $(srcdir)/hex.c -o pic/$@; \ | |
728 | else true; fi | |
729 | $(COMPILE.c) $(srcdir)/hex.c $(OUTPUT_OPTION) | |
37254c9a | 730 | |
46a10049 DD |
731 | ./index.o: $(srcdir)/index.c |
732 | if [ x"$(PICFLAG)" != x ]; then \ | |
733 | $(COMPILE.c) $(PICFLAG) $(srcdir)/index.c -o pic/$@; \ | |
734 | else true; fi | |
735 | $(COMPILE.c) $(srcdir)/index.c $(OUTPUT_OPTION) | |
37254c9a | 736 | |
46a10049 DD |
737 | ./insque.o: $(srcdir)/insque.c |
738 | if [ x"$(PICFLAG)" != x ]; then \ | |
739 | $(COMPILE.c) $(PICFLAG) $(srcdir)/insque.c -o pic/$@; \ | |
740 | else true; fi | |
741 | $(COMPILE.c) $(srcdir)/insque.c $(OUTPUT_OPTION) | |
37254c9a | 742 | |
a590e8e7 | 743 | ./lbasename.o: $(srcdir)/lbasename.c stamp-h $(INCDIR)/ansidecl.h \ |
75919f94 DD |
744 | $(INCDIR)/filenames.h $(INCDIR)/libiberty.h \ |
745 | $(INCDIR)/safe-ctype.h | |
46a10049 DD |
746 | if [ x"$(PICFLAG)" != x ]; then \ |
747 | $(COMPILE.c) $(PICFLAG) $(srcdir)/lbasename.c -o pic/$@; \ | |
748 | else true; fi | |
749 | $(COMPILE.c) $(srcdir)/lbasename.c $(OUTPUT_OPTION) | |
37254c9a | 750 | |
a590e8e7 | 751 | ./lrealpath.o: $(srcdir)/lrealpath.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 752 | $(INCDIR)/libiberty.h |
46a10049 DD |
753 | if [ x"$(PICFLAG)" != x ]; then \ |
754 | $(COMPILE.c) $(PICFLAG) $(srcdir)/lrealpath.c -o pic/$@; \ | |
755 | else true; fi | |
756 | $(COMPILE.c) $(srcdir)/lrealpath.c $(OUTPUT_OPTION) | |
37254c9a | 757 | |
a590e8e7 | 758 | ./make-relative-prefix.o: $(srcdir)/make-relative-prefix.c stamp-h \ |
37254c9a | 759 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
46a10049 DD |
760 | if [ x"$(PICFLAG)" != x ]; then \ |
761 | $(COMPILE.c) $(PICFLAG) $(srcdir)/make-relative-prefix.c -o pic/$@; \ | |
762 | else true; fi | |
763 | $(COMPILE.c) $(srcdir)/make-relative-prefix.c $(OUTPUT_OPTION) | |
37254c9a | 764 | |
a590e8e7 | 765 | ./make-temp-file.o: $(srcdir)/make-temp-file.c stamp-h $(INCDIR)/ansidecl.h \ |
1ea16ec5 | 766 | $(INCDIR)/libiberty.h |
46a10049 DD |
767 | if [ x"$(PICFLAG)" != x ]; then \ |
768 | $(COMPILE.c) $(PICFLAG) $(srcdir)/make-temp-file.c -o pic/$@; \ | |
769 | else true; fi | |
770 | $(COMPILE.c) $(srcdir)/make-temp-file.c $(OUTPUT_OPTION) | |
37254c9a | 771 | |
a590e8e7 | 772 | ./md5.o: $(srcdir)/md5.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h |
46a10049 DD |
773 | if [ x"$(PICFLAG)" != x ]; then \ |
774 | $(COMPILE.c) $(PICFLAG) $(srcdir)/md5.c -o pic/$@; \ | |
775 | else true; fi | |
776 | $(COMPILE.c) $(srcdir)/md5.c $(OUTPUT_OPTION) | |
37254c9a | 777 | |
46a10049 DD |
778 | ./memchr.o: $(srcdir)/memchr.c $(INCDIR)/ansidecl.h |
779 | if [ x"$(PICFLAG)" != x ]; then \ | |
780 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memchr.c -o pic/$@; \ | |
781 | else true; fi | |
782 | $(COMPILE.c) $(srcdir)/memchr.c $(OUTPUT_OPTION) | |
37254c9a | 783 | |
46a10049 DD |
784 | ./memcmp.o: $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h |
785 | if [ x"$(PICFLAG)" != x ]; then \ | |
786 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memcmp.c -o pic/$@; \ | |
787 | else true; fi | |
788 | $(COMPILE.c) $(srcdir)/memcmp.c $(OUTPUT_OPTION) | |
37254c9a | 789 | |
46a10049 DD |
790 | ./memcpy.o: $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h |
791 | if [ x"$(PICFLAG)" != x ]; then \ | |
792 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memcpy.c -o pic/$@; \ | |
793 | else true; fi | |
794 | $(COMPILE.c) $(srcdir)/memcpy.c $(OUTPUT_OPTION) | |
37254c9a | 795 | |
46a10049 DD |
796 | ./memmove.o: $(srcdir)/memmove.c $(INCDIR)/ansidecl.h |
797 | if [ x"$(PICFLAG)" != x ]; then \ | |
798 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memmove.c -o pic/$@; \ | |
799 | else true; fi | |
800 | $(COMPILE.c) $(srcdir)/memmove.c $(OUTPUT_OPTION) | |
37254c9a | 801 | |
46a10049 DD |
802 | ./mempcpy.o: $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h |
803 | if [ x"$(PICFLAG)" != x ]; then \ | |
804 | $(COMPILE.c) $(PICFLAG) $(srcdir)/mempcpy.c -o pic/$@; \ | |
805 | else true; fi | |
806 | $(COMPILE.c) $(srcdir)/mempcpy.c $(OUTPUT_OPTION) | |
37254c9a | 807 | |
46a10049 DD |
808 | ./memset.o: $(srcdir)/memset.c $(INCDIR)/ansidecl.h |
809 | if [ x"$(PICFLAG)" != x ]; then \ | |
810 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memset.c -o pic/$@; \ | |
811 | else true; fi | |
812 | $(COMPILE.c) $(srcdir)/memset.c $(OUTPUT_OPTION) | |
37254c9a | 813 | |
a590e8e7 | 814 | ./mkstemps.o: $(srcdir)/mkstemps.c stamp-h $(INCDIR)/ansidecl.h |
46a10049 DD |
815 | if [ x"$(PICFLAG)" != x ]; then \ |
816 | $(COMPILE.c) $(PICFLAG) $(srcdir)/mkstemps.c -o pic/$@; \ | |
817 | else true; fi | |
818 | $(COMPILE.c) $(srcdir)/mkstemps.c $(OUTPUT_OPTION) | |
37254c9a | 819 | |
46a10049 DD |
820 | ./msdos.o: $(srcdir)/msdos.c |
821 | if [ x"$(PICFLAG)" != x ]; then \ | |
822 | $(COMPILE.c) $(PICFLAG) $(srcdir)/msdos.c -o pic/$@; \ | |
823 | else true; fi | |
824 | $(COMPILE.c) $(srcdir)/msdos.c $(OUTPUT_OPTION) | |
37254c9a | 825 | |
a590e8e7 | 826 | ./objalloc.o: $(srcdir)/objalloc.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 827 | $(INCDIR)/objalloc.h |
46a10049 DD |
828 | if [ x"$(PICFLAG)" != x ]; then \ |
829 | $(COMPILE.c) $(PICFLAG) $(srcdir)/objalloc.c -o pic/$@; \ | |
830 | else true; fi | |
831 | $(COMPILE.c) $(srcdir)/objalloc.c $(OUTPUT_OPTION) | |
37254c9a | 832 | |
a590e8e7 | 833 | ./obstack.o: $(srcdir)/obstack.c stamp-h $(INCDIR)/obstack.h |
46a10049 DD |
834 | if [ x"$(PICFLAG)" != x ]; then \ |
835 | $(COMPILE.c) $(PICFLAG) $(srcdir)/obstack.c -o pic/$@; \ | |
836 | else true; fi | |
837 | $(COMPILE.c) $(srcdir)/obstack.c $(OUTPUT_OPTION) | |
37254c9a | 838 | |
a590e8e7 | 839 | ./partition.o: $(srcdir)/partition.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 840 | $(INCDIR)/libiberty.h $(INCDIR)/partition.h |
46a10049 DD |
841 | if [ x"$(PICFLAG)" != x ]; then \ |
842 | $(COMPILE.c) $(PICFLAG) $(srcdir)/partition.c -o pic/$@; \ | |
843 | else true; fi | |
844 | $(COMPILE.c) $(srcdir)/partition.c $(OUTPUT_OPTION) | |
37254c9a | 845 | |
a590e8e7 | 846 | ./pex-common.o: $(srcdir)/pex-common.c stamp-h $(INCDIR)/ansidecl.h \ |
b109e79a ILT |
847 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
848 | if [ x"$(PICFLAG)" != x ]; then \ | |
849 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-common.c -o pic/$@; \ | |
850 | else true; fi | |
851 | $(COMPILE.c) $(srcdir)/pex-common.c $(OUTPUT_OPTION) | |
852 | ||
a590e8e7 | 853 | ./pex-djgpp.o: $(srcdir)/pex-djgpp.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 854 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
46a10049 DD |
855 | if [ x"$(PICFLAG)" != x ]; then \ |
856 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-djgpp.c -o pic/$@; \ | |
857 | else true; fi | |
858 | $(COMPILE.c) $(srcdir)/pex-djgpp.c $(OUTPUT_OPTION) | |
37254c9a | 859 | |
a590e8e7 | 860 | ./pex-msdos.o: $(srcdir)/pex-msdos.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a DD |
861 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \ |
862 | $(INCDIR)/safe-ctype.h | |
46a10049 DD |
863 | if [ x"$(PICFLAG)" != x ]; then \ |
864 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-msdos.c -o pic/$@; \ | |
865 | else true; fi | |
866 | $(COMPILE.c) $(srcdir)/pex-msdos.c $(OUTPUT_OPTION) | |
37254c9a | 867 | |
a590e8e7 | 868 | ./pex-one.o: $(srcdir)/pex-one.c stamp-h $(INCDIR)/ansidecl.h \ |
b109e79a ILT |
869 | $(INCDIR)/libiberty.h |
870 | if [ x"$(PICFLAG)" != x ]; then \ | |
871 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-one.c -o pic/$@; \ | |
872 | else true; fi | |
873 | $(COMPILE.c) $(srcdir)/pex-one.c $(OUTPUT_OPTION) | |
874 | ||
a590e8e7 | 875 | ./pex-unix.o: $(srcdir)/pex-unix.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 876 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
46a10049 DD |
877 | if [ x"$(PICFLAG)" != x ]; then \ |
878 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-unix.c -o pic/$@; \ | |
879 | else true; fi | |
880 | $(COMPILE.c) $(srcdir)/pex-unix.c $(OUTPUT_OPTION) | |
37254c9a | 881 | |
a590e8e7 | 882 | ./pex-win32.o: $(srcdir)/pex-win32.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 883 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
46a10049 DD |
884 | if [ x"$(PICFLAG)" != x ]; then \ |
885 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-win32.c -o pic/$@; \ | |
886 | else true; fi | |
887 | $(COMPILE.c) $(srcdir)/pex-win32.c $(OUTPUT_OPTION) | |
37254c9a | 888 | |
a590e8e7 | 889 | ./pexecute.o: $(srcdir)/pexecute.c stamp-h $(INCDIR)/ansidecl.h \ |
b109e79a ILT |
890 | $(INCDIR)/libiberty.h |
891 | if [ x"$(PICFLAG)" != x ]; then \ | |
892 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pexecute.c -o pic/$@; \ | |
893 | else true; fi | |
894 | $(COMPILE.c) $(srcdir)/pexecute.c $(OUTPUT_OPTION) | |
895 | ||
a590e8e7 | 896 | ./physmem.o: $(srcdir)/physmem.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 897 | $(INCDIR)/libiberty.h |
46a10049 DD |
898 | if [ x"$(PICFLAG)" != x ]; then \ |
899 | $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \ | |
900 | else true; fi | |
901 | $(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION) | |
37254c9a | 902 | |
a590e8e7 | 903 | ./putenv.o: $(srcdir)/putenv.c stamp-h $(INCDIR)/ansidecl.h |
46a10049 DD |
904 | if [ x"$(PICFLAG)" != x ]; then \ |
905 | $(COMPILE.c) $(PICFLAG) $(srcdir)/putenv.c -o pic/$@; \ | |
906 | else true; fi | |
907 | $(COMPILE.c) $(srcdir)/putenv.c $(OUTPUT_OPTION) | |
37254c9a | 908 | |
46a10049 DD |
909 | ./random.o: $(srcdir)/random.c $(INCDIR)/ansidecl.h |
910 | if [ x"$(PICFLAG)" != x ]; then \ | |
911 | $(COMPILE.c) $(PICFLAG) $(srcdir)/random.c -o pic/$@; \ | |
912 | else true; fi | |
913 | $(COMPILE.c) $(srcdir)/random.c $(OUTPUT_OPTION) | |
37254c9a | 914 | |
a590e8e7 | 915 | ./regex.o: $(srcdir)/regex.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/xregex.h \ |
e0c148a7 | 916 | $(INCDIR)/xregex2.h |
46a10049 DD |
917 | if [ x"$(PICFLAG)" != x ]; then \ |
918 | $(COMPILE.c) $(PICFLAG) $(srcdir)/regex.c -o pic/$@; \ | |
919 | else true; fi | |
920 | $(COMPILE.c) $(srcdir)/regex.c $(OUTPUT_OPTION) | |
37254c9a | 921 | |
a590e8e7 | 922 | ./rename.o: $(srcdir)/rename.c stamp-h $(INCDIR)/ansidecl.h |
46a10049 DD |
923 | if [ x"$(PICFLAG)" != x ]; then \ |
924 | $(COMPILE.c) $(PICFLAG) $(srcdir)/rename.c -o pic/$@; \ | |
925 | else true; fi | |
926 | $(COMPILE.c) $(srcdir)/rename.c $(OUTPUT_OPTION) | |
37254c9a | 927 | |
46a10049 DD |
928 | ./rindex.o: $(srcdir)/rindex.c |
929 | if [ x"$(PICFLAG)" != x ]; then \ | |
930 | $(COMPILE.c) $(PICFLAG) $(srcdir)/rindex.c -o pic/$@; \ | |
931 | else true; fi | |
932 | $(COMPILE.c) $(srcdir)/rindex.c $(OUTPUT_OPTION) | |
37254c9a | 933 | |
46a10049 | 934 | ./safe-ctype.o: $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \ |
37254c9a | 935 | $(INCDIR)/safe-ctype.h |
46a10049 DD |
936 | if [ x"$(PICFLAG)" != x ]; then \ |
937 | $(COMPILE.c) $(PICFLAG) $(srcdir)/safe-ctype.c -o pic/$@; \ | |
938 | else true; fi | |
939 | $(COMPILE.c) $(srcdir)/safe-ctype.c $(OUTPUT_OPTION) | |
37254c9a | 940 | |
a590e8e7 | 941 | ./setenv.o: $(srcdir)/setenv.c stamp-h $(INCDIR)/ansidecl.h |
46a10049 DD |
942 | if [ x"$(PICFLAG)" != x ]; then \ |
943 | $(COMPILE.c) $(PICFLAG) $(srcdir)/setenv.c -o pic/$@; \ | |
944 | else true; fi | |
945 | $(COMPILE.c) $(srcdir)/setenv.c $(OUTPUT_OPTION) | |
37254c9a | 946 | |
46a10049 DD |
947 | ./sigsetmask.o: $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h |
948 | if [ x"$(PICFLAG)" != x ]; then \ | |
949 | $(COMPILE.c) $(PICFLAG) $(srcdir)/sigsetmask.c -o pic/$@; \ | |
950 | else true; fi | |
951 | $(COMPILE.c) $(srcdir)/sigsetmask.c $(OUTPUT_OPTION) | |
37254c9a | 952 | |
46a10049 DD |
953 | ./snprintf.o: $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h |
954 | if [ x"$(PICFLAG)" != x ]; then \ | |
955 | $(COMPILE.c) $(PICFLAG) $(srcdir)/snprintf.c -o pic/$@; \ | |
956 | else true; fi | |
957 | $(COMPILE.c) $(srcdir)/snprintf.c $(OUTPUT_OPTION) | |
37254c9a | 958 | |
a590e8e7 | 959 | ./sort.o: $(srcdir)/sort.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
cc096b71 | 960 | $(INCDIR)/sort.h |
46a10049 DD |
961 | if [ x"$(PICFLAG)" != x ]; then \ |
962 | $(COMPILE.c) $(PICFLAG) $(srcdir)/sort.c -o pic/$@; \ | |
963 | else true; fi | |
964 | $(COMPILE.c) $(srcdir)/sort.c $(OUTPUT_OPTION) | |
37254c9a | 965 | |
a590e8e7 | 966 | ./spaces.o: $(srcdir)/spaces.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
46a10049 DD |
967 | if [ x"$(PICFLAG)" != x ]; then \ |
968 | $(COMPILE.c) $(PICFLAG) $(srcdir)/spaces.c -o pic/$@; \ | |
969 | else true; fi | |
970 | $(COMPILE.c) $(srcdir)/spaces.c $(OUTPUT_OPTION) | |
37254c9a | 971 | |
a590e8e7 | 972 | ./splay-tree.o: $(srcdir)/splay-tree.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 973 | $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h |
46a10049 DD |
974 | if [ x"$(PICFLAG)" != x ]; then \ |
975 | $(COMPILE.c) $(PICFLAG) $(srcdir)/splay-tree.c -o pic/$@; \ | |
976 | else true; fi | |
977 | $(COMPILE.c) $(srcdir)/splay-tree.c $(OUTPUT_OPTION) | |
37254c9a | 978 | |
46a10049 DD |
979 | ./stpcpy.o: $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h |
980 | if [ x"$(PICFLAG)" != x ]; then \ | |
981 | $(COMPILE.c) $(PICFLAG) $(srcdir)/stpcpy.c -o pic/$@; \ | |
982 | else true; fi | |
983 | $(COMPILE.c) $(srcdir)/stpcpy.c $(OUTPUT_OPTION) | |
37254c9a | 984 | |
46a10049 DD |
985 | ./stpncpy.o: $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h |
986 | if [ x"$(PICFLAG)" != x ]; then \ | |
987 | $(COMPILE.c) $(PICFLAG) $(srcdir)/stpncpy.c -o pic/$@; \ | |
988 | else true; fi | |
989 | $(COMPILE.c) $(srcdir)/stpncpy.c $(OUTPUT_OPTION) | |
37254c9a | 990 | |
46a10049 DD |
991 | ./strcasecmp.o: $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h |
992 | if [ x"$(PICFLAG)" != x ]; then \ | |
993 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strcasecmp.c -o pic/$@; \ | |
994 | else true; fi | |
995 | $(COMPILE.c) $(srcdir)/strcasecmp.c $(OUTPUT_OPTION) | |
37254c9a | 996 | |
46a10049 DD |
997 | ./strchr.o: $(srcdir)/strchr.c $(INCDIR)/ansidecl.h |
998 | if [ x"$(PICFLAG)" != x ]; then \ | |
999 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strchr.c -o pic/$@; \ | |
1000 | else true; fi | |
1001 | $(COMPILE.c) $(srcdir)/strchr.c $(OUTPUT_OPTION) | |
37254c9a | 1002 | |
46a10049 DD |
1003 | ./strdup.o: $(srcdir)/strdup.c $(INCDIR)/ansidecl.h |
1004 | if [ x"$(PICFLAG)" != x ]; then \ | |
1005 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strdup.c -o pic/$@; \ | |
1006 | else true; fi | |
1007 | $(COMPILE.c) $(srcdir)/strdup.c $(OUTPUT_OPTION) | |
37254c9a | 1008 | |
a590e8e7 | 1009 | ./strerror.o: $(srcdir)/strerror.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 1010 | $(INCDIR)/libiberty.h |
46a10049 DD |
1011 | if [ x"$(PICFLAG)" != x ]; then \ |
1012 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strerror.c -o pic/$@; \ | |
1013 | else true; fi | |
1014 | $(COMPILE.c) $(srcdir)/strerror.c $(OUTPUT_OPTION) | |
37254c9a | 1015 | |
46a10049 DD |
1016 | ./strncasecmp.o: $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h |
1017 | if [ x"$(PICFLAG)" != x ]; then \ | |
1018 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strncasecmp.c -o pic/$@; \ | |
1019 | else true; fi | |
1020 | $(COMPILE.c) $(srcdir)/strncasecmp.c $(OUTPUT_OPTION) | |
37254c9a | 1021 | |
46a10049 DD |
1022 | ./strncmp.o: $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h |
1023 | if [ x"$(PICFLAG)" != x ]; then \ | |
1024 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strncmp.c -o pic/$@; \ | |
1025 | else true; fi | |
1026 | $(COMPILE.c) $(srcdir)/strncmp.c $(OUTPUT_OPTION) | |
37254c9a | 1027 | |
0fad4bdb DD |
1028 | ./strndup.o: $(srcdir)/strndup.c $(INCDIR)/ansidecl.h |
1029 | if [ x"$(PICFLAG)" != x ]; then \ | |
1030 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strndup.c -o pic/$@; \ | |
1031 | else true; fi | |
1032 | $(COMPILE.c) $(srcdir)/strndup.c $(OUTPUT_OPTION) | |
1033 | ||
46a10049 DD |
1034 | ./strrchr.o: $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h |
1035 | if [ x"$(PICFLAG)" != x ]; then \ | |
1036 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strrchr.c -o pic/$@; \ | |
1037 | else true; fi | |
1038 | $(COMPILE.c) $(srcdir)/strrchr.c $(OUTPUT_OPTION) | |
37254c9a | 1039 | |
a590e8e7 | 1040 | ./strsignal.o: $(srcdir)/strsignal.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 1041 | $(INCDIR)/libiberty.h |
46a10049 DD |
1042 | if [ x"$(PICFLAG)" != x ]; then \ |
1043 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strsignal.c -o pic/$@; \ | |
1044 | else true; fi | |
1045 | $(COMPILE.c) $(srcdir)/strsignal.c $(OUTPUT_OPTION) | |
37254c9a | 1046 | |
46a10049 DD |
1047 | ./strstr.o: $(srcdir)/strstr.c |
1048 | if [ x"$(PICFLAG)" != x ]; then \ | |
1049 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strstr.c -o pic/$@; \ | |
1050 | else true; fi | |
1051 | $(COMPILE.c) $(srcdir)/strstr.c $(OUTPUT_OPTION) | |
37254c9a | 1052 | |
46a10049 DD |
1053 | ./strtod.o: $(srcdir)/strtod.c $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h |
1054 | if [ x"$(PICFLAG)" != x ]; then \ | |
1055 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strtod.c -o pic/$@; \ | |
1056 | else true; fi | |
1057 | $(COMPILE.c) $(srcdir)/strtod.c $(OUTPUT_OPTION) | |
37254c9a | 1058 | |
a590e8e7 | 1059 | ./strtol.o: $(srcdir)/strtol.c stamp-h $(INCDIR)/safe-ctype.h |
46a10049 DD |
1060 | if [ x"$(PICFLAG)" != x ]; then \ |
1061 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strtol.c -o pic/$@; \ | |
1062 | else true; fi | |
1063 | $(COMPILE.c) $(srcdir)/strtol.c $(OUTPUT_OPTION) | |
37254c9a | 1064 | |
a590e8e7 | 1065 | ./strtoul.o: $(srcdir)/strtoul.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 1066 | $(INCDIR)/safe-ctype.h |
46a10049 DD |
1067 | if [ x"$(PICFLAG)" != x ]; then \ |
1068 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoul.c -o pic/$@; \ | |
1069 | else true; fi | |
1070 | $(COMPILE.c) $(srcdir)/strtoul.c $(OUTPUT_OPTION) | |
37254c9a | 1071 | |
7b17bc29 MM |
1072 | ./strverscmp.o: $(srcdir)/strverscmp.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
1073 | $(INCDIR)/safe-ctype.h | |
67f3cb05 GK |
1074 | if [ x"$(PICFLAG)" != x ]; then \ |
1075 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strverscmp.c -o pic/$@; \ | |
1076 | else true; fi | |
1077 | $(COMPILE.c) $(srcdir)/strverscmp.c $(OUTPUT_OPTION) | |
1078 | ||
46a10049 DD |
1079 | ./tmpnam.o: $(srcdir)/tmpnam.c |
1080 | if [ x"$(PICFLAG)" != x ]; then \ | |
1081 | $(COMPILE.c) $(PICFLAG) $(srcdir)/tmpnam.c -o pic/$@; \ | |
1082 | else true; fi | |
1083 | $(COMPILE.c) $(srcdir)/tmpnam.c $(OUTPUT_OPTION) | |
37254c9a | 1084 | |
a590e8e7 | 1085 | ./unlink-if-ordinary.o: $(srcdir)/unlink-if-ordinary.c stamp-h \ |
8ec32723 | 1086 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
190eb137 DD |
1087 | if [ x"$(PICFLAG)" != x ]; then \ |
1088 | $(COMPILE.c) $(PICFLAG) $(srcdir)/unlink-if-ordinary.c -o pic/$@; \ | |
1089 | else true; fi | |
1090 | $(COMPILE.c) $(srcdir)/unlink-if-ordinary.c $(OUTPUT_OPTION) | |
1091 | ||
a590e8e7 | 1092 | ./vasprintf.o: $(srcdir)/vasprintf.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 1093 | $(INCDIR)/libiberty.h |
46a10049 DD |
1094 | if [ x"$(PICFLAG)" != x ]; then \ |
1095 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vasprintf.c -o pic/$@; \ | |
1096 | else true; fi | |
1097 | $(COMPILE.c) $(srcdir)/vasprintf.c $(OUTPUT_OPTION) | |
37254c9a | 1098 | |
46a10049 DD |
1099 | ./vfork.o: $(srcdir)/vfork.c $(INCDIR)/ansidecl.h |
1100 | if [ x"$(PICFLAG)" != x ]; then \ | |
1101 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vfork.c -o pic/$@; \ | |
1102 | else true; fi | |
1103 | $(COMPILE.c) $(srcdir)/vfork.c $(OUTPUT_OPTION) | |
37254c9a | 1104 | |
46a10049 DD |
1105 | ./vfprintf.o: $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h |
1106 | if [ x"$(PICFLAG)" != x ]; then \ | |
1107 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vfprintf.c -o pic/$@; \ | |
1108 | else true; fi | |
1109 | $(COMPILE.c) $(srcdir)/vfprintf.c $(OUTPUT_OPTION) | |
37254c9a | 1110 | |
46a10049 DD |
1111 | ./vprintf.o: $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h |
1112 | if [ x"$(PICFLAG)" != x ]; then \ | |
1113 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf.c -o pic/$@; \ | |
1114 | else true; fi | |
1115 | $(COMPILE.c) $(srcdir)/vprintf.c $(OUTPUT_OPTION) | |
37254c9a | 1116 | |
a590e8e7 | 1117 | ./vsnprintf.o: $(srcdir)/vsnprintf.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 1118 | $(INCDIR)/libiberty.h |
46a10049 DD |
1119 | if [ x"$(PICFLAG)" != x ]; then \ |
1120 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vsnprintf.c -o pic/$@; \ | |
1121 | else true; fi | |
1122 | $(COMPILE.c) $(srcdir)/vsnprintf.c $(OUTPUT_OPTION) | |
37254c9a | 1123 | |
46a10049 DD |
1124 | ./vsprintf.o: $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h |
1125 | if [ x"$(PICFLAG)" != x ]; then \ | |
1126 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vsprintf.c -o pic/$@; \ | |
1127 | else true; fi | |
1128 | $(COMPILE.c) $(srcdir)/vsprintf.c $(OUTPUT_OPTION) | |
37254c9a | 1129 | |
a590e8e7 | 1130 | ./waitpid.o: $(srcdir)/waitpid.c stamp-h $(INCDIR)/ansidecl.h |
46a10049 DD |
1131 | if [ x"$(PICFLAG)" != x ]; then \ |
1132 | $(COMPILE.c) $(PICFLAG) $(srcdir)/waitpid.c -o pic/$@; \ | |
1133 | else true; fi | |
1134 | $(COMPILE.c) $(srcdir)/waitpid.c $(OUTPUT_OPTION) | |
37254c9a | 1135 | |
a590e8e7 | 1136 | ./xatexit.o: $(srcdir)/xatexit.c stamp-h $(INCDIR)/ansidecl.h \ |
75919f94 | 1137 | $(INCDIR)/libiberty.h |
46a10049 DD |
1138 | if [ x"$(PICFLAG)" != x ]; then \ |
1139 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xatexit.c -o pic/$@; \ | |
1140 | else true; fi | |
1141 | $(COMPILE.c) $(srcdir)/xatexit.c $(OUTPUT_OPTION) | |
37254c9a | 1142 | |
a590e8e7 | 1143 | ./xexit.o: $(srcdir)/xexit.c stamp-h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
46a10049 DD |
1144 | if [ x"$(PICFLAG)" != x ]; then \ |
1145 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xexit.c -o pic/$@; \ | |
1146 | else true; fi | |
1147 | $(COMPILE.c) $(srcdir)/xexit.c $(OUTPUT_OPTION) | |
37254c9a | 1148 | |
a590e8e7 | 1149 | ./xmalloc.o: $(srcdir)/xmalloc.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 1150 | $(INCDIR)/libiberty.h |
46a10049 DD |
1151 | if [ x"$(PICFLAG)" != x ]; then \ |
1152 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xmalloc.c -o pic/$@; \ | |
1153 | else true; fi | |
1154 | $(COMPILE.c) $(srcdir)/xmalloc.c $(OUTPUT_OPTION) | |
37254c9a | 1155 | |
a590e8e7 | 1156 | ./xmemdup.o: $(srcdir)/xmemdup.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 1157 | $(INCDIR)/libiberty.h |
46a10049 DD |
1158 | if [ x"$(PICFLAG)" != x ]; then \ |
1159 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xmemdup.c -o pic/$@; \ | |
1160 | else true; fi | |
1161 | $(COMPILE.c) $(srcdir)/xmemdup.c $(OUTPUT_OPTION) | |
37254c9a | 1162 | |
a590e8e7 | 1163 | ./xstrdup.o: $(srcdir)/xstrdup.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 1164 | $(INCDIR)/libiberty.h |
46a10049 DD |
1165 | if [ x"$(PICFLAG)" != x ]; then \ |
1166 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/$@; \ | |
1167 | else true; fi | |
1168 | $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION) | |
37254c9a | 1169 | |
a590e8e7 | 1170 | ./xstrerror.o: $(srcdir)/xstrerror.c stamp-h $(INCDIR)/ansidecl.h \ |
37254c9a | 1171 | $(INCDIR)/libiberty.h |
46a10049 DD |
1172 | if [ x"$(PICFLAG)" != x ]; then \ |
1173 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrerror.c -o pic/$@; \ | |
1174 | else true; fi | |
1175 | $(COMPILE.c) $(srcdir)/xstrerror.c $(OUTPUT_OPTION) | |
37254c9a | 1176 | |
a590e8e7 | 1177 | ./xstrndup.o: $(srcdir)/xstrndup.c stamp-h $(INCDIR)/ansidecl.h \ |
0fad4bdb DD |
1178 | $(INCDIR)/libiberty.h |
1179 | if [ x"$(PICFLAG)" != x ]; then \ | |
1180 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrndup.c -o pic/$@; \ | |
1181 | else true; fi | |
1182 | $(COMPILE.c) $(srcdir)/xstrndup.c $(OUTPUT_OPTION) | |
1183 |