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" -a "$USE_SHELL" != "4nt"; then
31 # For the W32/4nt case
34 # For normal unixy systems
35 if test -f "Makefile" ; then
36 $GNUMAKE distclean || exit
39 ./configure $DMAKE_CONF || exit
41 ## invoke the gnu make command set by configure.
45 echo "dmake has been successfully built"
52 echo "dmake present in $SOLARENV/$OUTPATH/bin/dmake$EXEEXT"
58 mkdir -p "$SOLARENV/$OUTPATH/bin"
59 if test "$BUILD_DMAKE" != "NO"; then
60 cp -f "$SRC_ROOT/dmake/dmake$EXEEXT" "$SOLARENV/$OUTPATH/bin" || exit
62 echo "dmake copied to $SOLARENV/$OUTPATH/bin/dmake$EXEEXT"
65 if test "$GUI" = "WNT" -a ! -x "$SOLARENV/$OUTPATH/bin/guw$EXEEXT"; then
67 echo "Calling $GNUMAKE in guw"
68 cd "$SRC_ROOT/config_office/guw" || exit
71 echo "guw has been successfully made"
72 cp -f "$SRC_ROOT/config_office/guw/guw$EXEEXT" "$SOLARENV/$OUTPATH/bin" || exit
74 echo "guw copied to $SOLARENV/$OUTPATH/bin/guw$EXEEXT"
77 #make sure build.pl is executable
79 chmod +x "$SRC_ROOT/solenv/bin/build.pl"
80 chmod +x "$SRC_ROOT/solenv/bin/build_client.pl"
81 chmod +x "$SRC_ROOT/solenv/bin/zipdep.pl"
82 chmod +x "$SRC_ROOT/solenv/bin/gccinstlib.pl"