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