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