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