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