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