* win/makefile.vc: Added a version resource and a few more fixes random-1-2-0
authorPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 23 Feb 2004 02:00:11 +0000 (02:00 +0000)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 23 Feb 2004 02:00:11 +0000 (02:00 +0000)
* generic/random.h: for building under VC++ in debug mode.

ChangeLog
generic/random.h
win/Random.rc [new file with mode: 0644]
win/makefile.vc

index a41502bec5273619c1a94d76deb6ed36c6b08191..485e954d40fc70244100349a80846886975825c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-02-23  Pat Thoyts  <patthoyts@users.sourceforge.net>
 
+       * win/makefile.vc:  Added a version resource and a few more fixes
+       * generic/random.h: for building under VC++ in debug mode.
+
        * win/makefile.vc:  Added VC++ build files. 
        * win/rules.vc:
        * win/nmakehlp.c:
index 274ed2c9602584854750ec3e818205afdda97b26..79b67da20e115aa018510fc82260f78ae52e5d2e 100644 (file)
@@ -9,6 +9,8 @@
 #define _random_h_INCLUDE
 
 #include <tcl.h>
+#include <stdlib.h>
+#include <time.h>
 
 #ifdef BUILD_Random
 #undef TCL_STORAGE_CLASS
diff --git a/win/Random.rc b/win/Random.rc
new file mode 100644 (file)
index 0000000..54242c6
--- /dev/null
@@ -0,0 +1,34 @@
+// SCCS: @(#) memchan.rc 1.0 96/04/12 18:08:09
+//
+// Version
+//
+
+#include <winver.h>
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION   COMMAVERSION
+ PRODUCTVERSION        COMMAVERSION
+ FILEFLAGSMASK 0x3fL
+ FILEFLAGS     0x0L
+ FILEOS                0x4L
+ FILETYPE      0x1L
+ FILESUBTYPE   0x0L
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "040904b0"
+        BEGIN
+            VALUE "FileDescription",  "Random Tcl extension\0"
+            VALUE "OriginalFilename", "Random" VERSION ".dll\0"
+            VALUE "CompanyName",      "Pat Thoyts\0"
+            VALUE "FileVersion",      DOTVERSION "\0"
+            VALUE "LegalCopyright",   "Copyright \251 2003 Pat Thoyts\0"
+            VALUE "ProductName",      "Tcl Random extension\0"
+            VALUE "ProductVersion",   DOTVERSION "\0"
+        END
+    END
+    BLOCK "VarFileInfo"
+    BEGIN
+        VALUE "Translation", 0x409, 1200
+    END
+END
index 12ef157ddd2557a9f19fb4e88bba44c599c14a5d..d8dc918489990b742febbb5560a72ac2de21429d 100644 (file)
@@ -158,6 +158,7 @@ PROJECT = Random
 
 DOTVERSION      = 1.2.0
 VERSION         = $(DOTVERSION:.=)
+COMMAVERSION    = $(DOTVERSION:.=,),0
 STUBPREFIX      = $(PROJECT)stub
 
 DLLOBJS = \
@@ -167,6 +168,8 @@ DLLOBJS = \
        $(TMP_DIR)\rand_isaac.obj \
        $(TMP_DIR)\randport.obj
 
+RCRES  = $(TMP_DIR)\Random.res
+
 #-------------------------------------------------------------------------
 # Target names and paths ( shouldn't need changing )
 #-------------------------------------------------------------------------
@@ -315,7 +318,7 @@ setup:
        @if not exist $(OUT_DIR)\nul mkdir $(OUT_DIR)
        @if not exist $(TMP_DIR)\nul mkdir $(TMP_DIR)
 
-$(PRJLIB): $(DLLOBJS)
+$(PRJLIB): $(DLLOBJS) $(RCRES)
        $(link32) $(dlllflags) -out:$@ $(baselibs) @<<
 $**
 <<
@@ -350,6 +353,9 @@ $<
 
 {$(WINDIR)}.rc{$(TMP_DIR)}.res:
        $(rc32) -fo $@ -r -i "$(GENERICDIR)" -D__WIN32__ \
+               -DCOMMAVERSION=$(COMMAVERSION) \
+               -DDOTVERSION=\"$(DOTVERSION)\" \
+               -DVERSION=\"$(VERSION)$(SUFX)\" \
 !if $(DEBUG)
        -d DEBUG \
 !endif