 |
Changeset 2854
- Timestamp:
- 11/11/07 10:29:46
(1 year ago)
- Author:
- keinfarbton
- Message:
Exp D2.0: merged from trunk -r2809:2853
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2835 |
r2854 |
|
| 24 | 24 | [networking/sockethello.d] |
|---|
| 25 | 25 | [networking/socketserver.d] |
|---|
| 26 | | [networking/vfs.d] |
|---|
| 27 | 26 | [system/argparser.d] |
|---|
| 28 | 27 | [system/localtime.d] |
|---|
| r2535 |
r2854 |
|
| 54 | 54 | networking/sockethello \ |
|---|
| 55 | 55 | networking/socketserver \ |
|---|
| 56 | | networking/vfs \ |
|---|
| 57 | 56 | system/argparser \ |
|---|
| 58 | 57 | system/localtime \ |
|---|
| r2465 |
r2854 |
|
| 2 | 2 | [Environment] |
|---|
| 3 | 3 | |
|---|
| 4 | | DFLAGS=-I%@P%/../import -L-L%@P%/../lib -version=Posix -version=Tango -L-ltango |
|---|
| | 4 | DFLAGS=-I%@P%/../import -L-L%@P%/../lib -version=Posix -version=Tango -defaultlib=dtango-base-dmd -debuglib=dtango-base-dmd -L-ldtango-user-tango |
|---|
| r2460 |
r2854 |
|
| 123 | 123 | # Just in case it's already installed, uninstall it |
|---|
| 124 | 124 | ./install-dmd.sh --uninstall > /dev/null 2> /dev/null |
|---|
| 125 | | ./install-dmd.sh --prefix $DMDDIR > /dev/null 2> /dev/null || die 1 "Failed to install Tango core" |
|---|
| | 125 | ./install-dmd.sh --prefix $DMDDIR --verify > /dev/null 2> /dev/null || die 1 "Failed to install Tango core" |
|---|
| 126 | 126 | |
|---|
| 127 | 127 | if [ ! -e "$DMDDIR/bin/dmd.conf" ] |
|---|
| … | … | |
| 131 | 131 | if [ ! "`grep '\-L\-ltango' $DMDDIR/bin/dmd.conf`" ] |
|---|
| 132 | 132 | then |
|---|
| 133 | | sed -i.bak -e 's/^DFLAGS=.*$/& -L-ltango/' $DMDDIR/bin/dmd.conf |
|---|
| | 133 | sed -i.bak -e 's/^DFLAGS=.*$/& -L-ldtango-user-tango/' $DMDDIR/bin/dmd.conf |
|---|
| 134 | 134 | fi |
|---|
| 135 | 135 | fi |
|---|
| r2425 |
r2854 |
|
| 38 | 38 | cd lib || die 1 "Failed to cd to lib" |
|---|
| 39 | 39 | ./build-dmd.sh || die 1 "Failed to build the core" |
|---|
| 40 | | #./install-dmd.sh || die 1 "Failed to install the core" |
|---|
| 41 | 40 | cd .. || die 1 |
|---|
| 42 | 41 | fi |
|---|
| … | … | |
| 47 | 46 | |
|---|
| 48 | 47 | # 2) The rest |
|---|
| 49 | | if [ ! -e libtango.a ] |
|---|
| | 48 | if [ ! -e libdtango-user-tango.a ] |
|---|
| 50 | 49 | then |
|---|
| 51 | 50 | cd lib || die 1 "Failed to cd to lib" |
|---|
| … | … | |
| 68 | 67 | |
|---|
| 69 | 68 | mkdir -p lib |
|---|
| 70 | | cp ../lib/libtango.a lib || die 1 "Failed to copy in the tango .a file" |
|---|
| | 69 | cp ../lib/libdtango-user-tango.a lib || die 1 "Failed to copy in the tango .a file" |
|---|
| 71 | 70 | |
|---|
| 72 | 71 | find include/d -name .svn | xargs rm -rf |
|---|
| r2425 |
r2854 |
|
| 39 | 39 | cd "`dirname $0`" |
|---|
| 40 | 40 | |
|---|
| 41 | | # revert to phobos if earlier evidence of existense is found |
|---|
| | 41 | # Revert to Phobos if earlier evidence of existense is found |
|---|
| 42 | 42 | if [ -e "$PREFIX/lib/libphobos.a.phobos" ] |
|---|
| 43 | 43 | then |
|---|
| 44 | 44 | mv $PREFIX/lib/libphobos.a.phobos $PREFIX/lib/libphobos.a |
|---|
| | 45 | else |
|---|
| | 46 | if [ -e "$PREFIX/lib/libphobos.a" ] |
|---|
| | 47 | then |
|---|
| | 48 | rm -f $PREFIX/lib/libphobos.a |
|---|
| | 49 | fi |
|---|
| 45 | 50 | fi |
|---|
| 46 | 51 | if [ -e "$PREFIX/include/d/object.d.phobos" ] |
|---|
| … | … | |
| 50 | 55 | if [ -e "$PREFIX/bin/dmd.conf.phobos" ] |
|---|
| 51 | 56 | then |
|---|
| 52 | | mv $PREFIX/bin/dmd.conf $PFEFIX/bin/dmd.conf.tango |
|---|
| | 57 | mv $PREFIX/bin/dmd.conf $PREFIX/bin/dmd.conf.tango |
|---|
| 53 | 58 | mv $PREFIX/bin/dmd.conf.phobos $PREFIX/bin/dmd.conf |
|---|
| 54 | 59 | fi |
|---|
| … | … | |
| 73 | 78 | fi |
|---|
| 74 | 79 | |
|---|
| | 80 | # Prior to Tango 0.99.3 |
|---|
| 75 | 81 | if [ -e "$PREFIX/lib/libtango.a" ] |
|---|
| 76 | 82 | then |
|---|
| 77 | 83 | rm -f $PREFIX/lib/libtango.a |
|---|
| 78 | 84 | fi |
|---|
| | 85 | |
|---|
| | 86 | # Since Tango 0.99.3 |
|---|
| | 87 | if [ -e "$PREFIX/lib/libdtango-base-dmd.a" ] |
|---|
| | 88 | then |
|---|
| | 89 | rm -f $PREFIX/lib/libdtango-base-dmd.a |
|---|
| | 90 | fi |
|---|
| | 91 | |
|---|
| | 92 | if [ -e "$PREFIX/lib/libdtango-user-tango.a" ] |
|---|
| | 93 | then |
|---|
| | 94 | rm -f $PREFIX/lib/libdtango-user-tango.a |
|---|
| | 95 | fi |
|---|
| | 96 | |
|---|
| 79 | 97 | die "Done!" 0 |
|---|
| 80 | | |
|---|
| r2607 |
r2854 |
|
| 19 | 19 | path = args[1] ~ "\\tango"; |
|---|
| 20 | 20 | |
|---|
| 21 | | outf.write ("-c -n -p256\ntango.lib\n"); |
|---|
| | 21 | outf.write ("-c -n -p256\ndtango-user-tango.lib\n"); |
|---|
| 22 | 22 | foreach(file; scan( path, ".d" ).files ) |
|---|
| 23 | 23 | { |
|---|
| r2465 |
r2854 |
|
| 52 | 52 | if( uninst ) |
|---|
| 53 | 53 | { |
|---|
| 54 | | restoreFile( libPath.file( "phobos.lib" ) ); |
|---|
| 55 | 54 | restoreFile( binPath.file( "sc.ini" ) ); |
|---|
| 56 | | removeFile( libPath.file( "tango.lib" ) ); |
|---|
| 57 | | removeFile( libPath.file( "usergdi32.lib" ) ); |
|---|
| | 55 | removeFile( libPath.file( "dtango-user-tango.lib" ) ); |
|---|
| | 56 | removeFile( libPath.file( "dtango-arch-win32.lib" ) ); |
|---|
| | 57 | removeFile( libPath.file( "dtango-base-dmd.lib" ) ); |
|---|
| 58 | 58 | |
|---|
| 59 | 59 | removeFile( impPath.file( "object.di" ) ); |
|---|
| … | … | |
| 70 | 70 | copyFile( impPath.file( "object.di" ), "..\\" ); |
|---|
| 71 | 71 | |
|---|
| 72 | | if( !prefix ) |
|---|
| 73 | | backupFile( libPath.file( "phobos.lib" ) ); |
|---|
| 74 | | scope(failure) |
|---|
| 75 | | { |
|---|
| 76 | | if( !prefix ) |
|---|
| 77 | | restoreFile( libPath.file( "phobos.lib" ) ); |
|---|
| 78 | | } |
|---|
| 79 | | copyFile( libPath.file( "phobos.lib" ), ".\\" ); |
|---|
| 80 | | copyFile( libPath.file( "tango.lib" ), ".\\" ); |
|---|
| 81 | | copyFile( libPath.file( "usergdi32.lib" ), ".\\" ); |
|---|
| | 72 | copyFile( libPath.file( "dtango-user-tango.lib" ), ".\\" ); |
|---|
| | 73 | copyFile( libPath.file( "dtango-arch-win32.lib" ), ".\\" ); |
|---|
| | 74 | copyFile( libPath.file( "dtango-base-dmd.lib" ), ".\\" ); |
|---|
| 82 | 75 | |
|---|
| 83 | 76 | backupFile( binPath.file( "sc.ini" ) ); |
|---|
| … | … | |
| 222 | 215 | "[Environment]\n" |
|---|
| 223 | 216 | "LIB=\"" ~ libPath ~ "\"\n" |
|---|
| 224 | | "DFLAGS=\"-I" ~ impPath ~ "\" -version=Tango -L+tango.lib\n" |
|---|
| | 217 | "DFLAGS=\"-I" ~ impPath ~ "\" -version=Tango -defaultlib=dtango-base-dmd.lib -L+dtango-user-tango.lib\n" |
|---|
| 225 | 218 | "LINKCMD=%@P%\\..\\..\\dm\\bin\\link.exe\n"; |
|---|
| 226 | 219 | } |
|---|
| r2242 |
r2854 |
|
| 1 | 1 | #!/bin/sh |
|---|
| 2 | 2 | |
|---|
| | 3 | FAILED=0 |
|---|
| 3 | 4 | # Written by Anders F. Björklund |
|---|
| 4 | 5 | cd "`dirname \"$0\"`" |
|---|
| … | … | |
| 38 | 39 | for lib in $LIBS; do test -r $lib && rm $lib; done |
|---|
| 39 | 40 | |
|---|
| 40 | | ./build-gdc-x.sh powerpc-apple-darwin8 |
|---|
| 41 | | for lib in $LIBS; do mv $lib $lib.ppc; done |
|---|
| | 41 | if [ "`./build-gdc-x.sh powerpc-apple-darwin8 1>&2`" = "0" ] |
|---|
| | 42 | then |
|---|
| | 43 | for lib in $LIBS; do mv $lib $lib.ppc; done |
|---|
| | 44 | else |
|---|
| | 45 | FAILED=1 |
|---|
| | 46 | fi |
|---|
| 42 | 47 | |
|---|
| 43 | | ./build-gdc-x.sh i686-apple-darwin8 |
|---|
| 44 | | for lib in $LIBS; do mv $lib $lib.i386; done |
|---|
| | 48 | if [ "$FAILED" = "0" ] |
|---|
| | 49 | then |
|---|
| | 50 | if [ "`./build-gdc-x.sh i686-apple-darwin8 1>&2`" = "0" ] |
|---|
| | 51 | then |
|---|
| | 52 | for lib in $LIBS; do mv $lib $lib.i386; done |
|---|
| | 53 | else |
|---|
| | 54 | FAILED=1 |
|---|
| | 55 | fi |
|---|
| | 56 | fi |
|---|
| 45 | 57 | |
|---|
| 46 | | for lib in $LIBS; do \ |
|---|
| 47 | | lipo -create -output $lib $lib.ppc $lib.i386; done |
|---|
| 48 | | |
|---|
| | 58 | if [ "$FAILED" = "1" ] |
|---|
| | 59 | then |
|---|
| | 60 | echo 'Failed to build universal binaries. Trying GDC.' |
|---|
| | 61 | ./build-gdc.sh |
|---|
| | 62 | else |
|---|
| | 63 | for lib in $LIBS; do \ |
|---|
| | 64 | lipo -create -output $lib $lib.ppc $lib.i386; done |
|---|
| | 65 | fi |
|---|
| r2465 |
r2854 |
|
| 1 | 1 | #!/bin/bash |
|---|
| | 2 | |
|---|
| | 3 | die() { |
|---|
| | 4 | echo "$1" |
|---|
| | 5 | exit $2 |
|---|
| | 6 | } |
|---|
| | 7 | |
|---|
| 2 | 8 | cd "`dirname $0`" |
|---|
| 3 | 9 | |
|---|
| … | … | |
| 14 | 20 | CONFIGURE_FLAGS="--enable-phobos-config-dir=$2" |
|---|
| 15 | 21 | fi |
|---|
| | 22 | |
|---|
| | 23 | $HOST-gdc --help >& /dev/null || die "$HOST-gdc not found on your \$PATH!" 1 |
|---|
| | 24 | |
|---|
| 16 | 25 | HOST_ARCH="`echo $HOST | sed 's/-.*//'`" |
|---|
| 17 | 26 | ADD_CFLAGS= |
|---|
| r2810 |
r2854 |
|
| 24 | 24 | |
|---|
| 25 | 25 | The script must be called from within lib/ and the resulting |
|---|
| 26 | | binaries will be found there. The build requires that libphobos.a/ |
|---|
| | 26 | binaries will be found there. The build requires that libdtango-base-dmd.a/ |
|---|
| 27 | 27 | libgphobos.a already was built.' |
|---|
| 28 | 28 | exit 0 |
|---|
| … | … | |
| 151 | 151 | elif [ "$1" = "dmd" ] |
|---|
| 152 | 152 | then |
|---|
| 153 | | build dmd libtango.a |
|---|
| | 153 | build dmd libdtango-user-tango.a libdtango-base-dmd.a |
|---|
| 154 | 154 | elif [ "$1" = "gdc" ] |
|---|
| 155 | 155 | then |
|---|
| r2693 |
r2854 |
|
| 10 | 10 | # make clean |
|---|
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| | 12 | |
|---|
| | 13 | LIB_TARGET=libdtango-cc-tango.a |
|---|
| | 14 | LIB_MASK=libdtango-cc-tango*.a |
|---|
| 12 | 15 | |
|---|
| 13 | 16 | CP=cp -f |
|---|
| … | … | |
| 99 | 102 | ###################################################### |
|---|
| 100 | 103 | |
|---|
| 101 | | tango.lib : libtango.a |
|---|
| | 104 | tango.lib : $(LIB_TARGET) |
|---|
| 102 | 105 | |
|---|
| 103 | | libtango.a : $(ALL_OBJS) |
|---|
| | 106 | $(LIB_TARGET) : $(ALL_OBJS) |
|---|
| 104 | 107 | $(RM) $@ |
|---|
| 105 | 108 | $(LC) $@ $(ALL_OBJS) |
|---|
| … | … | |
| 121 | 124 | $(RM) $(ALL_OBJS) |
|---|
| 122 | 125 | $(RM) $(ALL_DOCS) |
|---|
| 123 | | find . -name "libtango*.a" | xargs $(RM) |
|---|
| | 126 | find . -name "$(LIB_MASK)" | xargs $(RM) |
|---|
| 124 | 127 | |
|---|
| 125 | 128 | install : |
|---|
| … | … | |
| 129 | 132 | find . -name "*.html" -exec cp -f {} $(DOC_DEST)/{} \; |
|---|
| 130 | 133 | $(MD) $(LIB_DEST) |
|---|
| 131 | | find . -name "libtango*.a" -exec cp -f {} $(LIB_DEST)/{} \; |
|---|
| | 134 | find . -name "$(LIB_MASK)" -exec cp -f {} $(LIB_DEST)/{} \; |
|---|
| r2693 |
r2854 |
|
| 10 | 10 | # make clean |
|---|
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| | 12 | |
|---|
| | 13 | LIB_TARGET=dtango-cc-tango.lib |
|---|
| | 14 | LIB_MASK=dtango-cc-tango*.lib |
|---|
| 12 | 15 | |
|---|
| 13 | 16 | CP=xcopy /y |
|---|
| … | … | |
| 91 | 94 | ###################################################### |
|---|
| 92 | 95 | |
|---|
| 93 | | tango.lib : $(ALL_OBJS) |
|---|
| | 96 | tango.lib : $(LIB_TARGET) |
|---|
| | 97 | |
|---|
| | 98 | $(LIB_TARGET) : $(ALL_OBJS) |
|---|
| 94 | 99 | $(RM) $@ |
|---|
| 95 | 100 | $(LC) -c -n $@ $(ALL_OBJS) |
|---|
| … | … | |
| 111 | 116 | $(RM) $(ALL_OBJS) |
|---|
| 112 | 117 | $(RM) $(ALL_DOCS) |
|---|
| 113 | | $(RM) tango*.lib |
|---|
| | 118 | $(RM) $(LIB_MASK) |
|---|
| 114 | 119 | |
|---|
| 115 | 120 | install : |
|---|
| … | … | |
| 119 | 124 | $(CP) /s *.html $(DOC_DEST)\. |
|---|
| 120 | 125 | $(MD) $(LIB_DEST) |
|---|
| 121 | | $(CP) tango*.lib $(LIB_DEST)\. |
|---|
| | 126 | $(CP) $(LIB_MASK) $(LIB_DEST)\. |
|---|
| r2771 |
r2854 |
|
| 25 | 25 | extern (Windows) export int WideCharToMultiByte(uint, uint, wchar_t*, int, char*, int, char*, int); |
|---|
| 26 | 26 | pragma(lib, "shell32.lib"); // needed for CommandLineToArgvW |
|---|
| 27 | | pragma(lib, "usergdi32.lib"); // links Tango's Win32 library to reduce EXE size |
|---|
| | 27 | pragma(lib, "dtango-arch-win32.lib"); // links Tango's Win32 library to reduce EXE size |
|---|
| 28 | 28 | } |
|---|
| 29 | 29 | |
|---|
| r2465 |
r2854 |
|
| 10 | 10 | # make clean |
|---|
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| | 12 | |
|---|
| | 13 | LIB_TARGET=libdtango-rt-dmd.a |
|---|
| | 14 | LIB_MASK=libdtango-rt-dmd*.a |
|---|
| 12 | 15 | |
|---|
| 13 | 16 | CP=cp -f |
|---|
| … | … | |
| 148 | 151 | ###################################################### |
|---|
| 149 | 152 | |
|---|
| 150 | | dmd.lib : libdmd.a |
|---|
| | 153 | dmd.lib : $(LIB_TARGET) |
|---|
| 151 | 154 | |
|---|
| 152 | | libdmd.a : $(ALL_OBJS) |
|---|
| | 155 | $(LIB_TARGET) : $(ALL_OBJS) |
|---|
| 153 | 156 | $(RM) $@ |
|---|
| 154 | 157 | $(LC) $@ $(ALL_OBJS) |
|---|
| … | … | |
| 163 | 166 | $(RM) $(ALL_OBJS) |
|---|
| 164 | 167 | $(RM) $(ALL_DOCS) |
|---|
| 165 | | $(RM) libdmd*.a |
|---|
| | 168 | $(RM) $(LIB_MASK) |
|---|
| 166 | 169 | |
|---|
| 167 | 170 | install : |
|---|
| 168 | 171 | $(MD) $(LIB_DEST) |
|---|
| 169 | | $(CP) libdmd*.a $(LIB_DEST)/. |
|---|
| | 172 | $(CP) $(LIB_MASK) $(LIB_DEST)/. |
|---|
| r1968 |
r2854 |
|
| 10 | 10 | # make clean |
|---|
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| | 12 | |
|---|
| | 13 | LIB_TARGET=dtango-rt-dmd.lib |
|---|
| | 14 | LIB_MASK=dtango-rt-dmd*.lib |
|---|
| 12 | 15 | |
|---|
| 13 | 16 | CP=xcopy /y |
|---|
| … | … | |
| 138 | 141 | ###################################################### |
|---|
| 139 | 142 | |
|---|
| 140 | | dmd.lib : $(ALL_OBJS) |
|---|
| | 143 | dmd.lib : $(LIB_TARGET) |
|---|
| | 144 | |
|---|
| | 145 | $(LIB_TARGET) : $(ALL_OBJS) |
|---|
| 141 | 146 | $(RM) $@ |
|---|
| 142 | 147 | $(LC) -c -n $@ $(ALL_OBJS) minit.obj |
|---|
| … | … | |
| 151 | 156 | $(RM) $(ALL_OBJS) |
|---|
| 152 | 157 | $(RM) $(ALL_DOCS) |
|---|
| 153 | | $(RM) dmd*.lib |
|---|
| | 158 | $(RM) $(LIB_MASK) |
|---|
| 154 | 159 | |
|---|
| 155 | 160 | install : |
|---|
| 156 | 161 | $(MD) $(LIB_DEST) |
|---|
| 157 | | $(CP) dmd*.lib $(LIB_DEST)\. |
|---|
| | 162 | $(CP) $(LIB_MASK) $(LIB_DEST)\. |
|---|
| r2695 |
r2854 |
|
| 1 | | # Makefile to build D runtime library libphobos.a for Linux |
|---|
| | 1 | # Makefile to build D runtime library libdtango-base-dmd.a for Linux |
|---|
| 2 | 2 | # Designed to work with GNU make |
|---|
| 3 | 3 | # Targets: |
|---|
| … | … | |
| 5 | 5 | # Same as make all |
|---|
| 6 | 6 | # make lib |
|---|
| 7 | | # Build libphobos.a |
|---|
| | 7 | # Build libdtango-base-dmd.a |
|---|
| 8 | 8 | # make doc |
|---|
| 9 | 9 | # Generate documentation |
|---|
| 10 | 10 | # make clean |
|---|
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| | 12 | |
|---|
| | 13 | LIB_TARGET=libdtango-base-dmd.a |
|---|
| | 14 | LIB_MASK=libdtango-base-dmd*.a |
|---|
| | 15 | |
|---|
| | 16 | DIR_CC=./common/tango |
|---|
| | 17 | DIR_RT=./compiler/dmd |
|---|
| | 18 | DIR_GC=./gc/basic |
|---|
| 12 | 19 | |
|---|
| 13 | 20 | CP=cp -f |
|---|
| … | … | |
| 36 | 43 | |
|---|
| 37 | 44 | lib : $(ALL_OBJS) |
|---|
| 38 | | make -C compiler/dmd -fposix.mak lib |
|---|
| 39 | | make -C gc/basic -fposix.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" |
|---|
| 40 | | make -C common/tango -fposix.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" |
|---|
| | 45 | make -C $(DIR_CC) -fposix.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" |
|---|
| | 46 | make -C $(DIR_RT) -fposix.mak lib |
|---|
| | 47 | make -C $(DIR_GC) -fposix.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" |
|---|
| 41 | 48 | find . -name "libphobos*.a" | xargs $(RM) |
|---|
| 42 | | $(LC) libphobos2.a `find ./compiler/dmd -name "*.o" | xargs echo` |
|---|
| 43 | | $(LC) libphobos2.a `find ./gc/basic -name "*.o" | xargs echo` |
|---|
| 44 | | $(LC) libphobos2.a `find ./common/tango -name "*.o" | xargs echo` |
|---|
| | 49 | $(LC) $(LIB_TARGET) `find $(DIR_CC) -name "*.o" | xargs echo` |
|---|
| | 50 | $(LC) $(LIB_TARGET) `find $(DIR_RT) -name "*.o" | xargs echo` |
|---|
| | 51 | $(LC) $(LIB_TARGET) `find $(DIR_GC) -name "*.o" | xargs echo` |
|---|
| 45 | 52 | |
|---|
| 46 | 53 | doc : $(ALL_DOCS) |
|---|
| 47 | | make -C compiler/dmd -fposix.mak doc |
|---|
| 48 | | make -C gc/basic -fposix.mak doc |
|---|
| 49 | | make -C common/tango -fposix.mak doc |
|---|
| | 54 | make -C $(DIR_CC) -fposix.mak doc |
|---|
| | 55 | make -C $(DIR_RT) -fposix.mak doc |
|---|
| | 56 | make -C $(DIR_GC) -fposix.mak doc |
|---|
| 50 | 57 | |
|---|
| 51 | 58 | ###################################################### |
|---|
| … | … | |
| 55 | 62 | $(RM) $(ALL_OBJS) |
|---|
| 56 | 63 | $(RM) $(ALL_DOCS) |
|---|
| 57 | | make -C compiler/dmd -fposix.mak clean |
|---|
| 58 | | make -C gc/basic -fposix.mak clean |
|---|
| 59 | | make -C common/tango -fposix.mak clean |
|---|
| 60 | | # $(RM) libphobos*.a |
|---|
| | 64 | make -C $(DIR_CC) -fposix.mak clean |
|---|
| | 65 | make -C $(DIR_RT) -fposix.mak clean |
|---|
| | 66 | make -C $(DIR_GC) -fposix.mak clean |
|---|
| | 67 | # $(RM) $(LIB_MASK) |
|---|
| 61 | 68 | |
|---|
| 62 | 69 | install : |
|---|
| 63 | | make -C compiler/dmd -fposix.mak install |
|---|
| 64 | | make -C gc/basic -fposix.mak install |
|---|
| 65 | | make -C common/tango -fposix.mak install |
|---|
| 66 | | # $(CP) libphobos*.a $(LIB_DEST)/. |
|---|
| | 70 | make -C $(DIR_CC) -fposix.mak install |
|---|
| | 71 | make -C $(DIR_RT) -fposix.mak install |
|---|
| | 72 | make -C $(DIR_GC) -fposix.mak install |
|---|
| | 73 | # $(CP) $(LIB_MASK) $(LIB_DEST)/. |
|---|
| r1922 |
r2854 |
|
| 1 | | # Makefile to build D runtime library phobos.lib for Win32 |
|---|
| | 1 | # Makefile to build D runtime library dtango-base-dmd.lib for Win32 |
|---|
| 2 | 2 | # Designed to work with DigitalMars make |
|---|
| 3 | 3 | # Targets: |
|---|
| … | … | |
| 5 | 5 | # Same as make all |
|---|
| 6 | 6 | # make lib |
|---|
| 7 | | # Build phobos.lib |
|---|
| | 7 | # Build dtango-base-dmd.lib |
|---|
| 8 | 8 | # make doc |
|---|
| 9 | 9 | # Generate documentation |
|---|
| 10 | 10 | # make clean |
|---|
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| | 12 | |
|---|
| | 13 | LIB_TARGET=dtango-base-dmd.lib |
|---|
| | 14 | LIB_MASK=dtango-base-dmd*.lib |
|---|
| | 15 | |
|---|
| | 16 | DIR_CC=common\tango |
|---|
| | 17 | DIR_RT=compiler\dmd |
|---|
| | 18 | DIR_GC=gc\basic |
|---|
| | 19 | |
|---|
| | 20 | LIB_CC=$(DIR_CC)\dtango-cc-tango.lib |
|---|
| | 21 | LIB_RT=$(DIR_RT)\dtango-rt-dmd.lib |
|---|
| | 22 | LIB_GC=$(DIR_GC)\dtango-gc-basic.lib |
|---|
| 12 | 23 | |
|---|
| 13 | 24 | CP=xcopy /y |
|---|
| … | … | |
| 36 | 47 | |
|---|
| 37 | 48 | lib : $(ALL_OBJS) |
|---|
| 38 | | cd compiler\dmd |
|---|
| | 49 | cd $(DIR_CC) |
|---|
| | 50 | make -fwin32.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" |
|---|
| | 51 | cd ..\.. |
|---|
| | 52 | cd $(DIR_RT) |
|---|
| 39 | 53 | make -fwin32.mak lib |
|---|
| 40 | 54 | cd ..\.. |
|---|
| 41 | | cd gc\basic |
|---|
| 42 | | make -fwin32.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" |
|---|
| 43 | | cd ..\.. |
|---|
| 44 | | cd common\tango |
|---|
| | 55 | cd $(DIR_GC) |
|---|
| 45 | 56 | make -fwin32.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" |
|---|
| 46 | 57 | cd ..\.. |
|---|
| 47 | 58 | $(RM) phobos*.lib |
|---|
| 48 | | $(LC) -c -n phobos.lib common\tango\tango.lib compiler\dmd\dmd.lib gc\basic\basic.lib |
|---|
| | 59 | $(LC) -c -n $(LIB_TARGET) $(LIB_CC) $(LIB_RT) $(LIB_GC) |
|---|
| 49 | 60 | |
|---|
| 50 | 61 | doc : $(ALL_DOCS) |
|---|
| 51 | | cd compiler\dmd |
|---|
| | 62 | cd $(DIR_CC) |
|---|
| 52 | 63 | make -fwin32.mak doc |
|---|
| 53 | 64 | cd ..\.. |
|---|
| 54 | | cd gc\basic |
|---|
| | 65 | cd $(DIR_RT) |
|---|
| 55 | 66 | make -fwin32.mak doc |
|---|
| 56 | 67 | cd ..\.. |
|---|
| 57 | | cd common\tango |
|---|
| | 68 | cd $(DIR_GC) |
|---|
| 58 | 69 | make -fwin32.mak doc |
|---|
| 59 | 70 | cd ..\.. |
|---|
| … | … | |
| 65 | 76 | $(RM) $(ALL_OBJS) |
|---|
| 66 | 77 | $(RM) $(ALL_DOCS) |
|---|
| 67 | | cd compiler\dmd |
|---|
| | 78 | cd $(DIR_CC) |
|---|
| 68 | 79 | make -fwin32.mak clean |
|---|
| 69 | 80 | cd ..\.. |
|---|
| 70 | | cd gc\basic |
|---|
| | 81 | cd $(DIR_RT) |
|---|
| 71 | 82 | make -fwin32.mak clean |
|---|
| 72 | 83 | cd ..\.. |
|---|
| 73 | | cd common\tango |
|---|
| | 84 | cd $(DIR_GC) |
|---|
| 74 | 85 | make -fwin32.mak clean |
|---|
| 75 | 86 | cd ..\.. |
|---|
| 76 | | # $(RM) phobos*.lib |
|---|
| | 87 | # $(RM) $(LIB_MASK) |
|---|
| 77 | 88 | |
|---|
| 78 | 89 | install : |
|---|
| 79 | | cd compiler\dmd |
|---|
| | 90 | cd $(DIR_CC) |
|---|
| 80 | 91 | make -fwin32.mak install |
|---|
| 81 | 92 | cd ..\.. |
|---|
| 82 | | cd gc\basic |
|---|
| | 93 | cd $(DIR_RT) |
|---|
| 83 | 94 | make -fwin32.mak install |
|---|
| 84 | 95 | cd ..\.. |
|---|
| 85 | | cd common\tango |
|---|
| | 96 | cd $(DIR_GC) |
|---|
| 86 | 97 | make -fwin32.mak install |
|---|
| 87 | 98 | cd ..\.. |
|---|
| 88 | | # $(CP) phobos*.lib $(LIB_DEST)\. |
|---|
| | 99 | # $(CP) $(LIB_MASK) $(LIB_DEST)\. |
|---|
| r2465 |
r2854 |
|
| 10 | 10 | # make clean |
|---|
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| | 12 | |
|---|
| | 13 | LIB_TARGET=libdtango-gc-basic.a |
|---|
| | 14 | LIB_MASK=libdtango-gc-basic*.a |
|---|
| 12 | 15 | |
|---|
| 13 | 16 | CP=cp -f |
|---|
| … | … | |
| 78 | 81 | ###################################################### |
|---|
| 79 | 82 | |
|---|
| 80 | | basic.lib : libbasic.a |
|---|
| | 83 | basic.lib : $(LIB_TARGET) |
|---|
| 81 | 84 | |
|---|
| 82 | | libbasic.a : $(ALL_OBJS) |
|---|
| | 85 | $(LIB_TARGET) : $(ALL_OBJS) |
|---|
| 83 | 86 | $(RM) $@ |
|---|
| 84 | 87 | $(LC) $@ $(ALL_OBJS) |
|---|
| … | … | |
| 93 | 96 | $(RM) $(ALL_OBJS) |
|---|
| 94 | 97 | $(RM) $(ALL_DOCS) |
|---|
| 95 | | $(RM) libbasic*.a |
|---|
| | 98 | $(RM) $(LIB_MASK) |
|---|
| 96 | 99 | |
|---|
| 97 | 100 | install : |
|---|
| 98 | 101 | $(MD) $(LIB_DEST) |
|---|
| 99 | | $(CP) libbasic*.a $(LIB_DEST)/. |
|---|
| | 102 | $(CP) $(LIB_MASK) $(LIB_DEST)/. |
|---|
| r2465 |
r2854 |
|
| 10 | 10 | # make clean |
|---|
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| | 12 | |
|---|
| | 13 | LIB_TARGET=dtango-gc-basic.lib |
|---|
| | 14 | LIB_MASK=dtango-gc-basic*.lib |
|---|
| 12 | 15 | |
|---|
| 13 | 16 | CP=xcopy /y |
|---|
| … | … | |
| 75 | 78 | ###################################################### |
|---|
| 76 | 79 | |
|---|
| 77 | | basic.lib : $(ALL_OBJS) |
|---|
| | 80 | basic.lib : $(LIB_TARGET) |
|---|
| | 81 | |
|---|
| | 82 | $(LIB_TARGET) : $(ALL_OBJS) |
|---|
| 78 | 83 | $(RM) $@ |
|---|
| 79 | 84 | $(LC) -c -n $@ $(ALL_OBJS) |
|---|
| … | … | |
| 88 | 93 | $(RM) $(ALL_OBJS) |
|---|
| 89 | 94 | $(RM) $(ALL_DOCS) |
|---|
| 90 | | $(RM) basic*.lib |
|---|
| | 95 | $(RM) $(LIB_MASK) |
|---|
| 91 | 96 | |
|---|
| 92 | 97 | install : |
|---|
| 93 | 98 | $(MD) $(LIB_DEST) |
|---|
| 94 | | $(CP) basic*.lib $(LIB_DEST)\. |
|---|
| | 99 | $(CP) $(LIB_MASK) $(LIB_DEST)\. |
|---|
| r2465 |
r2854 |
|
| 10 | 10 | # make clean |
|---|
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| | 12 | |
|---|
| | 13 | LIB_TARGET=libdtango-gc-stub.a |
|---|
| | 14 | LIB_MASK=libdtango-gc-stub*.a |
|---|
| 12 | 15 | |
|---|
| 13 | 16 | CP=cp -f |
|---|
| … | … | |
| 74 | 77 | ###################################################### |
|---|
| 75 | 78 | |
|---|
| 76 | | stub.lib : libstub.a |
|---|
| | 79 | stub.lib : $(LIB_TARGET) |
|---|
| 77 | 80 | |
|---|
| 78 | | libstub.a : $(ALL_OBJS) |
|---|
| | 81 | $(LIB_TARGET) : $(ALL_OBJS) |
|---|
| 79 | 82 | $(RM) $@ |
|---|
| 80 | 83 | $(LC) $@ $(ALL_OBJS) |
|---|
| … | … | |
| 89 | 92 | $(RM) $(ALL_OBJS) |
|---|
| 90 | 93 | $(RM) $(ALL_DOCS) |
|---|
| 91 | | $(RM) libstub*.a |
|---|
| | 94 | $(RM) $(LIB_MASK) |
|---|
| 92 | 95 | |
|---|
| 93 | 96 | install : |
|---|
| 94 | 97 | $(MD) $(LIB_DEST) |
|---|
| 95 | | $(CP) libstub*.a $(LIB_DEST)/. |
|---|
| | 98 | $(CP) $(LIB_MASK) $(LIB_DEST)/. |
|---|
| r2465 |
r2854 |
|
| 10 | 10 | # make clean |
|---|
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| | 12 | |
|---|
| | 13 | LIB_TARGET=dtango-gc-stub.lib |
|---|
| | 14 | LIB_MASK=dtango-gc-stub*.lib |
|---|
| 12 | 15 | |
|---|
| 13 | 16 | CP=xcopy /y |
|---|
| … | … | |
| 71 | 74 | ###################################################### |
|---|
| 72 | 75 | |
|---|
| 73 | | stub.lib : $(ALL_OBJS) |
|---|
| | 76 | stub.lib : $(LIB_TARGET) |
|---|
| | 77 | |
|---|
| | 78 | $(LIB_TARGET) : $(ALL_OBJS) |
|---|
| 74 | 79 | $(RM) $@ |
|---|
| 75 | 80 | $(LC) -c -n $@ $(ALL_OBJS) |
|---|
| … | … | |
| 84 | 89 | $(RM) $(ALL_OBJS) |
|---|
| 85 | 90 | $(RM) $(ALL_DOCS) |
|---|
| 86 | | $(RM) stub*.lib |
|---|
| | 91 | $(RM) $(LIB_MASK) |
|---|
| 87 | 92 | |
|---|
| 88 | 93 | install : |
|---|
| 89 | 94 | $(MD) $(LIB_DEST) |
|---|
| 90 | | $(CP) stub*.lib $(LIB_DEST)\. |
|---|
| | 95 | $(CP) $(LIB_MASK) $(LIB_DEST)\. |
|---|
| r2810 |
r2854 |
|
| 18 | 18 | Options: |
|---|
| 19 | 19 | --prefix: Install to the specified prefix (absolute path). |
|---|
| 20 | | --uninstall: Uninstall tango, switch back to standard phobos.' |
|---|
| | 20 | --uninstall: Uninstall Tango, switch back to standard Phobos. |
|---|
| | 21 | --verify: Will verify installation.' |
|---|
| 21 | 22 | exit 0 |
|---|
| 22 | 23 | } |
|---|
| … | … | |
| 29 | 30 | # 0) Parse arguments |
|---|
| 30 | 31 | UNINSTALL=0 |
|---|
| 31 | | REPLACE_PHOBOS=0 |
|---|
| | 32 | VERIFY=0 |
|---|
| 32 | 33 | |
|---|
| 33 | 34 | while [ "$#" != "0" ] |
|---|
| … | … | |
| 41 | 42 | then |
|---|
| 42 | 43 | UNINSTALL=1 |
|---|
| 43 | | else |
|---|
| | 44 | elif [ "$1" = "--verify" ] |
|---|
| | 45 | then |
|---|
| | 46 | VERIFY=1 |
|---|
| | 47 | else |
|---|
| 44 | 48 | usage |
|---|
| 45 | 49 | fi |
|---|
| … | … | |
| 54 | 58 | echo "$PREFIX" |
|---|
| 55 | 59 | |
|---|
| | 60 | # Verify that PREFIX is absolute |
|---|
| 56 | 61 | if [ "${PREFIX:0:1}" != "/" ] |
|---|
| 57 | 62 | then |
|---|
| … | … | |
| 59 | 64 | fi |
|---|
| 60 | 65 | |
|---|
| | 66 | # Verify presence of DMD |
|---|
| 61 | 67 | dmd --help >& /dev/null || die "dmd not found on your \$PATH!" 1 |
|---|
| 62 | | |
|---|
| 63 | | if [ -e "$PREFIX/lib/$PHOBOSLIB" ] |
|---|
| 64 | | then |
|---|
| 65 | | REPLACE_PHOBOS=1 |
|---|
| 66 | | fi |
|---|
| 67 | 68 | |
|---|
| 68 | 69 | # If uninstalling, do that now |
|---|
| 69 | 70 | if [ "$UNINSTALL" = "1" ] |
|---|
| 70 | 71 | then |
|---|
| 71 | | # revert to phobos if earlier evidence of existense is found |
|---|
| | 72 | # Revert to Phobos if earlier evidence of existense is found |
|---|
| | 73 | # Only relevant for pre 0.99.3 installations |
|---|
| 72 | 74 | if [ -e "$PREFIX/lib/$PHOBOSLIB.phobos" ] |
|---|
| 73 | 75 | then |
|---|
| 74 | 76 | mv $PREFIX/lib/$PHOBOSLIB.phobos $PREFIX/lib/$PHOBOSLIB |
|---|
| | 77 | else |
|---|
| | 78 | if [ -e "$PREFIX/lib/libphobos.a" ] |
|---|
| | 79 | then |
|---|
| | 80 | rm -f $PREFIX/lib/libphobos.a |
|---|
| | 81 | fi |
|---|
| 75 | 82 | fi |
|---|
| 76 | 83 | if [ -e "$PREFIX/include/d/object.d.phobos" ] |
|---|
| … | … | |
| 95 | 102 | rm -f $PREFIX/include/d/tango/object.di |
|---|
| 96 | 103 | fi |
|---|
| 97 | | # Since tango 0.99 |
|---|
| | 104 | # Since Tango 0.99 |
|---|
| 98 | 105 | if [ -e "$PREFIX/include/d/object.di" ] |
|---|
| 99 | 106 | then |
|---|
| … | … | |
| 103 | 110 | fi |
|---|
| 104 | 111 | |
|---|
| | 112 | # Prior to Tango 0.99.3 |
|---|
| 105 | 113 | if [ -e "$PREFIX/lib/libtango.a" ] |
|---|
| 106 | 114 | then |
|---|
| 107 | 115 | rm -f $PREFIX/lib/libtango.a |
|---|
| 108 | 116 | fi |
|---|
| | 117 | |
|---|
| | 118 | # Since Tango 0.99.3 |
|---|
| | 119 | if [ -e "$PREFIX/lib/libdtango-base-dmd.a" ] |
|---|
| | 120 | then |
|---|
| | 121 | rm -f $PREFIX/lib/libdtango-base-dmd.a |
|---|
| | 122 | fi |
|---|
| | 123 | |
|---|
| | 124 | if [ -e "$PREFIX/lib/libdtango-user-tango.a" ] |
|---|
| | 125 | then |
|---|
| | 126 | rm -f $PREFIX/lib/libdtango-user-tango.a |
|---|
| | 127 | fi |
|---|
| | 128 | |
|---|
| 109 | 129 | die "Done!" 0 |
|---|
| 110 | 130 | fi |
|---|
| 111 | 131 | |
|---|
| 112 | 132 | |
|---|
| 113 | | # Sanity check |
|---|
| 114 | | if [ ! -e $PHOBOSLIB ] |
|---|
| | 133 | # Verify that runtime was built |
|---|
| | 134 | if [ ! -e libdtango-base-dmd.a ] |
|---|
| 115 | 135 | then |
|---|
| 116 | 136 | die "You must run build-dmd.sh before running install-dmd.sh" 4 |
|---|
| … | … | |
| 118 | 138 | |
|---|
| 119 | 139 | # Back up the original files |
|---|
| 120 | | if [ "$REPLACE_PHOBOS" = "1" ] |
|---|
| 121 | | then |
|---|
| 122 | | if [ -e "$PREFIX/lib/$PHOBOSLIB.phobos" ] |
|---|
| 123 | | then |
|---|
| 124 | | die "You must uninstall your old copy of Tango before installing a new one." 4 |
|---|
| 125 | | fi |
|---|
| 126 | | mv -f $PREFIX/lib/$PHOBOSLIB $PREFIX/lib/$PHOBOSLIB.phobos |
|---|
| 127 | | if [ -e "$PREFIX/include/d/object.d" ] |
|---|
| 128 | | then |
|---|
| 129 | | mv -f $PREFIX/include/d/object.d $PREFIX/include/d/object.d.phobos |
|---|
| 130 | | fi |
|---|
| 131 | | fi |
|---|
| 132 | | |
|---|
| | 140 | if [ -e "$PREFIX/include/d/object.d" ] |
|---|
| | 141 | then |
|---|
| | 142 | mv -f $PREFIX/include/d/object.d $PREFIX/include/d/object.d.phobos |
|---|
| | 143 | fi |
|---|
| | 144 | |
|---|
| | 145 | # Create dmd.conf |
|---|
| 133 | 146 | create_dmd_conf() { |
|---|
| 134 | 147 | cat > $PREFIX/bin/dmd.conf <<EOF |
|---|
| 135 | 148 | [Environment] |
|---|
| 136 | | DFLAGS=-I$PREFIX/include/d -version=Tango -version=Posix -L-L"%@P%/../lib" |
|---|
| | 149 | DFLAGS=-I$PREFIX/include/d -defaultlib=dtango-base-dmd -debuglib=dtango-base-dmd -version=Tango -version=Posix -L-L"%@P%/../lib" |
|---|
| 137 | 150 | EOF |
|---|
| 138 | 151 | } |
|---|
| … | … | |
| 143 | 156 | mkdir -p $PREFIX/lib/ || die "Failed to create $PREFIX/lib (maybe you need root privileges?)" 5 |
|---|
| 144 | 157 | mkdir -p $PREFIX/bin/ || die "Failed to create $PREFIX/bin" 5 |
|---|
| 145 | | cp -pRvf $PHOBOSLIB $PREFIX/lib/ || die "Failed to copy libraries" 7 |
|---|
| | 158 | cp -pRvf libdtango-base-dmd.a $PREFIX/lib/ || die "Failed to copy libraries" 7 |
|---|
| 146 | 159 | cp -pRvf ../object.di $PREFIX/include/d/object.di || die "Failed to copy source" 8 |
|---|
| 147 | 160 | if [ ! -e "$PREFIX/bin/dmd.conf" ] |
|---|
| … | … | |
| 152 | 165 | if [ ! "`grep '\-version=Tango' $PREFIX/bin/dmd.conf`" ] |
|---|
| 153 | 166 | then |
|---|
| 154 | | mv $PREFIX/bin/dmd.conf $PREFIX/bin/dmd.conf.phobos |
|---|
| | 167 | mv $PREFIX/bin/dmd.conf $PREFIX/bin/dmd.conf.phobos |
|---|
| 155 | 168 | create_dmd_conf |
|---|
| 156 | 169 | else |
|---|
| 157 | | echo 'Found Tango enabled dmd.conf, assume it is working and leave it as is' |
|---|
| 158 | | fi |
|---|
| | 170 | if [ ! "`grep '\-defaultlib=dtango\-base\-dmd' $PREFIX/bin/dmd.conf`" ] |
|---|
| | 171 | then |
|---|
| | 172 | echo 'Appending -defaultlib switch to DFLAGS' |
|---|
| | 173 | sed -i.bak -e 's/^DFLAGS=.*$/& -defaultlib=dtango-base-dmd -debuglib=dtango-base-dmd/' $PREFIX/bin/dmd.conf |
|---|
| | 174 | else |
|---|
| | 175 | echo 'Found Tango enabled dmd.conf, assume it is working and leave it as is' |
|---|
| | 176 | fi |
|---|
| | 177 | fi |
|---|
| | 178 | fi |
|---|
| | 179 | |
|---|
| | 180 | # Verify installation |
|---|
| | 181 | if [ "$VERIFY" = "1" ] |
|---|
| | 182 | then |
|---|
| | 183 | echo 'Verifying installation.' |
|---|
| | 184 | if [ ! -e "$PREFIX/include/d/object.di" ] |
|---|
| | 185 | then |
|---|
| | 186 | die "object.di not properly installed to $PREFIX/include/d" 9 |
|---|
| | 187 | fi |
|---|
| | 188 | if [ ! -e "$PREFIX/lib/libdtango-base-dmd.a" ] |
|---|
| | 189 | then |
|---|
| | 190 | die "libdtango-base-dmd.a not properly installed to $PREFIX/lib" 10 |
|---|
| | 191 | fi |
|---|
| | 192 | if [ ! -e "$PREFIX/bin/dmd.conf" ] |
|---|
| | 193 | then |
|---|
| | 194 | die "dmd.conf not present in $PREFIX/bin" 11 |
|---|
| | 195 | elif [ ! "`grep '\-version=Tango' $PREFIX/bin/dmd.conf`" ] |
|---|
| | 196 | then |
|---|
| | 197 | die "dmd.conf not Tango enabled" 12 |
|---|
| | 198 | elif [ ! "`grep '\-defaultlib=dtango\-base\-dmd' $PREFIX/bin/dmd.conf`" ] |
|---|
| | 199 | then |
|---|
| | 200 | die "dmd.conf don't have -defaultlib switch" 13 |
|---|
| | 201 | fi |
|---|
| | 202 | echo 'Installation OK.' |
|---|
| 159 | 203 | fi |
|---|
| 160 | 204 | |
|---|
| r2550 |
r2854 |
|
| 35 | 35 | EOF |
|---|
| 36 | 36 | |
|---|
| 37 | | rebuild -debug=UnitTest -debug -full -clean -unittest -version=UnitTest $EXE.d tango/core/*.d tango/io/digest/*.d tango/io/model/*.d tango/io/protocol/*.d tango/io/selector/*.d tango/io/*.d tango/io/vfs/* tango/math/*.d tango/net/ftp/*.d tango/net/http/*.d tango/net/model/*.d tango/stdc/stringz.d tango/sys/*.d tango/text/convert/*.d tango/text/locale/Collation.d tango/text/locale/Convert.d tango/text/locale/Core.d tango/text/locale/Data.d tango/text/locale/Locale.d tango/text/locale/Parse.d tango/text/locale/Posix.d tango/text/stream/*.d tango/text/*.d tango/util/*.d tango/util/collection/model/*.d tango/util/collection/*.d tango/util/collection/iterator/*.d tango/util/collection/impl/*.d tango/util/log/model/*.d tango/util/log/*.d tango/util/time/chrono/*.d tango/util/time/*.d -dc=$DC-posix-tango |
|---|
| | 37 | rebuild -L-ldl -debug=UnitTest -debug -full -clean -unittest -version=UnitTest $EXE.d tango/core/*.d tango/io/digest/*.d tango/io/model/*.d tango/io/protocol/*.d tango/io/selector/*.d tango/io/*.d tango/io/vfs/*.d tango/io/vfs/model/* tango/math/*.d tango/net/ftp/*.d tango/net/http/*.d tango/net/model/*.d tango/stdc/stringz.d tango/sys/*.d tango/text/convert/*.d tango/text/locale/Collation.d tango/text/locale/Convert.d tango/text/locale/Core.d tango/text/locale/Data.d tango/text/locale/Locale.d tango/text/locale/Parse.d tango/text/locale/Posix.d tango/text/stream/*.d tango/text/*.d tango/util/*.d tango/util/collection/model/*.d tango/util/collection/*.d tango/util/collection/iterator/*.d tango/util/collection/impl/*.d tango/util/log/model/*.d tango/util/log/*.d tango/util/time/chrono/*.d tango/util/time/*.d -dc=$DC-posix-tango |
|---|
| 38 | 38 | |
|---|
| 39 | 39 | mv $EXE lib/$EXE |
|---|
|