Fixed resource file compilation in leashdll
authorSam Hartman <hartmans@mit.edu>
Wed, 28 Sep 2011 20:54:58 +0000 (20:54 +0000)
committerSam Hartman <hartmans@mit.edu>
Wed, 28 Sep 2011 20:54:58 +0000 (20:54 +0000)
Signed-off-by: Alexey Melnikov <aamelnikov@gmail.com>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25252 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/leashdll/Makefile.in
src/windows/leashdll/lsh_pwd.rc
src/windows/version.rc

index fd9b0f4319341de9cfd027f208a89936b8591f86..1d5a4619f2009acf601a9aa4ada94a44a4894f6c 100644 (file)
@@ -33,10 +33,10 @@ OBJS=       $(OUTPRE)AFSroutines.$(OBJEXT) \
        $(OUTPRE)loadfuncs.$(OBJEXT)
 
 #TODO: Fix resource compilation
-#RESFILE = $(OUTPRE)lsh_pwd.res
+RESFILE = $(OUTPRE)lsh_pwd.res
 XOBJS  = $(RESFILE)
 
-RCFLAGS = /i $(BUILDTOP)\include
+RCFLAGS = -I$(BUILDTOP)\include -I$(BUILDTOP) -DLEASHDLL_LIB
 
 ###From another project inside K 1.9:
 ###VERSIONRC = $(BUILDTOP)\windows\version.rc
@@ -73,4 +73,5 @@ $(OUTPRE)$(DLL_NAME).dll: $(DEF_FILE) $(OBJS) $(XOBJS)
 
 #TODO: Add dependencies on include files here
 
-#$(RESFILE): resource.rc
+$(RESFILE): lsh_pwd.rc
+
index c6d5a1bf13ab21689c9575f1c9e9f80efc8e6934..b2f7deb4c99e2ce0f6d96cad18ff87aad76f4dc7 100644 (file)
@@ -187,7 +187,7 @@ END
 3 TEXTINCLUDE DISCARDABLE
 BEGIN
     "\r\n"
-    "#include ""ver.rc""\r\n"
+    "#include ""..\\version.rc""\r\n"
     "\0"
 END
 
@@ -255,7 +255,7 @@ END
 // Generated from the TEXTINCLUDE 3 resource.
 //
 
-#include "ver.rc"
+#include "..\version.rc"
 
 /////////////////////////////////////////////////////////////////////////////
 #endif    // not APSTUDIO_INVOKED
index 166d961a51b939957a6e9a13daf69f10141699b9..060614acb54adbf3f918a90948ef9d7c24718970 100644 (file)
 #endif
 #endif /* GSSAPI */
 
+#ifdef LEASHDLL_LIB
+#define K5_DESCRIPTION "Leash Helper API - MIT GSS / Kerberos v5 distribution\0"
+#define K5_INTERNAL_NAME "leashw\0"
+#define K5_FILETYPE    VFT_DLL
+#if !defined(_WIN32)
+#define K5_ORIGINAL_NAME "leashw.dll\0"
+#else
+#define K5_ORIGINAL_NAME "leashw32.dll\0"
+#endif
+#endif /* LEASHDLL_LIB */
 
 #ifdef WSHELPER_LIB
 #define K5_DESCRIPTION "Winsock Helper (wshelper) API - MIT GSS / Kerberos v5 distribution\0"