]>
Commit | Line | Data |
---|---|---|
f4f29b59 BE |
1 | # Makefile for the libiberty library. |
2 | # Originally written by K. Richard Pixley <rich@cygnus.com>. | |
6599da04 | 3 | # |
7adcbafe | 4 | # Copyright (C) 1990-2022 Free Software Foundation, Inc. |
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, | |
ee58dffd NC |
19 | # write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, |
20 | # Boston, MA 02110-1301, USA. | |
6599da04 | 21 | |
d8c22ce7 | 22 | libiberty_topdir = @libiberty_topdir@ |
3affd5f0 | 23 | srcdir = @srcdir@ |
6599da04 | 24 | |
3affd5f0 | 25 | prefix = @prefix@ |
6599da04 | 26 | |
3affd5f0 JL |
27 | exec_prefix = @exec_prefix@ |
28 | bindir = @bindir@ | |
29 | libdir = @libdir@ | |
48d7db63 PE |
30 | includedir = @includedir@ |
31 | target_header_dir = @target_header_dir@ | |
c3e80a16 | 32 | dvidir = @dvidir@ |
16f60fcb | 33 | objext = @OBJEXT@ |
6599da04 | 34 | |
3affd5f0 | 35 | SHELL = @SHELL@ |
6599da04 JM |
36 | |
37 | # Multilib support variables. | |
38 | MULTISRCTOP = | |
39 | MULTIBUILDTOP = | |
40 | MULTIDIRS = | |
41 | MULTISUBDIR = | |
42 | MULTIDO = true | |
43 | MULTICLEAN = true | |
44 | ||
3affd5f0 JL |
45 | INSTALL = @INSTALL@ |
46 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
47 | INSTALL_DATA = @INSTALL_DATA@ | |
d8c22ce7 | 48 | mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs |
6599da04 | 49 | |
24f2cabb L |
50 | # Some compilers can't handle cc -c blah.c -o foo/blah.o. |
51 | OUTPUT_OPTION = @OUTPUT_OPTION@ | |
52 | ||
ab18659a | 53 | AR = @AR@ |
6599da04 JM |
54 | AR_FLAGS = rc |
55 | ||
3affd5f0 JL |
56 | CC = @CC@ |
57 | CFLAGS = @CFLAGS@ | |
b36c386c | 58 | CPPFLAGS = @CPPFLAGS@ |
ab18659a | 59 | RANLIB = @RANLIB@ |
aaa5f039 DD |
60 | MAKEINFO = @MAKEINFO@ |
61 | PERL = @PERL@ | |
6599da04 | 62 | |
c91c9c2e | 63 | PICFLAG = @PICFLAG@ |
4f148bbc | 64 | NOASANFLAG = @NOASANFLAG@ |
6599da04 JM |
65 | |
66 | MAKEOVERRIDES = | |
67 | ||
398b3deb DD |
68 | TARGETLIB = ./libiberty.a |
69 | TESTLIB = ./testlib.a | |
6599da04 | 70 | |
3affd5f0 | 71 | LIBOBJS = @LIBOBJS@ |
6599da04 JM |
72 | |
73 | # A configuration can specify extra .o files that should be included, | |
74 | # even if they are in libc. (Perhaps the libc version is buggy.) | |
75 | EXTRA_OFILES = | |
76 | ||
77 | # Flags to pass to a recursive make. | |
78 | FLAGS_TO_PASS = \ | |
79 | "AR=$(AR)" \ | |
80 | "AR_FLAGS=$(AR_FLAGS)" \ | |
81 | "CC=$(CC)" \ | |
82 | "CFLAGS=$(CFLAGS)" \ | |
b36c386c | 83 | "CPPFLAGS=$(CPPFLAGS)" \ |
90e5b39f | 84 | "DESTDIR=$(DESTDIR)" \ |
6599da04 JM |
85 | "EXTRA_OFILES=$(EXTRA_OFILES)" \ |
86 | "HDEFINES=$(HDEFINES)" \ | |
87 | "INSTALL=$(INSTALL)" \ | |
88 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
89 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
90 | "LDFLAGS=$(LDFLAGS)" \ | |
91 | "LOADLIBES=$(LOADLIBES)" \ | |
6599da04 | 92 | "RANLIB=$(RANLIB)" \ |
76632dd0 DJ |
93 | "SHELL=$(SHELL)" \ |
94 | "prefix=$(prefix)" \ | |
95 | "exec_prefix=$(exec_prefix)" \ | |
96 | "libdir=$(libdir)" \ | |
97 | "libsubdir=$(libsubdir)" \ | |
98 | "tooldir=$(tooldir)" | |
6599da04 | 99 | |
2c375143 NS |
100 | # Subdirectories to recurse into. We need to override this during cleaning |
101 | SUBDIRS = testsuite | |
102 | ||
aaa5f039 | 103 | # FIXME: add @BUILD_INFO@ once we're sure it works for everyone. |
4f148bbc | 104 | all: stamp-picdir stamp-noasandir $(TARGETLIB) required-list all-subdir |
ef74edbd | 105 | @: $(MAKE) ; $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all |
6599da04 JM |
106 | |
107 | .PHONY: check installcheck | |
7c72138a TT |
108 | check: check-subdir |
109 | installcheck: installcheck-subdir | |
6599da04 | 110 | |
3affd5f0 | 111 | @host_makefile_frag@ |
6599da04 JM |
112 | |
113 | INCDIR=$(srcdir)/$(MULTISRCTOP)../include | |
114 | ||
f50f17e6 | 115 | COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -I. -I$(INCDIR) \ |
8fc8bf80 L |
116 | $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \ |
117 | @CET_HOST_FLAGS@ | |
398b3deb DD |
118 | |
119 | # Just to make sure we don't use a built-in rule with VPATH | |
16f60fcb | 120 | .c.$(objext): |
398b3deb | 121 | false |
6599da04 | 122 | |
6599da04 | 123 | # NOTE: If you add new files to the library, add them to this list |
24f2cabb L |
124 | # (alphabetical), and add them to REQUIRED_OFILES, or |
125 | # CONFIGURED_OFILES and funcs in configure.ac. Also run "make maint-deps" | |
126 | # to build the new rules. | |
9ce3f7e5 | 127 | CFILES = alloca.c argv.c asprintf.c atexit.c \ |
aec24341 | 128 | basename.c bcmp.c bcopy.c bsearch.c bsearch_r.c bzero.c \ |
9ce3f7e5 | 129 | calloc.c choose-temp.c clock.c concat.c cp-demangle.c \ |
b524249c | 130 | cp-demint.c cplus-dem.c crc32.c \ |
43b1b9ed | 131 | d-demangle.c dwarfnames.c dyn-string.c \ |
8f88e7f6 | 132 | fdmatch.c ffs.c fibheap.c filedescriptor.c filename_cmp.c floatformat.c \ |
cde515d9 | 133 | fnmatch.c fopen_unlocked.c \ |
9ce3f7e5 | 134 | getcwd.c getopt.c getopt1.c getpagesize.c getpwd.c getruntime.c \ |
17049f0b | 135 | gettimeofday.c \ |
9ce3f7e5 DD |
136 | hashtab.c hex.c \ |
137 | index.c insque.c \ | |
138 | lbasename.c \ | |
4876b2b4 | 139 | lrealpath.c \ |
42766f8d | 140 | make-relative-prefix.c \ |
5fbd9447 ILT |
141 | make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmem.c \ |
142 | memmove.c mempcpy.c memset.c mkstemps.c \ | |
9ce3f7e5 | 143 | objalloc.c obstack.c \ |
a584cf65 ILT |
144 | partition.c pexecute.c \ |
145 | pex-common.c pex-djgpp.c pex-msdos.c pex-one.c \ | |
55d0e5e0 | 146 | pex-unix.c pex-win32.c \ |
a354191e | 147 | physmem.c putenv.c \ |
9ce3f7e5 | 148 | random.c regex.c rename.c rindex.c \ |
10d48c59 | 149 | rust-demangle.c \ |
6e9bd0f8 | 150 | safe-ctype.c setenv.c setproctitle.c sha1.c sigsetmask.c \ |
1cfabf34 | 151 | simple-object.c simple-object-coff.c simple-object-elf.c \ |
a9b01f00 | 152 | simple-object-mach-o.c simple-object-xcoff.c \ |
6e9bd0f8 | 153 | snprintf.c sort.c \ |
d423df48 JJ |
154 | spaces.c splay-tree.c stack-limit.c stpcpy.c stpncpy.c \ |
155 | strcasecmp.c strchr.c strdup.c strerror.c strncasecmp.c \ | |
156 | strncmp.c strrchr.c strsignal.c strstr.c strtod.c strtol.c \ | |
ea41822a YG |
157 | strtoll.c strtoul.c strtoull.c strndup.c strnlen.c \ |
158 | strverscmp.c timeval-utils.c tmpnam.c \ | |
c363985d | 159 | unlink-if-ordinary.c \ |
01ca36af UB |
160 | vasprintf.c vfork.c vfprintf.c vprintf.c vprintf-support.c \ |
161 | vsnprintf.c vsprintf.c \ | |
9ce3f7e5 | 162 | waitpid.c \ |
e8850918 UB |
163 | xasprintf.c xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c \ |
164 | xstrerror.c xstrndup.c xvasprintf.c | |
9ce3f7e5 DD |
165 | |
166 | # These are always included in the library. The first four are listed | |
167 | # first and by compile time to optimize parallel builds. | |
598848e4 | 168 | REQUIRED_OFILES = \ |
16f60fcb TG |
169 | ./regex.$(objext) ./cplus-dem.$(objext) ./cp-demangle.$(objext) \ |
170 | ./md5.$(objext) ./sha1.$(objext) ./alloca.$(objext) \ | |
171 | ./argv.$(objext) \ | |
aec24341 | 172 | ./bsearch_r.$(objext) \ |
16f60fcb | 173 | ./choose-temp.$(objext) ./concat.$(objext) \ |
43b1b9ed | 174 | ./cp-demint.$(objext) ./crc32.$(objext) ./d-demangle.$(objext) \ |
11ec770e | 175 | ./dwarfnames.$(objext) ./dyn-string.$(objext) \ |
16f60fcb | 176 | ./fdmatch.$(objext) ./fibheap.$(objext) \ |
8f88e7f6 | 177 | ./filedescriptor.$(objext) \ |
16f60fcb TG |
178 | ./filename_cmp.$(objext) ./floatformat.$(objext) \ |
179 | ./fnmatch.$(objext) ./fopen_unlocked.$(objext) \ | |
180 | ./getopt.$(objext) ./getopt1.$(objext) ./getpwd.$(objext) \ | |
181 | ./getruntime.$(objext) ./hashtab.$(objext) ./hex.$(objext) \ | |
182 | ./lbasename.$(objext) ./lrealpath.$(objext) \ | |
183 | ./make-relative-prefix.$(objext) ./make-temp-file.$(objext) \ | |
1cfabf34 ILT |
184 | ./objalloc.$(objext) \ |
185 | ./obstack.$(objext) \ | |
16f60fcb TG |
186 | ./partition.$(objext) ./pexecute.$(objext) ./physmem.$(objext) \ |
187 | ./pex-common.$(objext) ./pex-one.$(objext) \ | |
01ca36af | 188 | ./@pexecute@.$(objext) ./vprintf-support.$(objext) \ |
10d48c59 | 189 | ./rust-demangle.$(objext) \ |
1cfabf34 ILT |
190 | ./safe-ctype.$(objext) \ |
191 | ./simple-object.$(objext) ./simple-object-coff.$(objext) \ | |
192 | ./simple-object-elf.$(objext) ./simple-object-mach-o.$(objext) \ | |
a9b01f00 | 193 | ./simple-object-xcoff.$(objext) \ |
1cfabf34 | 194 | ./sort.$(objext) ./spaces.$(objext) \ |
d423df48 | 195 | ./splay-tree.$(objext) ./stack-limit.$(objext) \ |
4092fb6e DE |
196 | ./strerror.$(objext) ./strsignal.$(objext) \ |
197 | ./timeval-utils.$(objext) ./unlink-if-ordinary.$(objext) \ | |
e8850918 UB |
198 | ./xasprintf.$(objext) ./xatexit.$(objext) ./xexit.$(objext) \ |
199 | ./xmalloc.$(objext) ./xmemdup.$(objext) ./xstrdup.$(objext) \ | |
200 | ./xstrerror.$(objext) ./xstrndup.$(objext) \ | |
201 | ./xvasprintf.$(objext) | |
b548dffb | 202 | |
aaa5f039 | 203 | # These are all the objects that configure may add to the library via |
9ce3f7e5 DD |
204 | # $funcs or EXTRA_OFILES. This list exists here only for "make |
205 | # maint-missing" and "make check". | |
16f60fcb TG |
206 | CONFIGURED_OFILES = ./asprintf.$(objext) ./atexit.$(objext) \ |
207 | ./basename.$(objext) ./bcmp.$(objext) ./bcopy.$(objext) \ | |
208 | ./bsearch.$(objext) ./bzero.$(objext) \ | |
209 | ./calloc.$(objext) ./clock.$(objext) ./copysign.$(objext) \ | |
210 | ./_doprnt.$(objext) \ | |
211 | ./ffs.$(objext) \ | |
212 | ./getcwd.$(objext) ./getpagesize.$(objext) \ | |
213 | ./gettimeofday.$(objext) \ | |
214 | ./index.$(objext) ./insque.$(objext) \ | |
215 | ./memchr.$(objext) ./memcmp.$(objext) ./memcpy.$(objext) \ | |
216 | ./memmem.$(objext) ./memmove.$(objext) \ | |
217 | ./mempcpy.$(objext) ./memset.$(objext) ./mkstemps.$(objext) \ | |
218 | ./pex-djgpp.$(objext) ./pex-msdos.$(objext) \ | |
219 | ./pex-unix.$(objext) ./pex-win32.$(objext) \ | |
220 | ./putenv.$(objext) \ | |
221 | ./random.$(objext) ./rename.$(objext) ./rindex.$(objext) \ | |
6e9bd0f8 AK |
222 | ./setenv.$(objext) \ |
223 | ./setproctitle.$(objext) \ | |
224 | ./sigsetmask.$(objext) ./snprintf.$(objext) \ | |
16f60fcb TG |
225 | ./stpcpy.$(objext) ./stpncpy.$(objext) ./strcasecmp.$(objext) \ |
226 | ./strchr.$(objext) ./strdup.$(objext) ./strncasecmp.$(objext) \ | |
9a9baa52 ILT |
227 | ./strncmp.$(objext) ./strndup.$(objext) ./strnlen.$(objext) \ |
228 | ./strrchr.$(objext) ./strstr.$(objext) ./strtod.$(objext) \ | |
ea41822a YG |
229 | ./strtol.$(objext) ./strtoul.$(objext) strtoll.$(objext) \ |
230 | ./strtoull.$(objext) ./tmpnam.$(objext) ./strverscmp.$(objext) \ | |
16f60fcb TG |
231 | ./vasprintf.$(objext) ./vfork.$(objext) ./vfprintf.$(objext) \ |
232 | ./vprintf.$(objext) ./vsnprintf.$(objext) ./vsprintf.$(objext) \ | |
233 | ./waitpid.$(objext) | |
aaa5f039 | 234 | |
48d7db63 PE |
235 | # These files are installed if the library has been configured to do so. |
236 | INSTALLED_HEADERS = \ | |
237 | $(INCDIR)/ansidecl.h \ | |
238 | $(INCDIR)/demangle.h \ | |
239 | $(INCDIR)/dyn-string.h \ | |
240 | $(INCDIR)/fibheap.h \ | |
241 | $(INCDIR)/floatformat.h \ | |
242 | $(INCDIR)/hashtab.h \ | |
243 | $(INCDIR)/libiberty.h \ | |
244 | $(INCDIR)/objalloc.h \ | |
245 | $(INCDIR)/partition.h \ | |
246 | $(INCDIR)/safe-ctype.h \ | |
247 | $(INCDIR)/sort.h \ | |
4092fb6e DE |
248 | $(INCDIR)/splay-tree.h \ |
249 | $(INCDIR)/timeval-utils.h | |
48d7db63 | 250 | |
24f2cabb | 251 | $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
4f148bbc | 252 | -rm -f $(TARGETLIB) pic/$(TARGETLIB) noasan/$(TARGETLIB) |
24f2cabb L |
253 | $(AR) $(AR_FLAGS) $(TARGETLIB) \ |
254 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) | |
255 | $(RANLIB) $(TARGETLIB) | |
256 | if [ x"$(PICFLAG)" != x ]; then \ | |
257 | cd pic; \ | |
afb649d5 L |
258 | $(AR) $(AR_FLAGS) $(TARGETLIB) \ |
259 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ | |
260 | $(RANLIB) $(TARGETLIB); \ | |
261 | cd ..; \ | |
4f148bbc JJ |
262 | else true; fi; \ |
263 | if [ x"$(NOASANFLAG)" != x ]; then \ | |
264 | cd noasan; \ | |
265 | $(AR) $(AR_FLAGS) $(TARGETLIB) \ | |
266 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ | |
267 | $(RANLIB) $(TARGETLIB); \ | |
268 | cd ..; \ | |
afb649d5 | 269 | else true; fi |
6599da04 | 270 | |
24f2cabb L |
271 | $(TESTLIB): $(REQUIRED_OFILES) $(CONFIGURED_OFILES) |
272 | -rm -f $(TESTLIB) | |
273 | $(AR) $(AR_FLAGS) $(TESTLIB) \ | |
274 | $(REQUIRED_OFILES) $(CONFIGURED_OFILES) | |
275 | $(RANLIB) $(TESTLIB) | |
9ce3f7e5 | 276 | |
aaa5f039 DD |
277 | info: libiberty.info info-subdir |
278 | install-info: install-info-subdir | |
279 | clean-info: clean-info-subdir | |
c3e80a16 EG |
280 | |
281 | LIBIBERTY_DVIFILES = libiberty.dvi | |
282 | ||
283 | dvi: $(LIBIBERTY_DVIFILES) dvi-subdir | |
284 | ||
285 | .PHONY: install-dvi | |
286 | ||
287 | dvi__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | |
288 | ||
289 | install-dvi: $(LIBIBERTY_DVIFILES) | |
290 | @$(NORMAL_INSTALL) | |
291 | test -z "$(dvidir)" || $(mkinstalldirs) "$(DESTDIR)$(dvidir)" | |
292 | @list='$(LIBIBERTY_DVIFILES)'; for p in $$list; do \ | |
293 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | |
294 | f=$(dvi__strip_dir) \ | |
295 | echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(dvidir)/$$f'"; \ | |
296 | $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(dvidir)/$$f"; \ | |
297 | done | |
267686a7 BM |
298 | |
299 | LIBIBERTY_PDFFILES = libiberty.pdf | |
300 | ||
301 | pdf: $(LIBIBERTY_PDFFILES) pdf-subdir | |
302 | ||
303 | .PHONY: install-pdf | |
304 | ||
305 | pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | |
306 | ||
307 | install-pdf: $(LIBIBERTY_PDFFILES) | |
308 | @$(NORMAL_INSTALL) | |
309 | test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)" | |
310 | @list='$(LIBIBERTY_PDFFILES)'; for p in $$list; do \ | |
311 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | |
312 | f=$(pdf__strip_dir) \ | |
313 | echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \ | |
314 | $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \ | |
315 | done | |
cf61af07 CD |
316 | |
317 | # html, install-html targets | |
318 | HTMLS = libiberty.html | |
319 | ||
320 | html: $(HTMLS) | |
321 | ||
2eba9355 | 322 | .PHONY: install-html install-html-am |
cf61af07 CD |
323 | |
324 | NORMAL_INSTALL = : | |
325 | mkdir_p = mkdir -p -- | |
16f60fcb | 326 | |
cf61af07 CD |
327 | html__strip_dir = `echo $$p | sed -e 's|^.*/||'`; |
328 | ||
2eba9355 | 329 | install-html: install-html-am |
cf61af07 CD |
330 | |
331 | install-html-am: $(HTMLS) | |
332 | @$(NORMAL_INSTALL) | |
333 | test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)" | |
334 | @list='$(HTMLS)'; for p in $$list; do \ | |
335 | if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \ | |
336 | f=$(html__strip_dir) \ | |
337 | if test -d "$$d$$p"; then \ | |
338 | echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \ | |
339 | $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ | |
340 | echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \ | |
341 | $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \ | |
342 | else \ | |
343 | echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \ | |
344 | $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \ | |
345 | fi; \ | |
346 | done | |
347 | ||
aaa5f039 DD |
348 | TEXISRC = \ |
349 | $(srcdir)/libiberty.texi \ | |
350 | $(srcdir)/copying-lib.texi \ | |
351 | $(srcdir)/obstacks.texi \ | |
352 | $(srcdir)/functions.texi | |
353 | ||
354 | # Additional files that have texi snippets that need to be collected | |
aac04c15 DD |
355 | # and sorted. Some are here because the sources are imported from |
356 | # elsewhere. Others represent headers in ../include. | |
1cfabf34 | 357 | TEXIFILES = fnmatch.txh pexecute.txh simple-object.txh |
aaa5f039 DD |
358 | |
359 | libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC) | |
360 | $(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi | |
361 | ||
362 | libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC) | |
363 | texi2dvi $(srcdir)/libiberty.texi | |
364 | ||
b5422ad7 BM |
365 | libiberty.pdf : $(srcdir)/libiberty.texi $(TEXISRC) |
366 | texi2pdf $(srcdir)/libiberty.texi | |
367 | ||
aaa5f039 | 368 | libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC) |
610784f0 | 369 | $(MAKEINFO) --no-split --html -I$(srcdir) -o $@ $< |
aaa5f039 DD |
370 | |
371 | @MAINT@$(srcdir)/functions.texi : stamp-functions | |
372 | @MAINT@ @true | |
373 | ||
83fbfe42 | 374 | @MAINT@stamp-functions : $(CFILES:%=$(srcdir)/%) $(TEXIFILES:%=$(srcdir)/%) $(srcdir)/gather-docs Makefile |
aaa5f039 DD |
375 | @MAINT@@HAVE_PERL@ $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES) |
376 | @MAINT@ echo stamp > stamp-functions | |
377 | ||
3affd5f0 | 378 | INSTALL_DEST = @INSTALL_DEST@ |
7c72138a | 379 | install: install_to_$(INSTALL_DEST) install-subdir |
455c8f48 RW |
380 | install-strip: install |
381 | ||
382 | .PHONY: install install-strip | |
6599da04 | 383 | |
5f81370d PB |
384 | # This is tricky. Even though CC in the Makefile contains |
385 | # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the | |
269f1d98 | 386 | # default multilib, so we have to take CFLAGS into account as well, |
5f81370d | 387 | # since it will be passed the multilib flags. |
269f1d98 | 388 | MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory` |
6599da04 | 389 | install_to_libdir: all |
48d7db63 | 390 | if test -n "${target_header_dir}"; then \ |
8c9fddf4 MB |
391 | ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR); \ |
392 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n; \ | |
393 | ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n ); \ | |
394 | mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB); \ | |
395 | case "${target_header_dir}" in \ | |
396 | /*) thd=${target_header_dir};; \ | |
397 | *) thd=${includedir}/${target_header_dir};; \ | |
398 | esac; \ | |
399 | ${mkinstalldirs} $(DESTDIR)$${thd}; \ | |
400 | for h in ${INSTALLED_HEADERS}; do \ | |
401 | ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \ | |
402 | done; \ | |
48d7db63 | 403 | fi |
6599da04 JM |
404 | @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install |
405 | ||
406 | install_to_tooldir: all | |
9f2e0608 AO |
407 | ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) |
408 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n | |
706601d9 | 409 | ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n; $(RANLIB) $(TARGETLIB)n ) |
9f2e0608 | 410 | mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB) |
6599da04 JM |
411 | @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install |
412 | ||
3affd5f0 JL |
413 | # required-list was used when building a shared bfd/opcodes/libiberty |
414 | # library. I don't know if it used by anything currently. | |
6599da04 JM |
415 | required-list: Makefile |
416 | echo $(REQUIRED_OFILES) > required-list | |
417 | ||
24f2cabb L |
418 | stamp-picdir: |
419 | if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \ | |
420 | mkdir pic; \ | |
421 | else true; fi | |
422 | touch stamp-picdir | |
423 | ||
4f148bbc JJ |
424 | stamp-noasandir: |
425 | if [ x"$(NOASANFLAG)" != x ] && [ ! -d noasan ]; then \ | |
426 | mkdir noasan; \ | |
427 | else true; fi | |
428 | touch stamp-noasandir | |
429 | ||
08585fba | 430 | .PHONY: all etags tags TAGS ls clean stage1 stage2 |
6599da04 | 431 | |
909b30a1 EG |
432 | ETAGS = @ETAGS@ |
433 | ||
08585fba | 434 | etags tags TAGS: etags-subdir |
909b30a1 | 435 | cd $(srcdir) && $(ETAGS) $(CFILES) |
6599da04 JM |
436 | |
437 | # The standalone demangler (c++filt) has been moved to binutils. | |
d5f4eddd JM |
438 | # But make this target work anyway for demangler hacking. |
439 | demangle: $(ALL) $(srcdir)/cp-demangle.c | |
6599da04 JM |
440 | @echo "The standalone demangler, now named c++filt, is now" |
441 | @echo "a part of binutils." | |
d5f4eddd JM |
442 | $(CC) @DEFS@ $(CFLAGS) $(CPPFLAGS) -I. -I$(INCDIR) $(HDEFINES) \ |
443 | $(srcdir)/cp-demangle.c -DSTANDALONE_DEMANGLER $(TARGETLIB) -o $@ | |
6599da04 JM |
444 | |
445 | ls: | |
b548dffb | 446 | @echo Makefile $(CFILES) |
6599da04 | 447 | |
aaa5f039 DD |
448 | # Various targets for maintainers. |
449 | ||
450 | maint-missing : | |
24f2cabb | 451 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_OFILES) $(CONFIGURED_OFILES) |
aaa5f039 | 452 | |
24f2cabb | 453 | maint-buildall : $(REQUIRED_OFILES) $(CONFIGURED_OFILES) |
aaa5f039 DD |
454 | @true |
455 | ||
aac04c15 DD |
456 | maint-undoc : $(srcdir)/functions.texi |
457 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc | |
458 | ||
9ce3f7e5 DD |
459 | maint-deps : |
460 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR) | |
461 | ||
6599da04 JM |
462 | # Need to deal with profiled libraries, too. |
463 | ||
2c375143 NS |
464 | # Cleaning has to be done carefully to ensure that we don't clean our SUBDIRS |
465 | # multiple times, hence our explicit recursion with an empty SUBDIRS. | |
7c72138a | 466 | mostlyclean: mostlyclean-subdir |
4f148bbc | 467 | -rm -rf *.$(objext) pic noasan core errs \#* *.E a.out |
ae2040df | 468 | -rm -f errors dummy config.h stamp-* |
4f148bbc | 469 | -rm -f $(CONFIG_H) stamp-picdir stamp-noasandir |
aaa5f039 DD |
470 | -rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky |
471 | -rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg | |
472 | -rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr | |
473 | -rm -f libtexi.stamp | |
6599da04 | 474 | @$(MULTICLEAN) multi-clean DO=mostlyclean |
2c375143 NS |
475 | clean: clean-subdir |
476 | $(MAKE) SUBDIRS="" mostlyclean | |
5a2eb52b | 477 | -rm -f *.a required-list tmpmulti.out |
b5422ad7 | 478 | -rm -f libiberty.dvi libiberty.pdf libiberty.info* libiberty.html |
6599da04 | 479 | @$(MULTICLEAN) multi-clean DO=clean |
2c375143 NS |
480 | distclean: distclean-subdir |
481 | $(MAKE) SUBDIRS="" clean | |
6599da04 | 482 | @$(MULTICLEAN) multi-clean DO=distclean |
0046e342 | 483 | -rm -f *~ Makefile config.cache config.status xhost-mkfrag TAGS multilib.out |
5a2eb52b | 484 | -rm -f config.log |
b25a8973 | 485 | -rmdir testsuite 2>/dev/null |
2c375143 NS |
486 | maintainer-clean realclean: maintainer-clean-subdir |
487 | $(MAKE) SUBDIRS="" distclean | |
6599da04 JM |
488 | |
489 | force: | |
490 | ||
3affd5f0 JL |
491 | Makefile: $(srcdir)/Makefile.in config.status |
492 | CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status | |
493 | ||
97e620cf DD |
494 | # Depending on Makefile makes sure that config.status has been re-run |
495 | # if needed. This prevents problems with parallel builds. | |
3affd5f0 | 496 | config.h: stamp-h ; @true |
398b3deb DD |
497 | stamp-h: $(srcdir)/config.in config.status Makefile |
498 | CONFIG_FILES= CONFIG_HEADERS=config.h:$(srcdir)/config.in $(SHELL) ./config.status | |
3affd5f0 | 499 | |
769b009e | 500 | config.status: $(srcdir)/configure |
3affd5f0 | 501 | $(SHELL) ./config.status --recheck |
6599da04 | 502 | |
6efbd53f | 503 | AUTOCONF = autoconf |
470beb92 MF |
504 | ACLOCAL = aclocal |
505 | ACLOCAL_AMFLAGS = -I ../config -I .. | |
506 | aclocal_deps = \ | |
6efbd53f | 507 | $(srcdir)/../config/acx.m4 \ |
8fc8bf80 L |
508 | $(srcdir)/../config/cet.m4 \ |
509 | $(srcdir)/../config/enable.m4 \ | |
6efbd53f RW |
510 | $(srcdir)/../config/no-executables.m4 \ |
511 | $(srcdir)/../config/override.m4 \ | |
8f56cb51 | 512 | $(srcdir)/../config/picflag.m4 \ |
470beb92 MF |
513 | $(srcdir)/../config/warnings.m4 \ |
514 | $(srcdir)/acinclude.m4 | |
6efbd53f | 515 | |
470beb92 | 516 | $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/aclocal.m4 |
6efbd53f RW |
517 | cd $(srcdir) && $(AUTOCONF) |
518 | ||
470beb92 MF |
519 | $(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps) |
520 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |
521 | ||
f59a2f55 | 522 | # Depending on config.h makes sure that config.status has been re-run |
97e620cf DD |
523 | # if needed. This prevents problems with parallel builds, in case |
524 | # subdirectories need to run config.status also. | |
7c72138a | 525 | all-subdir check-subdir installcheck-subdir info-subdir \ |
b5422ad7 | 526 | install-info-subdir clean-info-subdir dvi-subdir pdf-subdir install-subdir \ |
7c72138a | 527 | etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \ |
f59a2f55 | 528 | maintainer-clean-subdir: config.h |
3b94497c | 529 | @subdirs='$(SUBDIRS)'; \ |
7277f72d | 530 | target=`echo $@ | sed -e 's/-subdir//'`; \ |
3b94497c | 531 | for dir in $$subdirs ; do \ |
4ce1921a | 532 | cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \ |
2c375143 | 533 | done |
7c72138a | 534 | |
4f148bbc JJ |
535 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir stamp-noasandir |
536 | $(CONFIGURED_OFILES): stamp-picdir stamp-noasandir | |
24f2cabb | 537 | |
17049f0b MM |
538 | # Don't export variables to the environment, in order to not confuse |
539 | # configure. | |
540 | .NOEXPORT: | |
541 | ||
9ce3f7e5 DD |
542 | # The dependencies in the remainder of this file are automatically |
543 | # generated by "make maint-deps". Manual edits will be lost. | |
7b195f77 | 544 | |
16f60fcb | 545 | ./_doprnt.$(objext): $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \ |
9ce3f7e5 | 546 | $(INCDIR)/safe-ctype.h |
24f2cabb L |
547 | if [ x"$(PICFLAG)" != x ]; then \ |
548 | $(COMPILE.c) $(PICFLAG) $(srcdir)/_doprnt.c -o pic/$@; \ | |
549 | else true; fi | |
4f148bbc JJ |
550 | if [ x"$(NOASANFLAG)" != x ]; then \ |
551 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/_doprnt.c -o noasan/$@; \ | |
552 | else true; fi | |
24f2cabb | 553 | $(COMPILE.c) $(srcdir)/_doprnt.c $(OUTPUT_OPTION) |
398b3deb | 554 | |
16f60fcb | 555 | ./alloca.$(objext): $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \ |
f59a2f55 | 556 | $(INCDIR)/libiberty.h |
24f2cabb L |
557 | if [ x"$(PICFLAG)" != x ]; then \ |
558 | $(COMPILE.c) $(PICFLAG) $(srcdir)/alloca.c -o pic/$@; \ | |
559 | else true; fi | |
4f148bbc JJ |
560 | if [ x"$(NOASANFLAG)" != x ]; then \ |
561 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/alloca.c -o noasan/$@; \ | |
562 | else true; fi | |
24f2cabb | 563 | $(COMPILE.c) $(srcdir)/alloca.c $(OUTPUT_OPTION) |
398b3deb | 564 | |
16f60fcb TG |
565 | ./argv.$(objext): $(srcdir)/argv.c config.h $(INCDIR)/ansidecl.h \ |
566 | $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h | |
24f2cabb L |
567 | if [ x"$(PICFLAG)" != x ]; then \ |
568 | $(COMPILE.c) $(PICFLAG) $(srcdir)/argv.c -o pic/$@; \ | |
569 | else true; fi | |
4f148bbc JJ |
570 | if [ x"$(NOASANFLAG)" != x ]; then \ |
571 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/argv.c -o noasan/$@; \ | |
572 | else true; fi | |
24f2cabb | 573 | $(COMPILE.c) $(srcdir)/argv.c $(OUTPUT_OPTION) |
398b3deb | 574 | |
16f60fcb | 575 | ./asprintf.$(objext): $(srcdir)/asprintf.c config.h $(INCDIR)/ansidecl.h \ |
bd7d50f8 | 576 | $(INCDIR)/libiberty.h |
24f2cabb L |
577 | if [ x"$(PICFLAG)" != x ]; then \ |
578 | $(COMPILE.c) $(PICFLAG) $(srcdir)/asprintf.c -o pic/$@; \ | |
579 | else true; fi | |
4f148bbc JJ |
580 | if [ x"$(NOASANFLAG)" != x ]; then \ |
581 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/asprintf.c -o noasan/$@; \ | |
582 | else true; fi | |
24f2cabb | 583 | $(COMPILE.c) $(srcdir)/asprintf.c $(OUTPUT_OPTION) |
398b3deb | 584 | |
16f60fcb | 585 | ./atexit.$(objext): $(srcdir)/atexit.c config.h |
24f2cabb L |
586 | if [ x"$(PICFLAG)" != x ]; then \ |
587 | $(COMPILE.c) $(PICFLAG) $(srcdir)/atexit.c -o pic/$@; \ | |
588 | else true; fi | |
4f148bbc JJ |
589 | if [ x"$(NOASANFLAG)" != x ]; then \ |
590 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/atexit.c -o noasan/$@; \ | |
591 | else true; fi | |
24f2cabb | 592 | $(COMPILE.c) $(srcdir)/atexit.c $(OUTPUT_OPTION) |
398b3deb | 593 | |
16f60fcb | 594 | ./basename.$(objext): $(srcdir)/basename.c config.h $(INCDIR)/ansidecl.h \ |
bd7d50f8 | 595 | $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h |
24f2cabb L |
596 | if [ x"$(PICFLAG)" != x ]; then \ |
597 | $(COMPILE.c) $(PICFLAG) $(srcdir)/basename.c -o pic/$@; \ | |
598 | else true; fi | |
4f148bbc JJ |
599 | if [ x"$(NOASANFLAG)" != x ]; then \ |
600 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/basename.c -o noasan/$@; \ | |
601 | else true; fi | |
24f2cabb | 602 | $(COMPILE.c) $(srcdir)/basename.c $(OUTPUT_OPTION) |
398b3deb | 603 | |
16f60fcb | 604 | ./bcmp.$(objext): $(srcdir)/bcmp.c |
24f2cabb L |
605 | if [ x"$(PICFLAG)" != x ]; then \ |
606 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bcmp.c -o pic/$@; \ | |
607 | else true; fi | |
4f148bbc JJ |
608 | if [ x"$(NOASANFLAG)" != x ]; then \ |
609 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/bcmp.c -o noasan/$@; \ | |
610 | else true; fi | |
24f2cabb | 611 | $(COMPILE.c) $(srcdir)/bcmp.c $(OUTPUT_OPTION) |
398b3deb | 612 | |
16f60fcb | 613 | ./bcopy.$(objext): $(srcdir)/bcopy.c |
24f2cabb L |
614 | if [ x"$(PICFLAG)" != x ]; then \ |
615 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bcopy.c -o pic/$@; \ | |
616 | else true; fi | |
4f148bbc JJ |
617 | if [ x"$(NOASANFLAG)" != x ]; then \ |
618 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/bcopy.c -o noasan/$@; \ | |
619 | else true; fi | |
24f2cabb | 620 | $(COMPILE.c) $(srcdir)/bcopy.c $(OUTPUT_OPTION) |
398b3deb | 621 | |
16f60fcb | 622 | ./bsearch.$(objext): $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h |
24f2cabb L |
623 | if [ x"$(PICFLAG)" != x ]; then \ |
624 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch.c -o pic/$@; \ | |
625 | else true; fi | |
4f148bbc JJ |
626 | if [ x"$(NOASANFLAG)" != x ]; then \ |
627 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/bsearch.c -o noasan/$@; \ | |
628 | else true; fi | |
24f2cabb | 629 | $(COMPILE.c) $(srcdir)/bsearch.c $(OUTPUT_OPTION) |
398b3deb | 630 | |
aec24341 NA |
631 | ./bsearch_r.$(objext): $(srcdir)/bsearch_r.c config.h $(INCDIR)/ansidecl.h |
632 | if [ x"$(PICFLAG)" != x ]; then \ | |
633 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch_r.c -o pic/$@; \ | |
634 | else true; fi | |
635 | if [ x"$(NOASANFLAG)" != x ]; then \ | |
636 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/bsearch_r.c -o noasan/$@; \ | |
637 | else true; fi | |
638 | $(COMPILE.c) $(srcdir)/bsearch_r.c $(OUTPUT_OPTION) | |
639 | ||
16f60fcb | 640 | ./bzero.$(objext): $(srcdir)/bzero.c |
24f2cabb L |
641 | if [ x"$(PICFLAG)" != x ]; then \ |
642 | $(COMPILE.c) $(PICFLAG) $(srcdir)/bzero.c -o pic/$@; \ | |
643 | else true; fi | |
4f148bbc JJ |
644 | if [ x"$(NOASANFLAG)" != x ]; then \ |
645 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/bzero.c -o noasan/$@; \ | |
646 | else true; fi | |
24f2cabb | 647 | $(COMPILE.c) $(srcdir)/bzero.c $(OUTPUT_OPTION) |
398b3deb | 648 | |
16f60fcb | 649 | ./calloc.$(objext): $(srcdir)/calloc.c $(INCDIR)/ansidecl.h |
24f2cabb L |
650 | if [ x"$(PICFLAG)" != x ]; then \ |
651 | $(COMPILE.c) $(PICFLAG) $(srcdir)/calloc.c -o pic/$@; \ | |
652 | else true; fi | |
4f148bbc JJ |
653 | if [ x"$(NOASANFLAG)" != x ]; then \ |
654 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/calloc.c -o noasan/$@; \ | |
655 | else true; fi | |
24f2cabb | 656 | $(COMPILE.c) $(srcdir)/calloc.c $(OUTPUT_OPTION) |
398b3deb | 657 | |
16f60fcb | 658 | ./choose-temp.$(objext): $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 659 | $(INCDIR)/libiberty.h |
24f2cabb L |
660 | if [ x"$(PICFLAG)" != x ]; then \ |
661 | $(COMPILE.c) $(PICFLAG) $(srcdir)/choose-temp.c -o pic/$@; \ | |
662 | else true; fi | |
4f148bbc JJ |
663 | if [ x"$(NOASANFLAG)" != x ]; then \ |
664 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/choose-temp.c -o noasan/$@; \ | |
665 | else true; fi | |
24f2cabb | 666 | $(COMPILE.c) $(srcdir)/choose-temp.c $(OUTPUT_OPTION) |
398b3deb | 667 | |
16f60fcb | 668 | ./clock.$(objext): $(srcdir)/clock.c config.h |
24f2cabb L |
669 | if [ x"$(PICFLAG)" != x ]; then \ |
670 | $(COMPILE.c) $(PICFLAG) $(srcdir)/clock.c -o pic/$@; \ | |
671 | else true; fi | |
4f148bbc JJ |
672 | if [ x"$(NOASANFLAG)" != x ]; then \ |
673 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/clock.c -o noasan/$@; \ | |
674 | else true; fi | |
24f2cabb | 675 | $(COMPILE.c) $(srcdir)/clock.c $(OUTPUT_OPTION) |
398b3deb | 676 | |
16f60fcb | 677 | ./concat.$(objext): $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \ |
f59a2f55 | 678 | $(INCDIR)/libiberty.h |
24f2cabb L |
679 | if [ x"$(PICFLAG)" != x ]; then \ |
680 | $(COMPILE.c) $(PICFLAG) $(srcdir)/concat.c -o pic/$@; \ | |
681 | else true; fi | |
4f148bbc JJ |
682 | if [ x"$(NOASANFLAG)" != x ]; then \ |
683 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/concat.c -o noasan/$@; \ | |
684 | else true; fi | |
24f2cabb | 685 | $(COMPILE.c) $(srcdir)/concat.c $(OUTPUT_OPTION) |
398b3deb | 686 | |
16f60fcb | 687 | ./copysign.$(objext): $(srcdir)/copysign.c $(INCDIR)/ansidecl.h |
24f2cabb L |
688 | if [ x"$(PICFLAG)" != x ]; then \ |
689 | $(COMPILE.c) $(PICFLAG) $(srcdir)/copysign.c -o pic/$@; \ | |
690 | else true; fi | |
4f148bbc JJ |
691 | if [ x"$(NOASANFLAG)" != x ]; then \ |
692 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/copysign.c -o noasan/$@; \ | |
693 | else true; fi | |
24f2cabb | 694 | $(COMPILE.c) $(srcdir)/copysign.c $(OUTPUT_OPTION) |
398b3deb | 695 | |
16f60fcb | 696 | ./cp-demangle.$(objext): $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb DD |
697 | $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \ |
698 | $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h | |
24f2cabb L |
699 | if [ x"$(PICFLAG)" != x ]; then \ |
700 | $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demangle.c -o pic/$@; \ | |
701 | else true; fi | |
4f148bbc JJ |
702 | if [ x"$(NOASANFLAG)" != x ]; then \ |
703 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/cp-demangle.c -o noasan/$@; \ | |
704 | else true; fi | |
24f2cabb | 705 | $(COMPILE.c) $(srcdir)/cp-demangle.c $(OUTPUT_OPTION) |
398b3deb | 706 | |
16f60fcb | 707 | ./cp-demint.$(objext): $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 708 | $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \ |
9ce3f7e5 | 709 | $(INCDIR)/libiberty.h |
24f2cabb L |
710 | if [ x"$(PICFLAG)" != x ]; then \ |
711 | $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demint.c -o pic/$@; \ | |
712 | else true; fi | |
4f148bbc JJ |
713 | if [ x"$(NOASANFLAG)" != x ]; then \ |
714 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/cp-demint.c -o noasan/$@; \ | |
715 | else true; fi | |
24f2cabb | 716 | $(COMPILE.c) $(srcdir)/cp-demint.c $(OUTPUT_OPTION) |
398b3deb | 717 | |
16f60fcb | 718 | ./cplus-dem.$(objext): $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb DD |
719 | $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \ |
720 | $(INCDIR)/safe-ctype.h | |
24f2cabb L |
721 | if [ x"$(PICFLAG)" != x ]; then \ |
722 | $(COMPILE.c) $(PICFLAG) $(srcdir)/cplus-dem.c -o pic/$@; \ | |
723 | else true; fi | |
4f148bbc JJ |
724 | if [ x"$(NOASANFLAG)" != x ]; then \ |
725 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/cplus-dem.c -o noasan/$@; \ | |
726 | else true; fi | |
24f2cabb | 727 | $(COMPILE.c) $(srcdir)/cplus-dem.c $(OUTPUT_OPTION) |
398b3deb | 728 | |
16f60fcb TG |
729 | ./crc32.$(objext): $(srcdir)/crc32.c config.h $(INCDIR)/ansidecl.h \ |
730 | $(INCDIR)/libiberty.h | |
b524249c ILT |
731 | if [ x"$(PICFLAG)" != x ]; then \ |
732 | $(COMPILE.c) $(PICFLAG) $(srcdir)/crc32.c -o pic/$@; \ | |
733 | else true; fi | |
4f148bbc JJ |
734 | if [ x"$(NOASANFLAG)" != x ]; then \ |
735 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/crc32.c -o noasan/$@; \ | |
736 | else true; fi | |
b524249c ILT |
737 | $(COMPILE.c) $(srcdir)/crc32.c $(OUTPUT_OPTION) |
738 | ||
ea41822a YG |
739 | ./d-demangle.$(objext): $(srcdir)/d-demangle.c config.h $(INCDIR)/ansidecl.h \ |
740 | $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \ | |
741 | $(INCDIR)/safe-ctype.h | |
742 | if [ x"$(PICFLAG)" != x ]; then \ | |
743 | $(COMPILE.c) $(PICFLAG) $(srcdir)/d-demangle.c -o pic/$@; \ | |
744 | else true; fi | |
745 | if [ x"$(NOASANFLAG)" != x ]; then \ | |
746 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/d-demangle.c -o noasan/$@; \ | |
747 | else true; fi | |
748 | $(COMPILE.c) $(srcdir)/d-demangle.c $(OUTPUT_OPTION) | |
749 | ||
9a9baa52 ILT |
750 | ./dwarfnames.$(objext): $(srcdir)/dwarfnames.c $(INCDIR)/dwarf2.def \ |
751 | $(INCDIR)/dwarf2.h | |
11ec770e TT |
752 | if [ x"$(PICFLAG)" != x ]; then \ |
753 | $(COMPILE.c) $(PICFLAG) $(srcdir)/dwarfnames.c -o pic/$@; \ | |
754 | else true; fi | |
4f148bbc JJ |
755 | if [ x"$(NOASANFLAG)" != x ]; then \ |
756 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/dwarfnames.c -o noasan/$@; \ | |
757 | else true; fi | |
11ec770e TT |
758 | $(COMPILE.c) $(srcdir)/dwarfnames.c $(OUTPUT_OPTION) |
759 | ||
16f60fcb | 760 | ./dyn-string.$(objext): $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 761 | $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h |
24f2cabb L |
762 | if [ x"$(PICFLAG)" != x ]; then \ |
763 | $(COMPILE.c) $(PICFLAG) $(srcdir)/dyn-string.c -o pic/$@; \ | |
764 | else true; fi | |
4f148bbc JJ |
765 | if [ x"$(NOASANFLAG)" != x ]; then \ |
766 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/dyn-string.c -o noasan/$@; \ | |
767 | else true; fi | |
24f2cabb | 768 | $(COMPILE.c) $(srcdir)/dyn-string.c $(OUTPUT_OPTION) |
398b3deb | 769 | |
16f60fcb | 770 | ./fdmatch.$(objext): $(srcdir)/fdmatch.c config.h $(INCDIR)/ansidecl.h \ |
bd7d50f8 | 771 | $(INCDIR)/libiberty.h |
24f2cabb L |
772 | if [ x"$(PICFLAG)" != x ]; then \ |
773 | $(COMPILE.c) $(PICFLAG) $(srcdir)/fdmatch.c -o pic/$@; \ | |
774 | else true; fi | |
4f148bbc JJ |
775 | if [ x"$(NOASANFLAG)" != x ]; then \ |
776 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/fdmatch.c -o noasan/$@; \ | |
777 | else true; fi | |
24f2cabb | 778 | $(COMPILE.c) $(srcdir)/fdmatch.c $(OUTPUT_OPTION) |
398b3deb | 779 | |
16f60fcb | 780 | ./ffs.$(objext): $(srcdir)/ffs.c |
24f2cabb L |
781 | if [ x"$(PICFLAG)" != x ]; then \ |
782 | $(COMPILE.c) $(PICFLAG) $(srcdir)/ffs.c -o pic/$@; \ | |
783 | else true; fi | |
4f148bbc JJ |
784 | if [ x"$(NOASANFLAG)" != x ]; then \ |
785 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/ffs.c -o noasan/$@; \ | |
786 | else true; fi | |
24f2cabb | 787 | $(COMPILE.c) $(srcdir)/ffs.c $(OUTPUT_OPTION) |
398b3deb | 788 | |
16f60fcb | 789 | ./fibheap.$(objext): $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \ |
f59a2f55 | 790 | $(INCDIR)/fibheap.h $(INCDIR)/libiberty.h |
24f2cabb L |
791 | if [ x"$(PICFLAG)" != x ]; then \ |
792 | $(COMPILE.c) $(PICFLAG) $(srcdir)/fibheap.c -o pic/$@; \ | |
793 | else true; fi | |
4f148bbc JJ |
794 | if [ x"$(NOASANFLAG)" != x ]; then \ |
795 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/fibheap.c -o noasan/$@; \ | |
796 | else true; fi | |
24f2cabb | 797 | $(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION) |
398b3deb | 798 | |
8f88e7f6 ML |
799 | ./filedescriptor.$(objext): $(srcdir)/filedescriptor.c config.h $(INCDIR)/ansidecl.h \ |
800 | $(INCDIR)/libiberty.h | |
801 | if [ x"$(PICFLAG)" != x ]; then \ | |
802 | $(COMPILE.c) $(PICFLAG) $(srcdir)/filedescriptor.c -o pic/$@; \ | |
803 | else true; fi | |
804 | if [ x"$(NOASANFLAG)" != x ]; then \ | |
805 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/filedescriptor.c -o noasan/$@; \ | |
806 | else true; fi | |
807 | $(COMPILE.c) $(srcdir)/filedescriptor.c $(OUTPUT_OPTION) | |
808 | ||
809 | ||
9a9baa52 ILT |
810 | ./filename_cmp.$(objext): $(srcdir)/filename_cmp.c config.h $(INCDIR)/ansidecl.h \ |
811 | $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \ | |
186c60ab | 812 | $(INCDIR)/safe-ctype.h |
cde515d9 JB |
813 | if [ x"$(PICFLAG)" != x ]; then \ |
814 | $(COMPILE.c) $(PICFLAG) $(srcdir)/filename_cmp.c -o pic/$@; \ | |
815 | else true; fi | |
4f148bbc JJ |
816 | if [ x"$(NOASANFLAG)" != x ]; then \ |
817 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/filename_cmp.c -o noasan/$@; \ | |
818 | else true; fi | |
cde515d9 JB |
819 | $(COMPILE.c) $(srcdir)/filename_cmp.c $(OUTPUT_OPTION) |
820 | ||
16f60fcb | 821 | ./floatformat.$(objext): $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 822 | $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h |
24f2cabb L |
823 | if [ x"$(PICFLAG)" != x ]; then \ |
824 | $(COMPILE.c) $(PICFLAG) $(srcdir)/floatformat.c -o pic/$@; \ | |
825 | else true; fi | |
4f148bbc JJ |
826 | if [ x"$(NOASANFLAG)" != x ]; then \ |
827 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/floatformat.c -o noasan/$@; \ | |
828 | else true; fi | |
24f2cabb | 829 | $(COMPILE.c) $(srcdir)/floatformat.c $(OUTPUT_OPTION) |
398b3deb | 830 | |
16f60fcb | 831 | ./fnmatch.$(objext): $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \ |
398b3deb | 832 | $(INCDIR)/safe-ctype.h |
24f2cabb L |
833 | if [ x"$(PICFLAG)" != x ]; then \ |
834 | $(COMPILE.c) $(PICFLAG) $(srcdir)/fnmatch.c -o pic/$@; \ | |
835 | else true; fi | |
4f148bbc JJ |
836 | if [ x"$(NOASANFLAG)" != x ]; then \ |
837 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/fnmatch.c -o noasan/$@; \ | |
838 | else true; fi | |
24f2cabb | 839 | $(COMPILE.c) $(srcdir)/fnmatch.c $(OUTPUT_OPTION) |
398b3deb | 840 | |
16f60fcb TG |
841 | ./fopen_unlocked.$(objext): $(srcdir)/fopen_unlocked.c config.h \ |
842 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
78a7dc90 KG |
843 | if [ x"$(PICFLAG)" != x ]; then \ |
844 | $(COMPILE.c) $(PICFLAG) $(srcdir)/fopen_unlocked.c -o pic/$@; \ | |
845 | else true; fi | |
4f148bbc JJ |
846 | if [ x"$(NOASANFLAG)" != x ]; then \ |
847 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/fopen_unlocked.c -o noasan/$@; \ | |
848 | else true; fi | |
78a7dc90 KG |
849 | $(COMPILE.c) $(srcdir)/fopen_unlocked.c $(OUTPUT_OPTION) |
850 | ||
16f60fcb | 851 | ./getcwd.$(objext): $(srcdir)/getcwd.c config.h |
24f2cabb L |
852 | if [ x"$(PICFLAG)" != x ]; then \ |
853 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getcwd.c -o pic/$@; \ | |
854 | else true; fi | |
4f148bbc JJ |
855 | if [ x"$(NOASANFLAG)" != x ]; then \ |
856 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/getcwd.c -o noasan/$@; \ | |
857 | else true; fi | |
24f2cabb | 858 | $(COMPILE.c) $(srcdir)/getcwd.c $(OUTPUT_OPTION) |
398b3deb | 859 | |
16f60fcb TG |
860 | ./getopt.$(objext): $(srcdir)/getopt.c config.h $(INCDIR)/ansidecl.h \ |
861 | $(INCDIR)/getopt.h | |
24f2cabb L |
862 | if [ x"$(PICFLAG)" != x ]; then \ |
863 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt.c -o pic/$@; \ | |
864 | else true; fi | |
4f148bbc JJ |
865 | if [ x"$(NOASANFLAG)" != x ]; then \ |
866 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/getopt.c -o noasan/$@; \ | |
867 | else true; fi | |
24f2cabb | 868 | $(COMPILE.c) $(srcdir)/getopt.c $(OUTPUT_OPTION) |
398b3deb | 869 | |
16f60fcb | 870 | ./getopt1.$(objext): $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h |
24f2cabb L |
871 | if [ x"$(PICFLAG)" != x ]; then \ |
872 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt1.c -o pic/$@; \ | |
873 | else true; fi | |
4f148bbc JJ |
874 | if [ x"$(NOASANFLAG)" != x ]; then \ |
875 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/getopt1.c -o noasan/$@; \ | |
876 | else true; fi | |
24f2cabb | 877 | $(COMPILE.c) $(srcdir)/getopt1.c $(OUTPUT_OPTION) |
398b3deb | 878 | |
16f60fcb | 879 | ./getpagesize.$(objext): $(srcdir)/getpagesize.c config.h |
24f2cabb L |
880 | if [ x"$(PICFLAG)" != x ]; then \ |
881 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getpagesize.c -o pic/$@; \ | |
882 | else true; fi | |
4f148bbc JJ |
883 | if [ x"$(NOASANFLAG)" != x ]; then \ |
884 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/getpagesize.c -o noasan/$@; \ | |
885 | else true; fi | |
24f2cabb | 886 | $(COMPILE.c) $(srcdir)/getpagesize.c $(OUTPUT_OPTION) |
398b3deb | 887 | |
16f60fcb | 888 | ./getpwd.$(objext): $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \ |
f59a2f55 | 889 | $(INCDIR)/libiberty.h |
24f2cabb L |
890 | if [ x"$(PICFLAG)" != x ]; then \ |
891 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getpwd.c -o pic/$@; \ | |
892 | else true; fi | |
4f148bbc JJ |
893 | if [ x"$(NOASANFLAG)" != x ]; then \ |
894 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/getpwd.c -o noasan/$@; \ | |
895 | else true; fi | |
24f2cabb | 896 | $(COMPILE.c) $(srcdir)/getpwd.c $(OUTPUT_OPTION) |
398b3deb | 897 | |
16f60fcb | 898 | ./getruntime.$(objext): $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \ |
9ce3f7e5 | 899 | $(INCDIR)/libiberty.h |
24f2cabb L |
900 | if [ x"$(PICFLAG)" != x ]; then \ |
901 | $(COMPILE.c) $(PICFLAG) $(srcdir)/getruntime.c -o pic/$@; \ | |
902 | else true; fi | |
4f148bbc JJ |
903 | if [ x"$(NOASANFLAG)" != x ]; then \ |
904 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/getruntime.c -o noasan/$@; \ | |
905 | else true; fi | |
24f2cabb | 906 | $(COMPILE.c) $(srcdir)/getruntime.c $(OUTPUT_OPTION) |
398b3deb | 907 | |
16f60fcb | 908 | ./gettimeofday.$(objext): $(srcdir)/gettimeofday.c config.h $(INCDIR)/ansidecl.h \ |
17049f0b MM |
909 | $(INCDIR)/libiberty.h |
910 | if [ x"$(PICFLAG)" != x ]; then \ | |
911 | $(COMPILE.c) $(PICFLAG) $(srcdir)/gettimeofday.c -o pic/$@; \ | |
912 | else true; fi | |
4f148bbc JJ |
913 | if [ x"$(NOASANFLAG)" != x ]; then \ |
914 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/gettimeofday.c -o noasan/$@; \ | |
915 | else true; fi | |
17049f0b MM |
916 | $(COMPILE.c) $(srcdir)/gettimeofday.c $(OUTPUT_OPTION) |
917 | ||
16f60fcb | 918 | ./hashtab.$(objext): $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \ |
f59a2f55 | 919 | $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h |
24f2cabb L |
920 | if [ x"$(PICFLAG)" != x ]; then \ |
921 | $(COMPILE.c) $(PICFLAG) $(srcdir)/hashtab.c -o pic/$@; \ | |
922 | else true; fi | |
4f148bbc JJ |
923 | if [ x"$(NOASANFLAG)" != x ]; then \ |
924 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/hashtab.c -o noasan/$@; \ | |
925 | else true; fi | |
24f2cabb | 926 | $(COMPILE.c) $(srcdir)/hashtab.c $(OUTPUT_OPTION) |
398b3deb | 927 | |
16f60fcb TG |
928 | ./hex.$(objext): $(srcdir)/hex.c config.h $(INCDIR)/ansidecl.h \ |
929 | $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h | |
24f2cabb L |
930 | if [ x"$(PICFLAG)" != x ]; then \ |
931 | $(COMPILE.c) $(PICFLAG) $(srcdir)/hex.c -o pic/$@; \ | |
932 | else true; fi | |
4f148bbc JJ |
933 | if [ x"$(NOASANFLAG)" != x ]; then \ |
934 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/hex.c -o noasan/$@; \ | |
935 | else true; fi | |
24f2cabb | 936 | $(COMPILE.c) $(srcdir)/hex.c $(OUTPUT_OPTION) |
398b3deb | 937 | |
16f60fcb | 938 | ./index.$(objext): $(srcdir)/index.c |
24f2cabb L |
939 | if [ x"$(PICFLAG)" != x ]; then \ |
940 | $(COMPILE.c) $(PICFLAG) $(srcdir)/index.c -o pic/$@; \ | |
941 | else true; fi | |
4f148bbc JJ |
942 | if [ x"$(NOASANFLAG)" != x ]; then \ |
943 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/index.c -o noasan/$@; \ | |
944 | else true; fi | |
24f2cabb | 945 | $(COMPILE.c) $(srcdir)/index.c $(OUTPUT_OPTION) |
398b3deb | 946 | |
16f60fcb | 947 | ./insque.$(objext): $(srcdir)/insque.c |
24f2cabb L |
948 | if [ x"$(PICFLAG)" != x ]; then \ |
949 | $(COMPILE.c) $(PICFLAG) $(srcdir)/insque.c -o pic/$@; \ | |
950 | else true; fi | |
4f148bbc JJ |
951 | if [ x"$(NOASANFLAG)" != x ]; then \ |
952 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/insque.c -o noasan/$@; \ | |
953 | else true; fi | |
24f2cabb | 954 | $(COMPILE.c) $(srcdir)/insque.c $(OUTPUT_OPTION) |
398b3deb | 955 | |
16f60fcb | 956 | ./lbasename.$(objext): $(srcdir)/lbasename.c config.h $(INCDIR)/ansidecl.h \ |
9a9baa52 | 957 | $(INCDIR)/filenames.h $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h \ |
16f60fcb | 958 | $(INCDIR)/safe-ctype.h |
24f2cabb L |
959 | if [ x"$(PICFLAG)" != x ]; then \ |
960 | $(COMPILE.c) $(PICFLAG) $(srcdir)/lbasename.c -o pic/$@; \ | |
961 | else true; fi | |
4f148bbc JJ |
962 | if [ x"$(NOASANFLAG)" != x ]; then \ |
963 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/lbasename.c -o noasan/$@; \ | |
964 | else true; fi | |
24f2cabb | 965 | $(COMPILE.c) $(srcdir)/lbasename.c $(OUTPUT_OPTION) |
398b3deb | 966 | |
16f60fcb | 967 | ./lrealpath.$(objext): $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 968 | $(INCDIR)/libiberty.h |
24f2cabb L |
969 | if [ x"$(PICFLAG)" != x ]; then \ |
970 | $(COMPILE.c) $(PICFLAG) $(srcdir)/lrealpath.c -o pic/$@; \ | |
971 | else true; fi | |
4f148bbc JJ |
972 | if [ x"$(NOASANFLAG)" != x ]; then \ |
973 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/lrealpath.c -o noasan/$@; \ | |
974 | else true; fi | |
24f2cabb | 975 | $(COMPILE.c) $(srcdir)/lrealpath.c $(OUTPUT_OPTION) |
398b3deb | 976 | |
16f60fcb | 977 | ./make-relative-prefix.$(objext): $(srcdir)/make-relative-prefix.c config.h \ |
398b3deb | 978 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
24f2cabb L |
979 | if [ x"$(PICFLAG)" != x ]; then \ |
980 | $(COMPILE.c) $(PICFLAG) $(srcdir)/make-relative-prefix.c -o pic/$@; \ | |
981 | else true; fi | |
4f148bbc JJ |
982 | if [ x"$(NOASANFLAG)" != x ]; then \ |
983 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/make-relative-prefix.c -o noasan/$@; \ | |
984 | else true; fi | |
24f2cabb | 985 | $(COMPILE.c) $(srcdir)/make-relative-prefix.c $(OUTPUT_OPTION) |
398b3deb | 986 | |
16f60fcb TG |
987 | ./make-temp-file.$(objext): $(srcdir)/make-temp-file.c config.h \ |
988 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
24f2cabb L |
989 | if [ x"$(PICFLAG)" != x ]; then \ |
990 | $(COMPILE.c) $(PICFLAG) $(srcdir)/make-temp-file.c -o pic/$@; \ | |
991 | else true; fi | |
4f148bbc JJ |
992 | if [ x"$(NOASANFLAG)" != x ]; then \ |
993 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/make-temp-file.c -o noasan/$@; \ | |
994 | else true; fi | |
24f2cabb | 995 | $(COMPILE.c) $(srcdir)/make-temp-file.c $(OUTPUT_OPTION) |
398b3deb | 996 | |
16f60fcb | 997 | ./md5.$(objext): $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h |
24f2cabb L |
998 | if [ x"$(PICFLAG)" != x ]; then \ |
999 | $(COMPILE.c) $(PICFLAG) $(srcdir)/md5.c -o pic/$@; \ | |
1000 | else true; fi | |
4f148bbc JJ |
1001 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1002 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/md5.c -o noasan/$@; \ | |
1003 | else true; fi | |
24f2cabb | 1004 | $(COMPILE.c) $(srcdir)/md5.c $(OUTPUT_OPTION) |
398b3deb | 1005 | |
16f60fcb | 1006 | ./memchr.$(objext): $(srcdir)/memchr.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1007 | if [ x"$(PICFLAG)" != x ]; then \ |
1008 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memchr.c -o pic/$@; \ | |
1009 | else true; fi | |
4f148bbc JJ |
1010 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1011 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/memchr.c -o noasan/$@; \ | |
1012 | else true; fi | |
24f2cabb | 1013 | $(COMPILE.c) $(srcdir)/memchr.c $(OUTPUT_OPTION) |
398b3deb | 1014 | |
16f60fcb | 1015 | ./memcmp.$(objext): $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1016 | if [ x"$(PICFLAG)" != x ]; then \ |
1017 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memcmp.c -o pic/$@; \ | |
1018 | else true; fi | |
4f148bbc JJ |
1019 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1020 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/memcmp.c -o noasan/$@; \ | |
1021 | else true; fi | |
24f2cabb | 1022 | $(COMPILE.c) $(srcdir)/memcmp.c $(OUTPUT_OPTION) |
398b3deb | 1023 | |
16f60fcb | 1024 | ./memcpy.$(objext): $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1025 | if [ x"$(PICFLAG)" != x ]; then \ |
1026 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memcpy.c -o pic/$@; \ | |
1027 | else true; fi | |
4f148bbc JJ |
1028 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1029 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/memcpy.c -o noasan/$@; \ | |
1030 | else true; fi | |
24f2cabb | 1031 | $(COMPILE.c) $(srcdir)/memcpy.c $(OUTPUT_OPTION) |
398b3deb | 1032 | |
16f60fcb | 1033 | ./memmem.$(objext): $(srcdir)/memmem.c config.h |
5fbd9447 ILT |
1034 | if [ x"$(PICFLAG)" != x ]; then \ |
1035 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memmem.c -o pic/$@; \ | |
1036 | else true; fi | |
4f148bbc JJ |
1037 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1038 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/memmem.c -o noasan/$@; \ | |
1039 | else true; fi | |
5fbd9447 ILT |
1040 | $(COMPILE.c) $(srcdir)/memmem.c $(OUTPUT_OPTION) |
1041 | ||
16f60fcb | 1042 | ./memmove.$(objext): $(srcdir)/memmove.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1043 | if [ x"$(PICFLAG)" != x ]; then \ |
1044 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memmove.c -o pic/$@; \ | |
1045 | else true; fi | |
4f148bbc JJ |
1046 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1047 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/memmove.c -o noasan/$@; \ | |
1048 | else true; fi | |
24f2cabb | 1049 | $(COMPILE.c) $(srcdir)/memmove.c $(OUTPUT_OPTION) |
398b3deb | 1050 | |
16f60fcb | 1051 | ./mempcpy.$(objext): $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1052 | if [ x"$(PICFLAG)" != x ]; then \ |
1053 | $(COMPILE.c) $(PICFLAG) $(srcdir)/mempcpy.c -o pic/$@; \ | |
1054 | else true; fi | |
4f148bbc JJ |
1055 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1056 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/mempcpy.c -o noasan/$@; \ | |
1057 | else true; fi | |
24f2cabb | 1058 | $(COMPILE.c) $(srcdir)/mempcpy.c $(OUTPUT_OPTION) |
398b3deb | 1059 | |
16f60fcb | 1060 | ./memset.$(objext): $(srcdir)/memset.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1061 | if [ x"$(PICFLAG)" != x ]; then \ |
1062 | $(COMPILE.c) $(PICFLAG) $(srcdir)/memset.c -o pic/$@; \ | |
1063 | else true; fi | |
4f148bbc JJ |
1064 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1065 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/memset.c -o noasan/$@; \ | |
1066 | else true; fi | |
24f2cabb | 1067 | $(COMPILE.c) $(srcdir)/memset.c $(OUTPUT_OPTION) |
398b3deb | 1068 | |
16f60fcb | 1069 | ./mkstemps.$(objext): $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h |
24f2cabb L |
1070 | if [ x"$(PICFLAG)" != x ]; then \ |
1071 | $(COMPILE.c) $(PICFLAG) $(srcdir)/mkstemps.c -o pic/$@; \ | |
1072 | else true; fi | |
4f148bbc JJ |
1073 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1074 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/mkstemps.c -o noasan/$@; \ | |
1075 | else true; fi | |
24f2cabb | 1076 | $(COMPILE.c) $(srcdir)/mkstemps.c $(OUTPUT_OPTION) |
398b3deb | 1077 | |
16f60fcb | 1078 | ./msdos.$(objext): $(srcdir)/msdos.c |
24f2cabb L |
1079 | if [ x"$(PICFLAG)" != x ]; then \ |
1080 | $(COMPILE.c) $(PICFLAG) $(srcdir)/msdos.c -o pic/$@; \ | |
1081 | else true; fi | |
4f148bbc JJ |
1082 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1083 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/msdos.c -o noasan/$@; \ | |
1084 | else true; fi | |
24f2cabb | 1085 | $(COMPILE.c) $(srcdir)/msdos.c $(OUTPUT_OPTION) |
398b3deb | 1086 | |
16f60fcb | 1087 | ./objalloc.$(objext): $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1088 | $(INCDIR)/objalloc.h |
24f2cabb L |
1089 | if [ x"$(PICFLAG)" != x ]; then \ |
1090 | $(COMPILE.c) $(PICFLAG) $(srcdir)/objalloc.c -o pic/$@; \ | |
1091 | else true; fi | |
4f148bbc JJ |
1092 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1093 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/objalloc.c -o noasan/$@; \ | |
1094 | else true; fi | |
24f2cabb | 1095 | $(COMPILE.c) $(srcdir)/objalloc.c $(OUTPUT_OPTION) |
398b3deb | 1096 | |
16f60fcb | 1097 | ./obstack.$(objext): $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h |
24f2cabb L |
1098 | if [ x"$(PICFLAG)" != x ]; then \ |
1099 | $(COMPILE.c) $(PICFLAG) $(srcdir)/obstack.c -o pic/$@; \ | |
1100 | else true; fi | |
4f148bbc JJ |
1101 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1102 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/obstack.c -o noasan/$@; \ | |
1103 | else true; fi | |
24f2cabb | 1104 | $(COMPILE.c) $(srcdir)/obstack.c $(OUTPUT_OPTION) |
398b3deb | 1105 | |
16f60fcb | 1106 | ./partition.$(objext): $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1107 | $(INCDIR)/libiberty.h $(INCDIR)/partition.h |
24f2cabb L |
1108 | if [ x"$(PICFLAG)" != x ]; then \ |
1109 | $(COMPILE.c) $(PICFLAG) $(srcdir)/partition.c -o pic/$@; \ | |
1110 | else true; fi | |
4f148bbc JJ |
1111 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1112 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/partition.c -o noasan/$@; \ | |
1113 | else true; fi | |
24f2cabb | 1114 | $(COMPILE.c) $(srcdir)/partition.c $(OUTPUT_OPTION) |
398b3deb | 1115 | |
16f60fcb | 1116 | ./pex-common.$(objext): $(srcdir)/pex-common.c config.h $(INCDIR)/ansidecl.h \ |
a584cf65 ILT |
1117 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
1118 | if [ x"$(PICFLAG)" != x ]; then \ | |
1119 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-common.c -o pic/$@; \ | |
1120 | else true; fi | |
4f148bbc JJ |
1121 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1122 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pex-common.c -o noasan/$@; \ | |
1123 | else true; fi | |
a584cf65 ILT |
1124 | $(COMPILE.c) $(srcdir)/pex-common.c $(OUTPUT_OPTION) |
1125 | ||
16f60fcb | 1126 | ./pex-djgpp.$(objext): $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1127 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
24f2cabb L |
1128 | if [ x"$(PICFLAG)" != x ]; then \ |
1129 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-djgpp.c -o pic/$@; \ | |
1130 | else true; fi | |
4f148bbc JJ |
1131 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1132 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pex-djgpp.c -o noasan/$@; \ | |
1133 | else true; fi | |
24f2cabb | 1134 | $(COMPILE.c) $(srcdir)/pex-djgpp.c $(OUTPUT_OPTION) |
398b3deb | 1135 | |
16f60fcb | 1136 | ./pex-msdos.$(objext): $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb DD |
1137 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \ |
1138 | $(INCDIR)/safe-ctype.h | |
24f2cabb L |
1139 | if [ x"$(PICFLAG)" != x ]; then \ |
1140 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-msdos.c -o pic/$@; \ | |
1141 | else true; fi | |
4f148bbc JJ |
1142 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1143 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pex-msdos.c -o noasan/$@; \ | |
1144 | else true; fi | |
24f2cabb | 1145 | $(COMPILE.c) $(srcdir)/pex-msdos.c $(OUTPUT_OPTION) |
398b3deb | 1146 | |
16f60fcb | 1147 | ./pex-one.$(objext): $(srcdir)/pex-one.c config.h $(INCDIR)/ansidecl.h \ |
a584cf65 ILT |
1148 | $(INCDIR)/libiberty.h |
1149 | if [ x"$(PICFLAG)" != x ]; then \ | |
1150 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-one.c -o pic/$@; \ | |
1151 | else true; fi | |
4f148bbc JJ |
1152 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1153 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pex-one.c -o noasan/$@; \ | |
1154 | else true; fi | |
a584cf65 ILT |
1155 | $(COMPILE.c) $(srcdir)/pex-one.c $(OUTPUT_OPTION) |
1156 | ||
16f60fcb | 1157 | ./pex-unix.$(objext): $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1158 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
24f2cabb L |
1159 | if [ x"$(PICFLAG)" != x ]; then \ |
1160 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-unix.c -o pic/$@; \ | |
1161 | else true; fi | |
4f148bbc JJ |
1162 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1163 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pex-unix.c -o noasan/$@; \ | |
1164 | else true; fi | |
24f2cabb | 1165 | $(COMPILE.c) $(srcdir)/pex-unix.c $(OUTPUT_OPTION) |
398b3deb | 1166 | |
16f60fcb | 1167 | ./pex-win32.$(objext): $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1168 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
24f2cabb L |
1169 | if [ x"$(PICFLAG)" != x ]; then \ |
1170 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-win32.c -o pic/$@; \ | |
1171 | else true; fi | |
4f148bbc JJ |
1172 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1173 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pex-win32.c -o noasan/$@; \ | |
1174 | else true; fi | |
24f2cabb | 1175 | $(COMPILE.c) $(srcdir)/pex-win32.c $(OUTPUT_OPTION) |
398b3deb | 1176 | |
16f60fcb | 1177 | ./pexecute.$(objext): $(srcdir)/pexecute.c config.h $(INCDIR)/ansidecl.h \ |
a584cf65 ILT |
1178 | $(INCDIR)/libiberty.h |
1179 | if [ x"$(PICFLAG)" != x ]; then \ | |
1180 | $(COMPILE.c) $(PICFLAG) $(srcdir)/pexecute.c -o pic/$@; \ | |
1181 | else true; fi | |
4f148bbc JJ |
1182 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1183 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pexecute.c -o noasan/$@; \ | |
1184 | else true; fi | |
a584cf65 ILT |
1185 | $(COMPILE.c) $(srcdir)/pexecute.c $(OUTPUT_OPTION) |
1186 | ||
16f60fcb | 1187 | ./physmem.$(objext): $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1188 | $(INCDIR)/libiberty.h |
24f2cabb L |
1189 | if [ x"$(PICFLAG)" != x ]; then \ |
1190 | $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \ | |
1191 | else true; fi | |
4f148bbc JJ |
1192 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1193 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/physmem.c -o noasan/$@; \ | |
1194 | else true; fi | |
24f2cabb | 1195 | $(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION) |
398b3deb | 1196 | |
16f60fcb | 1197 | ./putenv.$(objext): $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h |
24f2cabb L |
1198 | if [ x"$(PICFLAG)" != x ]; then \ |
1199 | $(COMPILE.c) $(PICFLAG) $(srcdir)/putenv.c -o pic/$@; \ | |
1200 | else true; fi | |
4f148bbc JJ |
1201 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1202 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/putenv.c -o noasan/$@; \ | |
1203 | else true; fi | |
24f2cabb | 1204 | $(COMPILE.c) $(srcdir)/putenv.c $(OUTPUT_OPTION) |
398b3deb | 1205 | |
16f60fcb | 1206 | ./random.$(objext): $(srcdir)/random.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1207 | if [ x"$(PICFLAG)" != x ]; then \ |
1208 | $(COMPILE.c) $(PICFLAG) $(srcdir)/random.c -o pic/$@; \ | |
1209 | else true; fi | |
4f148bbc JJ |
1210 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1211 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/random.c -o noasan/$@; \ | |
1212 | else true; fi | |
24f2cabb | 1213 | $(COMPILE.c) $(srcdir)/random.c $(OUTPUT_OPTION) |
398b3deb | 1214 | |
16f60fcb TG |
1215 | ./regex.$(objext): $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h \ |
1216 | $(INCDIR)/xregex.h $(INCDIR)/xregex2.h | |
24f2cabb L |
1217 | if [ x"$(PICFLAG)" != x ]; then \ |
1218 | $(COMPILE.c) $(PICFLAG) $(srcdir)/regex.c -o pic/$@; \ | |
1219 | else true; fi | |
4f148bbc JJ |
1220 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1221 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/regex.c -o noasan/$@; \ | |
1222 | else true; fi | |
24f2cabb | 1223 | $(COMPILE.c) $(srcdir)/regex.c $(OUTPUT_OPTION) |
398b3deb | 1224 | |
16f60fcb | 1225 | ./rename.$(objext): $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h |
24f2cabb L |
1226 | if [ x"$(PICFLAG)" != x ]; then \ |
1227 | $(COMPILE.c) $(PICFLAG) $(srcdir)/rename.c -o pic/$@; \ | |
1228 | else true; fi | |
4f148bbc JJ |
1229 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1230 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/rename.c -o noasan/$@; \ | |
1231 | else true; fi | |
24f2cabb | 1232 | $(COMPILE.c) $(srcdir)/rename.c $(OUTPUT_OPTION) |
398b3deb | 1233 | |
16f60fcb | 1234 | ./rindex.$(objext): $(srcdir)/rindex.c |
24f2cabb L |
1235 | if [ x"$(PICFLAG)" != x ]; then \ |
1236 | $(COMPILE.c) $(PICFLAG) $(srcdir)/rindex.c -o pic/$@; \ | |
1237 | else true; fi | |
4f148bbc JJ |
1238 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1239 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/rindex.c -o noasan/$@; \ | |
1240 | else true; fi | |
24f2cabb | 1241 | $(COMPILE.c) $(srcdir)/rindex.c $(OUTPUT_OPTION) |
398b3deb | 1242 | |
10d48c59 DT |
1243 | ./rust-demangle.$(objext): $(srcdir)/rust-demangle.c config.h \ |
1244 | $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \ | |
1245 | $(INCDIR)/safe-ctype.h | |
1246 | if [ x"$(PICFLAG)" != x ]; then \ | |
1247 | $(COMPILE.c) $(PICFLAG) $(srcdir)/rust-demangle.c -o pic/$@; \ | |
1248 | else true; fi | |
1249 | if [ x"$(NOASANFLAG)" != x ]; then \ | |
1250 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/rust-demangle.c -o noasan/$@; \ | |
1251 | else true; fi | |
1252 | $(COMPILE.c) $(srcdir)/rust-demangle.c $(OUTPUT_OPTION) | |
1253 | ||
16f60fcb | 1254 | ./safe-ctype.$(objext): $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \ |
398b3deb | 1255 | $(INCDIR)/safe-ctype.h |
24f2cabb L |
1256 | if [ x"$(PICFLAG)" != x ]; then \ |
1257 | $(COMPILE.c) $(PICFLAG) $(srcdir)/safe-ctype.c -o pic/$@; \ | |
1258 | else true; fi | |
4f148bbc JJ |
1259 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1260 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/safe-ctype.c -o noasan/$@; \ | |
1261 | else true; fi | |
24f2cabb | 1262 | $(COMPILE.c) $(srcdir)/safe-ctype.c $(OUTPUT_OPTION) |
398b3deb | 1263 | |
16f60fcb | 1264 | ./setenv.$(objext): $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h |
24f2cabb L |
1265 | if [ x"$(PICFLAG)" != x ]; then \ |
1266 | $(COMPILE.c) $(PICFLAG) $(srcdir)/setenv.c -o pic/$@; \ | |
1267 | else true; fi | |
4f148bbc JJ |
1268 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1269 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/setenv.c -o noasan/$@; \ | |
1270 | else true; fi | |
24f2cabb | 1271 | $(COMPILE.c) $(srcdir)/setenv.c $(OUTPUT_OPTION) |
398b3deb | 1272 | |
6e9bd0f8 AK |
1273 | ./setproctitle.$(objext): $(srcdir)/setproctitle.c config.h $(INCDIR)/ansidecl.h |
1274 | if [ x"$(PICFLAG)" != x ]; then \ | |
1275 | $(COMPILE.c) $(PICFLAG) $(srcdir)/setproctitle.c -o pic/$@; \ | |
1276 | else true; fi | |
4f148bbc JJ |
1277 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1278 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/setproctitle.c -o noasan/$@; \ | |
1279 | else true; fi | |
6e9bd0f8 AK |
1280 | $(COMPILE.c) $(srcdir)/setproctitle.c $(OUTPUT_OPTION) |
1281 | ||
16f60fcb | 1282 | ./sha1.$(objext): $(srcdir)/sha1.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/sha1.h |
598848e4 ILT |
1283 | if [ x"$(PICFLAG)" != x ]; then \ |
1284 | $(COMPILE.c) $(PICFLAG) $(srcdir)/sha1.c -o pic/$@; \ | |
1285 | else true; fi | |
4f148bbc JJ |
1286 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1287 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/sha1.c -o noasan/$@; \ | |
1288 | else true; fi | |
598848e4 ILT |
1289 | $(COMPILE.c) $(srcdir)/sha1.c $(OUTPUT_OPTION) |
1290 | ||
16f60fcb | 1291 | ./sigsetmask.$(objext): $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1292 | if [ x"$(PICFLAG)" != x ]; then \ |
1293 | $(COMPILE.c) $(PICFLAG) $(srcdir)/sigsetmask.c -o pic/$@; \ | |
1294 | else true; fi | |
4f148bbc JJ |
1295 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1296 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/sigsetmask.c -o noasan/$@; \ | |
1297 | else true; fi | |
24f2cabb | 1298 | $(COMPILE.c) $(srcdir)/sigsetmask.c $(OUTPUT_OPTION) |
398b3deb | 1299 | |
1cfabf34 ILT |
1300 | ./simple-object-coff.$(objext): $(srcdir)/simple-object-coff.c config.h \ |
1301 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ | |
1302 | $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h | |
1303 | if [ x"$(PICFLAG)" != x ]; then \ | |
1304 | $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-coff.c -o pic/$@; \ | |
1305 | else true; fi | |
4f148bbc JJ |
1306 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1307 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/simple-object-coff.c -o noasan/$@; \ | |
1308 | else true; fi | |
1cfabf34 ILT |
1309 | $(COMPILE.c) $(srcdir)/simple-object-coff.c $(OUTPUT_OPTION) |
1310 | ||
1311 | ./simple-object-elf.$(objext): $(srcdir)/simple-object-elf.c config.h \ | |
1312 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ | |
1313 | $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h | |
1314 | if [ x"$(PICFLAG)" != x ]; then \ | |
1315 | $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-elf.c -o pic/$@; \ | |
1316 | else true; fi | |
4f148bbc JJ |
1317 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1318 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/simple-object-elf.c -o noasan/$@; \ | |
1319 | else true; fi | |
1cfabf34 ILT |
1320 | $(COMPILE.c) $(srcdir)/simple-object-elf.c $(OUTPUT_OPTION) |
1321 | ||
1322 | ./simple-object-mach-o.$(objext): $(srcdir)/simple-object-mach-o.c config.h \ | |
1323 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ | |
1324 | $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h | |
1325 | if [ x"$(PICFLAG)" != x ]; then \ | |
1326 | $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-mach-o.c -o pic/$@; \ | |
1327 | else true; fi | |
4f148bbc JJ |
1328 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1329 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/simple-object-mach-o.c -o noasan/$@; \ | |
1330 | else true; fi | |
1cfabf34 ILT |
1331 | $(COMPILE.c) $(srcdir)/simple-object-mach-o.c $(OUTPUT_OPTION) |
1332 | ||
a9b01f00 DE |
1333 | ./simple-object-xcoff.$(objext): $(srcdir)/simple-object-xcoff.c config.h \ |
1334 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ | |
1335 | $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h | |
1336 | if [ x"$(PICFLAG)" != x ]; then \ | |
1337 | $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-xcoff.c -o pic/$@; \ | |
1338 | else true; fi | |
4f148bbc JJ |
1339 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1340 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/simple-object-xcoff.c -o noasan/$@; \ | |
1341 | else true; fi | |
a9b01f00 DE |
1342 | $(COMPILE.c) $(srcdir)/simple-object-xcoff.c $(OUTPUT_OPTION) |
1343 | ||
1cfabf34 ILT |
1344 | ./simple-object.$(objext): $(srcdir)/simple-object.c config.h \ |
1345 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ | |
1346 | $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h | |
1347 | if [ x"$(PICFLAG)" != x ]; then \ | |
1348 | $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object.c -o pic/$@; \ | |
1349 | else true; fi | |
4f148bbc JJ |
1350 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1351 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/simple-object.c -o noasan/$@; \ | |
1352 | else true; fi | |
1cfabf34 ILT |
1353 | $(COMPILE.c) $(srcdir)/simple-object.c $(OUTPUT_OPTION) |
1354 | ||
16f60fcb | 1355 | ./snprintf.$(objext): $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1356 | if [ x"$(PICFLAG)" != x ]; then \ |
1357 | $(COMPILE.c) $(PICFLAG) $(srcdir)/snprintf.c -o pic/$@; \ | |
1358 | else true; fi | |
4f148bbc JJ |
1359 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1360 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/snprintf.c -o noasan/$@; \ | |
1361 | else true; fi | |
24f2cabb | 1362 | $(COMPILE.c) $(srcdir)/snprintf.c $(OUTPUT_OPTION) |
398b3deb | 1363 | |
16f60fcb TG |
1364 | ./sort.$(objext): $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h \ |
1365 | $(INCDIR)/libiberty.h $(INCDIR)/sort.h | |
24f2cabb L |
1366 | if [ x"$(PICFLAG)" != x ]; then \ |
1367 | $(COMPILE.c) $(PICFLAG) $(srcdir)/sort.c -o pic/$@; \ | |
1368 | else true; fi | |
4f148bbc JJ |
1369 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1370 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/sort.c -o noasan/$@; \ | |
1371 | else true; fi | |
24f2cabb | 1372 | $(COMPILE.c) $(srcdir)/sort.c $(OUTPUT_OPTION) |
398b3deb | 1373 | |
16f60fcb | 1374 | ./spaces.$(objext): $(srcdir)/spaces.c config.h $(INCDIR)/ansidecl.h \ |
f59a2f55 | 1375 | $(INCDIR)/libiberty.h |
24f2cabb L |
1376 | if [ x"$(PICFLAG)" != x ]; then \ |
1377 | $(COMPILE.c) $(PICFLAG) $(srcdir)/spaces.c -o pic/$@; \ | |
1378 | else true; fi | |
4f148bbc JJ |
1379 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1380 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/spaces.c -o noasan/$@; \ | |
1381 | else true; fi | |
24f2cabb | 1382 | $(COMPILE.c) $(srcdir)/spaces.c $(OUTPUT_OPTION) |
398b3deb | 1383 | |
16f60fcb | 1384 | ./splay-tree.$(objext): $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1385 | $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h |
24f2cabb L |
1386 | if [ x"$(PICFLAG)" != x ]; then \ |
1387 | $(COMPILE.c) $(PICFLAG) $(srcdir)/splay-tree.c -o pic/$@; \ | |
1388 | else true; fi | |
4f148bbc JJ |
1389 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1390 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/splay-tree.c -o noasan/$@; \ | |
1391 | else true; fi | |
24f2cabb | 1392 | $(COMPILE.c) $(srcdir)/splay-tree.c $(OUTPUT_OPTION) |
398b3deb | 1393 | |
9a9baa52 | 1394 | ./stack-limit.$(objext): $(srcdir)/stack-limit.c config.h $(INCDIR)/ansidecl.h |
d423df48 JJ |
1395 | if [ x"$(PICFLAG)" != x ]; then \ |
1396 | $(COMPILE.c) $(PICFLAG) $(srcdir)/stack-limit.c -o pic/$@; \ | |
1397 | else true; fi | |
4f148bbc JJ |
1398 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1399 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/stack-limit.c -o noasan/$@; \ | |
1400 | else true; fi | |
d423df48 JJ |
1401 | $(COMPILE.c) $(srcdir)/stack-limit.c $(OUTPUT_OPTION) |
1402 | ||
16f60fcb | 1403 | ./stpcpy.$(objext): $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1404 | if [ x"$(PICFLAG)" != x ]; then \ |
1405 | $(COMPILE.c) $(PICFLAG) $(srcdir)/stpcpy.c -o pic/$@; \ | |
1406 | else true; fi | |
4f148bbc JJ |
1407 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1408 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/stpcpy.c -o noasan/$@; \ | |
1409 | else true; fi | |
24f2cabb | 1410 | $(COMPILE.c) $(srcdir)/stpcpy.c $(OUTPUT_OPTION) |
398b3deb | 1411 | |
16f60fcb | 1412 | ./stpncpy.$(objext): $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1413 | if [ x"$(PICFLAG)" != x ]; then \ |
1414 | $(COMPILE.c) $(PICFLAG) $(srcdir)/stpncpy.c -o pic/$@; \ | |
1415 | else true; fi | |
4f148bbc JJ |
1416 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1417 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/stpncpy.c -o noasan/$@; \ | |
1418 | else true; fi | |
24f2cabb | 1419 | $(COMPILE.c) $(srcdir)/stpncpy.c $(OUTPUT_OPTION) |
398b3deb | 1420 | |
16f60fcb | 1421 | ./strcasecmp.$(objext): $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1422 | if [ x"$(PICFLAG)" != x ]; then \ |
1423 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strcasecmp.c -o pic/$@; \ | |
1424 | else true; fi | |
4f148bbc JJ |
1425 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1426 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strcasecmp.c -o noasan/$@; \ | |
1427 | else true; fi | |
24f2cabb | 1428 | $(COMPILE.c) $(srcdir)/strcasecmp.c $(OUTPUT_OPTION) |
398b3deb | 1429 | |
16f60fcb | 1430 | ./strchr.$(objext): $(srcdir)/strchr.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1431 | if [ x"$(PICFLAG)" != x ]; then \ |
1432 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strchr.c -o pic/$@; \ | |
1433 | else true; fi | |
4f148bbc JJ |
1434 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1435 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strchr.c -o noasan/$@; \ | |
1436 | else true; fi | |
24f2cabb | 1437 | $(COMPILE.c) $(srcdir)/strchr.c $(OUTPUT_OPTION) |
398b3deb | 1438 | |
16f60fcb | 1439 | ./strdup.$(objext): $(srcdir)/strdup.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1440 | if [ x"$(PICFLAG)" != x ]; then \ |
1441 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strdup.c -o pic/$@; \ | |
1442 | else true; fi | |
4f148bbc JJ |
1443 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1444 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strdup.c -o noasan/$@; \ | |
1445 | else true; fi | |
24f2cabb | 1446 | $(COMPILE.c) $(srcdir)/strdup.c $(OUTPUT_OPTION) |
398b3deb | 1447 | |
16f60fcb | 1448 | ./strerror.$(objext): $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1449 | $(INCDIR)/libiberty.h |
24f2cabb L |
1450 | if [ x"$(PICFLAG)" != x ]; then \ |
1451 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strerror.c -o pic/$@; \ | |
1452 | else true; fi | |
4f148bbc JJ |
1453 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1454 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strerror.c -o noasan/$@; \ | |
1455 | else true; fi | |
24f2cabb | 1456 | $(COMPILE.c) $(srcdir)/strerror.c $(OUTPUT_OPTION) |
398b3deb | 1457 | |
16f60fcb | 1458 | ./strncasecmp.$(objext): $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1459 | if [ x"$(PICFLAG)" != x ]; then \ |
1460 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strncasecmp.c -o pic/$@; \ | |
1461 | else true; fi | |
4f148bbc JJ |
1462 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1463 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strncasecmp.c -o noasan/$@; \ | |
1464 | else true; fi | |
24f2cabb | 1465 | $(COMPILE.c) $(srcdir)/strncasecmp.c $(OUTPUT_OPTION) |
398b3deb | 1466 | |
16f60fcb | 1467 | ./strncmp.$(objext): $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1468 | if [ x"$(PICFLAG)" != x ]; then \ |
1469 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strncmp.c -o pic/$@; \ | |
1470 | else true; fi | |
4f148bbc JJ |
1471 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1472 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strncmp.c -o noasan/$@; \ | |
1473 | else true; fi | |
24f2cabb | 1474 | $(COMPILE.c) $(srcdir)/strncmp.c $(OUTPUT_OPTION) |
398b3deb | 1475 | |
16f60fcb | 1476 | ./strndup.$(objext): $(srcdir)/strndup.c $(INCDIR)/ansidecl.h |
17998b22 KG |
1477 | if [ x"$(PICFLAG)" != x ]; then \ |
1478 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strndup.c -o pic/$@; \ | |
1479 | else true; fi | |
4f148bbc JJ |
1480 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1481 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strndup.c -o noasan/$@; \ | |
1482 | else true; fi | |
17998b22 KG |
1483 | $(COMPILE.c) $(srcdir)/strndup.c $(OUTPUT_OPTION) |
1484 | ||
9a9baa52 ILT |
1485 | ./strnlen.$(objext): $(srcdir)/strnlen.c config.h |
1486 | if [ x"$(PICFLAG)" != x ]; then \ | |
1487 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strnlen.c -o pic/$@; \ | |
1488 | else true; fi | |
4f148bbc JJ |
1489 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1490 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strnlen.c -o noasan/$@; \ | |
1491 | else true; fi | |
9a9baa52 ILT |
1492 | $(COMPILE.c) $(srcdir)/strnlen.c $(OUTPUT_OPTION) |
1493 | ||
16f60fcb | 1494 | ./strrchr.$(objext): $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1495 | if [ x"$(PICFLAG)" != x ]; then \ |
1496 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strrchr.c -o pic/$@; \ | |
1497 | else true; fi | |
4f148bbc JJ |
1498 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1499 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strrchr.c -o noasan/$@; \ | |
1500 | else true; fi | |
24f2cabb | 1501 | $(COMPILE.c) $(srcdir)/strrchr.c $(OUTPUT_OPTION) |
398b3deb | 1502 | |
16f60fcb | 1503 | ./strsignal.$(objext): $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1504 | $(INCDIR)/libiberty.h |
24f2cabb L |
1505 | if [ x"$(PICFLAG)" != x ]; then \ |
1506 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strsignal.c -o pic/$@; \ | |
1507 | else true; fi | |
4f148bbc JJ |
1508 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1509 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strsignal.c -o noasan/$@; \ | |
1510 | else true; fi | |
24f2cabb | 1511 | $(COMPILE.c) $(srcdir)/strsignal.c $(OUTPUT_OPTION) |
398b3deb | 1512 | |
16f60fcb | 1513 | ./strstr.$(objext): $(srcdir)/strstr.c |
24f2cabb L |
1514 | if [ x"$(PICFLAG)" != x ]; then \ |
1515 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strstr.c -o pic/$@; \ | |
1516 | else true; fi | |
4f148bbc JJ |
1517 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1518 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strstr.c -o noasan/$@; \ | |
1519 | else true; fi | |
24f2cabb | 1520 | $(COMPILE.c) $(srcdir)/strstr.c $(OUTPUT_OPTION) |
398b3deb | 1521 | |
16f60fcb TG |
1522 | ./strtod.$(objext): $(srcdir)/strtod.c $(INCDIR)/ansidecl.h \ |
1523 | $(INCDIR)/safe-ctype.h | |
24f2cabb L |
1524 | if [ x"$(PICFLAG)" != x ]; then \ |
1525 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strtod.c -o pic/$@; \ | |
1526 | else true; fi | |
4f148bbc JJ |
1527 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1528 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strtod.c -o noasan/$@; \ | |
1529 | else true; fi | |
24f2cabb | 1530 | $(COMPILE.c) $(srcdir)/strtod.c $(OUTPUT_OPTION) |
398b3deb | 1531 | |
16f60fcb | 1532 | ./strtol.$(objext): $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h |
24f2cabb L |
1533 | if [ x"$(PICFLAG)" != x ]; then \ |
1534 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strtol.c -o pic/$@; \ | |
1535 | else true; fi | |
4f148bbc JJ |
1536 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1537 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strtol.c -o noasan/$@; \ | |
1538 | else true; fi | |
24f2cabb | 1539 | $(COMPILE.c) $(srcdir)/strtol.c $(OUTPUT_OPTION) |
398b3deb | 1540 | |
ea41822a YG |
1541 | ./strtoll.$(objext): $(srcdir)/strtoll.c config.h $(INCDIR)/safe-ctype.h |
1542 | if [ x"$(PICFLAG)" != x ]; then \ | |
1543 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoll.c -o pic/$@; \ | |
1544 | else true; fi | |
1545 | if [ x"$(NOASANFLAG)" != x ]; then \ | |
1546 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strtoll.c -o noasan/$@; \ | |
1547 | else true; fi | |
1548 | $(COMPILE.c) $(srcdir)/strtoll.c $(OUTPUT_OPTION) | |
1549 | ||
16f60fcb | 1550 | ./strtoul.$(objext): $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1551 | $(INCDIR)/safe-ctype.h |
24f2cabb L |
1552 | if [ x"$(PICFLAG)" != x ]; then \ |
1553 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoul.c -o pic/$@; \ | |
1554 | else true; fi | |
4f148bbc JJ |
1555 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1556 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strtoul.c -o noasan/$@; \ | |
1557 | else true; fi | |
24f2cabb | 1558 | $(COMPILE.c) $(srcdir)/strtoul.c $(OUTPUT_OPTION) |
398b3deb | 1559 | |
ea41822a YG |
1560 | ./strtoull.$(objext): $(srcdir)/strtoull.c config.h $(INCDIR)/ansidecl.h \ |
1561 | $(INCDIR)/safe-ctype.h | |
1562 | if [ x"$(PICFLAG)" != x ]; then \ | |
1563 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoull.c -o pic/$@; \ | |
1564 | else true; fi | |
1565 | if [ x"$(NOASANFLAG)" != x ]; then \ | |
1566 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strtoull.c -o noasan/$@; \ | |
1567 | else true; fi | |
1568 | $(COMPILE.c) $(srcdir)/strtoull.c $(OUTPUT_OPTION) | |
1569 | ||
16f60fcb TG |
1570 | ./strverscmp.$(objext): $(srcdir)/strverscmp.c $(INCDIR)/ansidecl.h \ |
1571 | $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h | |
83fbfe42 GK |
1572 | if [ x"$(PICFLAG)" != x ]; then \ |
1573 | $(COMPILE.c) $(PICFLAG) $(srcdir)/strverscmp.c -o pic/$@; \ | |
1574 | else true; fi | |
4f148bbc JJ |
1575 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1576 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strverscmp.c -o noasan/$@; \ | |
1577 | else true; fi | |
83fbfe42 GK |
1578 | $(COMPILE.c) $(srcdir)/strverscmp.c $(OUTPUT_OPTION) |
1579 | ||
4092fb6e DE |
1580 | ./timeval-utils.$(objext): $(srcdir)/timeval-utils.c config.h \ |
1581 | $(INCDIR)/timeval-utils.h | |
1582 | if [ x"$(PICFLAG)" != x ]; then \ | |
1583 | $(COMPILE.c) $(PICFLAG) $(srcdir)/timeval-utils.c -o pic/$@; \ | |
1584 | else true; fi | |
4f148bbc JJ |
1585 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1586 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/timeval-utils.c -o noasan/$@; \ | |
1587 | else true; fi | |
4092fb6e DE |
1588 | $(COMPILE.c) $(srcdir)/timeval-utils.c $(OUTPUT_OPTION) |
1589 | ||
16f60fcb | 1590 | ./tmpnam.$(objext): $(srcdir)/tmpnam.c |
24f2cabb L |
1591 | if [ x"$(PICFLAG)" != x ]; then \ |
1592 | $(COMPILE.c) $(PICFLAG) $(srcdir)/tmpnam.c -o pic/$@; \ | |
1593 | else true; fi | |
4f148bbc JJ |
1594 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1595 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/tmpnam.c -o noasan/$@; \ | |
1596 | else true; fi | |
24f2cabb | 1597 | $(COMPILE.c) $(srcdir)/tmpnam.c $(OUTPUT_OPTION) |
398b3deb | 1598 | |
16f60fcb | 1599 | ./unlink-if-ordinary.$(objext): $(srcdir)/unlink-if-ordinary.c config.h \ |
17049f0b | 1600 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
c363985d JB |
1601 | if [ x"$(PICFLAG)" != x ]; then \ |
1602 | $(COMPILE.c) $(PICFLAG) $(srcdir)/unlink-if-ordinary.c -o pic/$@; \ | |
1603 | else true; fi | |
4f148bbc JJ |
1604 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1605 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/unlink-if-ordinary.c -o noasan/$@; \ | |
1606 | else true; fi | |
c363985d JB |
1607 | $(COMPILE.c) $(srcdir)/unlink-if-ordinary.c $(OUTPUT_OPTION) |
1608 | ||
16f60fcb | 1609 | ./vasprintf.$(objext): $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \ |
01ca36af | 1610 | $(INCDIR)/libiberty.h $(srcdir)/vprintf-support.h |
24f2cabb L |
1611 | if [ x"$(PICFLAG)" != x ]; then \ |
1612 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vasprintf.c -o pic/$@; \ | |
1613 | else true; fi | |
4f148bbc JJ |
1614 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1615 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vasprintf.c -o noasan/$@; \ | |
1616 | else true; fi | |
24f2cabb | 1617 | $(COMPILE.c) $(srcdir)/vasprintf.c $(OUTPUT_OPTION) |
398b3deb | 1618 | |
16f60fcb | 1619 | ./vfork.$(objext): $(srcdir)/vfork.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1620 | if [ x"$(PICFLAG)" != x ]; then \ |
1621 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vfork.c -o pic/$@; \ | |
1622 | else true; fi | |
4f148bbc JJ |
1623 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1624 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vfork.c -o noasan/$@; \ | |
1625 | else true; fi | |
24f2cabb | 1626 | $(COMPILE.c) $(srcdir)/vfork.c $(OUTPUT_OPTION) |
398b3deb | 1627 | |
16f60fcb | 1628 | ./vfprintf.$(objext): $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1629 | if [ x"$(PICFLAG)" != x ]; then \ |
1630 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vfprintf.c -o pic/$@; \ | |
1631 | else true; fi | |
4f148bbc JJ |
1632 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1633 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vfprintf.c -o noasan/$@; \ | |
1634 | else true; fi | |
24f2cabb | 1635 | $(COMPILE.c) $(srcdir)/vfprintf.c $(OUTPUT_OPTION) |
398b3deb | 1636 | |
01ca36af UB |
1637 | ./vprintf-support.$(objext): $(srcdir)/vprintf-support.c config.h \ |
1638 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
1639 | if [ x"$(PICFLAG)" != x ]; then \ | |
1640 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf-support.c -o pic/$@; \ | |
1641 | else true; fi | |
1642 | if [ x"$(NOASANFLAG)" != x ]; then \ | |
1643 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vprintf-support.c -o noasan/$@; \ | |
1644 | else true; fi | |
1645 | $(COMPILE.c) $(srcdir)/vprintf-support.c $(OUTPUT_OPTION) | |
1646 | ||
16f60fcb | 1647 | ./vprintf.$(objext): $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1648 | if [ x"$(PICFLAG)" != x ]; then \ |
1649 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf.c -o pic/$@; \ | |
1650 | else true; fi | |
4f148bbc JJ |
1651 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1652 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vprintf.c -o noasan/$@; \ | |
1653 | else true; fi | |
24f2cabb | 1654 | $(COMPILE.c) $(srcdir)/vprintf.c $(OUTPUT_OPTION) |
398b3deb | 1655 | |
16f60fcb | 1656 | ./vsnprintf.$(objext): $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1657 | $(INCDIR)/libiberty.h |
24f2cabb L |
1658 | if [ x"$(PICFLAG)" != x ]; then \ |
1659 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vsnprintf.c -o pic/$@; \ | |
1660 | else true; fi | |
4f148bbc JJ |
1661 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1662 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vsnprintf.c -o noasan/$@; \ | |
1663 | else true; fi | |
24f2cabb | 1664 | $(COMPILE.c) $(srcdir)/vsnprintf.c $(OUTPUT_OPTION) |
398b3deb | 1665 | |
16f60fcb | 1666 | ./vsprintf.$(objext): $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h |
24f2cabb L |
1667 | if [ x"$(PICFLAG)" != x ]; then \ |
1668 | $(COMPILE.c) $(PICFLAG) $(srcdir)/vsprintf.c -o pic/$@; \ | |
1669 | else true; fi | |
4f148bbc JJ |
1670 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1671 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vsprintf.c -o noasan/$@; \ | |
1672 | else true; fi | |
24f2cabb | 1673 | $(COMPILE.c) $(srcdir)/vsprintf.c $(OUTPUT_OPTION) |
398b3deb | 1674 | |
16f60fcb | 1675 | ./waitpid.$(objext): $(srcdir)/waitpid.c config.h $(INCDIR)/ansidecl.h |
24f2cabb L |
1676 | if [ x"$(PICFLAG)" != x ]; then \ |
1677 | $(COMPILE.c) $(PICFLAG) $(srcdir)/waitpid.c -o pic/$@; \ | |
1678 | else true; fi | |
4f148bbc JJ |
1679 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1680 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/waitpid.c -o noasan/$@; \ | |
1681 | else true; fi | |
24f2cabb | 1682 | $(COMPILE.c) $(srcdir)/waitpid.c $(OUTPUT_OPTION) |
398b3deb | 1683 | |
e8850918 UB |
1684 | ./xasprintf.$(objext): $(srcdir)/xasprintf.c config.h $(INCDIR)/ansidecl.h \ |
1685 | $(INCDIR)/libiberty.h | |
1686 | if [ x"$(PICFLAG)" != x ]; then \ | |
1687 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xasprintf.c -o pic/$@; \ | |
1688 | else true; fi | |
1689 | if [ x"$(NOASANFLAG)" != x ]; then \ | |
1690 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xasprintf.c -o noasan/$@; \ | |
1691 | else true; fi | |
1692 | $(COMPILE.c) $(srcdir)/xasprintf.c $(OUTPUT_OPTION) | |
1693 | ||
16f60fcb | 1694 | ./xatexit.$(objext): $(srcdir)/xatexit.c config.h $(INCDIR)/ansidecl.h \ |
bd7d50f8 | 1695 | $(INCDIR)/libiberty.h |
24f2cabb L |
1696 | if [ x"$(PICFLAG)" != x ]; then \ |
1697 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xatexit.c -o pic/$@; \ | |
1698 | else true; fi | |
4f148bbc JJ |
1699 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1700 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xatexit.c -o noasan/$@; \ | |
1701 | else true; fi | |
24f2cabb | 1702 | $(COMPILE.c) $(srcdir)/xatexit.c $(OUTPUT_OPTION) |
398b3deb | 1703 | |
16f60fcb TG |
1704 | ./xexit.$(objext): $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h \ |
1705 | $(INCDIR)/libiberty.h | |
24f2cabb L |
1706 | if [ x"$(PICFLAG)" != x ]; then \ |
1707 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xexit.c -o pic/$@; \ | |
1708 | else true; fi | |
4f148bbc JJ |
1709 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1710 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xexit.c -o noasan/$@; \ | |
1711 | else true; fi | |
24f2cabb | 1712 | $(COMPILE.c) $(srcdir)/xexit.c $(OUTPUT_OPTION) |
398b3deb | 1713 | |
16f60fcb | 1714 | ./xmalloc.$(objext): $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1715 | $(INCDIR)/libiberty.h |
24f2cabb L |
1716 | if [ x"$(PICFLAG)" != x ]; then \ |
1717 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xmalloc.c -o pic/$@; \ | |
1718 | else true; fi | |
4f148bbc JJ |
1719 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1720 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xmalloc.c -o noasan/$@; \ | |
1721 | else true; fi | |
24f2cabb | 1722 | $(COMPILE.c) $(srcdir)/xmalloc.c $(OUTPUT_OPTION) |
398b3deb | 1723 | |
16f60fcb | 1724 | ./xmemdup.$(objext): $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1725 | $(INCDIR)/libiberty.h |
24f2cabb L |
1726 | if [ x"$(PICFLAG)" != x ]; then \ |
1727 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xmemdup.c -o pic/$@; \ | |
1728 | else true; fi | |
4f148bbc JJ |
1729 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1730 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xmemdup.c -o noasan/$@; \ | |
1731 | else true; fi | |
24f2cabb | 1732 | $(COMPILE.c) $(srcdir)/xmemdup.c $(OUTPUT_OPTION) |
398b3deb | 1733 | |
16f60fcb | 1734 | ./xstrdup.$(objext): $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1735 | $(INCDIR)/libiberty.h |
24f2cabb L |
1736 | if [ x"$(PICFLAG)" != x ]; then \ |
1737 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/$@; \ | |
1738 | else true; fi | |
4f148bbc JJ |
1739 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1740 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xstrdup.c -o noasan/$@; \ | |
1741 | else true; fi | |
24f2cabb | 1742 | $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION) |
398b3deb | 1743 | |
16f60fcb | 1744 | ./xstrerror.$(objext): $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \ |
398b3deb | 1745 | $(INCDIR)/libiberty.h |
24f2cabb L |
1746 | if [ x"$(PICFLAG)" != x ]; then \ |
1747 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrerror.c -o pic/$@; \ | |
1748 | else true; fi | |
4f148bbc JJ |
1749 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1750 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xstrerror.c -o noasan/$@; \ | |
1751 | else true; fi | |
24f2cabb | 1752 | $(COMPILE.c) $(srcdir)/xstrerror.c $(OUTPUT_OPTION) |
398b3deb | 1753 | |
16f60fcb | 1754 | ./xstrndup.$(objext): $(srcdir)/xstrndup.c config.h $(INCDIR)/ansidecl.h \ |
17998b22 KG |
1755 | $(INCDIR)/libiberty.h |
1756 | if [ x"$(PICFLAG)" != x ]; then \ | |
1757 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrndup.c -o pic/$@; \ | |
1758 | else true; fi | |
4f148bbc JJ |
1759 | if [ x"$(NOASANFLAG)" != x ]; then \ |
1760 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xstrndup.c -o noasan/$@; \ | |
1761 | else true; fi | |
17998b22 KG |
1762 | $(COMPILE.c) $(srcdir)/xstrndup.c $(OUTPUT_OPTION) |
1763 | ||
01ca36af UB |
1764 | ./xvasprintf.$(objext): $(srcdir)/xvasprintf.c config.h $(INCDIR)/ansidecl.h \ |
1765 | $(INCDIR)/libiberty.h $(srcdir)/vprintf-support.h | |
1766 | if [ x"$(PICFLAG)" != x ]; then \ | |
1767 | $(COMPILE.c) $(PICFLAG) $(srcdir)/xvasprintf.c -o pic/$@; \ | |
1768 | else true; fi | |
1769 | if [ x"$(NOASANFLAG)" != x ]; then \ | |
1770 | $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xvasprintf.c -o noasan/$@; \ | |
1771 | else true; fi | |
1772 | $(COMPILE.c) $(srcdir)/xvasprintf.c $(OUTPUT_OPTION) |