summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win/makefile.vc52
-rw-r--r--win/mkd.bat15
-rw-r--r--win/rmd.bat16
3 files changed, 31 insertions, 52 deletions
diff --git a/win/makefile.vc b/win/makefile.vc
index 08d908f..21b01fa 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -12,7 +12,7 @@
# Copyright (c) 2001 Tomasoft Engineering.
#
#------------------------------------------------------------------------------
-# RCS: @(#) $Id: makefile.vc,v 1.71 2001/11/10 04:11:15 davygrvy Exp $
+# RCS: @(#) $Id: makefile.vc,v 1.72 2001/11/10 10:38:47 davygrvy Exp $
#------------------------------------------------------------------------------
!if "$(MSVCDIR)" == ""
@@ -126,12 +126,12 @@ the environment. Jump to this line to read the new instructions.
#
# if "%MSVCDir%" == "" call c:\progra~1\micros~1\vc98\bin\vcvars32.bat
# set INSTALLDIR=C:\tclTestArea
-# nmake -nologo -f makefile.vc %1 release winhelp
-# nmake -nologo -f makefile.vc %1 release OPTS=static,linkexten
-# nmake -nologo -f makefile.vc %1 core dlls OPTS=static,msvcrt
-# nmake -nologo -f makefile.vc %1 core OPTS=static,threads
-# nmake -nologo -f makefile.vc %1 core OPTS=static,msvcrt,threads
-# nmake -nologo -f makefile.vc %1 shell OPTS=threads
+# nmake -nologo -f makefile.vc release winhelp
+# nmake -nologo -f makefile.vc release OPTS=static,linkexten
+# nmake -nologo -f makefile.vc core dlls OPTS=static,msvcrt
+# nmake -nologo -f makefile.vc core OPTS=static,threads
+# nmake -nologo -f makefile.vc core OPTS=static,msvcrt,threads
+# nmake -nologo -f makefile.vc shell OPTS=threads
# pause
#
#
@@ -150,6 +150,14 @@ the environment. Jump to this line to read the new instructions.
###############################################################################
#==============================================================================
#------------------------------------------------------------------------------
+
+!if !exist("makefile.vc")
+MSG = ^
+You must run this makefile only from the directory it is in.^
+Please `cd` to its location first.
+!error $(MSG)
+!endif
+
PROJECT = tcl
!include "rules.vc"
@@ -413,13 +421,9 @@ $(TCLIMPLIB): $(TCLLIB)
$(TCLLIB): $(TCLOBJS)
!if $(STATIC_BUILD)
- $(lib32) -nologo -out:$@ @<<
-$**
-<<
+ $(lib32) -nologo -out:$@ $**
!else
- $(link32) $(ldebug) $(dlllflags) -out:$@ $(winlibs) @<<
-$**
-<<
+ $(link32) $(ldebug) $(dlllflags) -out:$@ $(winlibs) $**
-@del $*.exp
!endif
@@ -428,15 +432,11 @@ $(TCLSTUBLIB): $(TCLSTUBOBJS)
$(lib32) -nologo -out:$@ $(TCLSTUBOBJS)
$(TCLSH): $(TCLSHOBJS) $(TCLIMPLIB)
- $(link32) $(ldebug) $(conlflags) -stack:2300000 -out:$@ $(baselibs) @<<
-$**
-<<
+ $(link32) $(ldebug) $(conlflags) -stack:2300000 -out:$@ $(baselibs) $**
$(TCLTEST): $(TCLTESTOBJS) $(TCLIMPLIB)
- $(link32) $(ldebug) $(conlflags) -stack:2300000 -out:$@ $(baselibs) @<<
-$**
-<<
+ $(link32) $(ldebug) $(conlflags) -stack:2300000 -out:$@ $(baselibs) $**
$(TCLPIPEDLL): $(WINDIR)\stub16.c
@@ -701,17 +701,11 @@ $<
#---------------------------------------------------------------------
clean:
- -@$(RM) $(OUT_DIR)\*.exp
- -@$(RM) $(OUT_DIR)\*.lib
- -@$(RM) $(OUT_DIR)\*.dll
- -@$(RM) $(OUT_DIR)\*.exe
- -@$(RM) $(OUT_DIR)\*.pdb
- -@$(RM) $(TMP_DIR)\*.pch
- -@$(RM) $(TMP_DIR)\*.obj
- -@$(RM) $(TMP_DIR)\*.res
- -@$(RM) $(TMP_DIR)\*.exe
- -@$(RMDIR) $(OUT_DIR)
-@$(RMDIR) $(TMP_DIR)
+hose: clean
+ -@$(RMDIR) $(OUT_DIR)
+
+
.SUFFIXES:
.SUFFIXES:.c .rc
diff --git a/win/mkd.bat b/win/mkd.bat
index 690a29b..70edd40 100644
--- a/win/mkd.bat
+++ b/win/mkd.bat
@@ -1,21 +1,12 @@
@echo off
-rem RCS: @(#) $Id: mkd.bat,v 1.7 2001/09/08 23:52:02 davygrvy Exp $
+rem RCS: @(#) $Id: mkd.bat,v 1.8 2001/11/10 10:38:47 davygrvy Exp $
-if exist %1\. goto end
+if exist %1\nul goto end
-if "%OS%" == "Windows_NT" goto winnt
-
-md %1
-if errorlevel 1 goto end
-
-goto success
-
-:winnt
md %1
if errorlevel 1 goto end
-:success
-echo created directory %1
+echo Created directory %1
:end
diff --git a/win/rmd.bat b/win/rmd.bat
index f1fa10c..c4d154f 100644
--- a/win/rmd.bat
+++ b/win/rmd.bat
@@ -1,27 +1,21 @@
@echo off
-rem RCS: @(#) $Id: rmd.bat,v 1.7 2001/09/08 23:52:02 davygrvy Exp $
+rem RCS: @(#) $Id: rmd.bat,v 1.8 2001/11/10 10:38:47 davygrvy Exp $
-if not exist %1\. goto end
+if not exist %1\nul goto end
echo Removing directory %1
if "%OS%" == "Windows_NT" goto winnt
-cd %1
-if errorlevel 1 goto end
-del *.*
-cd ..
-rmdir %1
+deltree /y %1
if errorlevel 1 goto end
goto success
:winnt
-rmdir %1 /s /q
+rmdir /s /q %1
if errorlevel 1 goto end
:success
-echo deleted directory %1
+echo Deleted directory %1
:end
-
-