[DAPL] identify and generate debug version dapltestd.exe
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 5 Mar 2008 18:11:11 +0000 (18:11 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 5 Mar 2008 18:11:11 +0000 (18:11 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@975 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/dapl/test/udapl/dapltest/SOURCES
ulp/dapl/test/udapl/dapltest/dapltest.rc

index 4c56327..5828578 100644 (file)
@@ -1,4 +1,8 @@
+!if $(FREEBUILD)\r
 TARGETNAME=dapltest\r
+!else\r
+TARGETNAME=dapltestd\r
+!endif\r
 TARGETPATH=..\..\..\..\..\bin\user\obj$(BUILD_ALT_DIR)\r
 TARGETTYPE=PROGRAM\r
 UMTYPE=console\r
@@ -54,10 +58,12 @@ RCOPTIONS=/I..\..\..\..\..\inc;
 USER_C_FLAGS=$(USER_C_FLAGS) -DDYNAMIC_DAT_LOADING\r
 !if $(FREEBUILD)\r
 USER_C_FLAGS=$(USER_C_FLAGS) -DDAT_DLL_NAME=\"dat.dll\"\r
+DATLIB=dat.lib\r
 !else\r
 USER_C_FLAGS=$(USER_C_FLAGS) -DDAT_DLL_NAME=\"datd.dll\"\r
+DATLIB=datd.lib\r
 !endif\r
 \r
-TARGETLIBS=$(SDK_LIB_PATH)\ws2_32.lib\r
+TARGETLIBS=$(TARGETPATH)\*\$(DATLIB) $(SDK_LIB_PATH)\ws2_32.lib\r
 \r
 MSC_WARNING_LEVEL= /W3\r
index cf5770b..230df9f 100644 (file)
 \r
 #include <oib_ver.h>\r
 \r
-#define VER_FILETYPE                           VFT_APP\r
-#define VER_FILESUBTYPE                                VFT2_UNKNOWN\r
+#define VER_FILETYPE                   VFT_APP\r
+#define VER_FILESUBTYPE                        VFT2_UNKNOWN\r
 \r
 #if DBG\r
-#define VER_FILEDESCRIPTION_STR                "DAPL/DAT[1.1] test Application (Debug)"\r
+#define VER_FILEDESCRIPTION_STR                "DAPL/DAT[1.1] test application (Debug)"\r
+#define VER_INTERNALNAME_STR           "dapltestd.exe"\r
+#define VER_ORIGINALFILENAME_STR       "dapltestd.exe"\r
 #else\r
-#define VER_FILEDESCRIPTION_STR                "DAPL/DAT[1.1] test Application"\r
-#endif\r
-\r
+#define VER_FILEDESCRIPTION_STR                "DAPL/DAT[1.1] test application"\r
 #define VER_INTERNALNAME_STR           "dapltest.exe"\r
 #define VER_ORIGINALFILENAME_STR       "dapltest.exe"\r
+#endif\r
 \r
 #include <common.ver>\r
+\r