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