]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[WIX] IB SDK examples updated
authorStan Smith <stan.smith@intel.com>
Fri, 9 Apr 2010 22:28:30 +0000 (22:28 +0000)
committerStan Smith <stan.smith@intel.com>
Fri, 9 Apr 2010 22:28:30 +0000 (22:28 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@2774 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/OFED/WIX/SDK_Samples/DDK/README.txt
trunk/OFED/WIX/SDK_Samples/DDK/SOURCES
trunk/OFED/WIX/SDK_Samples/DDK/makefile
trunk/OFED/WIX/SDK_Samples/VS/Makefile.x64
trunk/OFED/WIX/SDK_Samples/VS/Makefile.x86
trunk/OFED/WIX/SDK_Samples/VS/README.txt

index d3f55feef260336df5aeca1e0b87db86e95a5401..9c5257d297e545266855606e864d3717b1330571 100644 (file)
@@ -1,48 +1,51 @@
 \r
-DDK (Driver Development Kit) Build Environment Example [12-06-07]\r
+WDK (Windows Driver Kit) Build Environment Example [4-08-10]\r
 -----------------------------------------------------------------\r
 \r
-Install the Windows Server 2003 (SP1) DDK see\r
-http://www.microsoft.com/whdc/devtools/ddk/default.mspx .\r
+Install the Windows WDK see\r
+  http://www.microsoft.com/whdc/Devtools/wdk/default.mspx\r
 \r
-Why use the DDK? Windows Server 2003 DDK (SP1) is what's used to build the WinOF\r
+Why use the WDK? WDK (600.16385.0) is what's used to build the OFED for Windows\r
 distribution.\r
-Installing the DDK first requires burning a CD of the downloaded DDK - sigh...\r
+Installing the WDK first requires burning a CD of the downloaded WDK - sigh...\r
 \r
-Due to the problematic nature of spaces in path names, Windows Server 2003 DDK\r
-does not allow spaces in pathnames; this is why IBSDK is not installed under\r
-WinOF.\r
+Due to the problematic nature of spaces in path names, the Windows Driver Kit\r
+does not allow spaces in pathnames; Due to the spaces in %ProgramFiles%\OFED\r
+path, the OFED_SDK is not installed under %ProgramFiles%\OFED.\r
+See %SystemDrive%\OFED_SDK\\r
 \r
 \r
 Building CM test example\r
 ------------------------\r
 \r
-Start a 'Free/Release' type DDK command prompt for you respective architecture [x86,amd64,ia64].\r
+Start a 'Free/Release' type WDK command window for you respective architecture\r
+[x86,amd64,ia64]; assumed OS is Windows Server 2008 R2 (aka win7).\r
 \r
-cd to C:\IBAL\Sampes\DDK\r
+cd to %SystemDrive%\OFED_SDK\Samples\DDK\r
 \r
-Set the 'OPENIB_REV' env variable to the svn version number.\r
-Hold the mouse-point over the file 'C:\Program Files (x86)\WinOF\opensm.exe'.\r
+Set the 'OPENIB_REV' env variable to the svn version number; any # will work.\r
+Hold the mouse-point over the file 'C:\Program Files\OFED\opensm.exe'.\r
 The last field of the 'File Version' field is the svn revision number.\r
 \r
-set OPENIB_REV=917\r
+example: set OPENIB_REV=917\r
 \r
-If building an 32-bit cmtest version on an x64 platform, edit Sources file by adding '32' to\r
-ibal.lib and complib.lib, resulting in 'ibal32.lib' and 'complib32.lib'.\r
-Note - executable will be appear as 'objfre_wnet_x86\i386\cmtest.exe'.\r
+If building an 32-bit cmtest version on an x64 platform, edit Sources file by\r
+adding '32' to ibal.lib and complib.lib, resulting in 'ibal32.lib' and\r
+'complib32.lib'.\r
+Note - executable will be appear as 'objfre_win7_x86\i386\cmtest.exe'.\r
 \r
-build -wg\r
+build /wg\r
 \r
 The executable will be created in a processor specific directory:\r
 \r
   x64 (Release/Free) example:\r
-      C:\IBAL\Sampes\DDK\objfre_wnet_amd64\amd64\cmtest.exe\r
+      %SystemDrive%\OFED_SDK\Samples\DDK\objfre_win7_amd64\amd64\cmtest.exe\r
 \r
   x64 (Checked/Debug)) example:\r
-      C:\IBAL\Sampes\DDK\objchk_wnet_amd64\amd64\cmtest.exe\r
+      %SystemDrive%\OFED_SDK\Samples\DDK\objchk_win7_amd64\amd64\cmtest.exe\r
 \r
   x86 (Release/Free) example:\r
-      C:\IBAL\Sampes\DDK\objfre_wnet_x86\i386\cmtest.exe\r
+      %SystemDrive%\OFED_SDK\Samples\DDK\objfre_win7_x86\i386\cmtest.exe\r
 \r
 Executing cmtest.exe\r
 --------------------\r
@@ -54,7 +57,7 @@ displayed by the vstat command).
 \r
 Note: <spaces> are not allowed between command line switch and it's argument.\r
 \r
-Server side:    cmtest -s -l0xlll -r0xrrr -m1024 -n100\r
+Server side:   cmtest -s -l0xlll -r0xrrr -m1024 -n100\r
 \r
 Client side:   cmtest.exe -l0xlll -r0xrrr -m1024 -n100\r
 \r
index 99254f96d31ac697951a509f4e58e13ee2aa26fd..160f23fd692545bb01927d385856a12c33d28c0c 100644 (file)
@@ -2,12 +2,12 @@ TARGETNAME=cmtest
 TARGETPATH=obj$(BUILD_ALT_DIR)\r
 TARGETTYPE=PROGRAM\r
 UMTYPE=console\r
-USE_CRTDLL=1\r
-_LIBS=..\..\Lib\r
+USE_MSVCRT=1\r
+_LIBS=C:\OFED_SDK\Lib\r
 \r
 SOURCES=cmtest.c cmtest.rc\r
 \r
-INCLUDES=..\..\Inc;\r
+INCLUDES=C:\OFED_SDK\Inc;\r
 \r
 TARGETLIBS= \\r
 !if $(FREEBUILD)\r
index f86adf8168225f76af3a5123e19fb2ec5a7ea0ac..46abe2e570711d3453e4cc88a83dd3a7a79dd941 100644 (file)
@@ -4,4 +4,4 @@
 # that is shared by all the driver components of the OpenIB Windows project.\r
 #\r
 \r
-!INCLUDE C:\IBSDK\Inc\openib.def\r
+!INCLUDE C:\OFED_SDK\Inc\openib.def\r
index 0bc70cc0c514fe016ca1b96945cbee928b59f1a9..a09bb5e1874645e099020b84d75d2d1f6c6c5bf6 100644 (file)
@@ -3,7 +3,7 @@
 # \r
 # NMAKE Options (passed as macro) \r
 #\r
-# Select a Visual Studio 2005 command window from the start menu\r
+# Select a Visual Studio command window from the start menu\r
 # vcvarsall X64         - sets X64 processor compilation env, X86 | IA64\r
 #\r
 #*********************************************************************/\r
@@ -27,8 +27,8 @@
 \r
 SRC=cmtest\r
 \r
-LIB_PATH=C:\IBSDK\Lib\r
-INC_PATH=C:\IBSDK\Inc\r
+LIB_PATH=C:\OFED_SDK\Lib\r
+INC_PATH=C:\OFED_SDK\Inc\r
 \r
 IB_LIBS=ibal.lib complib.lib\r
 \r
@@ -60,7 +60,7 @@ CC_FLAGS= /nologo /Gy /W3 /Gm- \
 \r
 LINK = link\r
 \r
-LIBS =         ws2_32.lib advapi32.lib User32.lib bufferoverflowU.lib\r
+LIBS =         ws2_32.lib advapi32.lib User32.lib\r
 \r
 LINK_FLAGS = /nologo /subsystem:console /machine:$(ARCH) $(LIBS) \\r
                /libpath:$(LIB_PATH) $(IB_LIBS)\r
index 6407076360f591a5be84c001ccd53a0e244976b7..3631e0636f53541aecee71693c294d2ee166a53e 100644 (file)
 \r
 SRC=cmtest\r
 \r
-LIB_PATH=C:\IBSDK\Lib\r
-INC_PATH=C:\IBSDK\Inc\r
+LIB_PATH=C:\OFED_SDK\Lib\r
+INC_PATH=C:\OFED_SDK\Inc\r
 \r
-IB_LIBS=ibal.lib complib.lib\r
+# For x86 on x64 system: IB_LIBS=ibal32.lib complib32.lib\r
+# For x86 on x86 system: IB_LIBS=ibal.lib complib.lib\r
+\r
+IB_LIBS=ibal32.lib complib32.lib\r
 \r
 DEFS= /D_WIN32 \r
 \r
@@ -60,7 +63,7 @@ CC_FLAGS= /nologo /Gy /W3 /Gm- \
 \r
 LINK = link\r
 \r
-LIBS =         ws2_32.lib advapi32.lib User32.lib bufferoverflowU.lib\r
+LIBS =         ws2_32.lib advapi32.lib User32.lib\r
 \r
 LINK_FLAGS = /nologo /subsystem:console /machine:$(ARCH) $(LIBS) \\r
                /libpath:$(LIB_PATH) $(IB_LIBS)\r
index 99d41736186871195acbab054269e47f2f7f62aa..67e901bcfddcfd49d99990c4d2822791705abeb7 100644 (file)
@@ -1,13 +1,15 @@
 \r
-Visual Studio 8/5.0 (C++) Build Environment [12-06-07]\r
+Visual Studio (C++) Build Environment [4-07-10]\r
 -----------------------------------------------------------------\r
 \r
-Install Microsoft Visual Studio 8/5.0 (C++ env)\r
+Install Microsoft Visual Studio 10 (C++ env)\r
 \r
 \r
 **** WARNING - win32 application building ****\r
 \r
-The Visual Studio default calling convention is '__cdecl' (/Gd).\r
+Disregard if building x64 application.\r
+\r
+The Visual Studio default x86 calling convention is '__cdecl' (/Gd).\r
 The 32-bit versions of ibal32.lib & complib32.lib are built using '__stdcall'\r
 as the default calling convention (AL_API & CL_API).\r
 Make _sure_ 'all' user-defined ibal and complib callback routines match the\r
@@ -18,11 +20,11 @@ The other option is to force __stdcall (/Gz) as the 'default' calling
 convention for your 'win32' InfiniBand application.\r
 \r
 \r
-Building CM test example\r
-------------------------\r
+Building CM test example from a cmd.exe window\r
+----------------------------------------------\r
 \r
 \r
-cd to C:\IBAL\Samples\VS\r
+cd to %SystemDrive%\OFED_SDK\Samples\VS\r
 \r
 \r
 Makefile Solution\r
@@ -50,9 +52,9 @@ Select a C++ console application project.
 \r
 Salient Solution points:\r
   compile as a C program\r
-  set additional Include path as C:\IBSDK\Inc\r
-  set additional Resource Include path as C:\IBSDK\Inc\r
-  Set additional Library path as C:\IBSDK\Lib .\r
+  set additional Include path as C:\OFED_SDK\Inc\r
+  set additional Resource Include path as C:\OFED_SDK\Inc\r
+  Set additional Library path as C:\OFED_SDK\Lib .\r
   Link with additional libraries ibal.lib & complib.lib .\r
   If building a win32 application on a 64-bit platform then link with\r
   lbal32[d].lib & complib32[d].lib\r