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