1 2# executables are *.exe for WNT. This variable is necessary since Cygwin 1.5.x 3# Use spawn instead of fork when building dmake on cygwin. 4if test "$GUI" = "WNT"; then 5 EXEEXT=".exe" 6 DMAKE_CONF="--enable-spawn" 7else 8 EXEEXT="" 9 DMAKE_CONF="" 10fi 11export EXEEXT 12 13# ------------------------------------------------------------------------------ 14# Build dmake 15 16if test "$BUILD_DMAKE" != "NO"; then 17 18 if test ! -x "$SOLARENV/$OUTPATH/bin/dmake$EXEEXT"; then 19 20 cd "$SRC_ROOT/dmake" || exit 21 22 # Special case! The w32/tcsh build needs CC pointing to the MSVC++ compiler 23 # but we need a cygwin/gcc build dmake to understand the posix paths 24 if test "$GUI" = "WNT"; then 25 CC="" 26 CXX="" 27 export CC 28 export CXX 29 fi 30 31 # For normal unixy systems 32 if test -f "Makefile" ; then 33 $GNUMAKE distclean || exit 34 fi 35 36 ./configure $DMAKE_CONF || exit 37 38 ## invoke the gnu make command set by configure. 39 $GNUMAKE || exit 40 41 echo "" 42 echo "dmake has been successfully built" 43 44 cd .. 45 46 else 47 48 echo "" 49 echo "dmake present in $SOLARENV/$OUTPATH/bin/dmake$EXEEXT" 50 51 fi 52 53fi 54 55mkdir -p "$SOLARENV/$OUTPATH/bin" 56if test "$BUILD_DMAKE" != "NO"; then 57 cp -f "$SRC_ROOT/dmake/dmake$EXEEXT" "$SOLARENV/$OUTPATH/bin" || exit 58 echo "" 59 echo "dmake copied to $SOLARENV/$OUTPATH/bin/dmake$EXEEXT" 60fi 61 62if test "$GUI" = "WNT" -a ! -x "$SOLARENV/$OUTPATH/bin/guw$EXEEXT"; then 63 echo "" 64 echo "Calling $GNUMAKE in guw" 65 cd "$SRC_ROOT/guw" || exit 66 $GNUMAKE || exit 67 echo "" 68 echo "guw has been successfully made" 69 cp -f "$SRC_ROOT/guw/guw$EXEEXT" "$SOLARENV/$OUTPATH/bin" || exit 70 echo "" 71 echo "guw copied to $SOLARENV/$OUTPATH/bin/guw$EXEEXT" 72fi 73 74#make sure build.pl is executable 75 76chmod +x "$SRC_ROOT/solenv/bin/build.pl" 77chmod +x "$SRC_ROOT/solenv/bin/build_client.pl" 78chmod +x "$SRC_ROOT/solenv/bin/zipdep.pl" 79chmod +x "$SRC_ROOT/solenv/bin/gccinstlib.pl" 80 81# fetch or update external tarballs 82if [ "$DO_FETCH_TARBALLS" = "yes" ]; then 83 $SRC_ROOT/fetch_tarballs.sh $SRC_ROOT/ooo.lst 84fi 85