[DAPL2] sync with WinOF 2.1 branch
[mirror/winof/.git] / inc / openib.def
index 76cebec..9e606bb 100644 (file)
@@ -1,3 +1,31 @@
+\r
 !INCLUDE $(NTMAKEENV)\makefile.def\r
 \r
-C_DEFINES=$(C_DEFINES) -DVER_OPENIB="$(VER_OPENIB)"\r
+# Allow overriding the company name.\r
+!IF !DEFINED(IB_COMPANYNAME)\r
+IB_COMPANYNAME="""OpenFabrics\40Alliance"""\r
+!ENDIF\r
+\r
+# Allow overriding the product name.\r
+!IF !DEFINED(IB_PRODUCTNAME)\r
+IB_PRODUCTNAME="""OpenFabrics\x20Windows"""\r
+!ENDIF\r
+\r
+# get module version: major, minor & build version\r
+!include mod_ver.def\r
+\r
+!IF !DEFINED(OPENIB_REV)\r
+OPENIB_REV=0\r
+!ENDIF\r
+\r
+!IFNDEF VER_PROVIDER\r
+VER_PROVIDER="""OpenFabrics"""\r
+!ENDIF\r
+\r
+C_DEFINES=$(C_DEFINES) -DIB_COMPANYNAME=$(IB_COMPANYNAME) \\r
+    -DIB_PRODUCTNAME=$(IB_PRODUCTNAME) \\r
+    -DVER_FILEMAJORVERSION=$(IB_MAJORVERSION) \\r
+    -DVER_FILEMINORVERSION=$(IB_MINORVERSION) \\r
+    -DVER_FILEBUILD=$(IB_BUILDVERSION) \\r
+    -DVER_FILEREV=$(OPENIB_REV) \\r
+    -DVER_PROVIDER=$(VER_PROVIDER)\r