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