]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - libiberty/Makefile.in
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / libiberty / Makefile.in
CommitLineData
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 22libiberty_topdir = @libiberty_topdir@
252b5132 23srcdir = @srcdir@
252b5132
RH
24
25prefix = @prefix@
26
27exec_prefix = @exec_prefix@
28bindir = @bindir@
29libdir = @libdir@
50d4562d
DD
30includedir = @includedir@
31target_header_dir = @target_header_dir@
497462ef 32objext = @OBJEXT@
252b5132
RH
33
34SHELL = @SHELL@
35
36# Multilib support variables.
37MULTISRCTOP =
38MULTIBUILDTOP =
39MULTIDIRS =
40MULTISUBDIR =
41MULTIDO = true
42MULTICLEAN = true
43
44INSTALL = @INSTALL@
45INSTALL_PROGRAM = @INSTALL_PROGRAM@
46INSTALL_DATA = @INSTALL_DATA@
85b9a938 47mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs
252b5132 48
46a10049
DD
49# Some compilers can't handle cc -c blah.c -o foo/blah.o.
50OUTPUT_OPTION = @OUTPUT_OPTION@
51
252b5132
RH
52AR = @AR@
53AR_FLAGS = rc
54
55CC = @CC@
56CFLAGS = @CFLAGS@
bb52de30 57CPPFLAGS = @CPPFLAGS@
252b5132 58RANLIB = @RANLIB@
39423523
DD
59MAKEINFO = @MAKEINFO@
60PERL = @PERL@
252b5132 61
c779bab8 62PICFLAG = @PICFLAG@
3f48575a 63NOASANFLAG = @NOASANFLAG@
252b5132
RH
64
65MAKEOVERRIDES =
66
37254c9a
DD
67TARGETLIB = ./libiberty.a
68TESTLIB = ./testlib.a
252b5132
RH
69
70LIBOBJS = @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.)
74EXTRA_OFILES =
75
76# Flags to pass to a recursive make.
77FLAGS_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
100SUBDIRS = testsuite
101
39423523 102# FIXME: add @BUILD_INFO@ once we're sure it works for everyone.
3f48575a 103all: 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
107check: check-subdir
108installcheck: installcheck-subdir
252b5132
RH
109
110@host_makefile_frag@
111
112INCDIR=$(srcdir)/$(MULTISRCTOP)../include
113
f91ca6bc 114COMPILE.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 126CFILES = 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 167REQUIRED_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
205CONFIGURED_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.
235INSTALLED_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
276info: libiberty.info info-subdir
277install-info: install-info-subdir
278clean-info: clean-info-subdir
279dvi: libiberty.dvi dvi-subdir
d7831e7c
DD
280
281LIBIBERTY_PDFFILES = libiberty.pdf
282
283pdf: $(LIBIBERTY_PDFFILES) pdf-subdir
284
285.PHONY: install-pdf
286
287pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
288
289install-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
300HTMLS = libiberty.html
301
302html: $(HTMLS)
303
7a0801a9 304.PHONY: install-html install-html-am
545c9aee
DD
305
306NORMAL_INSTALL = :
307mkdir_p = mkdir -p --
497462ef 308
545c9aee
DD
309html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
310
7a0801a9 311install-html: install-html-am
545c9aee
DD
312
313install-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
330TEXISRC = \
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 339TEXIFILES = fnmatch.txh pexecute.txh simple-object.txh
39423523
DD
340
341libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC)
342 $(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi
343
344libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC)
345 texi2dvi $(srcdir)/libiberty.texi
346
bff368bd
DD
347libiberty.pdf : $(srcdir)/libiberty.texi $(TEXISRC)
348 texi2pdf $(srcdir)/libiberty.texi
349
39423523 350libiberty.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 360INSTALL_DEST = @INSTALL_DEST@
0c0a36a4 361install: install_to_$(INSTALL_DEST) install-subdir
9b980aa1
RW
362install-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 370MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
252b5132 371install_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
388install_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.
397required-list: Makefile
398 echo $(REQUIRED_OFILES) > required-list
399
46a10049
DD
400stamp-picdir:
401 if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
402 mkdir pic; \
403 else true; fi
404 touch stamp-picdir
405
3f48575a 406stamp-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 414etags 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.
419demangle: $(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
425ls:
30673bf5 426 @echo Makefile $(CFILES)
252b5132 427
39423523
DD
428# Various targets for maintainers.
429
430maint-missing :
46a10049 431 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
39423523 432
46a10049 433maint-buildall : $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
39423523
DD
434 @true
435
ba19b94f
DD
436maint-undoc : $(srcdir)/functions.texi
437 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc
438
cc096b71
DD
439maint-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.
446mostlyclean: 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
455clean: 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
460distclean: 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
466maintainer-clean realclean: maintainer-clean-subdir
467 $(MAKE) SUBDIRS="" distclean
252b5132
RH
468
469force:
470
471Makefile: $(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 476config.h: stamp-h ; @true
37254c9a
DD
477stamp-h: $(srcdir)/config.in config.status Makefile
478 CONFIG_FILES= CONFIG_HEADERS=config.h:$(srcdir)/config.in $(SHELL) ./config.status
252b5132 479
4cf896a5 480config.status: $(srcdir)/configure
252b5132
RH
481 $(SHELL) ./config.status --recheck
482
626aaf89
DD
483AUTOCONF = autoconf
484configure_deps = $(srcdir)/aclocal.m4 \
485 $(srcdir)/../config/acx.m4 \
56b1e56d
NC
486 $(srcdir)/../config/cet.m4 \
487 $(srcdir)/../config/enable.m4 \
626aaf89
DD
488 $(srcdir)/../config/no-executables.m4 \
489 $(srcdir)/../config/override.m4 \
e495212d
AM
490 $(srcdir)/../config/picflag.m4 \
491 $(srcdir)/../config/warnings.m4
626aaf89
DD
492
493$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(configure_deps)
494 cd $(srcdir) && $(AUTOCONF)
495
b7d9aef1 496# Depending on config.h makes sure that config.status has been re-run
fec50157
DD
497# if needed. This prevents problems with parallel builds, in case
498# subdirectories need to run config.status also.
0c0a36a4 499all-subdir check-subdir installcheck-subdir info-subdir \
bff368bd 500install-info-subdir clean-info-subdir dvi-subdir pdf-subdir install-subdir \
0c0a36a4 501etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
b7d9aef1 502maintainer-clean-subdir: config.h
010c70e1 503 @subdirs='$(SUBDIRS)'; \
19be4303 504 target=`echo $@ | sed -e 's/-subdir//'`; \
010c70e1 505 for dir in $$subdirs ; do \
578460f2 506 cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \
0c0a36a4
ILT
507 done
508
3f48575a 509$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir stamp-noasandir
510$(CONFIGURED_OFILES): stamp-picdir stamp-noasandir
46a10049 511
8ec32723
DD
512# Don't export variables to the environment, in order to not confuse
513# configure.
514.NOEXPORT:
515
cc096b71
DD
516# The dependencies in the remainder of this file are automatically
517# generated by "make maint-deps". Manual edits will be lost.
252b5132 518
497462ef 519./_doprnt.$(objext): $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \
cc096b71 520 $(INCDIR)/safe-ctype.h
46a10049
DD
521 if [ x"$(PICFLAG)" != x ]; then \
522 $(COMPILE.c) $(PICFLAG) $(srcdir)/_doprnt.c -o pic/$@; \
523 else true; fi
3f48575a 524 if [ x"$(NOASANFLAG)" != x ]; then \
525 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/_doprnt.c -o noasan/$@; \
526 else true; fi
46a10049 527 $(COMPILE.c) $(srcdir)/_doprnt.c $(OUTPUT_OPTION)
37254c9a 528
497462ef 529./alloca.$(objext): $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \
b7d9aef1 530 $(INCDIR)/libiberty.h
46a10049
DD
531 if [ x"$(PICFLAG)" != x ]; then \
532 $(COMPILE.c) $(PICFLAG) $(srcdir)/alloca.c -o pic/$@; \
533 else true; fi
3f48575a 534 if [ x"$(NOASANFLAG)" != x ]; then \
535 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/alloca.c -o noasan/$@; \
536 else true; fi
46a10049 537 $(COMPILE.c) $(srcdir)/alloca.c $(OUTPUT_OPTION)
37254c9a 538
497462ef
DD
539./argv.$(objext): $(srcdir)/argv.c config.h $(INCDIR)/ansidecl.h \
540 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
46a10049
DD
541 if [ x"$(PICFLAG)" != x ]; then \
542 $(COMPILE.c) $(PICFLAG) $(srcdir)/argv.c -o pic/$@; \
543 else true; fi
3f48575a 544 if [ x"$(NOASANFLAG)" != x ]; then \
545 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/argv.c -o noasan/$@; \
546 else true; fi
46a10049 547 $(COMPILE.c) $(srcdir)/argv.c $(OUTPUT_OPTION)
37254c9a 548
497462ef 549./asprintf.$(objext): $(srcdir)/asprintf.c config.h $(INCDIR)/ansidecl.h \
75919f94 550 $(INCDIR)/libiberty.h
46a10049
DD
551 if [ x"$(PICFLAG)" != x ]; then \
552 $(COMPILE.c) $(PICFLAG) $(srcdir)/asprintf.c -o pic/$@; \
553 else true; fi
3f48575a 554 if [ x"$(NOASANFLAG)" != x ]; then \
555 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/asprintf.c -o noasan/$@; \
556 else true; fi
46a10049 557 $(COMPILE.c) $(srcdir)/asprintf.c $(OUTPUT_OPTION)
37254c9a 558
497462ef 559./atexit.$(objext): $(srcdir)/atexit.c config.h
46a10049
DD
560 if [ x"$(PICFLAG)" != x ]; then \
561 $(COMPILE.c) $(PICFLAG) $(srcdir)/atexit.c -o pic/$@; \
562 else true; fi
3f48575a 563 if [ x"$(NOASANFLAG)" != x ]; then \
564 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/atexit.c -o noasan/$@; \
565 else true; fi
46a10049 566 $(COMPILE.c) $(srcdir)/atexit.c $(OUTPUT_OPTION)
37254c9a 567
497462ef 568./basename.$(objext): $(srcdir)/basename.c config.h $(INCDIR)/ansidecl.h \
75919f94 569 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
46a10049
DD
570 if [ x"$(PICFLAG)" != x ]; then \
571 $(COMPILE.c) $(PICFLAG) $(srcdir)/basename.c -o pic/$@; \
572 else true; fi
3f48575a 573 if [ x"$(NOASANFLAG)" != x ]; then \
574 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/basename.c -o noasan/$@; \
575 else true; fi
46a10049 576 $(COMPILE.c) $(srcdir)/basename.c $(OUTPUT_OPTION)
37254c9a 577
497462ef 578./bcmp.$(objext): $(srcdir)/bcmp.c
46a10049
DD
579 if [ x"$(PICFLAG)" != x ]; then \
580 $(COMPILE.c) $(PICFLAG) $(srcdir)/bcmp.c -o pic/$@; \
581 else true; fi
3f48575a 582 if [ x"$(NOASANFLAG)" != x ]; then \
583 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/bcmp.c -o noasan/$@; \
584 else true; fi
46a10049 585 $(COMPILE.c) $(srcdir)/bcmp.c $(OUTPUT_OPTION)
37254c9a 586
497462ef 587./bcopy.$(objext): $(srcdir)/bcopy.c
46a10049
DD
588 if [ x"$(PICFLAG)" != x ]; then \
589 $(COMPILE.c) $(PICFLAG) $(srcdir)/bcopy.c -o pic/$@; \
590 else true; fi
3f48575a 591 if [ x"$(NOASANFLAG)" != x ]; then \
592 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/bcopy.c -o noasan/$@; \
593 else true; fi
46a10049 594 $(COMPILE.c) $(srcdir)/bcopy.c $(OUTPUT_OPTION)
37254c9a 595
497462ef 596./bsearch.$(objext): $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h
46a10049
DD
597 if [ x"$(PICFLAG)" != x ]; then \
598 $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch.c -o pic/$@; \
599 else true; fi
3f48575a 600 if [ x"$(NOASANFLAG)" != x ]; then \
601 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/bsearch.c -o noasan/$@; \
602 else true; fi
46a10049 603 $(COMPILE.c) $(srcdir)/bsearch.c $(OUTPUT_OPTION)
37254c9a 604
727b7b18
L
605./bsearch_r.$(objext): $(srcdir)/bsearch_r.c config.h $(INCDIR)/ansidecl.h
606 if [ x"$(PICFLAG)" != x ]; then \
607 $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch_r.c -o pic/$@; \
608 else true; fi
609 if [ x"$(NOASANFLAG)" != x ]; then \
610 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/bsearch_r.c -o noasan/$@; \
611 else true; fi
612 $(COMPILE.c) $(srcdir)/bsearch_r.c $(OUTPUT_OPTION)
613
497462ef 614./bzero.$(objext): $(srcdir)/bzero.c
46a10049
DD
615 if [ x"$(PICFLAG)" != x ]; then \
616 $(COMPILE.c) $(PICFLAG) $(srcdir)/bzero.c -o pic/$@; \
617 else true; fi
3f48575a 618 if [ x"$(NOASANFLAG)" != x ]; then \
619 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/bzero.c -o noasan/$@; \
620 else true; fi
46a10049 621 $(COMPILE.c) $(srcdir)/bzero.c $(OUTPUT_OPTION)
37254c9a 622
497462ef 623./calloc.$(objext): $(srcdir)/calloc.c $(INCDIR)/ansidecl.h
46a10049
DD
624 if [ x"$(PICFLAG)" != x ]; then \
625 $(COMPILE.c) $(PICFLAG) $(srcdir)/calloc.c -o pic/$@; \
626 else true; fi
3f48575a 627 if [ x"$(NOASANFLAG)" != x ]; then \
628 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/calloc.c -o noasan/$@; \
629 else true; fi
46a10049 630 $(COMPILE.c) $(srcdir)/calloc.c $(OUTPUT_OPTION)
37254c9a 631
497462ef 632./choose-temp.$(objext): $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \
37254c9a 633 $(INCDIR)/libiberty.h
46a10049
DD
634 if [ x"$(PICFLAG)" != x ]; then \
635 $(COMPILE.c) $(PICFLAG) $(srcdir)/choose-temp.c -o pic/$@; \
636 else true; fi
3f48575a 637 if [ x"$(NOASANFLAG)" != x ]; then \
638 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/choose-temp.c -o noasan/$@; \
639 else true; fi
46a10049 640 $(COMPILE.c) $(srcdir)/choose-temp.c $(OUTPUT_OPTION)
37254c9a 641
497462ef 642./clock.$(objext): $(srcdir)/clock.c config.h
46a10049
DD
643 if [ x"$(PICFLAG)" != x ]; then \
644 $(COMPILE.c) $(PICFLAG) $(srcdir)/clock.c -o pic/$@; \
645 else true; fi
3f48575a 646 if [ x"$(NOASANFLAG)" != x ]; then \
647 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/clock.c -o noasan/$@; \
648 else true; fi
46a10049 649 $(COMPILE.c) $(srcdir)/clock.c $(OUTPUT_OPTION)
37254c9a 650
497462ef 651./concat.$(objext): $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \
b7d9aef1 652 $(INCDIR)/libiberty.h
46a10049
DD
653 if [ x"$(PICFLAG)" != x ]; then \
654 $(COMPILE.c) $(PICFLAG) $(srcdir)/concat.c -o pic/$@; \
655 else true; fi
3f48575a 656 if [ x"$(NOASANFLAG)" != x ]; then \
657 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/concat.c -o noasan/$@; \
658 else true; fi
46a10049 659 $(COMPILE.c) $(srcdir)/concat.c $(OUTPUT_OPTION)
37254c9a 660
497462ef 661./copysign.$(objext): $(srcdir)/copysign.c $(INCDIR)/ansidecl.h
46a10049
DD
662 if [ x"$(PICFLAG)" != x ]; then \
663 $(COMPILE.c) $(PICFLAG) $(srcdir)/copysign.c -o pic/$@; \
664 else true; fi
3f48575a 665 if [ x"$(NOASANFLAG)" != x ]; then \
666 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/copysign.c -o noasan/$@; \
667 else true; fi
46a10049 668 $(COMPILE.c) $(srcdir)/copysign.c $(OUTPUT_OPTION)
37254c9a 669
497462ef 670./cp-demangle.$(objext): $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \
37254c9a
DD
671 $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
672 $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h
46a10049
DD
673 if [ x"$(PICFLAG)" != x ]; then \
674 $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demangle.c -o pic/$@; \
675 else true; fi
3f48575a 676 if [ x"$(NOASANFLAG)" != x ]; then \
677 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/cp-demangle.c -o noasan/$@; \
678 else true; fi
46a10049 679 $(COMPILE.c) $(srcdir)/cp-demangle.c $(OUTPUT_OPTION)
37254c9a 680
497462ef 681./cp-demint.$(objext): $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \
37254c9a 682 $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
cc096b71 683 $(INCDIR)/libiberty.h
46a10049
DD
684 if [ x"$(PICFLAG)" != x ]; then \
685 $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demint.c -o pic/$@; \
686 else true; fi
3f48575a 687 if [ x"$(NOASANFLAG)" != x ]; then \
688 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/cp-demint.c -o noasan/$@; \
689 else true; fi
46a10049 690 $(COMPILE.c) $(srcdir)/cp-demint.c $(OUTPUT_OPTION)
37254c9a 691
497462ef 692./cplus-dem.$(objext): $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \
37254c9a
DD
693 $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
694 $(INCDIR)/safe-ctype.h
46a10049
DD
695 if [ x"$(PICFLAG)" != x ]; then \
696 $(COMPILE.c) $(PICFLAG) $(srcdir)/cplus-dem.c -o pic/$@; \
697 else true; fi
3f48575a 698 if [ x"$(NOASANFLAG)" != x ]; then \
699 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/cplus-dem.c -o noasan/$@; \
700 else true; fi
46a10049 701 $(COMPILE.c) $(srcdir)/cplus-dem.c $(OUTPUT_OPTION)
37254c9a 702
497462ef
DD
703./crc32.$(objext): $(srcdir)/crc32.c config.h $(INCDIR)/ansidecl.h \
704 $(INCDIR)/libiberty.h
6e881691
DD
705 if [ x"$(PICFLAG)" != x ]; then \
706 $(COMPILE.c) $(PICFLAG) $(srcdir)/crc32.c -o pic/$@; \
707 else true; fi
3f48575a 708 if [ x"$(NOASANFLAG)" != x ]; then \
709 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/crc32.c -o noasan/$@; \
710 else true; fi
6e881691
DD
711 $(COMPILE.c) $(srcdir)/crc32.c $(OUTPUT_OPTION)
712
abdef8eb
JBG
713./d-demangle.$(objext): $(srcdir)/d-demangle.c config.h $(INCDIR)/ansidecl.h \
714 $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
715 $(INCDIR)/safe-ctype.h
716 if [ x"$(PICFLAG)" != x ]; then \
717 $(COMPILE.c) $(PICFLAG) $(srcdir)/d-demangle.c -o pic/$@; \
718 else true; fi
719 if [ x"$(NOASANFLAG)" != x ]; then \
720 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/d-demangle.c -o noasan/$@; \
721 else true; fi
722 $(COMPILE.c) $(srcdir)/d-demangle.c $(OUTPUT_OPTION)
723
995b61fe
DD
724./dwarfnames.$(objext): $(srcdir)/dwarfnames.c $(INCDIR)/dwarf2.def \
725 $(INCDIR)/dwarf2.h
fa66ec53
DD
726 if [ x"$(PICFLAG)" != x ]; then \
727 $(COMPILE.c) $(PICFLAG) $(srcdir)/dwarfnames.c -o pic/$@; \
728 else true; fi
3f48575a 729 if [ x"$(NOASANFLAG)" != x ]; then \
730 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/dwarfnames.c -o noasan/$@; \
731 else true; fi
fa66ec53
DD
732 $(COMPILE.c) $(srcdir)/dwarfnames.c $(OUTPUT_OPTION)
733
497462ef 734./dyn-string.$(objext): $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \
37254c9a 735 $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h
46a10049
DD
736 if [ x"$(PICFLAG)" != x ]; then \
737 $(COMPILE.c) $(PICFLAG) $(srcdir)/dyn-string.c -o pic/$@; \
738 else true; fi
3f48575a 739 if [ x"$(NOASANFLAG)" != x ]; then \
740 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/dyn-string.c -o noasan/$@; \
741 else true; fi
46a10049 742 $(COMPILE.c) $(srcdir)/dyn-string.c $(OUTPUT_OPTION)
37254c9a 743
497462ef 744./fdmatch.$(objext): $(srcdir)/fdmatch.c config.h $(INCDIR)/ansidecl.h \
75919f94 745 $(INCDIR)/libiberty.h
46a10049
DD
746 if [ x"$(PICFLAG)" != x ]; then \
747 $(COMPILE.c) $(PICFLAG) $(srcdir)/fdmatch.c -o pic/$@; \
748 else true; fi
3f48575a 749 if [ x"$(NOASANFLAG)" != x ]; then \
750 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/fdmatch.c -o noasan/$@; \
751 else true; fi
46a10049 752 $(COMPILE.c) $(srcdir)/fdmatch.c $(OUTPUT_OPTION)
37254c9a 753
497462ef 754./ffs.$(objext): $(srcdir)/ffs.c
46a10049
DD
755 if [ x"$(PICFLAG)" != x ]; then \
756 $(COMPILE.c) $(PICFLAG) $(srcdir)/ffs.c -o pic/$@; \
757 else true; fi
3f48575a 758 if [ x"$(NOASANFLAG)" != x ]; then \
759 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/ffs.c -o noasan/$@; \
760 else true; fi
46a10049 761 $(COMPILE.c) $(srcdir)/ffs.c $(OUTPUT_OPTION)
37254c9a 762
497462ef 763./fibheap.$(objext): $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \
b7d9aef1 764 $(INCDIR)/fibheap.h $(INCDIR)/libiberty.h
46a10049
DD
765 if [ x"$(PICFLAG)" != x ]; then \
766 $(COMPILE.c) $(PICFLAG) $(srcdir)/fibheap.c -o pic/$@; \
767 else true; fi
3f48575a 768 if [ x"$(NOASANFLAG)" != x ]; then \
769 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/fibheap.c -o noasan/$@; \
770 else true; fi
46a10049 771 $(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION)
37254c9a 772
533da483
NC
773./filedescriptor.$(objext): $(srcdir)/filedescriptor.c config.h $(INCDIR)/ansidecl.h \
774 $(INCDIR)/libiberty.h
775 if [ x"$(PICFLAG)" != x ]; then \
776 $(COMPILE.c) $(PICFLAG) $(srcdir)/filedescriptor.c -o pic/$@; \
777 else true; fi
778 if [ x"$(NOASANFLAG)" != x ]; then \
779 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/filedescriptor.c -o noasan/$@; \
780 else true; fi
781 $(COMPILE.c) $(srcdir)/filedescriptor.c $(OUTPUT_OPTION)
782
783
995b61fe
DD
784./filename_cmp.$(objext): $(srcdir)/filename_cmp.c config.h $(INCDIR)/ansidecl.h \
785 $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
73bdefcf 786 $(INCDIR)/safe-ctype.h
9c577e89
DD
787 if [ x"$(PICFLAG)" != x ]; then \
788 $(COMPILE.c) $(PICFLAG) $(srcdir)/filename_cmp.c -o pic/$@; \
789 else true; fi
3f48575a 790 if [ x"$(NOASANFLAG)" != x ]; then \
791 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/filename_cmp.c -o noasan/$@; \
792 else true; fi
9c577e89
DD
793 $(COMPILE.c) $(srcdir)/filename_cmp.c $(OUTPUT_OPTION)
794
497462ef 795./floatformat.$(objext): $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \
37254c9a 796 $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h
46a10049
DD
797 if [ x"$(PICFLAG)" != x ]; then \
798 $(COMPILE.c) $(PICFLAG) $(srcdir)/floatformat.c -o pic/$@; \
799 else true; fi
3f48575a 800 if [ x"$(NOASANFLAG)" != x ]; then \
801 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/floatformat.c -o noasan/$@; \
802 else true; fi
46a10049 803 $(COMPILE.c) $(srcdir)/floatformat.c $(OUTPUT_OPTION)
37254c9a 804
497462ef 805./fnmatch.$(objext): $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \
37254c9a 806 $(INCDIR)/safe-ctype.h
46a10049
DD
807 if [ x"$(PICFLAG)" != x ]; then \
808 $(COMPILE.c) $(PICFLAG) $(srcdir)/fnmatch.c -o pic/$@; \
809 else true; fi
3f48575a 810 if [ x"$(NOASANFLAG)" != x ]; then \
811 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/fnmatch.c -o noasan/$@; \
812 else true; fi
46a10049 813 $(COMPILE.c) $(srcdir)/fnmatch.c $(OUTPUT_OPTION)
37254c9a 814
497462ef
DD
815./fopen_unlocked.$(objext): $(srcdir)/fopen_unlocked.c config.h \
816 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
ac119ae8
DD
817 if [ x"$(PICFLAG)" != x ]; then \
818 $(COMPILE.c) $(PICFLAG) $(srcdir)/fopen_unlocked.c -o pic/$@; \
819 else true; fi
3f48575a 820 if [ x"$(NOASANFLAG)" != x ]; then \
821 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/fopen_unlocked.c -o noasan/$@; \
822 else true; fi
ac119ae8
DD
823 $(COMPILE.c) $(srcdir)/fopen_unlocked.c $(OUTPUT_OPTION)
824
497462ef 825./getcwd.$(objext): $(srcdir)/getcwd.c config.h
46a10049
DD
826 if [ x"$(PICFLAG)" != x ]; then \
827 $(COMPILE.c) $(PICFLAG) $(srcdir)/getcwd.c -o pic/$@; \
828 else true; fi
3f48575a 829 if [ x"$(NOASANFLAG)" != x ]; then \
830 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/getcwd.c -o noasan/$@; \
831 else true; fi
46a10049 832 $(COMPILE.c) $(srcdir)/getcwd.c $(OUTPUT_OPTION)
37254c9a 833
497462ef
DD
834./getopt.$(objext): $(srcdir)/getopt.c config.h $(INCDIR)/ansidecl.h \
835 $(INCDIR)/getopt.h
46a10049
DD
836 if [ x"$(PICFLAG)" != x ]; then \
837 $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt.c -o pic/$@; \
838 else true; fi
3f48575a 839 if [ x"$(NOASANFLAG)" != x ]; then \
840 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/getopt.c -o noasan/$@; \
841 else true; fi
46a10049 842 $(COMPILE.c) $(srcdir)/getopt.c $(OUTPUT_OPTION)
37254c9a 843
497462ef 844./getopt1.$(objext): $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h
46a10049
DD
845 if [ x"$(PICFLAG)" != x ]; then \
846 $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt1.c -o pic/$@; \
847 else true; fi
3f48575a 848 if [ x"$(NOASANFLAG)" != x ]; then \
849 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/getopt1.c -o noasan/$@; \
850 else true; fi
46a10049 851 $(COMPILE.c) $(srcdir)/getopt1.c $(OUTPUT_OPTION)
37254c9a 852
497462ef 853./getpagesize.$(objext): $(srcdir)/getpagesize.c config.h
46a10049
DD
854 if [ x"$(PICFLAG)" != x ]; then \
855 $(COMPILE.c) $(PICFLAG) $(srcdir)/getpagesize.c -o pic/$@; \
856 else true; fi
3f48575a 857 if [ x"$(NOASANFLAG)" != x ]; then \
858 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/getpagesize.c -o noasan/$@; \
859 else true; fi
46a10049 860 $(COMPILE.c) $(srcdir)/getpagesize.c $(OUTPUT_OPTION)
37254c9a 861
497462ef 862./getpwd.$(objext): $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \
b7d9aef1 863 $(INCDIR)/libiberty.h
46a10049
DD
864 if [ x"$(PICFLAG)" != x ]; then \
865 $(COMPILE.c) $(PICFLAG) $(srcdir)/getpwd.c -o pic/$@; \
866 else true; fi
3f48575a 867 if [ x"$(NOASANFLAG)" != x ]; then \
868 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/getpwd.c -o noasan/$@; \
869 else true; fi
46a10049 870 $(COMPILE.c) $(srcdir)/getpwd.c $(OUTPUT_OPTION)
37254c9a 871
497462ef 872./getruntime.$(objext): $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \
cc096b71 873 $(INCDIR)/libiberty.h
46a10049
DD
874 if [ x"$(PICFLAG)" != x ]; then \
875 $(COMPILE.c) $(PICFLAG) $(srcdir)/getruntime.c -o pic/$@; \
876 else true; fi
3f48575a 877 if [ x"$(NOASANFLAG)" != x ]; then \
878 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/getruntime.c -o noasan/$@; \
879 else true; fi
46a10049 880 $(COMPILE.c) $(srcdir)/getruntime.c $(OUTPUT_OPTION)
37254c9a 881
497462ef 882./gettimeofday.$(objext): $(srcdir)/gettimeofday.c config.h $(INCDIR)/ansidecl.h \
8ec32723
DD
883 $(INCDIR)/libiberty.h
884 if [ x"$(PICFLAG)" != x ]; then \
885 $(COMPILE.c) $(PICFLAG) $(srcdir)/gettimeofday.c -o pic/$@; \
886 else true; fi
3f48575a 887 if [ x"$(NOASANFLAG)" != x ]; then \
888 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/gettimeofday.c -o noasan/$@; \
889 else true; fi
8ec32723
DD
890 $(COMPILE.c) $(srcdir)/gettimeofday.c $(OUTPUT_OPTION)
891
497462ef 892./hashtab.$(objext): $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \
b7d9aef1 893 $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h
46a10049
DD
894 if [ x"$(PICFLAG)" != x ]; then \
895 $(COMPILE.c) $(PICFLAG) $(srcdir)/hashtab.c -o pic/$@; \
896 else true; fi
3f48575a 897 if [ x"$(NOASANFLAG)" != x ]; then \
898 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/hashtab.c -o noasan/$@; \
899 else true; fi
46a10049 900 $(COMPILE.c) $(srcdir)/hashtab.c $(OUTPUT_OPTION)
37254c9a 901
497462ef
DD
902./hex.$(objext): $(srcdir)/hex.c config.h $(INCDIR)/ansidecl.h \
903 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
46a10049
DD
904 if [ x"$(PICFLAG)" != x ]; then \
905 $(COMPILE.c) $(PICFLAG) $(srcdir)/hex.c -o pic/$@; \
906 else true; fi
3f48575a 907 if [ x"$(NOASANFLAG)" != x ]; then \
908 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/hex.c -o noasan/$@; \
909 else true; fi
46a10049 910 $(COMPILE.c) $(srcdir)/hex.c $(OUTPUT_OPTION)
37254c9a 911
497462ef 912./index.$(objext): $(srcdir)/index.c
46a10049
DD
913 if [ x"$(PICFLAG)" != x ]; then \
914 $(COMPILE.c) $(PICFLAG) $(srcdir)/index.c -o pic/$@; \
915 else true; fi
3f48575a 916 if [ x"$(NOASANFLAG)" != x ]; then \
917 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/index.c -o noasan/$@; \
918 else true; fi
46a10049 919 $(COMPILE.c) $(srcdir)/index.c $(OUTPUT_OPTION)
37254c9a 920
497462ef 921./insque.$(objext): $(srcdir)/insque.c
46a10049
DD
922 if [ x"$(PICFLAG)" != x ]; then \
923 $(COMPILE.c) $(PICFLAG) $(srcdir)/insque.c -o pic/$@; \
924 else true; fi
3f48575a 925 if [ x"$(NOASANFLAG)" != x ]; then \
926 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/insque.c -o noasan/$@; \
927 else true; fi
46a10049 928 $(COMPILE.c) $(srcdir)/insque.c $(OUTPUT_OPTION)
37254c9a 929
497462ef 930./lbasename.$(objext): $(srcdir)/lbasename.c config.h $(INCDIR)/ansidecl.h \
995b61fe 931 $(INCDIR)/filenames.h $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h \
497462ef 932 $(INCDIR)/safe-ctype.h
46a10049
DD
933 if [ x"$(PICFLAG)" != x ]; then \
934 $(COMPILE.c) $(PICFLAG) $(srcdir)/lbasename.c -o pic/$@; \
935 else true; fi
3f48575a 936 if [ x"$(NOASANFLAG)" != x ]; then \
937 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/lbasename.c -o noasan/$@; \
938 else true; fi
46a10049 939 $(COMPILE.c) $(srcdir)/lbasename.c $(OUTPUT_OPTION)
37254c9a 940
497462ef 941./lrealpath.$(objext): $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \
37254c9a 942 $(INCDIR)/libiberty.h
46a10049
DD
943 if [ x"$(PICFLAG)" != x ]; then \
944 $(COMPILE.c) $(PICFLAG) $(srcdir)/lrealpath.c -o pic/$@; \
945 else true; fi
3f48575a 946 if [ x"$(NOASANFLAG)" != x ]; then \
947 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/lrealpath.c -o noasan/$@; \
948 else true; fi
46a10049 949 $(COMPILE.c) $(srcdir)/lrealpath.c $(OUTPUT_OPTION)
37254c9a 950
497462ef 951./make-relative-prefix.$(objext): $(srcdir)/make-relative-prefix.c config.h \
37254c9a 952 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
46a10049
DD
953 if [ x"$(PICFLAG)" != x ]; then \
954 $(COMPILE.c) $(PICFLAG) $(srcdir)/make-relative-prefix.c -o pic/$@; \
955 else true; fi
3f48575a 956 if [ x"$(NOASANFLAG)" != x ]; then \
957 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/make-relative-prefix.c -o noasan/$@; \
958 else true; fi
46a10049 959 $(COMPILE.c) $(srcdir)/make-relative-prefix.c $(OUTPUT_OPTION)
37254c9a 960
497462ef
DD
961./make-temp-file.$(objext): $(srcdir)/make-temp-file.c config.h \
962 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
46a10049
DD
963 if [ x"$(PICFLAG)" != x ]; then \
964 $(COMPILE.c) $(PICFLAG) $(srcdir)/make-temp-file.c -o pic/$@; \
965 else true; fi
3f48575a 966 if [ x"$(NOASANFLAG)" != x ]; then \
967 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/make-temp-file.c -o noasan/$@; \
968 else true; fi
46a10049 969 $(COMPILE.c) $(srcdir)/make-temp-file.c $(OUTPUT_OPTION)
37254c9a 970
497462ef 971./md5.$(objext): $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
46a10049
DD
972 if [ x"$(PICFLAG)" != x ]; then \
973 $(COMPILE.c) $(PICFLAG) $(srcdir)/md5.c -o pic/$@; \
974 else true; fi
3f48575a 975 if [ x"$(NOASANFLAG)" != x ]; then \
976 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/md5.c -o noasan/$@; \
977 else true; fi
46a10049 978 $(COMPILE.c) $(srcdir)/md5.c $(OUTPUT_OPTION)
37254c9a 979
497462ef 980./memchr.$(objext): $(srcdir)/memchr.c $(INCDIR)/ansidecl.h
46a10049
DD
981 if [ x"$(PICFLAG)" != x ]; then \
982 $(COMPILE.c) $(PICFLAG) $(srcdir)/memchr.c -o pic/$@; \
983 else true; fi
3f48575a 984 if [ x"$(NOASANFLAG)" != x ]; then \
985 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/memchr.c -o noasan/$@; \
986 else true; fi
46a10049 987 $(COMPILE.c) $(srcdir)/memchr.c $(OUTPUT_OPTION)
37254c9a 988
497462ef 989./memcmp.$(objext): $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h
46a10049
DD
990 if [ x"$(PICFLAG)" != x ]; then \
991 $(COMPILE.c) $(PICFLAG) $(srcdir)/memcmp.c -o pic/$@; \
992 else true; fi
3f48575a 993 if [ x"$(NOASANFLAG)" != x ]; then \
994 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/memcmp.c -o noasan/$@; \
995 else true; fi
46a10049 996 $(COMPILE.c) $(srcdir)/memcmp.c $(OUTPUT_OPTION)
37254c9a 997
497462ef 998./memcpy.$(objext): $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h
46a10049
DD
999 if [ x"$(PICFLAG)" != x ]; then \
1000 $(COMPILE.c) $(PICFLAG) $(srcdir)/memcpy.c -o pic/$@; \
1001 else true; fi
3f48575a 1002 if [ x"$(NOASANFLAG)" != x ]; then \
1003 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/memcpy.c -o noasan/$@; \
1004 else true; fi
46a10049 1005 $(COMPILE.c) $(srcdir)/memcpy.c $(OUTPUT_OPTION)
37254c9a 1006
497462ef 1007./memmem.$(objext): $(srcdir)/memmem.c config.h
10e1b6bb
DD
1008 if [ x"$(PICFLAG)" != x ]; then \
1009 $(COMPILE.c) $(PICFLAG) $(srcdir)/memmem.c -o pic/$@; \
1010 else true; fi
3f48575a 1011 if [ x"$(NOASANFLAG)" != x ]; then \
1012 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/memmem.c -o noasan/$@; \
1013 else true; fi
10e1b6bb
DD
1014 $(COMPILE.c) $(srcdir)/memmem.c $(OUTPUT_OPTION)
1015
497462ef 1016./memmove.$(objext): $(srcdir)/memmove.c $(INCDIR)/ansidecl.h
46a10049
DD
1017 if [ x"$(PICFLAG)" != x ]; then \
1018 $(COMPILE.c) $(PICFLAG) $(srcdir)/memmove.c -o pic/$@; \
1019 else true; fi
3f48575a 1020 if [ x"$(NOASANFLAG)" != x ]; then \
1021 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/memmove.c -o noasan/$@; \
1022 else true; fi
46a10049 1023 $(COMPILE.c) $(srcdir)/memmove.c $(OUTPUT_OPTION)
37254c9a 1024
497462ef 1025./mempcpy.$(objext): $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h
46a10049
DD
1026 if [ x"$(PICFLAG)" != x ]; then \
1027 $(COMPILE.c) $(PICFLAG) $(srcdir)/mempcpy.c -o pic/$@; \
1028 else true; fi
3f48575a 1029 if [ x"$(NOASANFLAG)" != x ]; then \
1030 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/mempcpy.c -o noasan/$@; \
1031 else true; fi
46a10049 1032 $(COMPILE.c) $(srcdir)/mempcpy.c $(OUTPUT_OPTION)
37254c9a 1033
497462ef 1034./memset.$(objext): $(srcdir)/memset.c $(INCDIR)/ansidecl.h
46a10049
DD
1035 if [ x"$(PICFLAG)" != x ]; then \
1036 $(COMPILE.c) $(PICFLAG) $(srcdir)/memset.c -o pic/$@; \
1037 else true; fi
3f48575a 1038 if [ x"$(NOASANFLAG)" != x ]; then \
1039 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/memset.c -o noasan/$@; \
1040 else true; fi
46a10049 1041 $(COMPILE.c) $(srcdir)/memset.c $(OUTPUT_OPTION)
37254c9a 1042
497462ef 1043./mkstemps.$(objext): $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h
46a10049
DD
1044 if [ x"$(PICFLAG)" != x ]; then \
1045 $(COMPILE.c) $(PICFLAG) $(srcdir)/mkstemps.c -o pic/$@; \
1046 else true; fi
3f48575a 1047 if [ x"$(NOASANFLAG)" != x ]; then \
1048 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/mkstemps.c -o noasan/$@; \
1049 else true; fi
46a10049 1050 $(COMPILE.c) $(srcdir)/mkstemps.c $(OUTPUT_OPTION)
37254c9a 1051
497462ef 1052./msdos.$(objext): $(srcdir)/msdos.c
46a10049
DD
1053 if [ x"$(PICFLAG)" != x ]; then \
1054 $(COMPILE.c) $(PICFLAG) $(srcdir)/msdos.c -o pic/$@; \
1055 else true; fi
3f48575a 1056 if [ x"$(NOASANFLAG)" != x ]; then \
1057 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/msdos.c -o noasan/$@; \
1058 else true; fi
46a10049 1059 $(COMPILE.c) $(srcdir)/msdos.c $(OUTPUT_OPTION)
37254c9a 1060
497462ef 1061./objalloc.$(objext): $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1062 $(INCDIR)/objalloc.h
46a10049
DD
1063 if [ x"$(PICFLAG)" != x ]; then \
1064 $(COMPILE.c) $(PICFLAG) $(srcdir)/objalloc.c -o pic/$@; \
1065 else true; fi
3f48575a 1066 if [ x"$(NOASANFLAG)" != x ]; then \
1067 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/objalloc.c -o noasan/$@; \
1068 else true; fi
46a10049 1069 $(COMPILE.c) $(srcdir)/objalloc.c $(OUTPUT_OPTION)
37254c9a 1070
497462ef 1071./obstack.$(objext): $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h
46a10049
DD
1072 if [ x"$(PICFLAG)" != x ]; then \
1073 $(COMPILE.c) $(PICFLAG) $(srcdir)/obstack.c -o pic/$@; \
1074 else true; fi
3f48575a 1075 if [ x"$(NOASANFLAG)" != x ]; then \
1076 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/obstack.c -o noasan/$@; \
1077 else true; fi
46a10049 1078 $(COMPILE.c) $(srcdir)/obstack.c $(OUTPUT_OPTION)
37254c9a 1079
497462ef 1080./partition.$(objext): $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1081 $(INCDIR)/libiberty.h $(INCDIR)/partition.h
46a10049
DD
1082 if [ x"$(PICFLAG)" != x ]; then \
1083 $(COMPILE.c) $(PICFLAG) $(srcdir)/partition.c -o pic/$@; \
1084 else true; fi
3f48575a 1085 if [ x"$(NOASANFLAG)" != x ]; then \
1086 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/partition.c -o noasan/$@; \
1087 else true; fi
46a10049 1088 $(COMPILE.c) $(srcdir)/partition.c $(OUTPUT_OPTION)
37254c9a 1089
497462ef 1090./pex-common.$(objext): $(srcdir)/pex-common.c config.h $(INCDIR)/ansidecl.h \
b109e79a
ILT
1091 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
1092 if [ x"$(PICFLAG)" != x ]; then \
1093 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-common.c -o pic/$@; \
1094 else true; fi
3f48575a 1095 if [ x"$(NOASANFLAG)" != x ]; then \
1096 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pex-common.c -o noasan/$@; \
1097 else true; fi
b109e79a
ILT
1098 $(COMPILE.c) $(srcdir)/pex-common.c $(OUTPUT_OPTION)
1099
497462ef 1100./pex-djgpp.$(objext): $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1101 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
46a10049
DD
1102 if [ x"$(PICFLAG)" != x ]; then \
1103 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-djgpp.c -o pic/$@; \
1104 else true; fi
3f48575a 1105 if [ x"$(NOASANFLAG)" != x ]; then \
1106 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pex-djgpp.c -o noasan/$@; \
1107 else true; fi
46a10049 1108 $(COMPILE.c) $(srcdir)/pex-djgpp.c $(OUTPUT_OPTION)
37254c9a 1109
497462ef 1110./pex-msdos.$(objext): $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \
37254c9a
DD
1111 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \
1112 $(INCDIR)/safe-ctype.h
46a10049
DD
1113 if [ x"$(PICFLAG)" != x ]; then \
1114 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-msdos.c -o pic/$@; \
1115 else true; fi
3f48575a 1116 if [ x"$(NOASANFLAG)" != x ]; then \
1117 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pex-msdos.c -o noasan/$@; \
1118 else true; fi
46a10049 1119 $(COMPILE.c) $(srcdir)/pex-msdos.c $(OUTPUT_OPTION)
37254c9a 1120
497462ef 1121./pex-one.$(objext): $(srcdir)/pex-one.c config.h $(INCDIR)/ansidecl.h \
b109e79a
ILT
1122 $(INCDIR)/libiberty.h
1123 if [ x"$(PICFLAG)" != x ]; then \
1124 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-one.c -o pic/$@; \
1125 else true; fi
3f48575a 1126 if [ x"$(NOASANFLAG)" != x ]; then \
1127 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pex-one.c -o noasan/$@; \
1128 else true; fi
b109e79a
ILT
1129 $(COMPILE.c) $(srcdir)/pex-one.c $(OUTPUT_OPTION)
1130
497462ef 1131./pex-unix.$(objext): $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1132 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
46a10049
DD
1133 if [ x"$(PICFLAG)" != x ]; then \
1134 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-unix.c -o pic/$@; \
1135 else true; fi
3f48575a 1136 if [ x"$(NOASANFLAG)" != x ]; then \
1137 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pex-unix.c -o noasan/$@; \
1138 else true; fi
46a10049 1139 $(COMPILE.c) $(srcdir)/pex-unix.c $(OUTPUT_OPTION)
37254c9a 1140
497462ef 1141./pex-win32.$(objext): $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1142 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
46a10049
DD
1143 if [ x"$(PICFLAG)" != x ]; then \
1144 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-win32.c -o pic/$@; \
1145 else true; fi
3f48575a 1146 if [ x"$(NOASANFLAG)" != x ]; then \
1147 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pex-win32.c -o noasan/$@; \
1148 else true; fi
46a10049 1149 $(COMPILE.c) $(srcdir)/pex-win32.c $(OUTPUT_OPTION)
37254c9a 1150
497462ef 1151./pexecute.$(objext): $(srcdir)/pexecute.c config.h $(INCDIR)/ansidecl.h \
b109e79a
ILT
1152 $(INCDIR)/libiberty.h
1153 if [ x"$(PICFLAG)" != x ]; then \
1154 $(COMPILE.c) $(PICFLAG) $(srcdir)/pexecute.c -o pic/$@; \
1155 else true; fi
3f48575a 1156 if [ x"$(NOASANFLAG)" != x ]; then \
1157 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/pexecute.c -o noasan/$@; \
1158 else true; fi
b109e79a
ILT
1159 $(COMPILE.c) $(srcdir)/pexecute.c $(OUTPUT_OPTION)
1160
497462ef 1161./physmem.$(objext): $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1162 $(INCDIR)/libiberty.h
46a10049
DD
1163 if [ x"$(PICFLAG)" != x ]; then \
1164 $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \
1165 else true; fi
3f48575a 1166 if [ x"$(NOASANFLAG)" != x ]; then \
1167 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/physmem.c -o noasan/$@; \
1168 else true; fi
46a10049 1169 $(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION)
37254c9a 1170
497462ef 1171./putenv.$(objext): $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h
46a10049
DD
1172 if [ x"$(PICFLAG)" != x ]; then \
1173 $(COMPILE.c) $(PICFLAG) $(srcdir)/putenv.c -o pic/$@; \
1174 else true; fi
3f48575a 1175 if [ x"$(NOASANFLAG)" != x ]; then \
1176 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/putenv.c -o noasan/$@; \
1177 else true; fi
46a10049 1178 $(COMPILE.c) $(srcdir)/putenv.c $(OUTPUT_OPTION)
37254c9a 1179
497462ef 1180./random.$(objext): $(srcdir)/random.c $(INCDIR)/ansidecl.h
46a10049
DD
1181 if [ x"$(PICFLAG)" != x ]; then \
1182 $(COMPILE.c) $(PICFLAG) $(srcdir)/random.c -o pic/$@; \
1183 else true; fi
3f48575a 1184 if [ x"$(NOASANFLAG)" != x ]; then \
1185 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/random.c -o noasan/$@; \
1186 else true; fi
46a10049 1187 $(COMPILE.c) $(srcdir)/random.c $(OUTPUT_OPTION)
37254c9a 1188
497462ef
DD
1189./regex.$(objext): $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h \
1190 $(INCDIR)/xregex.h $(INCDIR)/xregex2.h
46a10049
DD
1191 if [ x"$(PICFLAG)" != x ]; then \
1192 $(COMPILE.c) $(PICFLAG) $(srcdir)/regex.c -o pic/$@; \
1193 else true; fi
3f48575a 1194 if [ x"$(NOASANFLAG)" != x ]; then \
1195 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/regex.c -o noasan/$@; \
1196 else true; fi
46a10049 1197 $(COMPILE.c) $(srcdir)/regex.c $(OUTPUT_OPTION)
37254c9a 1198
497462ef 1199./rename.$(objext): $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h
46a10049
DD
1200 if [ x"$(PICFLAG)" != x ]; then \
1201 $(COMPILE.c) $(PICFLAG) $(srcdir)/rename.c -o pic/$@; \
1202 else true; fi
3f48575a 1203 if [ x"$(NOASANFLAG)" != x ]; then \
1204 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/rename.c -o noasan/$@; \
1205 else true; fi
46a10049 1206 $(COMPILE.c) $(srcdir)/rename.c $(OUTPUT_OPTION)
37254c9a 1207
497462ef 1208./rindex.$(objext): $(srcdir)/rindex.c
46a10049
DD
1209 if [ x"$(PICFLAG)" != x ]; then \
1210 $(COMPILE.c) $(PICFLAG) $(srcdir)/rindex.c -o pic/$@; \
1211 else true; fi
3f48575a 1212 if [ x"$(NOASANFLAG)" != x ]; then \
1213 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/rindex.c -o noasan/$@; \
1214 else true; fi
46a10049 1215 $(COMPILE.c) $(srcdir)/rindex.c $(OUTPUT_OPTION)
37254c9a 1216
535aade6
DT
1217./rust-demangle.$(objext): $(srcdir)/rust-demangle.c config.h \
1218 $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
1219 $(INCDIR)/safe-ctype.h
1220 if [ x"$(PICFLAG)" != x ]; then \
1221 $(COMPILE.c) $(PICFLAG) $(srcdir)/rust-demangle.c -o pic/$@; \
1222 else true; fi
1223 if [ x"$(NOASANFLAG)" != x ]; then \
1224 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/rust-demangle.c -o noasan/$@; \
1225 else true; fi
1226 $(COMPILE.c) $(srcdir)/rust-demangle.c $(OUTPUT_OPTION)
1227
497462ef 1228./safe-ctype.$(objext): $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \
37254c9a 1229 $(INCDIR)/safe-ctype.h
46a10049
DD
1230 if [ x"$(PICFLAG)" != x ]; then \
1231 $(COMPILE.c) $(PICFLAG) $(srcdir)/safe-ctype.c -o pic/$@; \
1232 else true; fi
3f48575a 1233 if [ x"$(NOASANFLAG)" != x ]; then \
1234 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/safe-ctype.c -o noasan/$@; \
1235 else true; fi
46a10049 1236 $(COMPILE.c) $(srcdir)/safe-ctype.c $(OUTPUT_OPTION)
37254c9a 1237
497462ef 1238./setenv.$(objext): $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h
46a10049
DD
1239 if [ x"$(PICFLAG)" != x ]; then \
1240 $(COMPILE.c) $(PICFLAG) $(srcdir)/setenv.c -o pic/$@; \
1241 else true; fi
3f48575a 1242 if [ x"$(NOASANFLAG)" != x ]; then \
1243 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/setenv.c -o noasan/$@; \
1244 else true; fi
46a10049 1245 $(COMPILE.c) $(srcdir)/setenv.c $(OUTPUT_OPTION)
37254c9a 1246
9711ae4d
DD
1247./setproctitle.$(objext): $(srcdir)/setproctitle.c config.h $(INCDIR)/ansidecl.h
1248 if [ x"$(PICFLAG)" != x ]; then \
1249 $(COMPILE.c) $(PICFLAG) $(srcdir)/setproctitle.c -o pic/$@; \
1250 else true; fi
3f48575a 1251 if [ x"$(NOASANFLAG)" != x ]; then \
1252 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/setproctitle.c -o noasan/$@; \
1253 else true; fi
9711ae4d
DD
1254 $(COMPILE.c) $(srcdir)/setproctitle.c $(OUTPUT_OPTION)
1255
497462ef 1256./sha1.$(objext): $(srcdir)/sha1.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/sha1.h
b68965a0
DD
1257 if [ x"$(PICFLAG)" != x ]; then \
1258 $(COMPILE.c) $(PICFLAG) $(srcdir)/sha1.c -o pic/$@; \
1259 else true; fi
3f48575a 1260 if [ x"$(NOASANFLAG)" != x ]; then \
1261 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/sha1.c -o noasan/$@; \
1262 else true; fi
b68965a0
DD
1263 $(COMPILE.c) $(srcdir)/sha1.c $(OUTPUT_OPTION)
1264
497462ef 1265./sigsetmask.$(objext): $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h
46a10049
DD
1266 if [ x"$(PICFLAG)" != x ]; then \
1267 $(COMPILE.c) $(PICFLAG) $(srcdir)/sigsetmask.c -o pic/$@; \
1268 else true; fi
3f48575a 1269 if [ x"$(NOASANFLAG)" != x ]; then \
1270 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/sigsetmask.c -o noasan/$@; \
1271 else true; fi
46a10049 1272 $(COMPILE.c) $(srcdir)/sigsetmask.c $(OUTPUT_OPTION)
37254c9a 1273
ffa54e5c
DD
1274./simple-object-coff.$(objext): $(srcdir)/simple-object-coff.c config.h \
1275 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1276 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1277 if [ x"$(PICFLAG)" != x ]; then \
1278 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-coff.c -o pic/$@; \
1279 else true; fi
3f48575a 1280 if [ x"$(NOASANFLAG)" != x ]; then \
1281 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/simple-object-coff.c -o noasan/$@; \
1282 else true; fi
ffa54e5c
DD
1283 $(COMPILE.c) $(srcdir)/simple-object-coff.c $(OUTPUT_OPTION)
1284
1285./simple-object-elf.$(objext): $(srcdir)/simple-object-elf.c config.h \
1286 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1287 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1288 if [ x"$(PICFLAG)" != x ]; then \
1289 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-elf.c -o pic/$@; \
1290 else true; fi
3f48575a 1291 if [ x"$(NOASANFLAG)" != x ]; then \
1292 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/simple-object-elf.c -o noasan/$@; \
1293 else true; fi
ffa54e5c
DD
1294 $(COMPILE.c) $(srcdir)/simple-object-elf.c $(OUTPUT_OPTION)
1295
1296./simple-object-mach-o.$(objext): $(srcdir)/simple-object-mach-o.c config.h \
1297 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1298 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1299 if [ x"$(PICFLAG)" != x ]; then \
1300 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-mach-o.c -o pic/$@; \
1301 else true; fi
3f48575a 1302 if [ x"$(NOASANFLAG)" != x ]; then \
1303 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/simple-object-mach-o.c -o noasan/$@; \
1304 else true; fi
ffa54e5c
DD
1305 $(COMPILE.c) $(srcdir)/simple-object-mach-o.c $(OUTPUT_OPTION)
1306
07a8e9f0
DD
1307./simple-object-xcoff.$(objext): $(srcdir)/simple-object-xcoff.c config.h \
1308 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1309 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1310 if [ x"$(PICFLAG)" != x ]; then \
1311 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-xcoff.c -o pic/$@; \
1312 else true; fi
3f48575a 1313 if [ x"$(NOASANFLAG)" != x ]; then \
1314 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/simple-object-xcoff.c -o noasan/$@; \
1315 else true; fi
07a8e9f0
DD
1316 $(COMPILE.c) $(srcdir)/simple-object-xcoff.c $(OUTPUT_OPTION)
1317
ffa54e5c
DD
1318./simple-object.$(objext): $(srcdir)/simple-object.c config.h \
1319 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1320 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1321 if [ x"$(PICFLAG)" != x ]; then \
1322 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object.c -o pic/$@; \
1323 else true; fi
3f48575a 1324 if [ x"$(NOASANFLAG)" != x ]; then \
1325 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/simple-object.c -o noasan/$@; \
1326 else true; fi
ffa54e5c
DD
1327 $(COMPILE.c) $(srcdir)/simple-object.c $(OUTPUT_OPTION)
1328
497462ef 1329./snprintf.$(objext): $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h
46a10049
DD
1330 if [ x"$(PICFLAG)" != x ]; then \
1331 $(COMPILE.c) $(PICFLAG) $(srcdir)/snprintf.c -o pic/$@; \
1332 else true; fi
3f48575a 1333 if [ x"$(NOASANFLAG)" != x ]; then \
1334 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/snprintf.c -o noasan/$@; \
1335 else true; fi
46a10049 1336 $(COMPILE.c) $(srcdir)/snprintf.c $(OUTPUT_OPTION)
37254c9a 1337
497462ef
DD
1338./sort.$(objext): $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h \
1339 $(INCDIR)/libiberty.h $(INCDIR)/sort.h
46a10049
DD
1340 if [ x"$(PICFLAG)" != x ]; then \
1341 $(COMPILE.c) $(PICFLAG) $(srcdir)/sort.c -o pic/$@; \
1342 else true; fi
3f48575a 1343 if [ x"$(NOASANFLAG)" != x ]; then \
1344 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/sort.c -o noasan/$@; \
1345 else true; fi
46a10049 1346 $(COMPILE.c) $(srcdir)/sort.c $(OUTPUT_OPTION)
37254c9a 1347
497462ef 1348./spaces.$(objext): $(srcdir)/spaces.c config.h $(INCDIR)/ansidecl.h \
b7d9aef1 1349 $(INCDIR)/libiberty.h
46a10049
DD
1350 if [ x"$(PICFLAG)" != x ]; then \
1351 $(COMPILE.c) $(PICFLAG) $(srcdir)/spaces.c -o pic/$@; \
1352 else true; fi
3f48575a 1353 if [ x"$(NOASANFLAG)" != x ]; then \
1354 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/spaces.c -o noasan/$@; \
1355 else true; fi
46a10049 1356 $(COMPILE.c) $(srcdir)/spaces.c $(OUTPUT_OPTION)
37254c9a 1357
497462ef 1358./splay-tree.$(objext): $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1359 $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h
46a10049
DD
1360 if [ x"$(PICFLAG)" != x ]; then \
1361 $(COMPILE.c) $(PICFLAG) $(srcdir)/splay-tree.c -o pic/$@; \
1362 else true; fi
3f48575a 1363 if [ x"$(NOASANFLAG)" != x ]; then \
1364 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/splay-tree.c -o noasan/$@; \
1365 else true; fi
46a10049 1366 $(COMPILE.c) $(srcdir)/splay-tree.c $(OUTPUT_OPTION)
37254c9a 1367
995b61fe 1368./stack-limit.$(objext): $(srcdir)/stack-limit.c config.h $(INCDIR)/ansidecl.h
26ac1280
DD
1369 if [ x"$(PICFLAG)" != x ]; then \
1370 $(COMPILE.c) $(PICFLAG) $(srcdir)/stack-limit.c -o pic/$@; \
1371 else true; fi
3f48575a 1372 if [ x"$(NOASANFLAG)" != x ]; then \
1373 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/stack-limit.c -o noasan/$@; \
1374 else true; fi
26ac1280
DD
1375 $(COMPILE.c) $(srcdir)/stack-limit.c $(OUTPUT_OPTION)
1376
497462ef 1377./stpcpy.$(objext): $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h
46a10049
DD
1378 if [ x"$(PICFLAG)" != x ]; then \
1379 $(COMPILE.c) $(PICFLAG) $(srcdir)/stpcpy.c -o pic/$@; \
1380 else true; fi
3f48575a 1381 if [ x"$(NOASANFLAG)" != x ]; then \
1382 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/stpcpy.c -o noasan/$@; \
1383 else true; fi
46a10049 1384 $(COMPILE.c) $(srcdir)/stpcpy.c $(OUTPUT_OPTION)
37254c9a 1385
497462ef 1386./stpncpy.$(objext): $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h
46a10049
DD
1387 if [ x"$(PICFLAG)" != x ]; then \
1388 $(COMPILE.c) $(PICFLAG) $(srcdir)/stpncpy.c -o pic/$@; \
1389 else true; fi
3f48575a 1390 if [ x"$(NOASANFLAG)" != x ]; then \
1391 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/stpncpy.c -o noasan/$@; \
1392 else true; fi
46a10049 1393 $(COMPILE.c) $(srcdir)/stpncpy.c $(OUTPUT_OPTION)
37254c9a 1394
497462ef 1395./strcasecmp.$(objext): $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h
46a10049
DD
1396 if [ x"$(PICFLAG)" != x ]; then \
1397 $(COMPILE.c) $(PICFLAG) $(srcdir)/strcasecmp.c -o pic/$@; \
1398 else true; fi
3f48575a 1399 if [ x"$(NOASANFLAG)" != x ]; then \
1400 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strcasecmp.c -o noasan/$@; \
1401 else true; fi
46a10049 1402 $(COMPILE.c) $(srcdir)/strcasecmp.c $(OUTPUT_OPTION)
37254c9a 1403
497462ef 1404./strchr.$(objext): $(srcdir)/strchr.c $(INCDIR)/ansidecl.h
46a10049
DD
1405 if [ x"$(PICFLAG)" != x ]; then \
1406 $(COMPILE.c) $(PICFLAG) $(srcdir)/strchr.c -o pic/$@; \
1407 else true; fi
3f48575a 1408 if [ x"$(NOASANFLAG)" != x ]; then \
1409 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strchr.c -o noasan/$@; \
1410 else true; fi
46a10049 1411 $(COMPILE.c) $(srcdir)/strchr.c $(OUTPUT_OPTION)
37254c9a 1412
497462ef 1413./strdup.$(objext): $(srcdir)/strdup.c $(INCDIR)/ansidecl.h
46a10049
DD
1414 if [ x"$(PICFLAG)" != x ]; then \
1415 $(COMPILE.c) $(PICFLAG) $(srcdir)/strdup.c -o pic/$@; \
1416 else true; fi
3f48575a 1417 if [ x"$(NOASANFLAG)" != x ]; then \
1418 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strdup.c -o noasan/$@; \
1419 else true; fi
46a10049 1420 $(COMPILE.c) $(srcdir)/strdup.c $(OUTPUT_OPTION)
37254c9a 1421
497462ef 1422./strerror.$(objext): $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1423 $(INCDIR)/libiberty.h
46a10049
DD
1424 if [ x"$(PICFLAG)" != x ]; then \
1425 $(COMPILE.c) $(PICFLAG) $(srcdir)/strerror.c -o pic/$@; \
1426 else true; fi
3f48575a 1427 if [ x"$(NOASANFLAG)" != x ]; then \
1428 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strerror.c -o noasan/$@; \
1429 else true; fi
46a10049 1430 $(COMPILE.c) $(srcdir)/strerror.c $(OUTPUT_OPTION)
37254c9a 1431
497462ef 1432./strncasecmp.$(objext): $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h
46a10049
DD
1433 if [ x"$(PICFLAG)" != x ]; then \
1434 $(COMPILE.c) $(PICFLAG) $(srcdir)/strncasecmp.c -o pic/$@; \
1435 else true; fi
3f48575a 1436 if [ x"$(NOASANFLAG)" != x ]; then \
1437 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strncasecmp.c -o noasan/$@; \
1438 else true; fi
46a10049 1439 $(COMPILE.c) $(srcdir)/strncasecmp.c $(OUTPUT_OPTION)
37254c9a 1440
497462ef 1441./strncmp.$(objext): $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h
46a10049
DD
1442 if [ x"$(PICFLAG)" != x ]; then \
1443 $(COMPILE.c) $(PICFLAG) $(srcdir)/strncmp.c -o pic/$@; \
1444 else true; fi
3f48575a 1445 if [ x"$(NOASANFLAG)" != x ]; then \
1446 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strncmp.c -o noasan/$@; \
1447 else true; fi
46a10049 1448 $(COMPILE.c) $(srcdir)/strncmp.c $(OUTPUT_OPTION)
37254c9a 1449
497462ef 1450./strndup.$(objext): $(srcdir)/strndup.c $(INCDIR)/ansidecl.h
0fad4bdb
DD
1451 if [ x"$(PICFLAG)" != x ]; then \
1452 $(COMPILE.c) $(PICFLAG) $(srcdir)/strndup.c -o pic/$@; \
1453 else true; fi
3f48575a 1454 if [ x"$(NOASANFLAG)" != x ]; then \
1455 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strndup.c -o noasan/$@; \
1456 else true; fi
0fad4bdb
DD
1457 $(COMPILE.c) $(srcdir)/strndup.c $(OUTPUT_OPTION)
1458
995b61fe
DD
1459./strnlen.$(objext): $(srcdir)/strnlen.c config.h
1460 if [ x"$(PICFLAG)" != x ]; then \
1461 $(COMPILE.c) $(PICFLAG) $(srcdir)/strnlen.c -o pic/$@; \
1462 else true; fi
3f48575a 1463 if [ x"$(NOASANFLAG)" != x ]; then \
1464 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strnlen.c -o noasan/$@; \
1465 else true; fi
995b61fe
DD
1466 $(COMPILE.c) $(srcdir)/strnlen.c $(OUTPUT_OPTION)
1467
497462ef 1468./strrchr.$(objext): $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h
46a10049
DD
1469 if [ x"$(PICFLAG)" != x ]; then \
1470 $(COMPILE.c) $(PICFLAG) $(srcdir)/strrchr.c -o pic/$@; \
1471 else true; fi
3f48575a 1472 if [ x"$(NOASANFLAG)" != x ]; then \
1473 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strrchr.c -o noasan/$@; \
1474 else true; fi
46a10049 1475 $(COMPILE.c) $(srcdir)/strrchr.c $(OUTPUT_OPTION)
37254c9a 1476
497462ef 1477./strsignal.$(objext): $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1478 $(INCDIR)/libiberty.h
46a10049
DD
1479 if [ x"$(PICFLAG)" != x ]; then \
1480 $(COMPILE.c) $(PICFLAG) $(srcdir)/strsignal.c -o pic/$@; \
1481 else true; fi
3f48575a 1482 if [ x"$(NOASANFLAG)" != x ]; then \
1483 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strsignal.c -o noasan/$@; \
1484 else true; fi
46a10049 1485 $(COMPILE.c) $(srcdir)/strsignal.c $(OUTPUT_OPTION)
37254c9a 1486
497462ef 1487./strstr.$(objext): $(srcdir)/strstr.c
46a10049
DD
1488 if [ x"$(PICFLAG)" != x ]; then \
1489 $(COMPILE.c) $(PICFLAG) $(srcdir)/strstr.c -o pic/$@; \
1490 else true; fi
3f48575a 1491 if [ x"$(NOASANFLAG)" != x ]; then \
1492 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strstr.c -o noasan/$@; \
1493 else true; fi
46a10049 1494 $(COMPILE.c) $(srcdir)/strstr.c $(OUTPUT_OPTION)
37254c9a 1495
497462ef
DD
1496./strtod.$(objext): $(srcdir)/strtod.c $(INCDIR)/ansidecl.h \
1497 $(INCDIR)/safe-ctype.h
46a10049
DD
1498 if [ x"$(PICFLAG)" != x ]; then \
1499 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtod.c -o pic/$@; \
1500 else true; fi
3f48575a 1501 if [ x"$(NOASANFLAG)" != x ]; then \
1502 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strtod.c -o noasan/$@; \
1503 else true; fi
46a10049 1504 $(COMPILE.c) $(srcdir)/strtod.c $(OUTPUT_OPTION)
37254c9a 1505
497462ef 1506./strtol.$(objext): $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h
46a10049
DD
1507 if [ x"$(PICFLAG)" != x ]; then \
1508 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtol.c -o pic/$@; \
1509 else true; fi
3f48575a 1510 if [ x"$(NOASANFLAG)" != x ]; then \
1511 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strtol.c -o noasan/$@; \
1512 else true; fi
46a10049 1513 $(COMPILE.c) $(srcdir)/strtol.c $(OUTPUT_OPTION)
37254c9a 1514
abdef8eb
JBG
1515./strtoll.$(objext): $(srcdir)/strtoll.c config.h $(INCDIR)/safe-ctype.h
1516 if [ x"$(PICFLAG)" != x ]; then \
1517 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoll.c -o pic/$@; \
1518 else true; fi
1519 if [ x"$(NOASANFLAG)" != x ]; then \
1520 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strtoll.c -o noasan/$@; \
1521 else true; fi
1522 $(COMPILE.c) $(srcdir)/strtoll.c $(OUTPUT_OPTION)
1523
497462ef 1524./strtoul.$(objext): $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1525 $(INCDIR)/safe-ctype.h
46a10049
DD
1526 if [ x"$(PICFLAG)" != x ]; then \
1527 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoul.c -o pic/$@; \
1528 else true; fi
3f48575a 1529 if [ x"$(NOASANFLAG)" != x ]; then \
1530 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strtoul.c -o noasan/$@; \
1531 else true; fi
46a10049 1532 $(COMPILE.c) $(srcdir)/strtoul.c $(OUTPUT_OPTION)
37254c9a 1533
abdef8eb
JBG
1534./strtoull.$(objext): $(srcdir)/strtoull.c config.h $(INCDIR)/ansidecl.h \
1535 $(INCDIR)/safe-ctype.h
1536 if [ x"$(PICFLAG)" != x ]; then \
1537 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoull.c -o pic/$@; \
1538 else true; fi
1539 if [ x"$(NOASANFLAG)" != x ]; then \
1540 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strtoull.c -o noasan/$@; \
1541 else true; fi
1542 $(COMPILE.c) $(srcdir)/strtoull.c $(OUTPUT_OPTION)
1543
497462ef
DD
1544./strverscmp.$(objext): $(srcdir)/strverscmp.c $(INCDIR)/ansidecl.h \
1545 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
67f3cb05
GK
1546 if [ x"$(PICFLAG)" != x ]; then \
1547 $(COMPILE.c) $(PICFLAG) $(srcdir)/strverscmp.c -o pic/$@; \
1548 else true; fi
3f48575a 1549 if [ x"$(NOASANFLAG)" != x ]; then \
1550 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strverscmp.c -o noasan/$@; \
1551 else true; fi
67f3cb05
GK
1552 $(COMPILE.c) $(srcdir)/strverscmp.c $(OUTPUT_OPTION)
1553
cf185ad7
DD
1554./timeval-utils.$(objext): $(srcdir)/timeval-utils.c config.h \
1555 $(INCDIR)/timeval-utils.h
1556 if [ x"$(PICFLAG)" != x ]; then \
1557 $(COMPILE.c) $(PICFLAG) $(srcdir)/timeval-utils.c -o pic/$@; \
1558 else true; fi
3f48575a 1559 if [ x"$(NOASANFLAG)" != x ]; then \
1560 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/timeval-utils.c -o noasan/$@; \
1561 else true; fi
cf185ad7
DD
1562 $(COMPILE.c) $(srcdir)/timeval-utils.c $(OUTPUT_OPTION)
1563
497462ef 1564./tmpnam.$(objext): $(srcdir)/tmpnam.c
46a10049
DD
1565 if [ x"$(PICFLAG)" != x ]; then \
1566 $(COMPILE.c) $(PICFLAG) $(srcdir)/tmpnam.c -o pic/$@; \
1567 else true; fi
3f48575a 1568 if [ x"$(NOASANFLAG)" != x ]; then \
1569 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/tmpnam.c -o noasan/$@; \
1570 else true; fi
46a10049 1571 $(COMPILE.c) $(srcdir)/tmpnam.c $(OUTPUT_OPTION)
37254c9a 1572
497462ef 1573./unlink-if-ordinary.$(objext): $(srcdir)/unlink-if-ordinary.c config.h \
8ec32723 1574 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
190eb137
DD
1575 if [ x"$(PICFLAG)" != x ]; then \
1576 $(COMPILE.c) $(PICFLAG) $(srcdir)/unlink-if-ordinary.c -o pic/$@; \
1577 else true; fi
3f48575a 1578 if [ x"$(NOASANFLAG)" != x ]; then \
1579 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/unlink-if-ordinary.c -o noasan/$@; \
1580 else true; fi
190eb137
DD
1581 $(COMPILE.c) $(srcdir)/unlink-if-ordinary.c $(OUTPUT_OPTION)
1582
497462ef 1583./vasprintf.$(objext): $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \
7c89917f 1584 $(INCDIR)/libiberty.h $(srcdir)/vprintf-support.h
46a10049
DD
1585 if [ x"$(PICFLAG)" != x ]; then \
1586 $(COMPILE.c) $(PICFLAG) $(srcdir)/vasprintf.c -o pic/$@; \
1587 else true; fi
3f48575a 1588 if [ x"$(NOASANFLAG)" != x ]; then \
1589 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vasprintf.c -o noasan/$@; \
1590 else true; fi
46a10049 1591 $(COMPILE.c) $(srcdir)/vasprintf.c $(OUTPUT_OPTION)
37254c9a 1592
497462ef 1593./vfork.$(objext): $(srcdir)/vfork.c $(INCDIR)/ansidecl.h
46a10049
DD
1594 if [ x"$(PICFLAG)" != x ]; then \
1595 $(COMPILE.c) $(PICFLAG) $(srcdir)/vfork.c -o pic/$@; \
1596 else true; fi
3f48575a 1597 if [ x"$(NOASANFLAG)" != x ]; then \
1598 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vfork.c -o noasan/$@; \
1599 else true; fi
46a10049 1600 $(COMPILE.c) $(srcdir)/vfork.c $(OUTPUT_OPTION)
37254c9a 1601
497462ef 1602./vfprintf.$(objext): $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h
46a10049
DD
1603 if [ x"$(PICFLAG)" != x ]; then \
1604 $(COMPILE.c) $(PICFLAG) $(srcdir)/vfprintf.c -o pic/$@; \
1605 else true; fi
3f48575a 1606 if [ x"$(NOASANFLAG)" != x ]; then \
1607 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vfprintf.c -o noasan/$@; \
1608 else true; fi
46a10049 1609 $(COMPILE.c) $(srcdir)/vfprintf.c $(OUTPUT_OPTION)
37254c9a 1610
7c89917f
RE
1611./vprintf-support.$(objext): $(srcdir)/vprintf-support.c config.h \
1612 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
1613 if [ x"$(PICFLAG)" != x ]; then \
1614 $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf-support.c -o pic/$@; \
1615 else true; fi
1616 if [ x"$(NOASANFLAG)" != x ]; then \
1617 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vprintf-support.c -o noasan/$@; \
1618 else true; fi
1619 $(COMPILE.c) $(srcdir)/vprintf-support.c $(OUTPUT_OPTION)
1620
497462ef 1621./vprintf.$(objext): $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h
46a10049
DD
1622 if [ x"$(PICFLAG)" != x ]; then \
1623 $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf.c -o pic/$@; \
1624 else true; fi
3f48575a 1625 if [ x"$(NOASANFLAG)" != x ]; then \
1626 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vprintf.c -o noasan/$@; \
1627 else true; fi
46a10049 1628 $(COMPILE.c) $(srcdir)/vprintf.c $(OUTPUT_OPTION)
37254c9a 1629
497462ef 1630./vsnprintf.$(objext): $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1631 $(INCDIR)/libiberty.h
46a10049
DD
1632 if [ x"$(PICFLAG)" != x ]; then \
1633 $(COMPILE.c) $(PICFLAG) $(srcdir)/vsnprintf.c -o pic/$@; \
1634 else true; fi
3f48575a 1635 if [ x"$(NOASANFLAG)" != x ]; then \
1636 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vsnprintf.c -o noasan/$@; \
1637 else true; fi
46a10049 1638 $(COMPILE.c) $(srcdir)/vsnprintf.c $(OUTPUT_OPTION)
37254c9a 1639
497462ef 1640./vsprintf.$(objext): $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h
46a10049
DD
1641 if [ x"$(PICFLAG)" != x ]; then \
1642 $(COMPILE.c) $(PICFLAG) $(srcdir)/vsprintf.c -o pic/$@; \
1643 else true; fi
3f48575a 1644 if [ x"$(NOASANFLAG)" != x ]; then \
1645 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/vsprintf.c -o noasan/$@; \
1646 else true; fi
46a10049 1647 $(COMPILE.c) $(srcdir)/vsprintf.c $(OUTPUT_OPTION)
37254c9a 1648
497462ef 1649./waitpid.$(objext): $(srcdir)/waitpid.c config.h $(INCDIR)/ansidecl.h
46a10049
DD
1650 if [ x"$(PICFLAG)" != x ]; then \
1651 $(COMPILE.c) $(PICFLAG) $(srcdir)/waitpid.c -o pic/$@; \
1652 else true; fi
3f48575a 1653 if [ x"$(NOASANFLAG)" != x ]; then \
1654 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/waitpid.c -o noasan/$@; \
1655 else true; fi
46a10049 1656 $(COMPILE.c) $(srcdir)/waitpid.c $(OUTPUT_OPTION)
37254c9a 1657
7c89917f
RE
1658./xasprintf.$(objext): $(srcdir)/xasprintf.c config.h $(INCDIR)/ansidecl.h \
1659 $(INCDIR)/libiberty.h
1660 if [ x"$(PICFLAG)" != x ]; then \
1661 $(COMPILE.c) $(PICFLAG) $(srcdir)/xasprintf.c -o pic/$@; \
1662 else true; fi
1663 if [ x"$(NOASANFLAG)" != x ]; then \
1664 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xasprintf.c -o noasan/$@; \
1665 else true; fi
1666 $(COMPILE.c) $(srcdir)/xasprintf.c $(OUTPUT_OPTION)
1667
497462ef 1668./xatexit.$(objext): $(srcdir)/xatexit.c config.h $(INCDIR)/ansidecl.h \
75919f94 1669 $(INCDIR)/libiberty.h
46a10049
DD
1670 if [ x"$(PICFLAG)" != x ]; then \
1671 $(COMPILE.c) $(PICFLAG) $(srcdir)/xatexit.c -o pic/$@; \
1672 else true; fi
3f48575a 1673 if [ x"$(NOASANFLAG)" != x ]; then \
1674 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xatexit.c -o noasan/$@; \
1675 else true; fi
46a10049 1676 $(COMPILE.c) $(srcdir)/xatexit.c $(OUTPUT_OPTION)
37254c9a 1677
497462ef
DD
1678./xexit.$(objext): $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h \
1679 $(INCDIR)/libiberty.h
46a10049
DD
1680 if [ x"$(PICFLAG)" != x ]; then \
1681 $(COMPILE.c) $(PICFLAG) $(srcdir)/xexit.c -o pic/$@; \
1682 else true; fi
3f48575a 1683 if [ x"$(NOASANFLAG)" != x ]; then \
1684 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xexit.c -o noasan/$@; \
1685 else true; fi
46a10049 1686 $(COMPILE.c) $(srcdir)/xexit.c $(OUTPUT_OPTION)
37254c9a 1687
497462ef 1688./xmalloc.$(objext): $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1689 $(INCDIR)/libiberty.h
46a10049
DD
1690 if [ x"$(PICFLAG)" != x ]; then \
1691 $(COMPILE.c) $(PICFLAG) $(srcdir)/xmalloc.c -o pic/$@; \
1692 else true; fi
3f48575a 1693 if [ x"$(NOASANFLAG)" != x ]; then \
1694 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xmalloc.c -o noasan/$@; \
1695 else true; fi
46a10049 1696 $(COMPILE.c) $(srcdir)/xmalloc.c $(OUTPUT_OPTION)
37254c9a 1697
497462ef 1698./xmemdup.$(objext): $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1699 $(INCDIR)/libiberty.h
46a10049
DD
1700 if [ x"$(PICFLAG)" != x ]; then \
1701 $(COMPILE.c) $(PICFLAG) $(srcdir)/xmemdup.c -o pic/$@; \
1702 else true; fi
3f48575a 1703 if [ x"$(NOASANFLAG)" != x ]; then \
1704 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xmemdup.c -o noasan/$@; \
1705 else true; fi
46a10049 1706 $(COMPILE.c) $(srcdir)/xmemdup.c $(OUTPUT_OPTION)
37254c9a 1707
497462ef 1708./xstrdup.$(objext): $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1709 $(INCDIR)/libiberty.h
46a10049
DD
1710 if [ x"$(PICFLAG)" != x ]; then \
1711 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/$@; \
1712 else true; fi
3f48575a 1713 if [ x"$(NOASANFLAG)" != x ]; then \
1714 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xstrdup.c -o noasan/$@; \
1715 else true; fi
46a10049 1716 $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION)
37254c9a 1717
497462ef 1718./xstrerror.$(objext): $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \
37254c9a 1719 $(INCDIR)/libiberty.h
46a10049
DD
1720 if [ x"$(PICFLAG)" != x ]; then \
1721 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrerror.c -o pic/$@; \
1722 else true; fi
3f48575a 1723 if [ x"$(NOASANFLAG)" != x ]; then \
1724 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xstrerror.c -o noasan/$@; \
1725 else true; fi
46a10049 1726 $(COMPILE.c) $(srcdir)/xstrerror.c $(OUTPUT_OPTION)
37254c9a 1727
497462ef 1728./xstrndup.$(objext): $(srcdir)/xstrndup.c config.h $(INCDIR)/ansidecl.h \
0fad4bdb
DD
1729 $(INCDIR)/libiberty.h
1730 if [ x"$(PICFLAG)" != x ]; then \
1731 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrndup.c -o pic/$@; \
1732 else true; fi
3f48575a 1733 if [ x"$(NOASANFLAG)" != x ]; then \
1734 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xstrndup.c -o noasan/$@; \
1735 else true; fi
0fad4bdb
DD
1736 $(COMPILE.c) $(srcdir)/xstrndup.c $(OUTPUT_OPTION)
1737
7c89917f
RE
1738./xvasprintf.$(objext): $(srcdir)/xvasprintf.c config.h $(INCDIR)/ansidecl.h \
1739 $(INCDIR)/libiberty.h $(srcdir)/vprintf-support.h
1740 if [ x"$(PICFLAG)" != x ]; then \
1741 $(COMPILE.c) $(PICFLAG) $(srcdir)/xvasprintf.c -o pic/$@; \
1742 else true; fi
1743 if [ x"$(NOASANFLAG)" != x ]; then \
1744 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/xvasprintf.c -o noasan/$@; \
1745 else true; fi
1746 $(COMPILE.c) $(srcdir)/xvasprintf.c $(OUTPUT_OPTION)