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