Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 1857

Show
Ignore:
Timestamp:
03/06/07 23:48:02 (2 years ago)
Author:
Gregor
Message:

*: Finished adding support for GDC 0.23.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/build-gdc.sh

    r1741 r1857  
    11#!/bin/bash 
    22cd "`dirname $0`" 
     3 
     4GDC_VER="`gdc --version | grep '^gdc' | sed 's/^.*gdc \([0-9]*\.[0-9]*\).*$/\1/'`" 
     5GDC_MAJOR="`echo $GDC_VER | sed 's/\..*//'`" 
     6GDC_MINOR="`echo $GDC_VER | sed 's/.*\.//'`" 
     7 
     8if [ "$GDC_MAJOR" = "0" -a \ 
     9     "$GDC_MINOR" -lt "23" ] 
     10then 
     11    echo 'This version of Tango requires GDC 0.23 or newer.' 
     12    exit 1 
     13fi 
    314 
    415pushd ./compiler/gdc 
  • trunk/lib/compiler/gdc/Makefile.in

    r1618 r1857  
     1# Makefile.in generated by automake 1.9.6 from Makefile.am. 
     2# @configure_input@ 
     3 
     4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 
     5# 2003, 2004, 2005  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. 
     9 
     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. 
     14 
     15@SET_MAKE@ 
     16 
    117# GDC -- D front-end for GCC 
    218# Copyright (C) 2004 David Friedman 
     
    1632# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
    1733 
    18 target_alias = @target_alias@ 
    19 # FIXME: this should be @host_alias@, but it came out empty thus ruining some paths where 
    20 # it is used 
    21 host_alias = $(srcdir) 
    22  
     34# AUTOMAKE_OPTIONS = 1.9.6 foreign no-dependencies 
     35 
     36top_srcdir = @top_srcdir@ 
     37VPATH = @srcdir@ 
     38pkgdatadir = $(datadir)/@PACKAGE@ 
     39pkglibdir = $(libdir)/@PACKAGE@ 
     40pkgincludedir = $(includedir)/@PACKAGE@ 
     41top_builddir = . 
     42am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 
     43INSTALL = @INSTALL@ 
     44install_sh_DATA = $(install_sh) -c -m 644 
     45install_sh_PROGRAM = $(install_sh) -c 
     46install_sh_SCRIPT = $(install_sh) -c 
     47INSTALL_HEADER = $(INSTALL_DATA) 
     48transform = $(program_transform_name) 
     49NORMAL_INSTALL = : 
     50PRE_INSTALL = : 
     51POST_INSTALL = : 
     52NORMAL_UNINSTALL = : 
     53PRE_UNINSTALL = : 
     54POST_UNINSTALL = : 
     55build_triplet = @build@ 
     56host_triplet = @host@ 
     57target_triplet = @target@ 
     58noinst_PROGRAMS = minimal$(EXEEXT) 
     59DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \ 
     60    $(srcdir)/Makefile.in $(srcdir)/config.h.in \ 
     61    $(srcdir)/frag-ac.in $(srcdir)/phobos-ver-syms.in \ 
     62    $(top_srcdir)/configure config.guess config.sub install-sh \ 
     63    missing 
     64subdir = . 
     65ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
     66am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     67    $(top_srcdir)/configure.in 
     68am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
     69    $(ACLOCAL_M4) 
     70am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ 
     71 configure.lineno configure.status.lineno 
     72mkinstalldirs = $(install_sh) -d 
     73CONFIG_HEADER = config.h 
     74CONFIG_CLEAN_FILES = frag-ac phobos-ver-syms 
     75PROGRAMS = $(noinst_PROGRAMS) 
     76am_minimal_OBJECTS = minimal.$(OBJEXT) 
     77minimal_OBJECTS = $(am_minimal_OBJECTS) 
     78minimal_LDADD = $(LDADD) 
     79DEFAULT_INCLUDES = -I. -I$(srcdir) -I. 
     80depcomp = 
     81am__depfiles_maybe = 
     82COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 
     83    $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 
     84CCLD = $(CC) 
     85LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 
     86SOURCES = $(minimal_SOURCES) 
     87DIST_SOURCES = $(minimal_SOURCES) 
     88ETAGS = etags 
     89CTAGS = ctags 
     90DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 
     91distdir = $(PACKAGE)-$(VERSION) 
     92top_distdir = $(distdir) 
     93am__remove_distdir = \ 
     94  { test ! -d $(distdir) \ 
     95    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ 
     96         && rm -fr $(distdir); }; } 
     97DIST_ARCHIVES = $(distdir).tar.gz 
     98GZIP_ENV = --best 
     99distuninstallcheck_listfiles = find . -type f -print 
     100distcleancheck_listfiles = find . -type f -print 
     101srcdir = @srcdir@ 
     102ACLOCAL = @ACLOCAL@ 
     103AMTAR = @AMTAR@ 
    23104AR = @AR@ 
     105AUTOCONF = @AUTOCONF@ 
     106AUTOHEADER = @AUTOHEADER@ 
     107AUTOMAKE = @AUTOMAKE@ 
     108AWK = @AWK@ 
     109CC = @CC@ 
     110CFLAGS = @CFLAGS@ 
     111CPP = @CPP@ 
     112CPPFLAGS = @CPPFLAGS@ 
     113CXX = @CXX@ 
     114CXXFLAGS = @CXXFLAGS@ 
     115CYGPATH_W = @CYGPATH_W@ 
     116DCFG_CBRIDGE_STDIO = @DCFG_CBRIDGE_STDIO@ 
     117DCFG_EXECVPE = @DCFG_EXECVPE@ 
     118DCFG_EXP2_LOG2 = @DCFG_EXP2_LOG2@ 
     119DCFG_FWIDE = @DCFG_FWIDE@ 
     120DCFG_GETPWNAM_R = @DCFG_GETPWNAM_R@ 
     121DCFG_MMAP = @DCFG_MMAP@ 
     122DCFG_NAN = @DCFG_NAN@ 
     123DCFG_NEARBYINT = @DCFG_NEARBYINT@ 
     124DCFG_PTHREAD_SUSPEND = @DCFG_PTHREAD_SUSPEND@ 
     125DCFG_ROUND = @DCFG_ROUND@ 
     126DCFG_SA_LEN = @DCFG_SA_LEN@ 
     127DCFG_SEMAPHORE_IMPL = @DCFG_SEMAPHORE_IMPL@ 
     128DCFG_SPAWNVP = @DCFG_SPAWNVP@ 
     129DCFG_STRTOLD = @DCFG_STRTOLD@ 
     130DCFG_TGAMMA = @DCFG_TGAMMA@ 
     131DCFG_TRUNC = @DCFG_TRUNC@ 
     132DCFG_UNIX = @DCFG_UNIX@ 
     133DEFS = @DEFS@ 
     134DFLAGS = @DFLAGS@ 
     135# D_EXTRA_OBJS=@D_EXTRA_OBJS@ 
     136 
     137# currently just add compatibility for a bug 
     138D_EXTRA_OBJS = @D_EXTRA_OBJS@ gcc/support.o 
     139D_FRAGMENT_SRCDIR = @D_FRAGMENT_SRCDIR@ 
     140D_GENERATE_FRAGMENTS_FALSE = @D_GENERATE_FRAGMENTS_FALSE@ 
     141D_GENERATE_FRAGMENTS_TRUE = @D_GENERATE_FRAGMENTS_TRUE@ 
     142D_MEM_FLAGS = @D_MEM_FLAGS@ 
     143D_MEM_MODULES = @D_MEM_MODULES@ 
     144D_PREREQ_SRCS = @D_PREREQ_SRCS@ 
     145ECHO_C = @ECHO_C@ 
     146ECHO_N = @ECHO_N@ 
     147ECHO_T = @ECHO_T@ 
     148EGREP = @EGREP@ 
     149EXEEXT = @EXEEXT@ 
     150GDC = @GDC@ 
     151GREP = @GREP@ 
     152INSTALL_DATA = @INSTALL_DATA@ 
     153INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
     154INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
     155INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
     156LDFLAGS = @LDFLAGS@ 
     157LIBOBJS = @LIBOBJS@ 
     158LIBS = @LIBS@ 
     159LTLIBOBJS = @LTLIBOBJS@ 
     160MAKEINFO = @MAKEINFO@ 
     161OBJEXT = @OBJEXT@ 
     162PACKAGE = @PACKAGE@ 
     163PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 
     164PACKAGE_NAME = @PACKAGE_NAME@ 
     165PACKAGE_STRING = @PACKAGE_STRING@ 
     166PACKAGE_TARNAME = @PACKAGE_TARNAME@ 
     167PACKAGE_VERSION = @PACKAGE_VERSION@ 
     168PATH_SEPARATOR = @PATH_SEPARATOR@ 
    24169RANLIB = @RANLIB@ 
    25  
    26 CFLAGS=@CFLAGS@ 
    27 OUR_CFLAGS=@DEFS@ -I . -I $(srcdir)/gcc 
    28 D_MEM_FLAGS=@D_MEM_FLAGS@ 
    29  
    30 # Because parts of Phobos are generated (and are in flux), we need 
    31 # to prevent this build from getting tripped up on an already installed 
    32 # version.  Add -nostdinc to handle this. 
    33  
    34 # FIXME: The Posix version flag should be added through configuration, probably 
    35 # FIXME: The -I.. flag is needed to build the Tango version of libgdc, but 
    36 # there might possibly be a more streamlined way to do this 
    37 DFLAGS=@DFLAGS@  $(D_MEM_FLAGS) -nostdinc -fversion=Posix -I.. -I../.. -I../../.. 
    38  
    39 D_GENERATE_FRAGMENTS=@D_GENERATE_FRAGMENTS@ 
    40 D_FRAGMENT_SRCDIR=@D_FRAGMENT_SRCDIR@ 
    41  
    42 EXEEXT=@EXEEXT@ 
    43  
    44 INSTALL=@INSTALL@ 
    45 INSTALL_DATA = @INSTALL_DATA@ 
    46 INSTALL_HEADER = $(INSTALL_DATA) 
    47 # %% fix when part of normal build process 
    48 mkinstalldirs = $(INSTALL) -d 
    49  
    50 # %% remove for automake.. 
    51 STAMP = echo timestamp > 
    52  
    53 # Note that the real gdc knows what LIBS to use 
    54 LIBS=@LIBS@ 
    55 CC=@CC@ 
    56 GDC=@GDC@ 
    57  
    58 srcdir=@srcdir@ 
    59 VPATH = @srcdir@ 
    60  
    61 prefix=@prefix@ 
    62 exec_prefix=@exec_prefix@ 
    63 libdir=@libdir@ 
    64 includedir=@includedir@ 
    65  
     170SET_MAKE = @SET_MAKE@ 
     171SHELL = @SHELL@ 
     172STRIP = @STRIP@ 
     173VERSION = @VERSION@ 
     174ac_ct_CC = @ac_ct_CC@ 
     175ac_ct_CXX = @ac_ct_CXX@ 
     176am__leading_dot = @am__leading_dot@ 
     177am__tar = @am__tar@ 
     178am__untar = @am__untar@ 
     179bindir = @bindir@ 
     180build = @build@ 
     181build_alias = @build_alias@ 
     182build_cpu = @build_cpu@ 
     183build_os = @build_os@ 
     184build_vendor = @build_vendor@ 
     185datadir = @datadir@ 
     186datarootdir = @datarootdir@ 
     187docdir = @docdir@ 
     188dvidir = @dvidir@ 
     189exec_prefix = @exec_prefix@ 
     190gdc_include_dir = @gdc_include_dir@ 
     191host = @host@ 
     192host_alias = . 
     193host_cpu = @host_cpu@ 
     194host_os = @host_os@ 
     195host_vendor = @host_vendor@ 
     196htmldir = @htmldir@ 
     197includedir = @includedir@ 
     198infodir = @infodir@ 
     199install_sh = @install_sh@ 
     200libdir = @libdir@ 
     201libexecdir = @libexecdir@ 
     202localedir = @localedir@ 
     203localstatedir = @localstatedir@ 
     204mandir = @mandir@ 
     205mkdir_p = @mkdir_p@ 
     206oldincludedir = @oldincludedir@ 
     207pdfdir = @pdfdir@ 
    66208phobos_toolexecdir = @phobos_toolexecdir@ 
    67209phobos_toolexeclibdir = @phobos_toolexeclibdir@ 
     210prefix = @prefix@ 
     211program_transform_name = @program_transform_name@ 
     212psdir = @psdir@ 
     213sbindir = @sbindir@ 
     214sharedstatedir = @sharedstatedir@ 
     215sysconfdir = @sysconfdir@ 
     216target = @target@ 
     217target_alias = @target_alias@ 
     218target_cpu = @target_cpu@ 
     219target_os = @target_os@ 
     220target_vendor = @target_vendor@ 
     221OUR_CFLAGS = @DEFS@ -I. 
     222D_EXTRA_DFLAGS = -nostdinc -pipe -I../../.. 
     223ALL_DFLAGS = $(DFLAGS) $(D_MEM_FLAGS) $(D_EXTRA_DFLAGS) $(MULTIFLAGS) 
    68224toolexecdir = $(phobos_toolexecdir) 
    69225toolexeclibdir = $(phobos_toolexeclibdir) 
    70  
    71 gdc_include_dir=@gdc_include_dir@ 
    72  
    73 config_d_src=$(host_alias)/gcc/config.d 
    74 configunix_d_src=$(host_alias)/gcc/configunix.d 
    75  
    76 D_PREREQ_SRCS=@D_PREREQ_SRCS@ 
    77  
    78 all: libgdc.a 
    79  
    80 %.o : %.c 
    81     $(CC) -o $@ $(OUR_CFLAGS) $(CFLAGS) -c $< 
    82  
    83 # Changed the gc source path here for Tango 
    84 %.o : %.d $(D_PREREQ_SRCS) 
    85     $(GDC) -o $@ $(DFLAGS) -I $(srcdir) -I $(srcdir)/../../gc/gdc -I ./$(host_alias) -c $< 
    86  
    87 # Changed the gc source path here for Tango 
    88 %.t.o : %.d $(D_PREREQ_SRCS) 
    89     $(GDC) -o $@ $(DFLAGS) -fno-release -funittest -I $(srcdir) -I $(srcdir)/../../gc/gdc -I ./$(host_alias) -c $< 
    90  
    91 # gc/gdc/gcx.t.o: $(D_PREREQ_SRCS) $(srcdir)/gc/gdc/gcx.d 
    92 #   $(GDC) -o $@ $(DFLAGS) -funittest -I $(srcdir) -I $(srcdir)/../../gc/gdc -I ./$(host_alias) -c $< 
    93  
    94 %.t.o : %.o 
    95     cp $< $@ 
    96  
    97 Makefile: Makefile.in 
    98     ./config.status 
    99  
    100 unittest: unittest.o libgdc_t.a 
    101     $(GDC) -o $@ $(CFLAGS) unittest.o -L./ -lgphobos_t $(LIBS) 
    102  
    103 # gc/gdc/testgc.o: $(host_alias)/gcc/config.d $(srcdir)/gc/gdc/testgc.d 
    104 #   $(GDC) -o $@ $(DFLAGS) -fno-release -I $(srcdir) -I $(srcdir)/../../gc/gdc -I ./$(host_alias) -c $(srcdir)/gc/gdc/testgc.d 
    105  
    106 # testgc: gc/gdc/testgc.o libgdc_t.a 
    107 #   $(GDC) -o $@ $(CFLAGS) unittest.o -L./ -lgphobos_t $(LIBS) 
    108  
    109 # This should not be linked into a shared library. 
    110 OBJ_CMAIN=cmain.o 
    111  
    112 OBJ_BASE= \ 
     226config_d_src = $(host_alias)/gcc/config.d 
     227configunix_d_src = $(host_alias)/gcc/configunix.d 
     228 
     229# This is a hook to get Automake to build libgphobos.a 
     230BUILT_SOURCES = minimal.c 
     231minimal_SOURCES = minimal.c 
     232minimal_DEPENDENCIES = libgphobos.a 
     233SUFFIXES = .d 
     234TI = ti_AC.o ti_Ag.o ti_Aint.o ti_Along.o ti_Ashort.o \ 
     235    ti_C.o \ 
     236    ti_byte.o ti_cdouble.o ti_cfloat.o ti_char.o ti_creal.o \ 
     237    ti_dchar.o ti_delegate.o ti_double.o ti_float.o ti_idouble.o ti_ifloat.o \ 
     238    ti_int.o  ti_ireal.o ti_long.o ti_ptr.o ti_real.o ti_short.o ti_ubyte.o \ 
     239    ti_uint.o ti_ulong.o ti_ushort.o ti_wchar.o \ 
     240    ti_Afloat.o ti_Adouble.o ti_Areal.o \ 
     241    ti_Acfloat.o ti_Acdouble.o ti_Acreal.o \ 
     242    ti_void.o 
     243 
     244OBJ_BASE = \ 
    113245    aaA.o \ 
    114246    aApply.o \ 
     
    118250    arraycat.o \ 
    119251    cast.o \ 
     252    cmain.o \ 
    120253    critical.o \ 
    121254    dgccmain2.o \ 
     
    131264    switch.o \ 
    132265    moduleinit.o 
    133 # NOTE: trace.o is not necessary for a successful build 
    134 # NOTE: a pre-compiled minit.obj has been provided in dmd 
    135 #       but is only needed for Win32 
    136 #   minit.obj 
    137 # NOTE: these files are used by DMD Linux but not GDC: 
    138 #   alloca.o 
    139 #   complex.o 
    140 #   deh2.o 
    141 #   dmain2.o 
    142 #   llmath.o 
    143 #   qsort.o 
    144 #   trace.o 
    145  
    146 OBJ_UTIL= \ 
     266 
     267OBJ_UTIL = \ 
    147268    util/console.o \ 
    148269    util/ctype.o \ 
     
    150271    util/utf.o 
    151272 
    152 OBJ_TI= \ 
    153     typeinfo/ti_AC.o \ 
    154     typeinfo/ti_Acdouble.o \ 
    155     typeinfo/ti_Acfloat.o \ 
    156     typeinfo/ti_Acreal.o \ 
    157     typeinfo/ti_Adouble.o \ 
    158     typeinfo/ti_Afloat.o \ 
    159     typeinfo/ti_Ag.o \ 
    160     typeinfo/ti_Aint.o \ 
    161     typeinfo/ti_Along.o \ 
    162     typeinfo/ti_Areal.o \ 
    163     typeinfo/ti_Ashort.o \ 
    164     typeinfo/ti_byte.o \ 
    165     typeinfo/ti_C.o \ 
    166     typeinfo/ti_cdouble.o \ 
    167     typeinfo/ti_cfloat.o \ 
    168     typeinfo/ti_char.o \ 
    169     typeinfo/ti_creal.o \ 
    170     typeinfo/ti_dchar.o \ 
    171     typeinfo/ti_Delegate.o \ 
    172     typeinfo/ti_double.o \ 
    173     typeinfo/ti_float.o \ 
    174     typeinfo/ti_idouble.o \ 
    175     typeinfo/ti_ifloat.o \ 
    176     typeinfo/ti_int.o \ 
    177     typeinfo/ti_ireal.o \ 
    178     typeinfo/ti_long.o \ 
    179     typeinfo/ti_ptr.o \ 
    180     typeinfo/ti_real.o \ 
    181     typeinfo/ti_short.o \ 
    182     typeinfo/ti_ubyte.o \ 
    183     typeinfo/ti_uint.o \ 
    184     typeinfo/ti_ulong.o \ 
    185     typeinfo/ti_ushort.o \ 
    186     typeinfo/ti_void.o \ 
    187     typeinfo/ti_wchar.o 
    188  
    189 ALL_OBJS= \ 
    190     $(OBJ_BASE) \ 
    191     $(OBJ_UTIL) \ 
    192     $(OBJ_TI) 
    193  
    194 MEM_OBJS= @D_MEM_MODULES@ 
    195  
    196 # Removed std/c/dirent.o for Tango 
    197 # Removed gcc/threadsem.o for Tango 
    198 GCC_OBJS = gcc/config.o gcc/unwind.o gcc/deh.o gcc/cbridge_time.o 
     273MAIN_OBJS = $(subst ti_,typeinfo/ti_,$(TI)) 
     274 
     275# This should not be linked into a shared library. 
     276CMAIN_OBJS =  
     277ZLIB_OBJS =  
     278GC_OBJS =  
     279GCC_OBJS = gcc/config.o gcc/unwind.o gcc/deh.o gcc/threadsem.o \ 
     280    gcc/cbridge_time.o 
     281 
    199282 
    200283# std.c.linux.linux, std.loader, gcc.cbridge* 
    201  
    202 # Cleared WINDOWS_OBJS for Tango -- not needed 
    203 #WINDOWS_OBJS=std/c/windows/windows.o std/c/windows/com.o std/c/windows/winsock.o \ 
    204 #   std/windows/iunknown.o std/windows/registry.o std/windows/syserror.o \ 
    205 #   std/windows/charset.o 
    206  
    207 D_EXTRA_OBJS=@D_EXTRA_OBJS@ 
    208  
    209 # needed until instrinsics are implemented 
    210 D_EXTRA_OBJS+=std/intrinsic.o 
    211  
    212 # currently just add compatibility for a bug 
    213 D_EXTRA_OBJS+=gcc/support.o 
    214  
     284WINDOWS_OBJS =  
    215285CONFIG_D_FRAGMENTS = config/config-head frag-ac frag-gen frag-math config/config-mid config/config-tail 
    216286CONFIG_UNIX_FRAGMENTS = config/unix-head frag-unix config/unix-mid 
    217287 
    218 # until I figure out how to deal with weak module references 
    219 WEAK_OBJS = 
     288# GCC_OBJS (gcc/config.o) first so I don't have to write more deps 
     289ALL_PHOBOS_OBJS = $(OBJ_BASE) $(OBJ_UTIL) $(D_EXTRA_OBJS) $(GCC_OBJS) $(MAIN_OBJS) $(ZLIB_OBJS) $(GC_OBJS) $(WEAK_OBJS) 
     290 
     291# Work around what appears to be a GNU make bug handling MAKEFLAGS 
     292# values defined in terms of make variables, as is the case for CC and 
     293# friends when we are called from the top level Makefile. 
     294AM_MAKEFLAGS = \ 
     295    "AR_FLAGS=$(AR_FLAGS)" \ 
     296    "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ 
     297    "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ 
     298    "CFLAGS=$(CFLAGS)" \ 
     299    "CXXFLAGS=$(CXXFLAGS)" \ 
     300    "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ 
     301    "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ 
     302    "INSTALL=$(INSTALL)" \ 
     303    "INSTALL_DATA=$(INSTALL_DATA)" \ 
     304    "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ 
     305    "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ 
     306    "LDFLAGS=$(LDFLAGS)" \ 
     307    "LIBCFLAGS=$(LIBCFLAGS)" \ 
     308    "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ 
     309    "MAKE=$(MAKE)" \ 
     310    "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ 
     311    "PICFLAG=$(PICFLAG)" \ 
     312    "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \ 
     313    "SHELL=$(SHELL)" \ 
     314    "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ 
     315    "exec_prefix=$(exec_prefix)" \ 
     316    "infodir=$(infodir)" \ 
     317    "libdir=$(libdir)" \ 
     318    "includedir=$(includedir)" \ 
     319    "prefix=$(prefix)" \ 
     320    "tooldir=$(tooldir)" \ 
     321    "gdc_include_dir=$(gdc_include_dir)" \ 
     322    "AR=$(AR)" \ 
     323    "AS=$(AS)" \ 
     324    "LD=$(LD)" \ 
     325    "RANLIB=$(RANLIB)" \ 
     326    "NM=$(NM)" \ 
     327    "NM_FOR_BUILD=$(NM_FOR_BUILD)" \ 
     328    "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ 
     329    "DESTDIR=$(DESTDIR)" \ 
     330    "WERROR=$(WERROR)" 
     331 
     332 
     333# Subdir rules rely on $(FLAGS_TO_PASS) 
     334FLAGS_TO_PASS = $(AM_MAKEFLAGS) 
     335all: $(BUILT_SOURCES) config.h 
     336    $(MAKE) $(AM_MAKEFLAGS) all-am 
     337 
     338.SUFFIXES: 
     339.SUFFIXES: .d .c .o .obj 
     340am--refresh: 
     341    @: 
     342$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps) 
     343    @for dep in $?; do \ 
     344      case '$(am__configure_deps)' in \ 
     345        *$$dep*) \ 
     346          echo ' cd $(srcdir) && $(AUTOMAKE) --foreign  --ignore-deps'; \ 
     347          cd $(srcdir) && $(AUTOMAKE) --foreign  --ignore-deps \ 
     348        && exit 0; \ 
     349          exit 1;; \ 
     350      esac; \ 
     351    done; \ 
     352    echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  --ignore-deps Makefile'; \ 
     353    cd $(top_srcdir) && \ 
     354      $(AUTOMAKE) --foreign  --ignore-deps Makefile 
     355.PRECIOUS: Makefile 
     356Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 
     357    @case '$?' in \ 
     358      *config.status*) \ 
     359        echo ' $(SHELL) ./config.status'; \ 
     360        $(SHELL) ./config.status;; \ 
     361      *) \ 
     362        echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ 
     363        cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ 
     364    esac; 
     365 
     366$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 
     367    $(SHELL) ./config.status --recheck 
     368 
     369$(top_srcdir)/configure:  $(am__configure_deps) 
     370    cd $(srcdir) && $(AUTOCONF) 
     371$(ACLOCAL_M4):  $(am__aclocal_m4_deps) 
     372    cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 
     373 
     374config.h: stamp-h1 
     375    @if test ! -f $@; then \ 
     376      rm -f stamp-h1; \ 
     377      $(MAKE) stamp-h1; \ 
     378    else :; fi 
     379 
     380stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status 
     381    @rm -f stamp-h1 
     382    cd $(top_builddir) && $(SHELL) ./config.status config.h 
     383$(srcdir)/config.h.in:  $(am__configure_deps)  
     384    cd $(top_srcdir) && $(AUTOHEADER) 
     385    rm -f stamp-h1 
     386    touch $@ 
     387 
     388distclean-hdr: 
     389    -rm -f config.h stamp-h1 
     390frag-ac: $(top_builddir)/config.status $(srcdir)/frag-ac.in 
     391    cd $(top_builddir) && $(SHELL) ./config.status $@ 
     392phobos-ver-syms: $(top_builddir)/config.status $(srcdir)/phobos-ver-syms.in 
     393    cd $(top_builddir) && $(SHELL) ./config.status $@ 
     394 
     395clean-noinstPROGRAMS: 
     396    -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) 
     397minimal$(EXEEXT): $(minimal_OBJECTS) $(minimal_DEPENDENCIES)  
     398    @rm -f minimal$(EXEEXT) 
     399    $(LINK) $(minimal_LDFLAGS) $(minimal_OBJECTS) $(minimal_LDADD) $(LIBS) 
     400 
     401mostlyclean-compile: 
     402    -rm -f *.$(OBJEXT) 
     403 
     404distclean-compile: 
     405    -rm -f *.tab.c 
     406 
     407.c.obj: 
     408    $(COMPILE) -c `$(CYGPATH_W) '$<'` 
     409uninstall-info-am: 
     410 
     411ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 
     412    list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 
     413    unique=`for i in $$list; do \ 
     414        if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 
     415      done | \ 
     416      $(AWK) '    { files[$$0] = 1; } \ 
     417           END { for (i in files) print i; }'`; \ 
     418    mkid -fID $$unique 
     419tags: TAGS 
     420 
     421TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 
     422        $(TAGS_FILES) $(LISP) 
     423    tags=; \ 
     424    here=`pwd`; \ 
     425    list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ 
     426    unique=`for i in $$list; do \ 
     427        if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 
     428      done | \ 
     429      $(AWK) '    { files[$$0] = 1; } \ 
     430           END { for (i in files) print i; }'`; \ 
     431    if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 
     432      test -n "$$unique" || unique=$$empty_fix; \ 
     433      $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 
     434        $$tags $$unique; \ 
     435    fi 
     436ctags: CTAGS 
     437CTAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 
     438        $(TAGS_FILES) $(LISP) 
     439    tags=; \ 
     440    here=`pwd`; \ 
     441    list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ 
     442    unique=`for i in $$list; do \ 
     443        if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 
     444      done | \ 
     445      $(AWK) '    { files[$$0] = 1; } \ 
     446           END { for (i in files) print i; }'`; \ 
     447    test -z "$(CTAGS_ARGS)$$tags$$unique" \ 
     448      || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 
     449         $$tags $$unique 
     450 
     451GTAGS: 
     452    here=`$(am__cd) $(top_builddir) && pwd` \ 
     453      && cd $(top_srcdir) \ 
     454      && gtags -i $(GTAGS_ARGS) $$here 
     455 
     456distclean-tags: 
     457    -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 
     458 
     459distdir: $(DISTFILES) 
     460    $(am__remove_distdir) 
     461    mkdir $(distdir) 
     462    $(mkdir_p) $(distdir)/. 
     463    @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 
     464    topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 
     465    list='$(DISTFILES)'; for file in $$list; do \ 
     466      case $$file in \ 
     467        $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 
     468        $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 
     469      esac; \ 
     470      if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 
     471      dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 
     472      if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 
     473        dir="/$$dir"; \ 
     474        $(mkdir_p) "$(distdir)$$dir"; \ 
     475      else \ 
     476        dir=''; \ 
     477      fi; \ 
     478      if test -d $$d/$$file; then \ 
     479        if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 
     480          cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 
     481        fi; \ 
     482        cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 
     483      else \ 
     484        test -f $(distdir)/$$file \ 
     485        || cp -p $$d/$$file $(distdir)/$$file \ 
     486        || exit 1; \ 
     487      fi; \ 
     488    done 
     489    -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ 
     490      ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ 
     491      ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ 
     492      ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ 
     493    || chmod -R a+r $(distdir) 
     494dist-gzip: distdir 
     495    tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 
     496    $(am__remove_distdir) 
     497 
     498dist-bzip2: distdir 
     499    tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 
     500    $(am__remove_distdir) 
     501 
     502dist-tarZ: distdir 
     503    tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z 
     504    $(am__remove_distdir) 
     505 
     506dist-shar: distdir 
     507    shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz 
     508    $(am__remove_distdir) 
     509 
     510dist-zip: distdir 
     511    -rm -f $(distdir).zip 
     512    zip -rq $(distdir).zip $(distdir) 
     513    $(am__remove_distdir) 
     514 
     515dist dist-all: distdir 
     516    tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 
     517    $(am__remove_distdir) 
     518 
     519# This target untars the dist file and tries a VPATH configuration.  Then 
     520# it guarantees that the distribution is self-contained by making another 
     521# tarfile. 
     522distcheck: dist 
     523    case '$(DIST_ARCHIVES)' in \ 
     524    *.tar.gz*) \ 
     525      GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ 
     526    *.tar.bz2*) \ 
     527      bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ 
     528    *.tar.Z*) \ 
     529      uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ 
     530    *.shar.gz*) \ 
     531      GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ 
     532    *.zip*) \ 
     533      unzip $(distdir).zip ;;\ 
     534    esac 
     535    chmod -R a-w $(distdir); chmod a+w $(distdir) 
     536    mkdir $(distdir)/_build 
     537    mkdir $(distdir)/_inst 
     538    chmod a-w $(distdir) 
     539    dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ 
     540      && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ 
     541      && cd $(distdir)/_build \ 
     542      && ../configure --srcdir=.. --prefix="$$dc_install_base" \ 
     543        $(DISTCHECK_CONFIGURE_FLAGS) \ 
     544      && $(MAKE) $(AM_MAKEFLAGS) \ 
     545      && $(MAKE) $(AM_MAKEFLAGS) dvi \ 
     546      && $(MAKE) $(AM_MAKEFLAGS) check \ 
     547      && $(MAKE) $(AM_MAKEFLAGS) install \ 
     548      && $(MAKE) $(AM_MAKEFLAGS) installcheck \ 
     549      && $(MAKE) $(AM_MAKEFLAGS) uninstall \ 
     550      && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ 
     551            distuninstallcheck \ 
     552      && chmod -R a-w "$$dc_install_base" \ 
     553      && ({ \ 
     554           (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ 
     555           && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ 
     556           && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ 
     557           && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ 
     558                distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ 
     559          } || { rm -rf "$$dc_destdir"; exit 1; }) \ 
     560      && rm -rf "$$dc_destdir" \ 
     561      && $(MAKE) $(AM_MAKEFLAGS) dist \ 
     562      && rm -rf $(DIST_ARCHIVES) \ 
     563      && $(MAKE) $(AM_MAKEFLAGS) distcleancheck 
     564    $(am__remove_distdir) 
     565    @(echo "$(distdir) archives ready for distribution: "; \ 
     566      list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ 
     567      sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' 
     568distuninstallcheck: 
     569    @cd $(distuninstallcheck_dir) \ 
     570    && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ 
     571       || { echo "ERROR: files left after uninstall:" ; \ 
     572            if test -n "$(DESTDIR)"; then \ 
     573              echo "  (check DESTDIR support)"; \ 
     574            fi ; \ 
     575            $(distuninstallcheck_listfiles) ; \ 
     576            exit 1; } >&2 
     577distcleancheck: distclean 
     578    @if test '$(srcdir)' = . ; then \ 
     579      echo "ERROR: distcleancheck can only run from a VPATH build" ; \ 
     580      exit 1 ; \ 
     581    fi 
     582    @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ 
     583      || { echo "ERROR: files left in build directory after distclean:" ; \ 
     584           $(distcleancheck_listfiles) ; \ 
     585           exit 1; } >&2 
     586check-am: all-am 
     587    $(MAKE) $(AM_MAKEFLAGS) check-local 
     588check: $(BUILT_SOURCES) 
     589    $(MAKE) $(AM_MAKEFLAGS) check-am 
     590all-am: Makefile $(PROGRAMS) config.h all-local 
     591installdirs: 
     592install: $(BUILT_SOURCES) 
     593    $(MAKE) $(AM_MAKEFLAGS) install-am 
     594install-exec: install-exec-am 
     595install-data: install-data-am 
     596uninstall: uninstall-am 
     597 
     598install-am: all-am 
     599    @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 
     600 
     601installcheck: installcheck-am 
     602install-strip: 
     603    $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 
     604      install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 
     605      `test -z '$(STRIP)' || \ 
     606        echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 
     607mostlyclean-generic: 
     608 
     609clean-generic: 
     610 
     611distclean-generic: 
     612    -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 
     613 
     614maintainer-clean-generic: 
     615    @echo "This command is intended for maintainers to use" 
     616    @echo "it deletes files that may require special tools to rebuild." 
     617    -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) 
     618clean: clean-am 
     619 
     620clean-am: clean-generic clean-local clean-noinstPROGRAMS \ 
     621    mostlyclean-am 
     622 
     623distclean: distclean-am 
     624    -rm -f $(am__CONFIG_DISTCLEAN_FILES) 
     625    -rm -f Makefile 
     626distclean-am: clean-am distclean-compile distclean-generic \ 
     627    distclean-hdr distclean-tags 
     628 
     629dvi: dvi-am 
     630 
     631dvi-am: 
     632 
     633html: html-am 
     634 
     635info: info-am 
     636 
     637info-am: 
     638 
     639install-data-am: install-data-local 
     640 
     641install-exec-am: install-exec-local 
     642 
     643install-info: install-info-am 
     644 
     645install-man: 
     646 
     647installcheck-am: 
     648 
     649maintainer-clean: maintainer-clean-am 
     650    -rm -f $(am__CONFIG_DISTCLEAN_FILES) 
     651    -rm -rf $(top_srcdir)/autom4te.cache 
     652    -rm -f Makefile 
     653maintainer-clean-am: distclean-am maintainer-clean-generic 
     654 
     655mostlyclean: mostlyclean-am 
     656 
     657mostlyclean-am: mostlyclean-compile mostlyclean-generic 
     658 
     659pdf: pdf-am 
     660 
     661pdf-am: 
     662 
     663ps: ps-am 
     664 
     665ps-am: 
     666 
     667uninstall-am: uninstall-info-am 
     668 
     669.PHONY: CTAGS GTAGS all all-am all-local am--refresh check check-am \ 
     670    check-local clean clean-generic clean-local \ 
     671    clean-noinstPROGRAMS ctags dist dist-all dist-bzip2 dist-gzip \ 
     672    dist-shar dist-tarZ dist-zip distcheck distclean \ 
     673    distclean-compile distclean-generic distclean-hdr \ 
     674    distclean-tags distcleancheck distdir distuninstallcheck dvi \ 
     675    dvi-am html html-am info info-am install install-am \ 
     676    install-data install-data-am install-data-local install-exec \ 
     677    install-exec-am install-exec-local install-info \ 
     678    install-info-am install-man install-strip installcheck \ 
     679    installcheck-am installdirs maintainer-clean \ 
     680    maintainer-clean-generic mostlyclean mostlyclean-compile \ 
     681    mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ 
     682    uninstall-am uninstall-info-am 
     683 
     684minimal.c: 
     685    echo "int main() { return 0; }" > $@ 
     686 
     687all-local: libgphobos.a 
     688 
     689%.o : %.d $(D_PREREQ_SRCS) 
     690    $(GDC) -o $@ $(ALL_DFLAGS)  \ 
     691    -c $< 
     692 
     693# %.o : %.c 
     694# Use .c.o to override Automake 
     695.c.o: 
     696    $(CC) -o $@ $(OUR_CFLAGS) $(CFLAGS) -c $< 
     697 
     698%.t.o : %.d $(D_PREREQ_SRCS) 
     699    $(GDC) -o $@ $(ALL_DFLAGS) -fno-release -funittest -c $< 
     700 
     701%.t.o : %.o 
     702    cp $< $@ 
     703 
     704unittest: unittest.o libgphobos_t.a libgphobos.a 
     705    $(GDC) -o $@ $(CFLAGS) unittest.o -L./ -lgphobos_t $(LIBS) 
     706 
     707gen_config1: config/gen_config1.o 
     708    $(CC) $(CFLAGS) -o $@ $^ 
     709 
     710$(config_d_src): $(CONFIG_D_FRAGMENTS) stamp-tgtdir 
     711    cat $^ > $@ 
     712 
     713gcc/config.o: $(config_d_src) 
     714    $(GDC) -o $@ $(ALL_DFLAGS) -c $< 
     715gcc/config.t.o: gcc/config.o 
     716    cp gcc/config.o gcc/config.t.o 
     717 
     718gen_math: config/gen_math.o 
     719    $(CC) $(CFLAGS) -o $@ $^ 
     720 
     721config/gen_unix.o: config/gen_unix.c config/makestruct.h 
     722 
     723gen_unix: config/gen_unix.o 
     724    $(CC) $(CFLAGS) -o $@ $^ 
     725 
     726# Plain 'make' would use: ifdef D_GENERATE_FRAGMENTS 
     727@D_GENERATE_FRAGMENTS_TRUE@frag-gen: gen_config1 
     728@D_GENERATE_FRAGMENTS_TRUE@ ./gen_config1 > $@ || rm -f $@ 
     729@D_GENERATE_FRAGMENTS_TRUE@frag-unix: gen_unix 
     730@D_GENERATE_FRAGMENTS_TRUE@ ./gen_unix > $@ 
     731@D_GENERATE_FRAGMENTS_TRUE@frag-math: gen_math 
     732@D_GENERATE_FRAGMENTS_TRUE@ ./gen_math > $@ || rm -f $@ 
     733@D_GENERATE_FRAGMENTS_FALSE@frag-gen: $(D_FRAGMENT_SRCDIR)/$@ 
     734@D_GENERATE_FRAGMENTS_FALSE@    cp $(D_FRAGMENT_SRCDIR)/$@ $@ 
     735@D_GENERATE_FRAGMENTS_FALSE@frag-unix: $(D_FRAGMENT_SRCDIR)/$@ 
     736@D_GENERATE_FRAGMENTS_FALSE@    cp $(D_FRAGMENT_SRCDIR)/$@ $@ 
     737@D_GENERATE_FRAGMENTS_FALSE@frag-math: $(D_FRAGMENT_SRCDIR)/$@ 
     738@D_GENERATE_FRAGMENTS_FALSE@    cp $(D_FRAGMENT_SRCDIR)/$@ $@ 
     739 
     740$(configunix_d_src): $(CONFIG_UNIX_FRAGMENTS) stamp-tgtdir 
     741    cat $^ > $@ 
     742 
     743gcc/configunix.o: $(configunix_d_src) $(config_d_src) 
     744    $(GDC) -o $@ $(ALL_DFLAGS) -c $< 
     745gcc/configunix.t.o: gcc/configunix.o 
     746    cp gcc/configunix.o gcc/configunix.t.o 
     747 
     748gcc/cbridge_math.o: gcc/cbridge_math.c 
     749    $(CC) -o $@ $(OUR_CFLAGS) $(CFLAGS) -fno-strict-aliasing -c $< 
     750 
     751libgphobos.a : $(ALL_PHOBOS_OBJS) $(CMAIN_OBJS) 
     752    $(AR) -r $@ $(ALL_PHOBOS_OBJS) $(CMAIN_OBJS) 
     753    $(RANLIB) $@ 
     754 
     755libgphobos_t.a : $(ALL_PHOBOS_OBJS:.o=.t.o) $(CMAIN_OBJS) 
     756    $(AR) -r $@ $(ALL_PHOBOS_OBJS:.o=.t.o) $(CMAIN_OBJS) 
     757    $(RANLIB) $@ 
    220758 
    221759# This has to be an empty file because it is included in the prerequisites of rules 
     
    226764    touch $@ 
    227765 
    228 gen_config1: config/gen_config1.o 
    229     $(CC) -o $@ $^ 
    230  
    231 $(config_d_src): $(CONFIG_D_FRAGMENTS) stamp-tgtdir 
    232     cat $^ > $@ 
    233  
    234 gcc/config.o: $(config_d_src) 
    235     $(GDC) -o $@ $(DFLAGS) -I $(srcdir) -I $(srcdir)/../../gc/gdc -I ./$(host_alias) -c $< 
    236 gcc/config.t.o: gcc/config.o 
    237     cp gcc/config.o gcc/config.t.o 
    238  
    239  
    240 gen_math: config/gen_math.o 
    241     $(CC) -o $@ $^ 
    242  
    243 config/gen_unix.o: config/gen_unix.c config/makestruct.h 
    244  
    245 gen_unix: config/gen_unix.o 
    246     $(CC) -o $@ $^ 
    247  
    248 ifdef D_GENERATE_FRAGMENTS 
    249 frag-gen: gen_config1 
    250     ./gen_config1 > $@ || rm -f $@ 
    251 frag-unix: gen_unix 
    252     ./gen_unix > $@ 
    253 frag-math: gen_math 
    254     ./gen_math > $@ || rm -f $@ 
    255 else 
    256 frag-gen: $(D_FRAGMENT_SRCDIR)/$@ 
    257     cp $(D_FRAGMENT_SRCDIR)/$@ $@ 
    258 frag-unix: $(D_FRAGMENT_SRCDIR)/$@ 
    259     cp $(D_FRAGMENT_SRCDIR)/$@ $@ 
    260 frag-math: $(D_FRAGMENT_SRCDIR)/$@ 
    261     cp $(D_FRAGMENT_SRCDIR)/$@ $@ 
    262 endif 
    263  
    264 $(configunix_d_src): $(CONFIG_UNIX_FRAGMENTS) stamp-tgtdir 
    265     cat $^ > $@ 
    266  
    267 gcc/configunix.o: $(configunix_d_src) $(config_d_src) 
    268     $(GDC) -o $@ $(DFLAGS) -I $(srcdir) -I $(srcdir)/../../gc/gdc -I ./$(host_alias) -c $< 
    269 gcc/configunix.t.o: gcc/configunix.o 
    270     cp gcc/configunix.o gcc/configunix.t.o 
    271  
    272 gcc/cbridge_math.o: gcc/cbridge_math.c 
    273     $(CC) -o $@ $(OUR_CFLAGS) $(CFLAGS) -fno-strict-aliasing -c $< 
    274  
    275 # std/stream.o: std/stream.d $(D_PREREQ_SRCS) 
    276 #   $(GDC) -o $@ $(DFLAGS) -fdeprecated -I $(srcdir) -I $(srcdir)/../../gc/gdc -I ./$(host_alias) -c $< 
    277 # std/stream.t.o: std/stream.d $(D_PREREQ_SRCS) 
    278 #   $(GDC) -o $@ $(DFLAGS) -fdeprecated -I $(srcdir) -I $(srcdir)/../../gc/gdc -I ./$(host_alias) -c $< 
    279  
    280 # Will be included elsewhere 
    281 COMMON_OBJS= 
    282  
    283 # GCC_OBJS (gcc/config.o) first so I don't have to write more deps 
    284 ALL_OBJS = \ 
    285     $(OBJ_BASE) \ 
    286     $(OBJ_UTIL) \ 
    287     $(OBJ_TI) \ 
    288     $(D_EXTRA_OBJS) \ 
    289     $(GCC_OBJS) \ 
    290     $(MAIN_OBJS) \ 
    291     $(MEM_OBJS) \ 
    292     $(WEAK_OBJS) \ 
    293     $(COMMON_OBJS) 
    294  
    295 libgdc.a : $(ALL_OBJS) $(OBJ_CMAIN) 
    296     $(AR) -r $@ $(ALL_OBJS) $(OBJ_CMAIN) 
    297     $(RANLIB) $@ 
    298  
    299 libgdc_t.a : $(ALL_OBJS:.o=.t.o) $(OBJ_CMAIN) 
    300     $(AR) -r $@ $(ALL_OBJS:.o=.t.o) $(OBJ_CMAIN) 
    301     $(RANLIB) $@ 
    302  
    303 .PHONY: info dvi TAGS install-info installcheck mostlyclean distclean maintainer-clean check 
    304  
    305 check: unittest testgc 
     766check-local: unittest testgc 
    306767    ./unittest 
    307768    ./testgc 
    308769 
    309 info: 
    310 dvi: 
    311 TAGS: 
    312 install-info: 
    313 installcheck: 
    314 mostlyclean: clean 
    315 distclean: clean 
    316 maintainer-clean: clean 
    317  
    318 #echo "XXX" $(mkinstalldirs) $(DESTDIR)$(gdc_include_dir)/$$i; \ 
    319 #echo "YYY" $(INSTALL_HEADER) $(srcdir)/$$i/*.[hd] $(DESTDIR)$(gdc_include_dir)/$$i; \ 
    320  
    321 # 3.3.x install-sh can't handle multiple source arguments 
    322 # $(INSTALL_HEADER) $(srcdir)/$$i/*.[hd] $(DESTDIR)$(gdc_include_dir)/$$i; done 
    323 #install: $(D_PREREQ_SRCS) libgdc.a 
    324 #   for i in etc etc/c \ 
    325 #       etc/c/stlsoft etc/c/zlib \ 
    326 #       gcc std std/c \ 
    327 #                std/c/darwin std/c/linux std/c/mach std/c/skyos std/c/unix std/c/windows \ 
    328 #       std/typeinfo std/windows; do \ 
    329 #       $(mkinstalldirs) $(DESTDIR)$(gdc_include_dir)/$$i; \ 
    330 #       for f in $(srcdir)/$$i/*.[hd]; do $(INSTALL_HEADER) $$f $(DESTDIR)$(gdc_include_dir)/$$i; done; \ 
    331 #   done 
    332 #   for i in crc32.d gcstats.d object.d; do \ 
    333 #       $(INSTALL_HEADER) $(srcdir)/$$i $(DESTDIR)$(gdc_include_dir); done 
    334 #   $(mkinstalldirs) $(DESTDIR)$(gdc_include_dir)/$(host_alias)/gcc 
    335 #   $(INSTALL_HEADER) $(config_d_src) $(DESTDIR)$(gdc_include_dir)/$(host_alias)/gcc 
    336 #   if test -f $(configunix_d_src); then $(INSTALL_HEADER) $(host_alias)/gcc/configunix.d $(DESTDIR)$(gdc_include_dir)/$(host_alias)/gcc; fi 
    337 #   $(INSTALL) phobos-ver-syms $(DESTDIR)$(gdc_include_dir)/$(host_alias) 
    338 #   $(mkinstalldirs) $(DESTDIR)$(toolexeclibdir) 
    339 #   $(INSTALL) libgdc.a $(DESTDIR)$(toolexeclibdir) 
    340 #   $(RANLIB) $(DESTDIR)$(toolexeclibdir)/libgdc.a 
    341 #   $(INSTALL) libgdc.spec $(DESTDIR)$(toolexeclibdir) 
    342  
    343 install: 
    344     cp -f libgdc*.a ../. 
    345  
    346 clean: 
    347     echo 'Removing files...' 
    348     rm -f $(ALL_OBJS) $(OBJ_CMAIN) 
    349     rm -f $(ALL_OBJS:.o=.t.o) 
    350 #   rm -f unittest.o gc/gdc/testgc.o 
     770install-exec-local: $(D_PREREQ_SRCS) libgphobos.a 
     771    $(mkinstalldirs) $(DESTDIR)$(toolexeclibdir) 
     772    $(INSTALL) libgphobos.a $(DESTDIR)$(toolexeclibdir) 
     773    $(RANLIB) $(DESTDIR)$(toolexeclibdir)/libgphobos.a 
     774 
     775install-data-local: $(D_PREREQ_SRCS) libgphobos.a 
     776    for i in gcc; do \ 
     777        $(mkinstalldirs) $(DESTDIR)$(gdc_include_dir)/$$i; \ 
     778        for f in $(srcdir)/$$i/*.[hd]; do $(INSTALL_HEADER) $$f $(DESTDIR)$(gdc_include_dir)/$$i; done; \ 
     779    done 
     780    $(mkinstalldirs) $(DESTDIR)$(gdc_include_dir)/$(host_alias)/$(MULTISUBDIR)/gcc 
     781    $(INSTALL_HEADER) $(config_d_src) $(DESTDIR)$(gdc_include_dir)/$(host_alias)/$(MULTISUBDIR)/gcc 
     782    if test -f $(configunix_d_src); then $(INSTALL_HEADER) $(host_alias)/gcc/configunix.d $(DESTDIR)$(gdc_include_dir)/$(host_alias)/$(MULTISUBDIR)/gcc; fi 
     783    $(INSTALL) phobos-ver-syms $(DESTDIR)$(gdc_include_dir)/$(host_alias)/$(MULTISUBDIR) 
     784 
     785clean-local: 
     786    rm -f $(ALL_PHOBOS_OBJS) $(CMAIN_OBJS) 
     787    rm -f $(ALL_PHOBOS_OBJS:.o=.t.o) 
     788    rm -f unittest.o 
    351789    rm -f unittest$(EXEEXT) testgc$(EXEEXT) 
    352790    rm -f config/gen_config1.o config/gen_unix.o config/gen_math.o 
     
    354792    rm -f frag-gen frag-math frag-unix 
    355793    rm -f $(config_d_src) $(configunix_d_src) 
    356     rm -f libgdc.a 
    357     rm -f libgdc_t.a 
     794    rm -f libgphobos.a 
     795    rm -f libgphobos_t.a 
     796# Tell versions [3.59,3.63) of GNU make to not export all variables. 
     797# Otherwise a system limit (for SysV at least) may be exceeded. 
     798.NOEXPORT: 
  • trunk/lib/compiler/gdc/acinclude.m4

    r1195 r1857  
    11dnl Unix-specific configuration 
    2 AC_DEFUN(DPHOBOS_CONFIGURE_UNIX,[ 
     2AC_DEFUN([DPHOBOS_CONFIGURE_UNIX],[ 
    33 
    44AC_CHECK_HEADERS(pthread.h,:, 
     
    165165 
    166166dnl Garbage collection configuration 
    167 AC_DEFUN(DPHOBOS_CONFIGURE_GC, [ 
     167AC_DEFUN([DPHOBOS_CONFIGURE_GC], [ 
    168168 
    169169# Not for Tango 
  • trunk/lib/compiler/gdc/aclocal.m4

    r839 r1857  
    1 # generated automatically by aclocal 1.9.5 -*- Autoconf -*- 
     1# generated automatically by aclocal 1.9.6 -*- Autoconf -*- 
    22 
    33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 
     
    1212# PARTICULAR PURPOSE. 
    1313 
     14# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc. 
     15# 
     16# This file is free software; the Free Software Foundation 
     17# gives unlimited permission to copy and/or distribute it, 
     18# with or without modifications, as long as this notice is preserved. 
     19 
     20# AM_AUTOMAKE_VERSION(VERSION) 
     21# ---------------------------- 
     22# Automake X.Y traces this macro to ensure aclocal.m4 has been 
     23# generated from the m4 files accompanying Automake X.Y. 
     24AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) 
     25 
     26# AM_SET_CURRENT_AUTOMAKE_VERSION 
     27# ------------------------------- 
     28# Call AM_AUTOMAKE_VERSION so it can be traced. 
     29# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 
     30AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 
     31     [AM_AUTOMAKE_VERSION([1.9.6])]) 
     32 
     33# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*- 
     34 
     35# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc. 
     36# 
     37# This file is free software; the Free Software Foundation 
     38# gives unlimited permission to copy and/or distribute it, 
     39# with or without modifications, as long as this notice is preserved. 
     40 
     41# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 
     42# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to 
     43# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 
     44# 
     45# Of course, Automake must honor this variable whenever it calls a 
     46# tool from the auxiliary directory.  The problem is that $srcdir (and 
     47# therefore $ac_aux_dir as well) can be either absolute or relative, 
     48# depending on how configure is run.  This is pretty annoying, since 
     49# it makes $ac_aux_dir quite unusable in subdirectories: in the top 
     50# source directory, any form will work fine, but in subdirectories a 
     51# relative path needs to be adjusted first. 
     52# 
     53# $ac_aux_dir/missing 
     54#    fails when called from a subdirectory if $ac_aux_dir is relative 
     55# $top_srcdir/$ac_aux_dir/missing 
     56#    fails if $ac_aux_dir is absolute, 
     57#    fails when called from a subdirectory in a VPATH build with 
     58#          a relative $ac_aux_dir 
     59# 
     60# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 
     61# are both prefixed by $srcdir.  In an in-source build this is usually 
     62# harmless because $srcdir is `.', but things will broke when you 
     63# start a VPATH build or use an absolute $srcdir. 
     64#