Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | # |
2 | # Makefile | |
59727473 | 3 | # Copyright (C) 1990, 91-99, 2000, 2001, 2002, 2003, 2004 |
252b5132 RH |
4 | # Free Software Foundation |
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, | |
19 | # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | # Boston, MA 02111-1307, USA. | |
21 | # | |
22 | ||
23 | # This file was written by K. Richard Pixley <rich@cygnus.com>. | |
24 | ||
25 | # | |
26 | # Makefile for libiberty directory | |
27 | # | |
28 | ||
85b9a938 | 29 | libiberty_topdir = @libiberty_topdir@ |
252b5132 | 30 | srcdir = @srcdir@ |
252b5132 | 31 | |
96e00b33 L |
32 | top_builddir = . |
33 | ||
252b5132 RH |
34 | prefix = @prefix@ |
35 | ||
36 | exec_prefix = @exec_prefix@ | |
37 | bindir = @bindir@ | |
38 | libdir = @libdir@ | |
50d4562d DD |
39 | includedir = @includedir@ |
40 | target_header_dir = @target_header_dir@ | |
252b5132 RH |
41 | |
42 | SHELL = @SHELL@ | |
43 | ||
44 | # Multilib support variables. | |
45 | MULTISRCTOP = | |
46 | MULTIBUILDTOP = | |
47 | MULTIDIRS = | |
48 | MULTISUBDIR = | |
49 | MULTIDO = true | |
50 | MULTICLEAN = true | |
51 | ||
52 | INSTALL = @INSTALL@ | |
53 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
54 | INSTALL_DATA = @INSTALL_DATA@ | |
85b9a938 | 55 | mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs |
252b5132 RH |
56 | |
57 | AR = @AR@ | |
58 | AR_FLAGS = rc | |
59 | ||
60 | CC = @CC@ | |
61 | CFLAGS = @CFLAGS@ | |
62 | LIBCFLAGS = $(CFLAGS) | |
63 | RANLIB = @RANLIB@ | |
39423523 DD |
64 | MAKEINFO = @MAKEINFO@ |
65 | PERL = @PERL@ | |
96e00b33 | 66 | LIBTOOL = @LIBTOOL@ |
252b5132 RH |
67 | |
68 | PICFLAG = | |
69 | ||
70 | MAKEOVERRIDES = | |
71 | ||
37254c9a DD |
72 | TARGETLIB = ./libiberty.a |
73 | TESTLIB = ./testlib.a | |
252b5132 RH |
74 | |
75 | LIBOBJS = @LIBOBJS@ | |
96e00b33 | 76 | LTLIBOBJS = @LTLIBOBJS@ |
252b5132 RH |
77 | |
78 | # A configuration can specify extra .o files that should be included, | |
79 | # even if they are in libc. (Perhaps the libc version is buggy.) | |
80 | EXTRA_OFILES = | |
96e00b33 | 81 | EXTRA_LTOFILES = |
252b5132 RH |
82 | |
83 | # Flags to pass to a recursive make. | |
84 | FLAGS_TO_PASS = \ | |
85 | "AR=$(AR)" \ | |
86 | "AR_FLAGS=$(AR_FLAGS)" \ | |
87 | "CC=$(CC)" \ | |
88 | "CFLAGS=$(CFLAGS)" \ | |
27a39a5f | 89 | "DESTDIR=$(DESTDIR)" \ |
252b5132 RH |
90 | "LIBCFLAGS=$(LIBCFLAGS)" \ |
91 | "EXTRA_OFILES=$(EXTRA_OFILES)" \ | |
96e00b33 | 92 | "EXTRA_LTOFILES=$(EXTRA_LTOFILES)" \ |
252b5132 RH |
93 | "HDEFINES=$(HDEFINES)" \ |
94 | "INSTALL=$(INSTALL)" \ | |
95 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
96 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
97 | "LDFLAGS=$(LDFLAGS)" \ | |
98 | "LOADLIBES=$(LOADLIBES)" \ | |
99 | "RANLIB=$(RANLIB)" \ | |
0c0a36a4 ILT |
100 | "SHELL=$(SHELL)" \ |
101 | "prefix=$(prefix)" \ | |
102 | "exec_prefix=$(exec_prefix)" \ | |
103 | "libdir=$(libdir)" \ | |
104 | "libsubdir=$(libsubdir)" \ | |
105 | "tooldir=$(tooldir)" | |
252b5132 | 106 | |
0c0a36a4 ILT |
107 | # Subdirectories to recurse into. We need to override this during cleaning |
108 | SUBDIRS = testsuite | |
109 | ||
39423523 | 110 | # FIXME: add @BUILD_INFO@ once we're sure it works for everyone. |
96e00b33 | 111 | all: $(TARGETLIB) needed-list required-list all-subdir |
1b67de92 | 112 | @: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all |
252b5132 RH |
113 | |
114 | .PHONY: check installcheck | |
0c0a36a4 ILT |
115 | check: check-subdir |
116 | installcheck: installcheck-subdir | |
252b5132 RH |
117 | |
118 | @host_makefile_frag@ | |
119 | ||
120 | INCDIR=$(srcdir)/$(MULTISRCTOP)../include | |
121 | ||
eb383413 | 122 | COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@ |
96e00b33 | 123 | LTCOMPILE = $(LIBTOOL) --mode=compile $(COMPILE.c) |
37254c9a DD |
124 | |
125 | # Just to make sure we don't use a built-in rule with VPATH | |
252b5132 | 126 | .c.o: |
37254c9a | 127 | false |
252b5132 | 128 | |
96e00b33 L |
129 | .c.lo: |
130 | false | |
131 | ||
252b5132 | 132 | # NOTE: If you add new files to the library, add them to this list |
96e00b33 L |
133 | # (alphabetical), and add them to REQUIRED_OFILES/REQUIRED_LTOFILES, or |
134 | # CONFIGURED_OFILES/CONFIGURED_LTOFILES and funcs in configure.ac. | |
135 | # Also run "make maint-deps" to build the new rules. | |
cc096b71 DD |
136 | CFILES = alloca.c argv.c asprintf.c atexit.c \ |
137 | basename.c bcmp.c bcopy.c bsearch.c bzero.c \ | |
138 | calloc.c choose-temp.c clock.c concat.c cp-demangle.c \ | |
37254c9a | 139 | cp-demint.c cplus-dem.c \ |
cc096b71 DD |
140 | dyn-string.c \ |
141 | fdmatch.c ffs.c fibheap.c floatformat.c fnmatch.c \ | |
142 | getcwd.c getopt.c getopt1.c getpagesize.c getpwd.c getruntime.c \ | |
143 | hashtab.c hex.c \ | |
144 | index.c insque.c \ | |
145 | lbasename.c \ | |
ba61a412 | 146 | lrealpath.c \ |
2a80c0a4 | 147 | make-relative-prefix.c \ |
cc096b71 | 148 | make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmove.c \ |
10b57b38 | 149 | mempcpy.c memset.c mkstemps.c \ |
cc096b71 | 150 | objalloc.c obstack.c \ |
5a17353c | 151 | partition.c \ |
9c2259b8 | 152 | pex-djgpp.c pex-mpw.c pex-msdos.c pex-os2.c \ |
5a17353c | 153 | pex-unix.c pex-win32.c \ |
4938384a | 154 | physmem.c putenv.c \ |
cc096b71 | 155 | random.c regex.c rename.c rindex.c \ |
2ed1e5cc | 156 | safe-ctype.c setenv.c sigsetmask.c snprintf.c sort.c spaces.c \ |
10b57b38 DD |
157 | splay-tree.c stpcpy.c stpncpy.c strcasecmp.c strchr.c strdup.c \ |
158 | strerror.c strncasecmp.c strncmp.c strrchr.c strsignal.c \ | |
159 | strstr.c strtod.c strtol.c strtoul.c \ | |
cc096b71 | 160 | ternary.c tmpnam.c \ |
2ed1e5cc | 161 | vasprintf.c vfork.c vfprintf.c vprintf.c vsnprintf.c vsprintf.c \ |
cc096b71 DD |
162 | waitpid.c \ |
163 | xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c | |
164 | ||
165 | # These are always included in the library. The first four are listed | |
166 | # first and by compile time to optimize parallel builds. | |
e0c148a7 DD |
167 | REQUIRED_OFILES = ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o \ |
168 | ./alloca.o ./argv.o \ | |
169 | ./choose-temp.o ./concat.o ./cp-demint.o \ | |
37254c9a | 170 | ./dyn-string.o \ |
e0c148a7 DD |
171 | ./fdmatch.o ./fibheap.o ./floatformat.o ./fnmatch.o \ |
172 | ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o \ | |
173 | ./hashtab.o ./hex.o \ | |
174 | ./lbasename.o ./lrealpath.o \ | |
175 | ./make-relative-prefix.o ./make-temp-file.o \ | |
176 | ./objalloc.o ./obstack.o \ | |
177 | ./partition.o ./physmem.o @pexecute@ \ | |
178 | ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o \ | |
37254c9a DD |
179 | ./strsignal.o \ |
180 | ./ternary.o \ | |
e0c148a7 DD |
181 | ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o \ |
182 | ./xstrerror.o | |
96e00b33 L |
183 | REQUIRED_LTOFILES = ./regex.lo ./cplus-dem.lo ./cp-demangle.lo ./md5.lo \ |
184 | ./alloca.lo ./argv.lo \ | |
185 | ./choose-temp.lo ./concat.lo ./cp-demint.lo \ | |
186 | ./dyn-string.lo \ | |
187 | ./fdmatch.lo ./fibheap.lo ./floatformat.lo ./fnmatch.lo \ | |
188 | ./getopt.lo ./getopt1.lo ./getpwd.lo ./getruntime.lo \ | |
189 | ./hashtab.lo ./hex.lo \ | |
190 | ./lbasename.lo ./lrealpath.lo \ | |
191 | ./make-relative-prefix.lo ./make-temp-file.lo \ | |
192 | ./objalloc.lo ./obstack.lo \ | |
193 | ./partition.lo ./physmem.lo @ltpexecute@ \ | |
194 | ./safe-ctype.lo ./sort.lo ./spaces.lo ./splay-tree.lo ./strerror.lo \ | |
195 | ./strsignal.lo \ | |
196 | ./ternary.lo \ | |
197 | ./xatexit.lo ./xexit.lo ./xmalloc.lo ./xmemdup.lo ./xstrdup.lo \ | |
198 | ./xstrerror.lo | |
30673bf5 | 199 | |
39423523 | 200 | # These are all the objects that configure may add to the library via |
cc096b71 DD |
201 | # $funcs or EXTRA_OFILES. This list exists here only for "make |
202 | # maint-missing" and "make check". | |
e0c148a7 DD |
203 | CONFIGURED_OFILES = ./asprintf.o ./atexit.o \ |
204 | ./basename.o ./bcmp.o ./bcopy.o ./bsearch.o ./bzero.o \ | |
205 | ./calloc.o ./clock.o ./copysign.o \ | |
37254c9a DD |
206 | ./_doprnt.o \ |
207 | ./ffs.o \ | |
e0c148a7 | 208 | ./getcwd.o ./getpagesize.o \ |
37254c9a | 209 | ./index.o ./insque.o \ |
e0c148a7 DD |
210 | ./memchr.o ./memcmp.o ./memcpy.o ./memmove.o ./mempcpy.o \ |
211 | ./memset.o ./mkstemps.o \ | |
212 | ./pex-djgpp.o ./pex-mpw.o ./pex-msdos.o ./pex-os2.o \ | |
213 | ./pex-unix.o ./pex-win32.o \ | |
37254c9a | 214 | ./putenv.o \ |
e0c148a7 DD |
215 | ./random.o ./rename.o ./rindex.o \ |
216 | ./setenv.o ./sigsetmask.o ./snprintf.o ./stpcpy.o ./stpncpy.o \ | |
217 | ./strcasecmp.o ./strchr.o ./strdup.o ./strncasecmp.o \ | |
218 | ./strncmp.o ./strrchr.o ./strstr.o \ | |
219 | ./strtod.o ./strtol.o ./strtoul.o \ | |
37254c9a | 220 | ./tmpnam.o \ |
e0c148a7 DD |
221 | ./vasprintf.o ./vfork.o ./vfprintf.o ./vprintf.o ./vsnprintf.o \ |
222 | ./vsprintf.o \ | |
37254c9a | 223 | ./waitpid.o |
96e00b33 L |
224 | CONFIGURED_LTOFILES = ./asprintf.lo ./atexit.lo \ |
225 | ./basename.lo ./bcmp.lo ./bcopy.lo ./bsearch.lo ./bzero.lo \ | |
226 | ./calloc.lo ./clock.lo ./copysign.lo \ | |
227 | ./_doprnt.lo \ | |
228 | ./ffs.lo \ | |
229 | ./getcwd.lo ./getpagesize.lo \ | |
230 | ./index.lo ./insque.lo \ | |
231 | ./memchr.lo ./memcmp.lo ./memcpy.lo ./memmove.lo ./mempcpy.lo \ | |
232 | ./memset.lo ./mkstemps.lo \ | |
233 | ./pex-djgpp.lo ./pex-mpw.lo ./pex-msdos.lo ./pex-os2.lo \ | |
234 | ./pex-unix.lo ./pex-win32.lo \ | |
235 | ./putenv.lo \ | |
236 | ./random.lo ./rename.lo ./rindex.lo \ | |
237 | ./setenv.lo ./sigsetmask.lo ./snprintf.lo ./stpcpy.lo ./stpncpy.lo \ | |
238 | ./strcasecmp.lo ./strchr.lo ./strdup.lo ./strncasecmp.lo \ | |
239 | ./strncmp.lo ./strrchr.lo ./strstr.lo \ | |
240 | ./strtod.lo ./strtol.lo ./strtoul.lo \ | |
241 | ./tmpnam.lo \ | |
242 | ./vasprintf.lo ./vfork.lo ./vfprintf.lo ./vprintf.lo ./vsnprintf.lo \ | |
243 | ./vsprintf.lo \ | |
244 | ./waitpid.lo | |
39423523 | 245 | |
50d4562d DD |
246 | # These files are installed if the library has been configured to do so. |
247 | INSTALLED_HEADERS = \ | |
248 | $(INCDIR)/ansidecl.h \ | |
249 | $(INCDIR)/demangle.h \ | |
250 | $(INCDIR)/dyn-string.h \ | |
251 | $(INCDIR)/fibheap.h \ | |
252 | $(INCDIR)/floatformat.h \ | |
253 | $(INCDIR)/hashtab.h \ | |
254 | $(INCDIR)/libiberty.h \ | |
255 | $(INCDIR)/objalloc.h \ | |
256 | $(INCDIR)/partition.h \ | |
257 | $(INCDIR)/safe-ctype.h \ | |
258 | $(INCDIR)/sort.h \ | |
259 | $(INCDIR)/splay-tree.h \ | |
260 | $(INCDIR)/ternary.h | |
261 | ||
96e00b33 L |
262 | $(TARGETLIB): $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS) |
263 | -rm -f $(TARGETLIB) .libs/$(TARGETLIB) | |
252b5132 | 264 | $(AR) $(AR_FLAGS) $(TARGETLIB) \ |
30673bf5 | 265 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
252b5132 | 266 | $(RANLIB) $(TARGETLIB) |
96e00b33 L |
267 | if [ -d .libs ]; then \ |
268 | cd .libs; \ | |
3bc62f91 DD |
269 | $(AR) $(AR_FLAGS) $(TARGETLIB) \ |
270 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ | |
271 | $(RANLIB) $(TARGETLIB); \ | |
96e00b33 L |
272 | [ -d ../pic ] || mkdir ../pic; \ |
273 | rm -f ../pic/$(TARGETLIB); \ | |
274 | cp $(TARGETLIB) ../pic/$(TARGETLIB); \ | |
3bc62f91 DD |
275 | cd ..; \ |
276 | else true; fi | |
252b5132 | 277 | |
96e00b33 | 278 | $(TESTLIB): $(REQUIRED_LTOFILES) $(CONFIGURED_LTOFILES) |
cc096b71 DD |
279 | -rm -f $(TESTLIB) |
280 | $(AR) $(AR_FLAGS) $(TESTLIB) \ | |
281 | $(REQUIRED_OFILES) $(CONFIGURED_OFILES) | |
282 | $(RANLIB) $(TESTLIB) | |
283 | ||
39423523 DD |
284 | info: libiberty.info info-subdir |
285 | install-info: install-info-subdir | |
286 | clean-info: clean-info-subdir | |
287 | dvi: libiberty.dvi dvi-subdir | |
288 | html: libiberty.html | |
289 | ||
290 | TEXISRC = \ | |
291 | $(srcdir)/libiberty.texi \ | |
292 | $(srcdir)/copying-lib.texi \ | |
293 | $(srcdir)/obstacks.texi \ | |
294 | $(srcdir)/functions.texi | |
295 | ||
296 | # Additional files that have texi snippets that need to be collected | |
ba19b94f DD |
297 | # and sorted. Some are here because the sources are imported from |
298 | # elsewhere. Others represent headers in ../include. | |
5a17353c | 299 | TEXIFILES = fnmatch.txh pexecute.txh |
39423523 DD |
300 | |
301 | libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC) | |
302 | $(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi | |
303 | ||
304 | libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC) | |
305 | texi2dvi $(srcdir)/libiberty.texi | |
306 | ||
307 | libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC) | |
6cfb3176 | 308 | $(MAKEINFO) --no-split --html -I$(srcdir) -o $@ $< |
39423523 DD |
309 | |
310 | @MAINT@$(srcdir)/functions.texi : stamp-functions | |
311 | @MAINT@ @true | |
312 | ||
313 | @MAINT@stamp-functions : $(CFILES) $(TEXIFILES) $(srcdir)/gather-docs Makefile | |
314 | @MAINT@@HAVE_PERL@ $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES) | |
315 | @MAINT@ echo stamp > stamp-functions | |
316 | ||
252b5132 | 317 | INSTALL_DEST = @INSTALL_DEST@ |
0c0a36a4 | 318 | install: install_to_$(INSTALL_DEST) install-subdir |
252b5132 RH |
319 | |
320 | install_to_libdir: all | |
27a39a5f | 321 | ${mkinstalldirs} $(DESTDIR)$(libdir)$(MULTISUBDIR) |
4748c6d8 DD |
322 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n |
323 | ( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n ) | |
324 | mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB) | |
50d4562d DD |
325 | if test -n "${target_header_dir}"; then \ |
326 | case "${target_header_dir}" in \ | |
327 | /*) thd=${target_header_dir};; \ | |
328 | *) thd=${includedir}${MULTISUBDIR}/${target_header_dir};; \ | |
329 | esac; \ | |
4748c6d8 | 330 | ${mkinstalldirs} $(DESTDIR)$${thd}; \ |
50d4562d | 331 | for h in ${INSTALLED_HEADERS}; do \ |
4748c6d8 | 332 | ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \ |
50d4562d DD |
333 | done; \ |
334 | fi | |
252b5132 RH |
335 | @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install |
336 | ||
aa072e59 AO |
337 | # This is tricky. Even though CC in the Makefile contains |
338 | # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the | |
339 | # default multilib, so we have to take LIBCFLAGS into account as well, | |
340 | # since it will be passed the multilib flags. | |
341 | MULTIOSDIR = `$(CC) $(LIBCFLAGS) -print-multi-os-directory` | |
252b5132 | 342 | install_to_tooldir: all |
aa072e59 AO |
343 | ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) |
344 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n | |
345 | ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; $(RANLIB) $(TARGETLIB)n ) | |
346 | mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB) | |
252b5132 RH |
347 | @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install |
348 | ||
0c0a36a4 ILT |
349 | # needed-list is used by libstdc++. NEEDED is the list of functions |
350 | # to include there. Do not add anything LGPL to this list; libstdc++ | |
351 | # can't use anything encumbering. | |
352 | NEEDED = atexit calloc memchr memcmp memcpy memmove memset rename strchr \ | |
eb383413 | 353 | strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf \ |
0c0a36a4 | 354 | vfork waitpid bcmp bcopy bzero |
252b5132 | 355 | needed-list: Makefile |
0c0a36a4 ILT |
356 | rm -f needed-list; touch needed-list; \ |
357 | for f in $(NEEDED); do \ | |
358 | for g in $(LIBOBJS) $(EXTRA_OFILES); do \ | |
359 | case "$$g" in \ | |
360 | *$$f*) echo $$g >> needed-list ;; \ | |
361 | esac; \ | |
362 | done; \ | |
363 | done | |
252b5132 RH |
364 | |
365 | # required-list was used when building a shared bfd/opcodes/libiberty | |
366 | # library. I don't know if it used by anything currently. | |
367 | required-list: Makefile | |
368 | echo $(REQUIRED_OFILES) > required-list | |
369 | ||
252b5132 RH |
370 | .PHONY: all etags tags ls clean stage1 stage2 |
371 | ||
0c0a36a4 | 372 | etags tags: TAGS etags-subdir |
252b5132 | 373 | |
30673bf5 DD |
374 | TAGS: $(CFILES) |
375 | etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done` | |
252b5132 RH |
376 | |
377 | # The standalone demangler (c++filt) has been moved to binutils. | |
378 | demangle: | |
379 | @echo "The standalone demangler, now named c++filt, is now" | |
380 | @echo "a part of binutils." | |
381 | @false | |
382 | ||
383 | ls: | |
30673bf5 | 384 | @echo Makefile $(CFILES) |
252b5132 | 385 | |
39423523 DD |
386 | # Various targets for maintainers. |
387 | ||
388 | maint-missing : | |
96e00b33 | 389 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_LTOFILES) $(CONFIGURED_LTOFILES) |
39423523 | 390 | |
96e00b33 | 391 | maint-buildall : $(REQUIRED_LTOFILES) $(CONFIGURED_LTOFILES) |
39423523 DD |
392 | @true |
393 | ||
ba19b94f DD |
394 | maint-undoc : $(srcdir)/functions.texi |
395 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc | |
396 | ||
cc096b71 DD |
397 | maint-deps : |
398 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR) | |
399 | ||
252b5132 RH |
400 | # Need to deal with profiled libraries, too. |
401 | ||
0c0a36a4 ILT |
402 | # Cleaning has to be done carefully to ensure that we don't clean our SUBDIRS |
403 | # multiple times, hence our explicit recursion with an empty SUBDIRS. | |
404 | mostlyclean: mostlyclean-subdir | |
96e00b33 | 405 | -rm -rf *.o *.lo pic .libs core errs \#* *.E a.out |
c00c39ed | 406 | -rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-* |
96e00b33 | 407 | -rm -f $(CONFIG_H) $(NEEDED_LIST) |
39423523 DD |
408 | -rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky |
409 | -rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg | |
410 | -rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr | |
411 | -rm -f libtexi.stamp | |
252b5132 | 412 | @$(MULTICLEAN) multi-clean DO=mostlyclean |
0c0a36a4 ILT |
413 | clean: clean-subdir |
414 | $(MAKE) SUBDIRS="" mostlyclean | |
c00c39ed | 415 | -rm -f *.a required-list tmpmulti.out |
39423523 | 416 | -rm -f libiberty.dvi libiberty.info* libiberty.html |
252b5132 | 417 | @$(MULTICLEAN) multi-clean DO=clean |
0c0a36a4 ILT |
418 | distclean: distclean-subdir |
419 | $(MAKE) SUBDIRS="" clean | |
252b5132 | 420 | @$(MULTICLEAN) multi-clean DO=distclean |
3795d586 | 421 | -rm -f *~ Makefile config.cache config.status xhost-mkfrag TAGS multilib.out |
c00c39ed | 422 | -rm -f config.log |
4415a860 | 423 | -rmdir testsuite 2>/dev/null |
0c0a36a4 ILT |
424 | maintainer-clean realclean: maintainer-clean-subdir |
425 | $(MAKE) SUBDIRS="" distclean | |
252b5132 RH |
426 | |
427 | force: | |
428 | ||
429 | Makefile: $(srcdir)/Makefile.in config.status | |
430 | CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status | |
431 | ||
fec50157 DD |
432 | # Depending on Makefile makes sure that config.status has been re-run |
433 | # if needed. This prevents problems with parallel builds. | |
252b5132 | 434 | config.h: stamp-h ; @true |
37254c9a DD |
435 | stamp-h: $(srcdir)/config.in config.status Makefile |
436 | CONFIG_FILES= CONFIG_HEADERS=config.h:$(srcdir)/config.in $(SHELL) ./config.status | |
252b5132 RH |
437 | |
438 | config.status: $(srcdir)/configure $(srcdir)/config.table | |
439 | $(SHELL) ./config.status --recheck | |
440 | ||
fec50157 DD |
441 | # Depending on config.h makes sure that config.status has been re-run |
442 | # if needed. This prevents problems with parallel builds, in case | |
443 | # subdirectories need to run config.status also. | |
0c0a36a4 ILT |
444 | all-subdir check-subdir installcheck-subdir info-subdir \ |
445 | install-info-subdir clean-info-subdir dvi-subdir install-subdir \ | |
446 | etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \ | |
fec50157 | 447 | maintainer-clean-subdir: config.h |
010c70e1 | 448 | @subdirs='$(SUBDIRS)'; \ |
19be4303 | 449 | target=`echo $@ | sed -e 's/-subdir//'`; \ |
010c70e1 | 450 | for dir in $$subdirs ; do \ |
578460f2 | 451 | cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \ |
0c0a36a4 ILT |
452 | done |
453 | ||
96e00b33 L |
454 | # Don't export variables to the environment, in order to not confuse |
455 | # configure. | |
456 | .NOEXPORT: | |
cc096b71 DD |
457 | # The dependencies in the remainder of this file are automatically |
458 | # generated by "make maint-deps". Manual edits will be lost. | |
252b5132 | 459 | |
96e00b33 | 460 | ./_doprnt.lo: $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \ |
cc096b71 | 461 | $(INCDIR)/safe-ctype.h |
96e00b33 | 462 | $(LTCOMPILE) -c -o $@ $(srcdir)/_doprnt.c |
37254c9a | 463 | |
96e00b33 | 464 | ./alloca.lo: $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \ |
59727473 | 465 | $(INCDIR)/libiberty.h |
96e00b33 | 466 | $(LTCOMPILE) -c -o $@ $(srcdir)/alloca.c |
37254c9a | 467 | |
96e00b33 L |
468 | ./argv.lo: $(srcdir)/argv.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
469 | $(LTCOMPILE) -c -o $@ $(srcdir)/argv.c | |
37254c9a | 470 | |
96e00b33 L |
471 | ./asprintf.lo: $(srcdir)/asprintf.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
472 | $(LTCOMPILE) -c -o $@ $(srcdir)/asprintf.c | |
37254c9a | 473 | |
96e00b33 L |
474 | ./atexit.lo: $(srcdir)/atexit.c config.h |
475 | $(LTCOMPILE) -c -o $@ $(srcdir)/atexit.c | |
37254c9a | 476 | |
96e00b33 | 477 | ./basename.lo: $(srcdir)/basename.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
37254c9a | 478 | $(INCDIR)/safe-ctype.h |
96e00b33 | 479 | $(LTCOMPILE) -c -o $@ $(srcdir)/basename.c |
37254c9a | 480 | |
96e00b33 L |
481 | ./bcmp.lo: $(srcdir)/bcmp.c |
482 | $(LTCOMPILE) -c -o $@ $(srcdir)/bcmp.c | |
37254c9a | 483 | |
96e00b33 L |
484 | ./bcopy.lo: $(srcdir)/bcopy.c |
485 | $(LTCOMPILE) -c -o $@ $(srcdir)/bcopy.c | |
37254c9a | 486 | |
96e00b33 L |
487 | ./bsearch.lo: $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h |
488 | $(LTCOMPILE) -c -o $@ $(srcdir)/bsearch.c | |
37254c9a | 489 | |
96e00b33 L |
490 | ./bzero.lo: $(srcdir)/bzero.c |
491 | $(LTCOMPILE) -c -o $@ $(srcdir)/bzero.c | |
37254c9a | 492 | |
96e00b33 L |
493 | ./calloc.lo: $(srcdir)/calloc.c $(INCDIR)/ansidecl.h |
494 | $(LTCOMPILE) -c -o $@ $(srcdir)/calloc.c | |
37254c9a | 495 | |
96e00b33 | 496 | ./choose-temp.lo: $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 497 | $(INCDIR)/libiberty.h |
96e00b33 | 498 | $(LTCOMPILE) -c -o $@ $(srcdir)/choose-temp.c |
37254c9a | 499 | |
96e00b33 L |
500 | ./clock.lo: $(srcdir)/clock.c config.h |
501 | $(LTCOMPILE) -c -o $@ $(srcdir)/clock.c | |
37254c9a | 502 | |
96e00b33 | 503 | ./concat.lo: $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \ |
cc096b71 | 504 | $(INCDIR)/libiberty.h |
96e00b33 | 505 | $(LTCOMPILE) -c -o $@ $(srcdir)/concat.c |
37254c9a | 506 | |
96e00b33 L |
507 | ./copysign.lo: $(srcdir)/copysign.c $(INCDIR)/ansidecl.h |
508 | $(LTCOMPILE) -c -o $@ $(srcdir)/copysign.c | |
37254c9a | 509 | |
96e00b33 | 510 | ./cp-demangle.lo: $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a DD |
511 | $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \ |
512 | $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h | |
96e00b33 | 513 | $(LTCOMPILE) -c -o $@ $(srcdir)/cp-demangle.c |
37254c9a | 514 | |
96e00b33 | 515 | ./cp-demint.lo: $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 516 | $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \ |
cc096b71 | 517 | $(INCDIR)/libiberty.h |
96e00b33 | 518 | $(LTCOMPILE) -c -o $@ $(srcdir)/cp-demint.c |
37254c9a | 519 | |
96e00b33 | 520 | ./cplus-dem.lo: $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a DD |
521 | $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \ |
522 | $(INCDIR)/safe-ctype.h | |
96e00b33 | 523 | $(LTCOMPILE) -c -o $@ $(srcdir)/cplus-dem.c |
37254c9a | 524 | |
96e00b33 | 525 | ./dyn-string.lo: $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 526 | $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h |
96e00b33 | 527 | $(LTCOMPILE) -c -o $@ $(srcdir)/dyn-string.c |
37254c9a | 528 | |
96e00b33 L |
529 | ./fdmatch.lo: $(srcdir)/fdmatch.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
530 | $(LTCOMPILE) -c -o $@ $(srcdir)/fdmatch.c | |
37254c9a | 531 | |
96e00b33 L |
532 | ./ffs.lo: $(srcdir)/ffs.c |
533 | $(LTCOMPILE) -c -o $@ $(srcdir)/ffs.c | |
37254c9a | 534 | |
96e00b33 | 535 | ./fibheap.lo: $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 536 | $(INCDIR)/fibheap.h $(INCDIR)/libiberty.h |
96e00b33 | 537 | $(LTCOMPILE) -c -o $@ $(srcdir)/fibheap.c |
37254c9a | 538 | |
96e00b33 | 539 | ./floatformat.lo: $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 540 | $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h |
96e00b33 | 541 | $(LTCOMPILE) -c -o $@ $(srcdir)/floatformat.c |
37254c9a | 542 | |
96e00b33 | 543 | ./fnmatch.lo: $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \ |
37254c9a | 544 | $(INCDIR)/safe-ctype.h |
96e00b33 | 545 | $(LTCOMPILE) -c -o $@ $(srcdir)/fnmatch.c |
37254c9a | 546 | |
96e00b33 L |
547 | ./getcwd.lo: $(srcdir)/getcwd.c config.h |
548 | $(LTCOMPILE) -c -o $@ $(srcdir)/getcwd.c | |
37254c9a | 549 | |
96e00b33 L |
550 | ./getopt.lo: $(srcdir)/getopt.c config.h $(INCDIR)/getopt.h |
551 | $(LTCOMPILE) -c -o $@ $(srcdir)/getopt.c | |
37254c9a | 552 | |
96e00b33 L |
553 | ./getopt1.lo: $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h |
554 | $(LTCOMPILE) -c -o $@ $(srcdir)/getopt1.c | |
37254c9a | 555 | |
96e00b33 L |
556 | ./getpagesize.lo: $(srcdir)/getpagesize.c config.h |
557 | $(LTCOMPILE) -c -o $@ $(srcdir)/getpagesize.c | |
37254c9a | 558 | |
96e00b33 | 559 | ./getpwd.lo: $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \ |
09e9708c | 560 | $(INCDIR)/libiberty.h |
96e00b33 | 561 | $(LTCOMPILE) -c -o $@ $(srcdir)/getpwd.c |
37254c9a | 562 | |
96e00b33 | 563 | ./getruntime.lo: $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \ |
cc096b71 | 564 | $(INCDIR)/libiberty.h |
96e00b33 | 565 | $(LTCOMPILE) -c -o $@ $(srcdir)/getruntime.c |
37254c9a | 566 | |
96e00b33 | 567 | ./hashtab.lo: $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 568 | $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h |
96e00b33 | 569 | $(LTCOMPILE) -c -o $@ $(srcdir)/hashtab.c |
37254c9a | 570 | |
96e00b33 | 571 | ./hex.lo: $(srcdir)/hex.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
70ecf948 | 572 | $(INCDIR)/safe-ctype.h |
96e00b33 | 573 | $(LTCOMPILE) -c -o $@ $(srcdir)/hex.c |
37254c9a | 574 | |
96e00b33 L |
575 | ./index.lo: $(srcdir)/index.c |
576 | $(LTCOMPILE) -c -o $@ $(srcdir)/index.c | |
37254c9a | 577 | |
96e00b33 L |
578 | ./insque.lo: $(srcdir)/insque.c |
579 | $(LTCOMPILE) -c -o $@ $(srcdir)/insque.c | |
37254c9a | 580 | |
96e00b33 | 581 | ./lbasename.lo: $(srcdir)/lbasename.c $(INCDIR)/ansidecl.h $(INCDIR)/filenames.h \ |
59727473 | 582 | $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h |
96e00b33 | 583 | $(LTCOMPILE) -c -o $@ $(srcdir)/lbasename.c |
37254c9a | 584 | |
96e00b33 | 585 | ./lrealpath.lo: $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 586 | $(INCDIR)/libiberty.h |
96e00b33 | 587 | $(LTCOMPILE) -c -o $@ $(srcdir)/lrealpath.c |
37254c9a | 588 | |
96e00b33 | 589 | ./make-relative-prefix.lo: $(srcdir)/make-relative-prefix.c config.h \ |
37254c9a | 590 | $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
96e00b33 | 591 | $(LTCOMPILE) -c -o $@ $(srcdir)/make-relative-prefix.c |
37254c9a | 592 | |
96e00b33 | 593 | ./make-temp-file.lo: $(srcdir)/make-temp-file.c config.h $(INCDIR)/ansidecl.h \ |
1ea16ec5 | 594 | $(INCDIR)/libiberty.h |
96e00b33 | 595 | $(LTCOMPILE) -c -o $@ $(srcdir)/make-temp-file.c |
37254c9a | 596 | |
96e00b33 L |
597 | ./md5.lo: $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h |
598 | $(LTCOMPILE) -c -o $@ $(srcdir)/md5.c | |
37254c9a | 599 | |
96e00b33 L |
600 | ./memchr.lo: $(srcdir)/memchr.c $(INCDIR)/ansidecl.h |
601 | $(LTCOMPILE) -c -o $@ $(srcdir)/memchr.c | |
37254c9a | 602 | |
96e00b33 L |
603 | ./memcmp.lo: $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h |
604 | $(LTCOMPILE) -c -o $@ $(srcdir)/memcmp.c | |
37254c9a | 605 | |
96e00b33 L |
606 | ./memcpy.lo: $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h |
607 | $(LTCOMPILE) -c -o $@ $(srcdir)/memcpy.c | |
37254c9a | 608 | |
96e00b33 L |
609 | ./memmove.lo: $(srcdir)/memmove.c $(INCDIR)/ansidecl.h |
610 | $(LTCOMPILE) -c -o $@ $(srcdir)/memmove.c | |
37254c9a | 611 | |
96e00b33 L |
612 | ./mempcpy.lo: $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h |
613 | $(LTCOMPILE) -c -o $@ $(srcdir)/mempcpy.c | |
37254c9a | 614 | |
96e00b33 L |
615 | ./memset.lo: $(srcdir)/memset.c $(INCDIR)/ansidecl.h |
616 | $(LTCOMPILE) -c -o $@ $(srcdir)/memset.c | |
37254c9a | 617 | |
96e00b33 L |
618 | ./mkstemps.lo: $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h |
619 | $(LTCOMPILE) -c -o $@ $(srcdir)/mkstemps.c | |
37254c9a | 620 | |
96e00b33 L |
621 | ./mpw.lo: $(srcdir)/mpw.c |
622 | $(LTCOMPILE) -c -o $@ $(srcdir)/mpw.c | |
37254c9a | 623 | |
96e00b33 L |
624 | ./msdos.lo: $(srcdir)/msdos.c |
625 | $(LTCOMPILE) -c -o $@ $(srcdir)/msdos.c | |
37254c9a | 626 | |
96e00b33 | 627 | ./objalloc.lo: $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 628 | $(INCDIR)/objalloc.h |
96e00b33 | 629 | $(LTCOMPILE) -c -o $@ $(srcdir)/objalloc.c |
37254c9a | 630 | |
96e00b33 L |
631 | ./obstack.lo: $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h |
632 | $(LTCOMPILE) -c -o $@ $(srcdir)/obstack.c | |
37254c9a | 633 | |
96e00b33 | 634 | ./partition.lo: $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 635 | $(INCDIR)/libiberty.h $(INCDIR)/partition.h |
96e00b33 | 636 | $(LTCOMPILE) -c -o $@ $(srcdir)/partition.c |
37254c9a | 637 | |
96e00b33 | 638 | ./pex-djgpp.lo: $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 639 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
96e00b33 | 640 | $(LTCOMPILE) -c -o $@ $(srcdir)/pex-djgpp.c |
37254c9a | 641 | |
96e00b33 | 642 | ./pex-mpw.lo: $(srcdir)/pex-mpw.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 643 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
96e00b33 | 644 | $(LTCOMPILE) -c -o $@ $(srcdir)/pex-mpw.c |
37254c9a | 645 | |
96e00b33 | 646 | ./pex-msdos.lo: $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a DD |
647 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \ |
648 | $(INCDIR)/safe-ctype.h | |
96e00b33 | 649 | $(LTCOMPILE) -c -o $@ $(srcdir)/pex-msdos.c |
37254c9a | 650 | |
96e00b33 | 651 | ./pex-os2.lo: $(srcdir)/pex-os2.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 652 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
96e00b33 | 653 | $(LTCOMPILE) -c -o $@ $(srcdir)/pex-os2.c |
37254c9a | 654 | |
96e00b33 | 655 | ./pex-unix.lo: $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 656 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
96e00b33 | 657 | $(LTCOMPILE) -c -o $@ $(srcdir)/pex-unix.c |
37254c9a | 658 | |
96e00b33 | 659 | ./pex-win32.lo: $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 660 | $(INCDIR)/libiberty.h $(srcdir)/pex-common.h |
96e00b33 | 661 | $(LTCOMPILE) -c -o $@ $(srcdir)/pex-win32.c |
37254c9a | 662 | |
96e00b33 | 663 | ./physmem.lo: $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 664 | $(INCDIR)/libiberty.h |
96e00b33 | 665 | $(LTCOMPILE) -c -o $@ $(srcdir)/physmem.c |
37254c9a | 666 | |
96e00b33 L |
667 | ./putenv.lo: $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h |
668 | $(LTCOMPILE) -c -o $@ $(srcdir)/putenv.c | |
37254c9a | 669 | |
96e00b33 L |
670 | ./random.lo: $(srcdir)/random.c $(INCDIR)/ansidecl.h |
671 | $(LTCOMPILE) -c -o $@ $(srcdir)/random.c | |
37254c9a | 672 | |
96e00b33 | 673 | ./regex.lo: $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/xregex.h \ |
e0c148a7 | 674 | $(INCDIR)/xregex2.h |
96e00b33 | 675 | $(LTCOMPILE) -c -o $@ $(srcdir)/regex.c |
37254c9a | 676 | |
96e00b33 L |
677 | ./rename.lo: $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h |
678 | $(LTCOMPILE) -c -o $@ $(srcdir)/rename.c | |
37254c9a | 679 | |
96e00b33 L |
680 | ./rindex.lo: $(srcdir)/rindex.c |
681 | $(LTCOMPILE) -c -o $@ $(srcdir)/rindex.c | |
37254c9a | 682 | |
96e00b33 | 683 | ./safe-ctype.lo: $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \ |
37254c9a | 684 | $(INCDIR)/safe-ctype.h |
96e00b33 | 685 | $(LTCOMPILE) -c -o $@ $(srcdir)/safe-ctype.c |
37254c9a | 686 | |
96e00b33 L |
687 | ./setenv.lo: $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h |
688 | $(LTCOMPILE) -c -o $@ $(srcdir)/setenv.c | |
37254c9a | 689 | |
96e00b33 L |
690 | ./sigsetmask.lo: $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h |
691 | $(LTCOMPILE) -c -o $@ $(srcdir)/sigsetmask.c | |
37254c9a | 692 | |
96e00b33 L |
693 | ./snprintf.lo: $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h |
694 | $(LTCOMPILE) -c -o $@ $(srcdir)/snprintf.c | |
37254c9a | 695 | |
96e00b33 | 696 | ./sort.lo: $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
cc096b71 | 697 | $(INCDIR)/sort.h |
96e00b33 | 698 | $(LTCOMPILE) -c -o $@ $(srcdir)/sort.c |
37254c9a | 699 | |
96e00b33 L |
700 | ./spaces.lo: $(srcdir)/spaces.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
701 | $(LTCOMPILE) -c -o $@ $(srcdir)/spaces.c | |
37254c9a | 702 | |
96e00b33 | 703 | ./splay-tree.lo: $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 704 | $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h |
96e00b33 | 705 | $(LTCOMPILE) -c -o $@ $(srcdir)/splay-tree.c |
37254c9a | 706 | |
96e00b33 L |
707 | ./stpcpy.lo: $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h |
708 | $(LTCOMPILE) -c -o $@ $(srcdir)/stpcpy.c | |
37254c9a | 709 | |
96e00b33 L |
710 | ./stpncpy.lo: $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h |
711 | $(LTCOMPILE) -c -o $@ $(srcdir)/stpncpy.c | |
37254c9a | 712 | |
96e00b33 L |
713 | ./strcasecmp.lo: $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h |
714 | $(LTCOMPILE) -c -o $@ $(srcdir)/strcasecmp.c | |
37254c9a | 715 | |
96e00b33 L |
716 | ./strchr.lo: $(srcdir)/strchr.c $(INCDIR)/ansidecl.h |
717 | $(LTCOMPILE) -c -o $@ $(srcdir)/strchr.c | |
37254c9a | 718 | |
96e00b33 L |
719 | ./strdup.lo: $(srcdir)/strdup.c $(INCDIR)/ansidecl.h |
720 | $(LTCOMPILE) -c -o $@ $(srcdir)/strdup.c | |
37254c9a | 721 | |
96e00b33 | 722 | ./strerror.lo: $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 723 | $(INCDIR)/libiberty.h |
96e00b33 | 724 | $(LTCOMPILE) -c -o $@ $(srcdir)/strerror.c |
37254c9a | 725 | |
96e00b33 L |
726 | ./strncasecmp.lo: $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h |
727 | $(LTCOMPILE) -c -o $@ $(srcdir)/strncasecmp.c | |
37254c9a | 728 | |
96e00b33 L |
729 | ./strncmp.lo: $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h |
730 | $(LTCOMPILE) -c -o $@ $(srcdir)/strncmp.c | |
37254c9a | 731 | |
96e00b33 L |
732 | ./strrchr.lo: $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h |
733 | $(LTCOMPILE) -c -o $@ $(srcdir)/strrchr.c | |
37254c9a | 734 | |
96e00b33 | 735 | ./strsignal.lo: $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 736 | $(INCDIR)/libiberty.h |
96e00b33 | 737 | $(LTCOMPILE) -c -o $@ $(srcdir)/strsignal.c |
37254c9a | 738 | |
96e00b33 L |
739 | ./strstr.lo: $(srcdir)/strstr.c |
740 | $(LTCOMPILE) -c -o $@ $(srcdir)/strstr.c | |
37254c9a | 741 | |
96e00b33 L |
742 | ./strtod.lo: $(srcdir)/strtod.c $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h |
743 | $(LTCOMPILE) -c -o $@ $(srcdir)/strtod.c | |
37254c9a | 744 | |
96e00b33 L |
745 | ./strtol.lo: $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h |
746 | $(LTCOMPILE) -c -o $@ $(srcdir)/strtol.c | |
37254c9a | 747 | |
96e00b33 | 748 | ./strtoul.lo: $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 749 | $(INCDIR)/safe-ctype.h |
96e00b33 | 750 | $(LTCOMPILE) -c -o $@ $(srcdir)/strtoul.c |
37254c9a | 751 | |
96e00b33 | 752 | ./ternary.lo: $(srcdir)/ternary.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 753 | $(INCDIR)/libiberty.h $(INCDIR)/ternary.h |
96e00b33 | 754 | $(LTCOMPILE) -c -o $@ $(srcdir)/ternary.c |
37254c9a | 755 | |
96e00b33 L |
756 | ./tmpnam.lo: $(srcdir)/tmpnam.c |
757 | $(LTCOMPILE) -c -o $@ $(srcdir)/tmpnam.c | |
37254c9a | 758 | |
96e00b33 | 759 | ./vasprintf.lo: $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 760 | $(INCDIR)/libiberty.h |
96e00b33 | 761 | $(LTCOMPILE) -c -o $@ $(srcdir)/vasprintf.c |
37254c9a | 762 | |
96e00b33 L |
763 | ./vfork.lo: $(srcdir)/vfork.c $(INCDIR)/ansidecl.h |
764 | $(LTCOMPILE) -c -o $@ $(srcdir)/vfork.c | |
37254c9a | 765 | |
96e00b33 L |
766 | ./vfprintf.lo: $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h |
767 | $(LTCOMPILE) -c -o $@ $(srcdir)/vfprintf.c | |
37254c9a | 768 | |
96e00b33 L |
769 | ./vprintf.lo: $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h |
770 | $(LTCOMPILE) -c -o $@ $(srcdir)/vprintf.c | |
37254c9a | 771 | |
96e00b33 | 772 | ./vsnprintf.lo: $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 773 | $(INCDIR)/libiberty.h |
96e00b33 | 774 | $(LTCOMPILE) -c -o $@ $(srcdir)/vsnprintf.c |
37254c9a | 775 | |
96e00b33 L |
776 | ./vsprintf.lo: $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h |
777 | $(LTCOMPILE) -c -o $@ $(srcdir)/vsprintf.c | |
37254c9a | 778 | |
96e00b33 L |
779 | ./waitpid.lo: $(srcdir)/waitpid.c config.h |
780 | $(LTCOMPILE) -c -o $@ $(srcdir)/waitpid.c | |
37254c9a | 781 | |
96e00b33 L |
782 | ./xatexit.lo: $(srcdir)/xatexit.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
783 | $(LTCOMPILE) -c -o $@ $(srcdir)/xatexit.c | |
37254c9a | 784 | |
96e00b33 L |
785 | ./xexit.lo: $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
786 | $(LTCOMPILE) -c -o $@ $(srcdir)/xexit.c | |
37254c9a | 787 | |
96e00b33 | 788 | ./xmalloc.lo: $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 789 | $(INCDIR)/libiberty.h |
96e00b33 | 790 | $(LTCOMPILE) -c -o $@ $(srcdir)/xmalloc.c |
37254c9a | 791 | |
96e00b33 | 792 | ./xmemdup.lo: $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 793 | $(INCDIR)/libiberty.h |
96e00b33 | 794 | $(LTCOMPILE) -c -o $@ $(srcdir)/xmemdup.c |
37254c9a | 795 | |
96e00b33 | 796 | ./xstrdup.lo: $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 797 | $(INCDIR)/libiberty.h |
96e00b33 | 798 | $(LTCOMPILE) -c -o $@ $(srcdir)/xstrdup.c |
37254c9a | 799 | |
96e00b33 | 800 | ./xstrerror.lo: $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \ |
37254c9a | 801 | $(INCDIR)/libiberty.h |
96e00b33 | 802 | $(LTCOMPILE) -c -o $@ $(srcdir)/xstrerror.c |
37254c9a | 803 |