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