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.
4 if test "$GUI" = "WNT"; then
6 DMAKE_CONF="--enable-spawn"
13 # ------------------------------------------------------------------------------
16 if test "$BUILD_DMAKE" != "NO"; then
18 if test ! -x "$SOLARENV/$OUTPATH/bin/dmake$EXEEXT"; then
20 cd "$SRC_ROOT/dmake" || exit
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
31 # For normal unixy systems
32 if test -f "Makefile" ; then
33 $GNUMAKE distclean || exit
36 ./configure $DMAKE_CONF || exit
38 ## invoke the gnu make command set by configure.
42 echo "dmake has been successfully built"
49 echo "dmake present in $SOLARENV/$OUTPATH/bin/dmake$EXEEXT"
55 mkdir -p "$SOLARENV/$OUTPATH/bin"
56 if test "$BUILD_DMAKE" != "NO"; then
57 cp -f "$SRC_ROOT/dmake/dmake$EXEEXT" "$SOLARENV/$OUTPATH/bin" || exit
59 echo "dmake copied to $SOLARENV/$OUTPATH/bin/dmake$EXEEXT"
62 if test "$GUI" = "WNT" -a ! -x "$SOLARENV/$OUTPATH/bin/guw$EXEEXT"; then
64 echo "Calling $GNUMAKE in guw"
65 cd "$SRC_ROOT/guw" || exit
68 echo "guw has been successfully made"
69 cp -f "$SRC_ROOT/guw/guw$EXEEXT" "$SOLARENV/$OUTPATH/bin" || exit
71 echo "guw copied to $SOLARENV/$OUTPATH/bin/guw$EXEEXT"
74 #make sure build.pl is executable
76 chmod +x "$SRC_ROOT/solenv/bin/build.pl"
77 chmod +x "$SRC_ROOT/solenv/bin/build_client.pl"
78 chmod +x "$SRC_ROOT/solenv/bin/zipdep.pl"
79 chmod +x "$SRC_ROOT/solenv/bin/gccinstlib.pl"
81 # fetch or update external tarballs
82 if [ "$DO_FETCH_TARBALLS" = "yes" ]; then
83 $SRC_ROOT/fetch_tarballs.sh $SRC_ROOT/ooo.lst