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