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