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