Changeset 1857
- Timestamp:
- 03/06/07 23:48:02 (2 years ago)
- Files:
-
- trunk/lib/build-gdc.sh (modified) (1 diff)
- trunk/lib/compiler/gdc/Makefile.am (added)
- trunk/lib/compiler/gdc/Makefile.in (modified) (7 diffs)
- trunk/lib/compiler/gdc/acinclude.m4 (modified) (2 diffs)
- trunk/lib/compiler/gdc/aclocal.m4 (modified) (2 diffs)
- trunk/lib/compiler/gdc/config.h.in (modified) (2 diffs)
- trunk/lib/compiler/gdc/config/unix-head (modified) (1 diff)
- trunk/lib/compiler/gdc/configure (modified) (438 diffs)
- trunk/lib/compiler/gdc/configure.in (modified) (8 diffs)
- trunk/lib/compiler/gdc/lifetime.d (modified) (2 diffs)
- trunk/lib/compiler/gdc/typeinfo/ti_delegate.d (moved) (moved from trunk/lib/compiler/gdc/typeinfo/ti_Delegate.d)
- trunk/lib/gdc-posix.mak (modified) (1 diff)
- trunk/lib/install-gdc.sh (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/build-gdc.sh
r1741 r1857 1 1 #!/bin/bash 2 2 cd "`dirname $0`" 3 4 GDC_VER="`gdc --version | grep '^gdc' | sed 's/^.*gdc \([0-9]*\.[0-9]*\).*$/\1/'`" 5 GDC_MAJOR="`echo $GDC_VER | sed 's/\..*//'`" 6 GDC_MINOR="`echo $GDC_VER | sed 's/.*\.//'`" 7 8 if [ "$GDC_MAJOR" = "0" -a \ 9 "$GDC_MINOR" -lt "23" ] 10 then 11 echo 'This version of Tango requires GDC 0.23 or newer.' 12 exit 1 13 fi 3 14 4 15 pushd ./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 1 17 # GDC -- D front-end for GCC 2 18 # Copyright (C) 2004 David Friedman … … 16 32 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 33 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 36 top_srcdir = @top_srcdir@ 37 VPATH = @srcdir@ 38 pkgdatadir = $(datadir)/@PACKAGE@ 39 pkglibdir = $(libdir)/@PACKAGE@ 40 pkgincludedir = $(includedir)/@PACKAGE@ 41 top_builddir = . 42 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 43 INSTALL = @INSTALL@ 44 install_sh_DATA = $(install_sh) -c -m 644 45 install_sh_PROGRAM = $(install_sh) -c 46 install_sh_SCRIPT = $(install_sh) -c 47 INSTALL_HEADER = $(INSTALL_DATA) 48 transform = $(program_transform_name) 49 NORMAL_INSTALL = : 50 PRE_INSTALL = : 51 POST_INSTALL = : 52 NORMAL_UNINSTALL = : 53 PRE_UNINSTALL = : 54 POST_UNINSTALL = : 55 build_triplet = @build@ 56 host_triplet = @host@ 57 target_triplet = @target@ 58 noinst_PROGRAMS = minimal$(EXEEXT) 59 DIST_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 64 subdir = . 65 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 66 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 67 $(top_srcdir)/configure.in 68 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 69 $(ACLOCAL_M4) 70 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ 71 configure.lineno configure.status.lineno 72 mkinstalldirs = $(install_sh) -d 73 CONFIG_HEADER = config.h 74 CONFIG_CLEAN_FILES = frag-ac phobos-ver-syms 75 PROGRAMS = $(noinst_PROGRAMS) 76 am_minimal_OBJECTS = minimal.$(OBJEXT) 77 minimal_OBJECTS = $(am_minimal_OBJECTS) 78 minimal_LDADD = $(LDADD) 79 DEFAULT_INCLUDES = -I. -I$(srcdir) -I. 80 depcomp = 81 am__depfiles_maybe = 82 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 83 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 84 CCLD = $(CC) 85 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 86 SOURCES = $(minimal_SOURCES) 87 DIST_SOURCES = $(minimal_SOURCES) 88 ETAGS = etags 89 CTAGS = ctags 90 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 91 distdir = $(PACKAGE)-$(VERSION) 92 top_distdir = $(distdir) 93 am__remove_distdir = \ 94 { test ! -d $(distdir) \ 95 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ 96 && rm -fr $(distdir); }; } 97 DIST_ARCHIVES = $(distdir).tar.gz 98 GZIP_ENV = --best 99 distuninstallcheck_listfiles = find . -type f -print 100 distcleancheck_listfiles = find . -type f -print 101 srcdir = @srcdir@ 102 ACLOCAL = @ACLOCAL@ 103 AMTAR = @AMTAR@ 23 104 AR = @AR@ 105 AUTOCONF = @AUTOCONF@ 106 AUTOHEADER = @AUTOHEADER@ 107 AUTOMAKE = @AUTOMAKE@ 108 AWK = @AWK@ 109 CC = @CC@ 110 CFLAGS = @CFLAGS@ 111 CPP = @CPP@ 112 CPPFLAGS = @CPPFLAGS@ 113 CXX = @CXX@ 114 CXXFLAGS = @CXXFLAGS@ 115 CYGPATH_W = @CYGPATH_W@ 116 DCFG_CBRIDGE_STDIO = @DCFG_CBRIDGE_STDIO@ 117 DCFG_EXECVPE = @DCFG_EXECVPE@ 118 DCFG_EXP2_LOG2 = @DCFG_EXP2_LOG2@ 119 DCFG_FWIDE = @DCFG_FWIDE@ 120 DCFG_GETPWNAM_R = @DCFG_GETPWNAM_R@ 121 DCFG_MMAP = @DCFG_MMAP@ 122 DCFG_NAN = @DCFG_NAN@ 123 DCFG_NEARBYINT = @DCFG_NEARBYINT@ 124 DCFG_PTHREAD_SUSPEND = @DCFG_PTHREAD_SUSPEND@ 125 DCFG_ROUND = @DCFG_ROUND@ 126 DCFG_SA_LEN = @DCFG_SA_LEN@ 127 DCFG_SEMAPHORE_IMPL = @DCFG_SEMAPHORE_IMPL@ 128 DCFG_SPAWNVP = @DCFG_SPAWNVP@ 129 DCFG_STRTOLD = @DCFG_STRTOLD@ 130 DCFG_TGAMMA = @DCFG_TGAMMA@ 131 DCFG_TRUNC = @DCFG_TRUNC@ 132 DCFG_UNIX = @DCFG_UNIX@ 133 DEFS = @DEFS@ 134 DFLAGS = @DFLAGS@ 135 # D_EXTRA_OBJS=@D_EXTRA_OBJS@ 136 137 # currently just add compatibility for a bug 138 D_EXTRA_OBJS = @D_EXTRA_OBJS@ gcc/support.o 139 D_FRAGMENT_SRCDIR = @D_FRAGMENT_SRCDIR@ 140 D_GENERATE_FRAGMENTS_FALSE = @D_GENERATE_FRAGMENTS_FALSE@ 141 D_GENERATE_FRAGMENTS_TRUE = @D_GENERATE_FRAGMENTS_TRUE@ 142 D_MEM_FLAGS = @D_MEM_FLAGS@ 143 D_MEM_MODULES = @D_MEM_MODULES@ 144 D_PREREQ_SRCS = @D_PREREQ_SRCS@ 145 ECHO_C = @ECHO_C@ 146 ECHO_N = @ECHO_N@ 147 ECHO_T = @ECHO_T@ 148 EGREP = @EGREP@ 149 EXEEXT = @EXEEXT@ 150 GDC = @GDC@ 151 GREP = @GREP@ 152 INSTALL_DATA = @INSTALL_DATA@ 153 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 154 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 155 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 156 LDFLAGS = @LDFLAGS@ 157 LIBOBJS = @LIBOBJS@ 158 LIBS = @LIBS@ 159 LTLIBOBJS = @LTLIBOBJS@ 160 MAKEINFO = @MAKEINFO@ 161 OBJEXT = @OBJEXT@ 162 PACKAGE = @PACKAGE@ 163 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 164 PACKAGE_NAME = @PACKAGE_NAME@ 165 PACKAGE_STRING = @PACKAGE_STRING@ 166 PACKAGE_TARNAME = @PACKAGE_TARNAME@ 167 PACKAGE_VERSION = @PACKAGE_VERSION@ 168 PATH_SEPARATOR = @PATH_SEPARATOR@ 24 169 RANLIB = @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 170 SET_MAKE = @SET_MAKE@ 171 SHELL = @SHELL@ 172 STRIP = @STRIP@ 173 VERSION = @VERSION@ 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 datadir = @datadir@ 186 datarootdir = @datarootdir@ 187 docdir = @docdir@ 188 dvidir = @dvidir@ 189 exec_prefix = @exec_prefix@ 190 gdc_include_dir = @gdc_include_dir@ 191 host = @host@ 192 host_alias = . 193 host_cpu = @host_cpu@ 194 host_os = @host_os@ 195 host_vendor = @host_vendor@ 196 htmldir = @htmldir@ 197 includedir = @includedir@ 198 infodir = @infodir@ 199 install_sh = @install_sh@ 200 libdir = @libdir@ 201 libexecdir = @libexecdir@ 202 localedir = @localedir@ 203 localstatedir = @localstatedir@ 204 mandir = @mandir@ 205 mkdir_p = @mkdir_p@ 206 oldincludedir = @oldincludedir@ 207 pdfdir = @pdfdir@ 66 208 phobos_toolexecdir = @phobos_toolexecdir@ 67 209 phobos_toolexeclibdir = @phobos_toolexeclibdir@ 210 prefix = @prefix@ 211 program_transform_name = @program_transform_name@ 212 psdir = @psdir@ 213 sbindir = @sbindir@ 214 sharedstatedir = @sharedstatedir@ 215 sysconfdir = @sysconfdir@ 216 target = @target@ 217 target_alias = @target_alias@ 218 target_cpu = @target_cpu@ 219 target_os = @target_os@ 220 target_vendor = @target_vendor@ 221 OUR_CFLAGS = @DEFS@ -I. 222 D_EXTRA_DFLAGS = -nostdinc -pipe -I../../.. 223 ALL_DFLAGS = $(DFLAGS) $(D_MEM_FLAGS) $(D_EXTRA_DFLAGS) $(MULTIFLAGS) 68 224 toolexecdir = $(phobos_toolexecdir) 69 225 toolexeclibdir = $(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= \ 226 config_d_src = $(host_alias)/gcc/config.d 227 configunix_d_src = $(host_alias)/gcc/configunix.d 228 229 # This is a hook to get Automake to build libgphobos.a 230 BUILT_SOURCES = minimal.c 231 minimal_SOURCES = minimal.c 232 minimal_DEPENDENCIES = libgphobos.a 233 SUFFIXES = .d 234 TI = 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 244 OBJ_BASE = \ 113 245 aaA.o \ 114 246 aApply.o \ … … 118 250 arraycat.o \ 119 251 cast.o \ 252 cmain.o \ 120 253 critical.o \ 121 254 dgccmain2.o \ … … 131 264 switch.o \ 132 265 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 267 OBJ_UTIL = \ 147 268 util/console.o \ 148 269 util/ctype.o \ … … 150 271 util/utf.o 151 272 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 273 MAIN_OBJS = $(subst ti_,typeinfo/ti_,$(TI)) 274 275 # This should not be linked into a shared library. 276 CMAIN_OBJS = 277 ZLIB_OBJS = 278 GC_OBJS = 279 GCC_OBJS = gcc/config.o gcc/unwind.o gcc/deh.o gcc/threadsem.o \ 280 gcc/cbridge_time.o 281 199 282 200 283 # 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 284 WINDOWS_OBJS = 215 285 CONFIG_D_FRAGMENTS = config/config-head frag-ac frag-gen frag-math config/config-mid config/config-tail 216 286 CONFIG_UNIX_FRAGMENTS = config/unix-head frag-unix config/unix-mid 217 287 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 289 ALL_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. 294 AM_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) 334 FLAGS_TO_PASS = $(AM_MAKEFLAGS) 335 all: $(BUILT_SOURCES) config.h 336 $(MAKE) $(AM_MAKEFLAGS) all-am 337 338 .SUFFIXES: 339 .SUFFIXES: .d .c .o .obj 340 am--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 356 Makefile: $(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 374 config.h: stamp-h1 375 @if test ! -f $@; then \ 376 rm -f stamp-h1; \ 377 $(MAKE) stamp-h1; \ 378 else :; fi 379 380 stamp-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 388 distclean-hdr: 389 -rm -f config.h stamp-h1 390 frag-ac: $(top_builddir)/config.status $(srcdir)/frag-ac.in 391 cd $(top_builddir) && $(SHELL) ./config.status $@ 392 phobos-ver-syms: $(top_builddir)/config.status $(srcdir)/phobos-ver-syms.in 393 cd $(top_builddir) && $(SHELL) ./config.status $@ 394 395 clean-noinstPROGRAMS: 396 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) 397 minimal$(EXEEXT): $(minimal_OBJECTS) $(minimal_DEPENDENCIES) 398 @rm -f minimal$(EXEEXT) 399 $(LINK) $(minimal_LDFLAGS) $(minimal_OBJECTS) $(minimal_LDADD) $(LIBS) 400 401 mostlyclean-compile: 402 -rm -f *.$(OBJEXT) 403 404 distclean-compile: 405 -rm -f *.tab.c 406 407 .c.obj: 408 $(COMPILE) -c `$(CYGPATH_W) '$<'` 409 uninstall-info-am: 410 411 ID: $(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 419 tags: TAGS 420 421 TAGS: $(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 436 ctags: CTAGS 437 CTAGS: $(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 451 GTAGS: 452 here=`$(am__cd) $(top_builddir) && pwd` \ 453 && cd $(top_srcdir) \ 454 && gtags -i $(GTAGS_ARGS) $$here 455 456 distclean-tags: 457 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 458 459 distdir: $(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) 494 dist-gzip: distdir 495 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 496 $(am__remove_distdir) 497 498 dist-bzip2: distdir 499 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 500 $(am__remove_distdir) 501 502 dist-tarZ: distdir 503 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z 504 $(am__remove_distdir) 505 506 dist-shar: distdir 507 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz 508 $(am__remove_distdir) 509 510 dist-zip: distdir 511 -rm -f $(distdir).zip 512 zip -rq $(distdir).zip $(distdir) 513 $(am__remove_distdir) 514 515 dist 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. 522 distcheck: 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;}' 568 distuninstallcheck: 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 577 distcleancheck: 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 586 check-am: all-am 587 $(MAKE) $(AM_MAKEFLAGS) check-local 588 check: $(BUILT_SOURCES) 589 $(MAKE) $(AM_MAKEFLAGS) check-am 590 all-am: Makefile $(PROGRAMS) config.h all-local 591 installdirs: 592 install: $(BUILT_SOURCES) 593 $(MAKE) $(AM_MAKEFLAGS) install-am 594 install-exec: install-exec-am 595 install-data: install-data-am 596 uninstall: uninstall-am 597 598 install-am: all-am 599 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 600 601 installcheck: installcheck-am 602 install-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 607 mostlyclean-generic: 608 609 clean-generic: 610 611 distclean-generic: 612 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 613 614 maintainer-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) 618 clean: clean-am 619 620 clean-am: clean-generic clean-local clean-noinstPROGRAMS \ 621 mostlyclean-am 622 623 distclean: distclean-am 624 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 625 -rm -f Makefile 626 distclean-am: clean-am distclean-compile distclean-generic \ 627 distclean-hdr distclean-tags 628 629 dvi: dvi-am 630 631 dvi-am: 632 633 html: html-am 634 635 info: info-am 636 637 info-am: 638 639 install-data-am: install-data-local 640 641 install-exec-am: install-exec-local 642 643 install-info: install-info-am 644 645 install-man: 646 647 installcheck-am: 648 649 maintainer-clean: maintainer-clean-am 650 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 651 -rm -rf $(top_srcdir)/autom4te.cache 652 -rm -f Makefile 653 maintainer-clean-am: distclean-am maintainer-clean-generic 654 655 mostlyclean: mostlyclean-am 656 657 mostlyclean-am: mostlyclean-compile mostlyclean-generic 658 659 pdf: pdf-am 660 661 pdf-am: 662 663 ps: ps-am 664 665 ps-am: 666 667 uninstall-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 684 minimal.c: 685 echo "int main() { return 0; }" > $@ 686 687 all-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 704 unittest: unittest.o libgphobos_t.a libgphobos.a 705 $(GDC) -o $@ $(CFLAGS) unittest.o -L./ -lgphobos_t $(LIBS) 706 707 gen_config1: config/gen_config1.o 708 $(CC) $(CFLAGS) -o $@ $^ 709 710 $(config_d_src): $(CONFIG_D_FRAGMENTS) stamp-tgtdir 711 cat $^ > $@ 712 713 gcc/config.o: $(config_d_src) 714 $(GDC) -o $@ $(ALL_DFLAGS) -c $< 715 gcc/config.t.o: gcc/config.o 716 cp gcc/config.o gcc/config.t.o 717 718 gen_math: config/gen_math.o 719 $(CC) $(CFLAGS) -o $@ $^ 720 721 config/gen_unix.o: config/gen_unix.c config/makestruct.h 722 723 gen_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 743 gcc/configunix.o: $(configunix_d_src) $(config_d_src) 744 $(GDC) -o $@ $(ALL_DFLAGS) -c $< 745 gcc/configunix.t.o: gcc/configunix.o 746 cp gcc/configunix.o gcc/configunix.t.o 747 748 gcc/cbridge_math.o: gcc/cbridge_math.c 749 $(CC) -o $@ $(OUR_CFLAGS) $(CFLAGS) -fno-strict-aliasing -c $< 750 751 libgphobos.a : $(ALL_PHOBOS_OBJS) $(CMAIN_OBJS) 752 $(AR) -r $@ $(ALL_PHOBOS_OBJS) $(CMAIN_OBJS) 753 $(RANLIB) $@ 754 755 libgphobos_t.a : $(ALL_PHOBOS_OBJS:.o=.t.o) $(CMAIN_OBJS) 756 $(AR) -r $@ $(ALL_PHOBOS_OBJS:.o=.t.o) $(CMAIN_OBJS) 757 $(RANLIB) $@ 220 758 221 759 # This has to be an empty file because it is included in the prerequisites of rules … … 226 764 touch $@ 227 765 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 766 check-local: unittest testgc 306 767 ./unittest 307 768 ./testgc 308 769 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 770 install-exec-local: $(D_PREREQ_SRCS) libgphobos.a 771 $(mkinstalldirs) $(DESTDIR)$(toolexeclibdir) 772 $(INSTALL) libgphobos.a $(DESTDIR)$(toolexeclibdir) 773 $(RANLIB) $(DESTDIR)$(toolexeclibdir)/libgphobos.a 774 775 install-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 785 clean-local: 786 rm -f $(ALL_PHOBOS_OBJS) $(CMAIN_OBJS) 787 rm -f $(ALL_PHOBOS_OBJS:.o=.t.o) 788 rm -f unittest.o 351 789 rm -f unittest$(EXEEXT) testgc$(EXEEXT) 352 790 rm -f config/gen_config1.o config/gen_unix.o config/gen_math.o … … 354 792 rm -f frag-gen frag-math frag-unix 355 793 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 1 1 dnl Unix-specific configuration 2 AC_DEFUN( DPHOBOS_CONFIGURE_UNIX,[2 AC_DEFUN([DPHOBOS_CONFIGURE_UNIX],[ 3 3 4 4 AC_CHECK_HEADERS(pthread.h,:, … … 165 165 166 166 dnl Garbage collection configuration 167 AC_DEFUN( DPHOBOS_CONFIGURE_GC, [167 AC_DEFUN([DPHOBOS_CONFIGURE_GC], [ 168 168 169 169 # 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 -*- 2 2 3 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, … … 12 12 # PARTICULAR PURPOSE. 13 13 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. 24 AC_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. 30 AC_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 #





