2003-12-01 10:38:25 -06:00
|
|
|
# executables are *.exe for WNT. This variable is necessary since Cygwin 1.5.x
|
|
|
|
if ( "$GUI" == "WNT" ) then
|
|
|
|
setenv EXEEXT ".exe"
|
|
|
|
else
|
|
|
|
setenv EXEEXT ""
|
|
|
|
endif
|
2000-09-18 10:18:56 -05:00
|
|
|
|
2003-12-17 08:00:10 -06:00
|
|
|
if ( "$BUILD_DMAKE" != "NO" ) then
|
2001-05-04 13:01:39 -05:00
|
|
|
|
2003-12-17 08:00:10 -06:00
|
|
|
if ( ! -e $SOLARENV/$OUTPATH/bin/dmake$EXEEXT ) then
|
2000-09-18 10:18:56 -05:00
|
|
|
|
2003-12-17 08:00:10 -06:00
|
|
|
cd $SRC_ROOT/dmake
|
|
|
|
if "$?" != "0" exit $?
|
2003-01-20 08:00:18 -06:00
|
|
|
|
2003-12-17 08:00:10 -06:00
|
|
|
# Special case! The w32/tcsh build needs CC pointing to the MSVC++ compiler
|
|
|
|
# but we need a cygwin/gcc build dmake to understand the posix paths
|
|
|
|
if ( $GUI == "WNT" && $USE_SHELL == "tcsh" ) then
|
|
|
|
setenv CC ""
|
|
|
|
setenv CXX ""
|
|
|
|
endif
|
2000-09-18 10:18:56 -05:00
|
|
|
|
2003-12-17 08:00:10 -06:00
|
|
|
# For the W32/4nt case
|
|
|
|
if ( -d objects ) then
|
|
|
|
rm -rf objects
|
|
|
|
if "$?" != "0" exit $?
|
|
|
|
endif
|
|
|
|
# For normal unixy systems
|
|
|
|
if ( -e Makefile ) then
|
|
|
|
$GNUMAKE distclean
|
|
|
|
if "$?" != "0" exit $?
|
|
|
|
endif
|
2000-09-18 10:18:56 -05:00
|
|
|
|
2003-12-17 08:00:10 -06:00
|
|
|
./configure
|
|
|
|
if "$?" != "0" exit $?
|
2002-10-09 07:17:17 -05:00
|
|
|
|
2003-12-17 08:00:10 -06:00
|
|
|
## invoke the gnu make command set by configure.
|
|
|
|
$GNUMAKE
|
|
|
|
if "$?" != "0" exit $?
|
2000-09-18 10:18:56 -05:00
|
|
|
|
2003-12-17 08:00:10 -06:00
|
|
|
echo ""
|
|
|
|
echo "dmake has been successfully built"
|
|
|
|
|
|
|
|
cd ..
|
2001-05-04 13:01:39 -05:00
|
|
|
|
2003-12-17 08:00:10 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|