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