summaryrefslogtreecommitdiffstats
path: root/win/makefile.vc
diff options
context:
space:
mode:
authordavygrvy <davygrvy@noemail.net>2002-02-21 22:00:57 (GMT)
committerdavygrvy <davygrvy@noemail.net>2002-02-21 22:00:57 (GMT)
commit4d6f429f6d188ea4cadbae49835e53c05e680ec3 (patch)
tree253a5528d55b9c8695a53b7e875889e8fae501e6 /win/makefile.vc
parent11fca1a53bff405eb995df6257d427e868cb21ec (diff)
downloadtcl-4d6f429f6d188ea4cadbae49835e53c05e680ec3.zip
tcl-4d6f429f6d188ea4cadbae49835e53c05e680ec3.tar.gz
tcl-4d6f429f6d188ea4cadbae49835e53c05e680ec3.tar.bz2
* win/mkd.bat (removed):
* win/coffbase.txt (new): * win/makefile.bc: * win/makefile.vc: Changed the 'setup' target to stop using the mkd.bat file and just make the directory right in the rule. Same change to makefile.bc. configure.in nor Makefile.in use it. coffbase.txt will be the master list for our "prefered base addresses" set by the linker. This should improve load-time (NT only) by avoiding relocations. Submissions to the list by extension authors are encouraged. Added a 'tidy' target to compliment 'clean' and 'hose' to remove just the outputs. Also removed the $(winlibs) macro as it wasn't being used. Stuff left to do: 1) get the winhelp target to stop building in the tools/ directory. 2) stop using rmd.bat 3) add more dependacy rules. FossilOrigin-Name: 03b767fef9da24740b60af6d13923e3cbdc1c006
Diffstat (limited to 'win/makefile.vc')
-rw-r--r--win/makefile.vc33
1 files changed, 20 insertions, 13 deletions
diff --git a/win/makefile.vc b/win/makefile.vc
index d18b28d..ed5bd31 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -12,7 +12,7 @@
# Copyright (c) 2001 Tomasoft Engineering.
#
#------------------------------------------------------------------------------
-# RCS: @(#) $Id: makefile.vc,v 1.82 2002/02/21 18:37:27 davygrvy Exp $
+# RCS: @(#) $Id: makefile.vc,v 1.83 2002/02/21 22:00:58 davygrvy Exp $
#------------------------------------------------------------------------------
!if "$(MSVCDIR)" == ""
@@ -27,7 +27,7 @@ the environment. Jump to this line to read the new instructions.
#
# 1) It is now necessary to have MSVCDir set in the environment. This is used
# as a check to see if vcvars32.bat had been run prior to running nmake or
-# during the install of Microsoft Developer Studio, MSVCDir had been set
+# during the installation of Microsoft Visual C++, MSVCDir had been set
# globally and the PATH adjusted. Either way is valid.
#
# You'll need to run vcvars32.bat contained in the MsDev's vc(98)/bin
@@ -78,8 +78,8 @@ the environment. Jump to this line to read the new instructions.
# threads = Turns on full multithreading support.
# symbols = Adds symbols for step debugging.
# profile = Adds profiling hooks. Map file is assumed.
-# loimpact= Adds a flag for how NT treats the heap to keep memory
-# in use low. This is said to impact performance.
+# loimpact = Adds a flag for how NT treats the heap to keep memory
+# in use, low. This is said to impact alloc performance.
#
# STATS=memdbg,compdbg,none
# Sets optional memory and bytecode compiler debugging code added
@@ -189,7 +189,6 @@ TCLHLPCNT = $(OUT_DIR)\$(TCLHLPBASE).cnt
TCLTEST = $(OUT_DIR)\$(PROJECT)test.exe
CAT32 = $(OUT_DIR)\cat32.exe
RMDIR = .\rmd.bat
-MKDIR = .\mkd.bat
RM = del
LIB_INSTALL_DIR = $(INSTALLDIR)\lib
@@ -371,7 +370,7 @@ lflags = $(lflags) -profile
# align sections for PE size savings.
lflags = $(lflags) -opt:nowin98
!else if !$(ALIGN98_HACK) && $(STATIC_BUILD)
-# align sections for speed in loading by choosing the page size.
+# align sections for speed in loading by choosing the virtual page size.
lflags = $(lflags) -align:4096
!endif
@@ -419,8 +418,10 @@ test: setup $(TCLTEST) dlls $(CAT32)
!endif
setup:
- @$(MKDIR) $(TMP_DIR)
- @$(MKDIR) $(OUT_DIR)
+ @if not exist $(OUT_DIR)\nul mkdir $(OUT_DIR) &\
+ echo *** Created directory '$(OUT_DIR)'
+ @if not exist $(TMP_DIR)\nul mkdir $(TMP_DIR) &\
+ echo *** Created directory '$(TMP_DIR)'
!if !$(STATIC_BUILD)
$(TCLIMPLIB): $(TCLLIB)
@@ -432,7 +433,7 @@ $(TCLLIB): $(TCLOBJS)
$**
<<
!else
- $(link32) $(dlllflags) -out:$@ $(baselibs) @<<
+ $(link32) $(dlllflags) -base:@$(WINDIR)\coffbase.txt,tcl -out:$@ $(baselibs) @<<
$**
<<
-@del $*.exp
@@ -456,8 +457,7 @@ $**
$(TCLPIPEDLL): $(WINDIR)\stub16.c
$(cc32) $(CON_CFLAGS) -Fo$(TMP_DIR)\ $(WINDIR)\stub16.c
- $(link32) $(conlflags) -out:$@ $(TMP_DIR)\stub16.obj \
- $(baselibs)
+ $(link32) $(conlflags) -out:$@ $(TMP_DIR)\stub16.obj $(baselibs)
!if $(STATIC_BUILD)
@@ -465,7 +465,7 @@ $(TCLDDEDLL): $(TMP_DIR)\tclWinDde.obj
$(lib32) -nologo -out:$@ $(TMP_DIR)\tclWinDde.obj
!else
$(TCLDDEDLL): $(TMP_DIR)\tclWinDde.obj $(TCLSTUBLIB)
- $(link32) $(dlllflags) -out:$@ $** $(baselibs)
+ $(link32) $(dlllflags) -base:@$(WINDIR)\coffbase.txt,tcldde -out:$@ $** $(baselibs)
-@del $*.exp
-@del $*.lib
!endif
@@ -476,7 +476,7 @@ $(TCLREGDLL): $(TMP_DIR)\tclWinReg.obj
$(lib32) -nologo -out:$@ $(TMP_DIR)\tclWinReg.obj
!else
$(TCLREGDLL): $(TMP_DIR)\tclWinReg.obj $(TCLSTUBLIB)
- $(link32) $(dlllflags) -out:$@ $** $(baselibs)
+ $(link32) $(dlllflags) -base:@$(WINDIR)\coffbase.txt,tclreg -out:$@ $** $(baselibs)
-@del $*.exp
-@del $*.lib
!endif
@@ -709,6 +709,13 @@ $<
# Clean up
#---------------------------------------------------------------------
+tidy:
+ -del $(TCLLIB)
+ -del $(TCLSH)
+ -del $(TCLTEST)
+ -del $(TCLDDEDLL)
+ -del $(TCLREGDLL)
+
clean:
-@$(RMDIR) $(TMP_DIR)