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