summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-12-01 17:51:30 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-12-01 17:51:30 (GMT)
commitc9b7bdb8238153e0386c6acaaf0e14d9d63e1738 (patch)
tree2c1f2b6628a9f1f167d71d02f13a0cc4ced78b00 /win
parent7fe27ac7f2cb90019410f61ca31aab8e9cf7b862 (diff)
downloadtk-c9b7bdb8238153e0386c6acaaf0e14d9d63e1738.zip
tk-c9b7bdb8238153e0386c6acaaf0e14d9d63e1738.tar.gz
tk-c9b7bdb8238153e0386c6acaaf0e14d9d63e1738.tar.bz2
restored the ability to build from makefile.vc
Diffstat (limited to 'win')
-rw-r--r--win/makefile.vc48
1 files changed, 34 insertions, 14 deletions
diff --git a/win/makefile.vc b/win/makefile.vc
index cfb133a..91603fe 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -12,7 +12,7 @@
# Copyright (c) 2001-2002 David Gravereaux.
#
#------------------------------------------------------------------------------
-# RCS: @(#) $Id: makefile.vc,v 1.67.2.10 2005/11/30 00:19:01 hobbs Exp $
+# RCS: @(#) $Id: makefile.vc,v 1.67.2.11 2005/12/01 17:51:30 kennykb Exp $
#------------------------------------------------------------------------------
# Check to see we are configured to build with MSVC (MSDEVDIR or MSVCDIR)
@@ -730,17 +730,18 @@ $(TMP_DIR)\tkStubImg.obj : $(GENERICDIR)\tkStubImg.c
$(TMP_DIR)\wish.exe.manifest: $(WINDIR)\wish.exe.manifest.in
$(TCLSH) <<
-puts "Creating wish.exe.manifest ..."
-set f [open "$(WINDIR:\=/)/wish.exe.manifest.in" r]
+set f [open {$(WINDIR:\=/)/wish.exe.manifest.in} r]
set data [read $$f]
close $$f
-set f [open "$(TMPDIR:\=/)/wish.exe.manifest" w]
-set mach "$(MACHINE)"
-if {[regexp -nocase {^(|IX86)$$} $$mach]} { set mach "X86" }
-# Exact version is not critical in the manifest
+set mach {$(MACHINE)}
+if {[regexp -nocase {$(IX86)$$} $mach ]} {set mach X86}
set winver "$(DOTVERSION).0.0"
-puts $$f -nonewline [string map [list @MACHINE@ $$mach @TK_WIN_VERSION@ $$winver] $$data]
+set data [string map [list @MACHINE@ $$mach @TK_WIN_VERSION@ $$winver] $$data]
+puts {Creating $(TMP_DIR:\=/)/wish.exe.manifest}
+set f [open {$(TMP_DIR:\=/)/wish.exe.manifest} w]
+puts -nonewline $$f $$data
close $$f
+exit
<<
$(TMP_DIR)\tk.res: \
@@ -814,18 +815,37 @@ $<
$<
<<
-{$(RCDIR)}.rc{$(TMP_DIR)}.res: $(TMP_DIR)\wish.exe.manifest
- $(rc32) -fo $@ -r -i "$(GENERICDIR)" $(TCL_INCLUDES) \
!if $(DEBUG)
- -d DEBUG \
+RCDEBUG = -d DEBUG
+!else
+RCDEBUG =
!endif
!if $(TCL_THREADS)
- -d TCL_THREADS \
+RCTHREADS = -d TCL_THREADS
+!else
+RCTHREADS =
!endif
!if $(STATIC_BUILD)
- -d STATIC_BUILD \
+RCSTATIC = -d STATIC_BUILD
+!else
+RCSTATIC =
!endif
- $<
+
+$(TMP_DIR)\tk.res: $(RCDIR)\tk.rc $(TMP_DIR)\wish.exe.manifest
+ $(rc32) -fo $@ -r -i "$(GENERICDIR)" -i "$(TMP_DIR)" $(TCL_INCLUDES) \
+ $(RCDEBUG) $(RCTHREADS) $(RCSTATIC) \
+ $(RCDIR)\tk.rc
+
+$(TMP_DIR)\tk_base.res: $(RCDIR)\tk_base.rc $(TMP_DIR)\wish.exe.manifest
+ $(rc32) -fo $@ -r -i "$(GENERICDIR)" $(TCL_INCLUDES) \
+ $(RCDEBUG) $(RCTHREADS) $(RCSTATIC) \
+ -d MANIFEST_FILE="$(TMP_DIR)\wish.exe.manifest"
+ $(RCDIR)\tk_base.rc
+
+$(TMP_DIR)\wish.res: $(RCDIR)\wish.rc $(TMP_DIR)\wish.exe.manifest
+ $(rc32) -fo $@ -r -i "$(GENERICDIR)" $(TCL_INCLUDES) -i "$(TMP_DIR)" \
+ $(RCDEBUG) $(RCTHREADS) $(RCSTATIC) \
+ $(RCDIR)\wish.rc
#---------------------------------------------------------------------
# Clean up