Scan dynamic libraries for GC roots
[delight/core.git] / phobos2 / Makefile.in
blob8745a2bf0412059072235e652fe7e9e86e0b60df
1 # Makefile.in generated by automake 1.10.1 from Makefile.am.
2 # @configure_input@
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
15 @SET_MAKE@
17 # GDC -- D front-end for GCC
18 # Copyright (C) 2004 David Friedman
20 # This program is free software; you can redistribute it and/or modify
21 # it under the terms of the GNU General Public License as published by
22 # the Free Software Foundation; either version 2 of the License, or
23 # (at your option) any later version.
25 # This program is distributed in the hope that it will be useful,
26 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 # GNU General Public License for more details.
30 # You should have received a copy of the GNU General Public License
31 # along with this program; if not, write to the Free Software
32 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33 VPATH = @srcdir@
34 pkgdatadir = $(datadir)/@PACKAGE@
35 pkglibdir = $(libdir)/@PACKAGE@
36 pkgincludedir = $(includedir)/@PACKAGE@
37 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
38 install_sh_DATA = $(install_sh) -c -m 644
39 install_sh_PROGRAM = $(install_sh) -c
40 install_sh_SCRIPT = $(install_sh) -c
41 INSTALL_HEADER = $(INSTALL_DATA)
42 transform = $(program_transform_name)
43 NORMAL_INSTALL = :
44 PRE_INSTALL = :
45 POST_INSTALL = :
46 NORMAL_UNINSTALL = :
47 PRE_UNINSTALL = :
48 POST_UNINSTALL = :
49 build_triplet = @build@
50 host_triplet = @host@
51 target_triplet = @target@
52 subdir = .
53 DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
54 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
55 $(srcdir)/frag-ac.in $(srcdir)/frag-math.in \
56 $(srcdir)/phobos-ver-syms.in $(top_srcdir)/configure \
57 config.guess config.sub install-sh missing
58 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
59 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
60 $(top_srcdir)/configure.in
61 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
62 $(ACLOCAL_M4)
63 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
64 configure.lineno config.status.lineno
65 mkinstalldirs = $(install_sh) -d
66 CONFIG_HEADER = config.h
67 CONFIG_CLEAN_FILES = frag-ac frag-math phobos-ver-syms
68 depcomp =
69 am__depfiles_maybe =
70 SOURCES =
71 DIST_SOURCES =
72 MULTISRCTOP =
73 MULTIBUILDTOP =
74 MULTIDIRS =
75 MULTISUBDIR =
76 MULTIDO = true
77 MULTICLEAN = true
78 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79 distdir = $(PACKAGE)-$(VERSION)
80 top_distdir = $(distdir)
81 am__remove_distdir = \
82 { test ! -d $(distdir) \
83 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
84 && rm -fr $(distdir); }; }
85 DIST_ARCHIVES = $(distdir).tar.gz
86 GZIP_ENV = --best
87 distuninstallcheck_listfiles = find . -type f -print
88 distcleancheck_listfiles = find . -type f -print
89 ACLOCAL = @ACLOCAL@
90 AMTAR = @AMTAR@
91 AR = @AR@
92 AUTOCONF = @AUTOCONF@
93 AUTOHEADER = @AUTOHEADER@
94 AUTOMAKE = @AUTOMAKE@
95 AWK = @AWK@
96 BUILD_LIBIBERTY = @BUILD_LIBIBERTY@
97 CC = @CC@
98 CC_FOR_BUILD = @CC_FOR_BUILD@
99 CFLAGS = @CFLAGS@
100 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
101 CPP = @CPP@
102 CPPFLAGS = @CPPFLAGS@
103 CXX = @CXX@
104 CXXFLAGS = @CXXFLAGS@
105 CYGPATH_W = @CYGPATH_W@
106 DCFG_ARM_EABI_UNWINDER = @DCFG_ARM_EABI_UNWINDER@
107 DCFG_CBRIDGE_STDIO = @DCFG_CBRIDGE_STDIO@
108 DCFG_EXECVPE = @DCFG_EXECVPE@
109 DCFG_EXP2_LOG2 = @DCFG_EXP2_LOG2@
110 DCFG_FWIDE = @DCFG_FWIDE@
111 DCFG_GETPWNAM_R = @DCFG_GETPWNAM_R@
112 DCFG_HAVE_FGETLINE = @DCFG_HAVE_FGETLINE@
113 DCFG_HAVE_FGETLN = @DCFG_HAVE_FGETLN@
114 DCFG_HAVE_GETDELIM = @DCFG_HAVE_GETDELIM@
115 DCFG_HAVE_UNLOCKED_STDIO = @DCFG_HAVE_UNLOCKED_STDIO@
116 DCFG_HAVE_UNLOCKED_WIDE_STDIO = @DCFG_HAVE_UNLOCKED_WIDE_STDIO@
117 DCFG_MMAP = @DCFG_MMAP@
118 DCFG_NAN = @DCFG_NAN@
119 DCFG_NEARBYINT = @DCFG_NEARBYINT@
120 DCFG_PTHREAD_SUSPEND = @DCFG_PTHREAD_SUSPEND@
121 DCFG_ROUND = @DCFG_ROUND@
122 DCFG_SEMAPHORE_IMPL = @DCFG_SEMAPHORE_IMPL@
123 DCFG_SPAWNVP = @DCFG_SPAWNVP@
124 DCFG_STRTOLD = @DCFG_STRTOLD@
125 DCFG_TGAMMA = @DCFG_TGAMMA@
126 DCFG_TRUNC = @DCFG_TRUNC@
127 DCFG_UNIX = @DCFG_UNIX@
128 DCFG_USE_IEEE_FPSB = @DCFG_USE_IEEE_FPSB@
129 DEFS = @DEFS@
130 DFLAGS = @DFLAGS@
131 # D_EXTRA_OBJS=@D_EXTRA_OBJS@
133 # needed until instrinsics are implemented
134 D_EXTRA_OBJS = @D_EXTRA_OBJS@ std/intrinsic.o gcc/support.o
135 D_GC_FLAGS = @D_GC_FLAGS@
136 D_GC_MODULES = @D_GC_MODULES@
137 D_PREREQ_SRCS = @D_PREREQ_SRCS@
138 ECHO_C = @ECHO_C@
139 ECHO_N = @ECHO_N@
140 ECHO_T = @ECHO_T@
141 EGREP = @EGREP@
142 EXEEXT = @EXEEXT@
143 GDC = @GDC@
144 GREP = @GREP@
145 INSTALL = @INSTALL@
146 INSTALL_DATA = @INSTALL_DATA@
147 INSTALL_PROGRAM = @INSTALL_PROGRAM@
148 INSTALL_SCRIPT = @INSTALL_SCRIPT@
149 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
150 LDFLAGS = @LDFLAGS@
151 LIBIBERTY_H_PATH = @LIBIBERTY_H_PATH@
152 LIBOBJS = @LIBOBJS@
153 LIBS = @LIBS@
154 LTLIBOBJS = @LTLIBOBJS@
155 MAKEINFO = @MAKEINFO@
156 MKDIR_P = @MKDIR_P@
157 OBJEXT = @OBJEXT@
158 PACKAGE = @PACKAGE@
159 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
160 PACKAGE_NAME = @PACKAGE_NAME@
161 PACKAGE_STRING = @PACKAGE_STRING@
162 PACKAGE_TARNAME = @PACKAGE_TARNAME@
163 PACKAGE_VERSION = @PACKAGE_VERSION@
164 PATH_SEPARATOR = @PATH_SEPARATOR@
165 RANLIB = @RANLIB@
166 SET_MAKE = @SET_MAKE@
167 SHELL = @SHELL@
168 STRIP = @STRIP@
169 VERSION = @VERSION@
170 abs_builddir = @abs_builddir@
171 abs_srcdir = @abs_srcdir@
172 abs_top_builddir = @abs_top_builddir@
173 abs_top_srcdir = @abs_top_srcdir@
174 ac_ct_CC = @ac_ct_CC@
175 ac_ct_CXX = @ac_ct_CXX@
176 am__leading_dot = @am__leading_dot@
177 am__tar = @am__tar@
178 am__untar = @am__untar@
179 bindir = @bindir@
180 build = @build@
181 build_alias = @build_alias@
182 build_cpu = @build_cpu@
183 build_os = @build_os@
184 build_vendor = @build_vendor@
185 builddir = @builddir@
186 datadir = @datadir@
187 datarootdir = @datarootdir@
188 docdir = @docdir@
189 dvidir = @dvidir@
190 exec_prefix = @exec_prefix@
191 gdc_include_dir = @gdc_include_dir@
192 host = @host@
193 host_alias = @host@
194 host_cpu = @host_cpu@
195 host_os = @host_os@
196 host_vendor = @host_vendor@
197 htmldir = @htmldir@
198 includedir = @includedir@
199 infodir = @infodir@
200 install_sh = @install_sh@
201 libdir = @libdir@
202 libexecdir = @libexecdir@
203 localedir = @localedir@
204 localstatedir = @localstatedir@
205 mandir = @mandir@
206 mkdir_p = @mkdir_p@
207 multi_basedir = @multi_basedir@
208 oldincludedir = @oldincludedir@
209 pdfdir = @pdfdir@
210 phobos_toolexecdir = @phobos_toolexecdir@
211 phobos_toolexeclibdir = @phobos_toolexeclibdir@
212 prefix = @prefix@
213 program_transform_name = @program_transform_name@
214 psdir = @psdir@
215 sbindir = @sbindir@
216 sharedstatedir = @sharedstatedir@
217 srcdir = @srcdir@
218 sysconfdir = @sysconfdir@
219 target = @target@
220 target_alias = @target_alias@
221 target_cpu = @target_cpu@
222 target_os = @target_os@
223 target_vendor = @target_vendor@
224 top_builddir = @top_builddir@
225 top_srcdir = @top_srcdir@
226 AUTOMAKE_OPTIONS = 1.9.4 foreign no-dependencies
227 ACLOCAL_AMFLAGS = -I . -I ..
228 OUR_CFLAGS = -fPIC @DEFS@ -I . -I $(srcdir)/gcc
229 D_EXTRA_DFLAGS = -fPIC -nostdinc -pipe
230 ALL_DFLAGS = $(DFLAGS) $(D_GC_FLAGS) $(D_EXTRA_DFLAGS) $(MULTIFLAGS)
231 toolexecdir = $(phobos_toolexecdir)
232 toolexeclibdir = $(phobos_toolexeclibdir)
233 config_d_src = $(host)/gcc/config/config.d
234 config_libc_d_src = $(host)/gcc/config/libc.d
235 config_errno_d_src = $(host)/gcc/config/errno.d
236 config_fpcls_d_src = $(host)/gcc/config/fpcls.d
237 config_mathfuncs_d_src = $(host)/gcc/config/mathfuncs.d
238 config_unix_d_src = $(host)/gcc/config/unix.d
239 X3 = CC_FOR_BUILD="$(CC_FOR_BUILD) -I $(srcdir)/config" BUILD_LIBIBERTY=$(BUILD_LIBIBERTY) $(srcdir)/config/x3
240 X3_GCC_COMMAND = $(CC) $(OUR_CFLAGS)
241 X3_DEPS = config/x3.o config/x3main.o
242 SUFFIXES = .d
243 TI = ti_AC.o ti_Ag.o ti_Aint.o ti_Along.o ti_Ashort.o \
244 ti_C.o \
245 ti_byte.o ti_cdouble.o ti_cfloat.o ti_char.o ti_creal.o \
246 ti_dchar.o ti_delegate.o ti_double.o ti_float.o ti_idouble.o ti_ifloat.o \
247 ti_int.o ti_ireal.o ti_long.o ti_ptr.o ti_real.o ti_short.o ti_ubyte.o \
248 ti_uint.o ti_ulong.o ti_ushort.o ti_wchar.o \
249 ti_Afloat.o ti_Adouble.o ti_Areal.o \
250 ti_Acfloat.o ti_Acdouble.o ti_Acreal.o \
251 ti_void.o
253 INTERNAL_OBJS = internal/critical.o internal/object.o internal/monitor.o \
254 internal/arraycat.o internal/invariant.o \
255 internal/switch.o internal/arrayassign.o \
256 internal/aaA.o internal/adi.o internal/aApply.o internal/aApplyR.o \
257 internal/cast.o internal/memset.o internal/qsortg.o internal/obj.o \
258 internal/arraycast.o internal/dgccmain2.o internal/rundmain.o \
259 errno.o
261 MAIN_OBJS = std/asserterror.o std/hiddenfunc.o gcstats.o \
262 std/outofmemory.o std/compiler.o std/system.o std/moduleinit.o std/md5.o std/base64.o \
263 std/string.o std/math.o \
264 std/outbuffer.o std/ctype.o std/regexp.o std/random.o \
265 std/stream.o std/cstream.o std/switcherr.o std/array.o std/gc.o \
266 std/thread.o std/utf.o std/uri.o \
267 crc32.o std/conv.o \
268 std/syserror.o std/metastrings.o \
269 std/c/stdarg.o std/c/stdio.o std/stdio.o std/format.o \
270 std/openrj.o std/uni.o std/demangle.o std/bitarray.o \
271 $(subst ti_,std/typeinfo/ti_,$(TI)) \
272 std/date.o std/dateparse.o etc/c/zlib.o std/zlib.o std/zip.o \
273 std/stdarg.o \
274 std/signals.o std/cpuid.o std/traits.o std/typetuple.o std/bind.o \
275 gcc/config/mathfuncs.o \
276 std/algorithm.o std/bitmanip.o std/contracts.o std/functional.o \
277 std/getopt.o std/numeric.o std/slist.o std/typecons.o std/variant.o \
278 std/cover.o std/complex.o std/encoding.o std/iterator.o std/xml.o \
279 std/bigint.o
282 # This should not be linked into a shared library.
283 # TAL: Then how does the program start? I guess the compiler should add this
284 # itself when it detects it is compiling the main function.
285 CMAIN_OBJS = internal/cmain.o
286 # Unused (get duplicate symbol errors if we link this)
287 BUILTINS = gcc/builtins.o
288 ZLIB_OBJS = etc/c/zlib/adler32.o etc/c/zlib/compress.o \
289 etc/c/zlib/crc32.o etc/c/zlib/gzio.o \
290 etc/c/zlib/uncompr.o etc/c/zlib/deflate.o \
291 etc/c/zlib/trees.o etc/c/zlib/zutil.o \
292 etc/c/zlib/inflate.o etc/c/zlib/infback.o \
293 etc/c/zlib/inftrees.o etc/c/zlib/inffast.o
295 GC_OBJS = internal/gc/gc.o internal/gc/gcx.o internal/gc/gcbits.o \
296 @D_GC_MODULES@ $(am__empty)
297 GCC_OBJS = gcc/unwind_pe.o gcc/deh.o gcc/threadsem.o \
298 gcc/cbridge_time.o gcc/cbridge_strerror.o
301 # modules which require some kind of operating system
302 OS_OBJS = std/file.o std/mmfile.o std/path.o std/perf.o std/process.o std/socket.o std/socketstream.o
304 # std.c.linux.linux, std.loader, gcc.cbridge*
305 WINDOWS_OBJS = std/c/windows/windows.o std/c/windows/com.o std/c/windows/winsock.o \
306 std/windows/iunknown.o std/windows/registry.o std/windows/syserror.o \
307 std/windows/charset.o
309 ALL_PHOBOS_OBJS = $(D_EXTRA_OBJS) $(GCC_OBJS) $(MAIN_OBJS) $(ZLIB_OBJS) $(GC_OBJS) $(WEAK_OBJS) $(INTERNAL_OBJS)
311 # Work around what appears to be a GNU make bug handling MAKEFLAGS
312 # values defined in terms of make variables, as is the case for CC and
313 # friends when we are called from the top level Makefile.
314 AM_MAKEFLAGS = \
315 "AR_FLAGS=$(AR_FLAGS)" \
316 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
317 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
318 "CFLAGS=$(CFLAGS)" \
319 "CXXFLAGS=$(CXXFLAGS)" \
320 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
321 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
322 "INSTALL=$(INSTALL)" \
323 "INSTALL_DATA=$(INSTALL_DATA)" \
324 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
325 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
326 "LDFLAGS=$(LDFLAGS)" \
327 "LIBCFLAGS=$(LIBCFLAGS)" \
328 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
329 "MAKE=$(MAKE)" \
330 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
331 "PICFLAG=$(PICFLAG)" \
332 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
333 "SHELL=$(SHELL)" \
334 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
335 "exec_prefix=$(exec_prefix)" \
336 "infodir=$(infodir)" \
337 "libdir=$(libdir)" \
338 "includedir=$(includedir)" \
339 "prefix=$(prefix)" \
340 "tooldir=$(tooldir)" \
341 "gdc_include_dir=$(gdc_include_dir)" \
342 "AR=$(AR)" \
343 "AS=$(AS)" \
344 "LD=$(LD)" \
345 "RANLIB=$(RANLIB)" \
346 "NM=$(NM)" \
347 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
348 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
349 "DESTDIR=$(DESTDIR)" \
350 "WERROR=$(WERROR)"
353 # Subdir rules rely on $(FLAGS_TO_PASS)
354 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
355 all: config.h
356 $(MAKE) $(AM_MAKEFLAGS) all-am
358 .SUFFIXES:
359 .SUFFIXES: .d .c .o
360 am--refresh:
362 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
363 @for dep in $?; do \
364 case '$(am__configure_deps)' in \
365 *$$dep*) \
366 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps'; \
367 cd $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps \
368 && exit 0; \
369 exit 1;; \
370 esac; \
371 done; \
372 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps Makefile'; \
373 cd $(top_srcdir) && \
374 $(AUTOMAKE) --foreign --ignore-deps Makefile
375 .PRECIOUS: Makefile
376 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
377 @case '$?' in \
378 *config.status*) \
379 echo ' $(SHELL) ./config.status'; \
380 $(SHELL) ./config.status;; \
381 *) \
382 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
383 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
384 esac;
386 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
387 $(SHELL) ./config.status --recheck
389 $(top_srcdir)/configure: $(am__configure_deps)
390 cd $(srcdir) && $(AUTOCONF)
391 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
392 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
394 config.h: stamp-h1
395 @if test ! -f $@; then \
396 rm -f stamp-h1; \
397 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
398 else :; fi
400 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
401 @rm -f stamp-h1
402 cd $(top_builddir) && $(SHELL) ./config.status config.h
403 $(srcdir)/config.h.in: $(am__configure_deps)
404 cd $(top_srcdir) && $(AUTOHEADER)
405 rm -f stamp-h1
406 touch $@
408 distclean-hdr:
409 -rm -f config.h stamp-h1
410 frag-ac: $(top_builddir)/config.status $(srcdir)/frag-ac.in
411 cd $(top_builddir) && $(SHELL) ./config.status $@
412 frag-math: $(top_builddir)/config.status $(srcdir)/frag-math.in
413 cd $(top_builddir) && $(SHELL) ./config.status $@
414 phobos-ver-syms: $(top_builddir)/config.status $(srcdir)/phobos-ver-syms.in
415 cd $(top_builddir) && $(SHELL) ./config.status $@
417 # GNU Make needs to see an explicit $(MAKE) variable in the command it
418 # runs to enable its job server during parallel builds. Hence the
419 # comments below.
420 all-multi:
421 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
422 install-multi:
423 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
425 mostlyclean-multi:
426 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
427 clean-multi:
428 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
429 distclean-multi:
430 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
431 maintainer-clean-multi:
432 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean # $(MAKE)
433 tags: TAGS
434 TAGS:
436 ctags: CTAGS
437 CTAGS:
440 distdir: $(DISTFILES)
441 $(am__remove_distdir)
442 test -d $(distdir) || mkdir $(distdir)
443 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
444 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
445 list='$(DISTFILES)'; \
446 dist_files=`for file in $$list; do echo $$file; done | \
447 sed -e "s|^$$srcdirstrip/||;t" \
448 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
449 case $$dist_files in \
450 */*) $(MKDIR_P) `echo "$$dist_files" | \
451 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
452 sort -u` ;; \
453 esac; \
454 for file in $$dist_files; do \
455 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
456 if test -d $$d/$$file; then \
457 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
458 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
459 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
460 fi; \
461 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
462 else \
463 test -f $(distdir)/$$file \
464 || cp -p $$d/$$file $(distdir)/$$file \
465 || exit 1; \
466 fi; \
467 done
468 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
469 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
470 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
471 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
472 || chmod -R a+r $(distdir)
473 dist-gzip: distdir
474 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
475 $(am__remove_distdir)
477 dist-bzip2: distdir
478 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
479 $(am__remove_distdir)
481 dist-lzma: distdir
482 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
483 $(am__remove_distdir)
485 dist-tarZ: distdir
486 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
487 $(am__remove_distdir)
489 dist-shar: distdir
490 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
491 $(am__remove_distdir)
493 dist-zip: distdir
494 -rm -f $(distdir).zip
495 zip -rq $(distdir).zip $(distdir)
496 $(am__remove_distdir)
498 dist dist-all: distdir
499 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
500 $(am__remove_distdir)
502 # This target untars the dist file and tries a VPATH configuration. Then
503 # it guarantees that the distribution is self-contained by making another
504 # tarfile.
505 distcheck: dist
506 case '$(DIST_ARCHIVES)' in \
507 *.tar.gz*) \
508 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
509 *.tar.bz2*) \
510 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
511 *.tar.lzma*) \
512 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
513 *.tar.Z*) \
514 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
515 *.shar.gz*) \
516 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
517 *.zip*) \
518 unzip $(distdir).zip ;;\
519 esac
520 chmod -R a-w $(distdir); chmod a+w $(distdir)
521 mkdir $(distdir)/_build
522 mkdir $(distdir)/_inst
523 chmod a-w $(distdir)
524 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
525 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
526 && cd $(distdir)/_build \
527 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
528 $(DISTCHECK_CONFIGURE_FLAGS) \
529 && $(MAKE) $(AM_MAKEFLAGS) \
530 && $(MAKE) $(AM_MAKEFLAGS) dvi \
531 && $(MAKE) $(AM_MAKEFLAGS) check \
532 && $(MAKE) $(AM_MAKEFLAGS) install \
533 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
534 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
535 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
536 distuninstallcheck \
537 && chmod -R a-w "$$dc_install_base" \
538 && ({ \
539 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
540 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
541 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
542 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
543 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
544 } || { rm -rf "$$dc_destdir"; exit 1; }) \
545 && rm -rf "$$dc_destdir" \
546 && $(MAKE) $(AM_MAKEFLAGS) dist \
547 && rm -rf $(DIST_ARCHIVES) \
548 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
549 $(am__remove_distdir)
550 @(echo "$(distdir) archives ready for distribution: "; \
551 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
552 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
553 distuninstallcheck:
554 @cd $(distuninstallcheck_dir) \
555 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
556 || { echo "ERROR: files left after uninstall:" ; \
557 if test -n "$(DESTDIR)"; then \
558 echo " (check DESTDIR support)"; \
559 fi ; \
560 $(distuninstallcheck_listfiles) ; \
561 exit 1; } >&2
562 distcleancheck: distclean
563 @if test '$(srcdir)' = . ; then \
564 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
565 exit 1 ; \
567 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
568 || { echo "ERROR: files left in build directory after distclean:" ; \
569 $(distcleancheck_listfiles) ; \
570 exit 1; } >&2
571 check-am: all-am
572 $(MAKE) $(AM_MAKEFLAGS) check-local
573 check: check-am
574 all-am: Makefile all-multi config.h all-local
575 installdirs:
576 install: install-am
577 install-exec: install-exec-am
578 install-data: install-data-am
579 uninstall: uninstall-am
581 install-am: all-am
582 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
584 installcheck: installcheck-am
585 install-strip:
586 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
587 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
588 `test -z '$(STRIP)' || \
589 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
590 mostlyclean-generic:
592 clean-generic:
594 distclean-generic:
595 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
597 maintainer-clean-generic:
598 @echo "This command is intended for maintainers to use"
599 @echo "it deletes files that may require special tools to rebuild."
600 clean: clean-am clean-multi
602 clean-am: clean-generic clean-local mostlyclean-am
604 distclean: distclean-am distclean-multi
605 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
606 -rm -f Makefile
607 distclean-am: clean-am distclean-generic distclean-hdr
609 dvi: dvi-am
611 dvi-am:
613 html: html-am
615 info: info-am
617 info-am:
619 install-data-am: install-data-local
621 install-dvi: install-dvi-am
623 install-exec-am: install-exec-local install-multi
625 install-html: install-html-am
627 install-info: install-info-am
629 install-man:
631 install-pdf: install-pdf-am
633 install-ps: install-ps-am
635 installcheck-am:
637 maintainer-clean: maintainer-clean-am maintainer-clean-multi
638 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
639 -rm -rf $(top_srcdir)/autom4te.cache
640 -rm -f Makefile
641 maintainer-clean-am: distclean-am maintainer-clean-generic
643 mostlyclean: mostlyclean-am mostlyclean-multi
645 mostlyclean-am: mostlyclean-generic
647 pdf: pdf-am
649 pdf-am:
651 ps: ps-am
653 ps-am:
655 uninstall-am:
657 .MAKE: all-multi clean-multi distclean-multi install-am install-multi \
658 install-strip maintainer-clean-multi mostlyclean-multi
660 .PHONY: all all-am all-local all-multi am--refresh check check-am \
661 check-local clean clean-generic clean-local clean-multi dist \
662 dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \
663 dist-zip distcheck distclean distclean-generic distclean-hdr \
664 distclean-multi distcleancheck distdir distuninstallcheck dvi \
665 dvi-am html html-am info info-am install install-am \
666 install-data install-data-am install-data-local install-dvi \
667 install-dvi-am install-exec install-exec-am install-exec-local \
668 install-html install-html-am install-info install-info-am \
669 install-man install-multi install-pdf install-pdf-am \
670 install-ps install-ps-am install-strip installcheck \
671 installcheck-am installdirs maintainer-clean \
672 maintainer-clean-generic maintainer-clean-multi mostlyclean \
673 mostlyclean-generic mostlyclean-multi pdf pdf-am ps ps-am \
674 uninstall uninstall-am
677 config/x3.o: config/x3.c config/x3.h
678 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -g -Wall -I $(LIBIBERTY_H_PATH) -c -o $@ $<
680 config/x3main.o: config/x3main.c config/x3.h
681 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -g -Wall -c -o $@ $<
683 all-local: libgphobos2.so
685 %.o : %.d $(D_PREREQ_SRCS)
686 $(GDC) -o $@ $(ALL_DFLAGS) \
687 -I $(srcdir) -I $(srcdir)/internal/gc -I ./$(host) -c $<
689 # %.o : %.c
690 # Use .c.o to override Automake
691 .c.o:
692 $(CC) -o $@ $(OUR_CFLAGS) $(CFLAGS) -c $<
694 # boxer is currently broken
695 std/boxer.t.o: std/boxer.o
696 cp $< $@
698 %.t.o : %.d $(D_PREREQ_SRCS)
699 $(GDC) -o $@ $(ALL_DFLAGS) -fno-release -funittest -I $(srcdir) -I $(srcdir)/internal/gc -I ./$(host) -c $<
701 internal/gc/gcx.t.o: $(D_PREREQ_SRCS) $(srcdir)/internal/gc/gcx.d
702 $(GDC) -o $@ $(ALL_DFLAGS) -funittest -I $(srcdir) -I $(srcdir)/internal/gc -I ./$(host) -c $<
704 %.t.o : %.o
705 cp $< $@
707 unittest: unittest.o libgphobos2_t.a libgphobos2.a
708 $(GDC) -o $@ $(CFLAGS) unittest.o -L./ -lgphobos2_t $(LIBS)
710 internal/gc/testgc.o: $(config_d_src) $(srcdir)/internal/gc/testgc.d
711 $(GDC) -o $@ $(ALL_DFLAGS) -fno-release -I $(srcdir) -I $(srcdir)/internal/gc -I ./$(host) -c $(srcdir)/internal/gc/testgc.d
713 testgc: internal/gc/testgc.o libgphobos2_t.a libgphobos2.a
714 $(GDC) -o $@ $(ALL_DFLAGS) internal/gc/testgc.o -L./ -lgphobos2_t $(LIBS)
716 gen_config1: config/gen_config1.o
717 $(CC) $(CFLAGS) -o $@ $^
719 $(config_d_src): frag-ac stamp-tgtdir
720 cp $< $@
722 $(config_libc_d_src): config/libc.x3 $(X3_DEPS) stamp-tgtdir
723 $(X3) $< -o $@ $(X3_GCC_COMMAND)
725 $(config_errno_d_src): config/errno.x3 $(X3_DEPS) stamp-tgtdir
726 $(X3) $< -o $@ $(X3_GCC_COMMAND)
728 $(config_fpcls_d_src): config/fpcls.x3 $(X3_DEPS) stamp-tgtdir
729 $(X3) $< -o $@ $(X3_GCC_COMMAND)
731 $(config_mathfuncs_d_src): frag-math stamp-tgtdir
732 cp $< $@
734 $(config_unix_d_src): config/unix.x3 $(X3_DEPS) stamp-tgtdir
735 $(X3) $< -o $@ $(X3_GCC_COMMAND)
737 # because these are in the $(host) subdir, pattern match rules will not work
738 gcc/config/unix.o: $(config_unix_d_src) $(config_d_src) $(config_libc_d_src)
739 $(GDC) -o $@ $(ALL_DFLAGS) -I $(srcdir) -I $(srcdir)/internal/gc -I ./$(host) -c $<
740 gcc/config/unix.t.o: gcc/config/unix.o
741 cp $< $@
743 gcc/config/mathfuncs.o: $(config_mathfuncs_d_src) $(config_d_src) $(config_libc_d_src)
744 $(GDC) -o $@ $(ALL_DFLAGS) -I $(srcdir) -I $(srcdir)/internal/gc -I ./$(host) -c $<
745 gcc/config/mathfuncs.t.o: gcc/config/mathfuncs.o
746 cp $< $@
748 gcc/cbridge_math.o: gcc/cbridge_math.c
749 $(CC) -o $@ $(OUR_CFLAGS) $(CFLAGS) -fno-strict-aliasing -c $<
751 std/stream.o: std/stream.d $(D_PREREQ_SRCS)
752 $(GDC) -o $@ $(ALL_DFLAGS) -fdeprecated -I $(srcdir) -I $(srcdir)/internal/gc -I ./$(host) -c $<
753 std/stream.t.o: std/stream.d $(D_PREREQ_SRCS)
754 $(GDC) -o $@ $(ALL_DFLAGS) -fdeprecated -I $(srcdir) -I $(srcdir)/internal/gc -I ./$(host) -c $<
756 libgphobos2.a : $(ALL_PHOBOS_OBJS) $(CMAIN_OBJS)
757 $(AR) -r $@ $(ALL_PHOBOS_OBJS) $(CMAIN_OBJS)
758 $(RANLIB) $@
760 libgphobos2_t.a : $(ALL_PHOBOS_OBJS:.o=.t.o) $(CMAIN_OBJS)
761 $(AR) -r $@ $(ALL_PHOBOS_OBJS:.o=.t.o) $(CMAIN_OBJS)
762 $(RANLIB) $@
764 libgphobos2.so: $(D_EXTRA_OBJS) $(GCC_OBJS) $(INTERNAL_OBJS) $(GC_OBJS) $(WEAK_OBJS) $(CMAIN_OBJS) $(ZLIB_OBJS)
765 $(CC) -shared -Wl,-soname=libgphobos2.so -o $@ $^
767 # This has to be an empty file because it is included in the prerequisites of rules
768 # that use "cat $^" to generate their targets.
769 stamp-tgtdir:
770 mkdir -p gcc/config
771 mkdir -p $(host)/gcc/config
772 touch $@
774 check-local: unittest testgc
775 ./unittest
776 ./testgc
778 install-exec-local: $(D_PREREQ_SRCS) libgphobos2.so
779 $(mkinstalldirs) $(DESTDIR)$(toolexeclibdir)
780 $(INSTALL) libgphobos2.so $(DESTDIR)$(toolexeclibdir)
782 install-data-local: $(D_PREREQ_SRCS) libgphobos2.a
783 for i in etc etc/c \
784 etc/c/zlib \
785 gcc std std/c \
786 std/c/darwin std/c/linux std/c/mach std/c/skyos std/c/unix std/c/windows \
787 std/typeinfo std/windows; do \
788 $(mkinstalldirs) $(DESTDIR)$(gdc_include_dir)/$$i; \
789 for f in $(srcdir)/$$i/*.[hd]; do $(INSTALL_HEADER) $$f $(DESTDIR)$(gdc_include_dir)/$$i; done; \
790 done
791 for i in crc32.d gcstats.d object.d; do \
792 $(INSTALL_HEADER) $(srcdir)/$$i $(DESTDIR)$(gdc_include_dir); done
793 $(mkinstalldirs) $(DESTDIR)$(gdc_include_dir)/$(host)/$(MULTISUBDIR)/gcc/config
794 for i in $(host)/gcc/config/*.d ; \
795 do $(INSTALL_HEADER) $$i $(DESTDIR)$(gdc_include_dir)/$(host)/$(MULTISUBDIR)/gcc/config; done
796 $(INSTALL) phobos-ver-syms $(DESTDIR)$(gdc_include_dir)/$(host)/$(MULTISUBDIR)
798 clean-local:
799 rm -f $(ALL_PHOBOS_OBJS) $(CMAIN_OBJS)
800 rm -f $(ALL_PHOBOS_OBJS:.o=.t.o)
801 rm -f unittest.o internal/gc/testgc.o
802 rm -f unittest$(EXEEXT) testgc$(EXEEXT)
803 rm -f $(config_d_src) $(config_errno_d_src) $(config_libc_d_src)
804 rm -f $(config_unix_d_src)
805 rm -f libgphobos2.a
806 rm -f libgphobos2_t.a
807 # Tell versions [3.59,3.63) of GNU make to not export all variables.
808 # Otherwise a system limit (for SysV at least) may be exceeded.
809 .NOEXPORT: