pull up r18930 from trunk
authorTom Yu <tlyu@mit.edu>
Tue, 19 Dec 2006 00:12:32 +0000 (00:12 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 19 Dec 2006 00:12:32 +0000 (00:12 +0000)
 r18930@cathode-dark-space:  jaltman | 2006-12-07 16:56:20 -0500
 ticket: 3642
 tags: pullup

     Modifications to support the generation and embedding
     of library manifests into generated EXEs and DLLs.
     Manifests are required for Windows XP and above when
     applications are built with Microsoft Visual Studio 2005
     (aka VS8) or above.

ticket: 3642
version_fixed: 1.6

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@18967 dc483132-0cff-0310-8789-dd5450dbe970

22 files changed:
src/Makefile.in
src/appl/gss-sample/Makefile.in
src/appl/gssftp/ftp/Makefile.in
src/clients/kcpytkt/Makefile.in
src/clients/kdeltkt/Makefile.in
src/clients/kdestroy/Makefile.in
src/clients/kinit/Makefile.in
src/clients/klist/Makefile.in
src/clients/kvno/Makefile.in
src/config/win-post.in
src/config/win-pre.in
src/include/krb5/krb5.hin
src/krb524/Makefile.in
src/lib/Makefile.in
src/lib/krb5/krb/gic_opt.c
src/util/windows/Makefile.in
src/windows/cns/Makefile.in
src/windows/gina/Makefile.in
src/windows/identity/config/Makefile.w32
src/windows/kfwlogon/Makefile.in
src/windows/ms2mit/Makefile.in
src/windows/wintel/Makefile.in

index 94829d061cf46b5cd25cacaa86625d473323bcac..5e88fb94d479059c709a349073b3a1f858470264 100644 (file)
@@ -159,6 +159,7 @@ config-windows:: Makefile-windows
 #
 ##DOS##$(WCONFIG_EXE): outpre-dir wconfig.c
 ##DOS##        $(CC) -Fe$@ -Fo$*.obj wconfig.c $(CCLINKOPTION)
+##DOS## $(_VC_MANIFEST_EMBED_EXE)
 
 ##DOS##MKFDEP=$(WCONFIG_EXE) config\win-pre.in config\win-post.in
 
index 92cecb501e9ae8143b0a17da15b3196ac0922537..f43bdc9d6966893bf4ea384b2be806e39ee50a78 100644 (file)
@@ -21,9 +21,11 @@ gss-client: gss-client.o gss-misc.o $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS)
 
 $(OUTPRE)gss-server.exe: $(OUTPRE)gss-server.obj $(OUTPRE)gss-misc.obj $(GLIB) $(KLIB)
        link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib $(SCLIB)
+       $(_VC_MANIFEST_EMBED_EXE)
 
 $(OUTPRE)gss-client.exe: $(OUTPRE)gss-client.obj $(OUTPRE)gss-misc.obj $(GLIB) $(KLIB)
        link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib $(SCLIB)
+       $(_VC_MANIFEST_EMBED_EXE)
 
 clean-unix::
        $(RM) gss-server gss-client
index ded4c95dad5bfce234529518ef2d6d3708b407cf..490b5dc3bef09cef5e7bb01112c7af359798f210 100644 (file)
@@ -38,6 +38,7 @@ ftp:  $(OBJS) $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS)
 
 $(OUTPRE)ftp.exe: $(OBJS) $(GLIB) $(KLIB)
        link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib advapi32.lib $(SCLIB)
+       $(_VC_MANIFEST_EMBED_EXE)
 
 clean-unix::
        $(RM) ftp
index d7089841c5592e573ac76b9ada3b41708c0fda96..a989b5006fc036579b1cb7925628a070bbb43254 100644 (file)
@@ -15,6 +15,7 @@ kcpytkt: kcpytkt.o $(KRB4COMPAT_DEPLIBS)
 
 $(OUTPRE)kcpytkt.exe: $(OUTPRE)kcpytkt.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB)
        link $(EXE_LINKOPTS) /out:$@ $**
+       $(_VC_MANIFEST_EMBED_EXE)
 
 clean-unix::
        $(RM) kcpytkt.o kcpytkt
index d7d371a79c6da8d54f6c38e415aa5650ac7d7db3..f5f746f28de71432c1bc1c55a72510c000cdb435 100644 (file)
@@ -15,6 +15,7 @@ kdeltkt: kdeltkt.o $(KRB4COMPAT_DEPLIBS)
 
 $(OUTPRE)kdeltkt.exe: $(OUTPRE)kdeltkt.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB)
        link $(EXE_LINKOPTS) /out:$@ $**
+       $(_VC_MANIFEST_EMBED_EXE)
 
 clean-unix::
        $(RM) kdeltkt.o kdeltkt
index 6c24f71909862723d6e461bf944c16f75758acae..ce273af9b567285fdb31dd2b699cbdefed81aeff 100644 (file)
@@ -17,6 +17,7 @@ kdestroy: kdestroy.o $(KRB4COMPAT_DEPLIBS)
 
 $(OUTPRE)kdestroy.exe: $(OUTPRE)kdestroy.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB)
        link $(EXE_LINKOPTS) -out:$@ $**
+       $(_VC_MANIFEST_EMBED_EXE)
 
 clean-unix::
        $(RM) kdestroy.o kdestroy
index 17c6e5a92adcfa491c6c2dbbb5acaf11a0f363cb..ec023b75729843ab83d7b8b47640d097788e7231 100644 (file)
@@ -20,6 +20,7 @@ kinit: kinit.o $(KRB4COMPAT_DEPLIBS)
 
 $(OUTPRE)kinit.exe: $(OUTPRE)kinit.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.lib $(KLIB) $(CLIB)
        link $(EXE_LINKOPTS) -out:$@ $** advapi32.lib
+       $(_VC_MANIFEST_EMBED_EXE)
 
 clean-unix::
        $(RM) kinit.o kinit
index 669c11e867fc7bfcc7a25de56ca0d684b8a44709..7a834045c63eb236ee0f52e5349f48d348f9dc70 100644 (file)
@@ -17,6 +17,7 @@ klist: klist.o $(KRB4COMPAT_DEPLIBS)
 
 $(OUTPRE)klist.exe: $(OUTPRE)klist.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.lib $(SLIB) $(KLIB) $(CLIB)
        link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib $(SCLIB)
+       $(_VC_MANIFEST_EMBED_EXE)
 
 clean-unix::
        $(RM) klist.o klist
index f8a3eeb3a2f4353c34b1ce5c937bae98fa0b2621..70729311e03e6d6438171fcade7f7b34e275a750 100644 (file)
@@ -17,6 +17,7 @@ kvno: kvno.o $(KRB4COMPAT_DEPLIBS)
 
 $(OUTPRE)kvno.exe: $(OUTPRE)kvno.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB)
        link $(EXE_LINKOPTS) /out:$@ $**
+       $(_VC_MANIFEST_EMBED_EXE)
 
 clean-unix::
        $(RM) kvno.o kvno
index a568bf9a9e567fbc1ae4b3d933f3408335c98b82..fd874aebeb7ed61ec719fcc05f131bb3ab5da1e3 100644 (file)
@@ -107,4 +107,5 @@ clean-windows-files::
        $(RM) .\$(OUTPRE)*.lib .\$(OUTPRE)*.pdb
        $(RM) .\$(OUTPRE)*.exp .\$(OUTPRE)*.map
        $(RM) .\$(OUTPRE)*.idb .\$(OUTPRE)*.ilk
+       $(RM) .\$(OUTPRE)*.manifest
 !endif
index 2f8b0dad2789bf01fa6fe752757ed6bbdafde92b..7cadbe90325daaea25b297f8f856556e6453f4e1 100644 (file)
@@ -144,6 +144,13 @@ SCLIB=
 DEBUGOPT=/ZI
 !endif
 
+#if the compiler is vstudio 8, generate manifest
+!if exists("$(VCINSTALLDIR)\..\..\MICROSOFT VISUAL STUDIO 8")
+CCLINKOPTION = $(CCLINKOPTION) /MANIFEST
+_VC_MANIFEST_EMBED_EXE = if exist $*.exe.manifest mt.exe -manifest $*.exe.manifest -outputresource:$*.exe;1
+_VC_MANIFEST_EMBED_DLL = if exist $*.dll.manifest mt.exe -manifest $*.dll.manifest -outputresource:$*.dll;2
+!endif 
+
 # /ZI gives better debug info in each object file (MSVC 6.0 or higher).
 # /Zi gives debug info in each object file.
 # /Gs Avoid stack probes (they don't seem to work anyway)
index 9d9920efd880cc45c3039c57de16b714f42fd00c..9c6fd2311eb743de0636f8908e53936563be6576 100644 (file)
@@ -2429,7 +2429,7 @@ typedef struct _krb5_get_init_creds_opt {
 #define KRB5_GET_INIT_CREDS_OPT_ADDRESS_LIST   0x0020
 #define KRB5_GET_INIT_CREDS_OPT_PREAUTH_LIST   0x0040
 #define KRB5_GET_INIT_CREDS_OPT_SALT           0x0080
-
+#define KRB5_GET_INIT_CREDS_OPT_CHG_PWD_PRMPT  0x0100
 
 void KRB5_CALLCONV
 krb5_get_init_creds_opt_init
@@ -2477,7 +2477,10 @@ krb5_get_init_creds_opt_set_salt
 (krb5_get_init_creds_opt *opt,
                krb5_data *salt);
 
-
+void KRB5_CALLCONV
+krb5_get_init_creds_opt_set_change_password_prompt
+(krb5_get_init_creds_opt *opt,
+               int prompt);
 
 krb5_error_code KRB5_CALLCONV
 krb5_get_init_creds_password
index f244e52712cad78e0fc9ab1694af495f289efba9..2501c92f3ed53e7670c25f222af2fc7b18c46e94 100644 (file)
@@ -88,9 +88,11 @@ k524init: $(CLIENT_OBJS) $(KRB5_DEPLIB) $(KRB4COMPAT_DEPLIBS)
 
 $(K524LIB): $(OUTPRE)krb524.$(OBJEXT) $(OUTPRE)libinit.$(OBJEXT) $(KLIB) $(CLIB)
        link $(DLL_LINKOPTS) -def:$(K524DEF) -out:$*.dll $** $(WINLIBS)
+       $(_VC_MANIFEST_EMBED_DLL)
 
 $(OUTPRE)k524init.exe: $(OUTPRE)k524init.$(OBJEXT) $(KLIB) $(K4LIB) $(CLIB) $(BUILDTOP)\util\windows\$(OUTPRE)getopt.lib
        link $(EXE_LINKOPTS) -out:$@ $** $(WINLIBS) $(SCLIB)
+       $(_VC_MANIFEST_EMBED_EXE)
 
 install-unix::
        $(INSTALL_PROGRAM) krb524d $(DESTDIR)$(SERVER_BINDIR)/krb524d
index 736f9a5156b3e8aca824ffe8dfc04d4d08e380f0..b1590df71fc060e8b1bb3c622bded5b027f9c287 100644 (file)
@@ -101,6 +101,7 @@ clean-windows::
 ##WIN32##$(SLIB): $(SDEF) $(SLIBS) $(SGLUE) $(SRES)
 ##WIN32##      link $(WINDLLFLAGS) -def:$(SDEF) -out:$*.dll \
 ##WIN32##        $(SLIBS) $(SGLUE) $(SRES) $(WINLIBS) $(SCLIB)
+##WIN32##        $(_VC_MANIFEST_EMBED_DLL)
 ##WIN32##$(SDEF): ..\util\support\libkrb5support.exports
 ##WIN32##      echo EXPORTS > $(SDEF).new
 ##WIN32##      type ..\util\support\libkrb5support.exports >> $(SDEF).new
@@ -110,22 +111,27 @@ clean-windows::
 ##WIN32##$(CLIB): $(CDEF) $(CLIBS) $(CGLUE) $(CRES) $(SLIB)
 ##WIN32##      link $(WINDLLFLAGS) -def:$(CDEF) -out:$*.dll \
 ##WIN32##        $(CLIBS) $(CGLUE) $(CRES) $(SLIB) $(WINLIBS) $(SCLIB)
+##WIN32##      $(_VC_MANIFEST_EMBED_DLL)
 
 ##WIN32##$(PLIB): $(PDEF) $(PLIBS) $(PGLUE) $(PRES) $(CLIB) $(SLIB)
 ##WIN32##      link $(WINDLLFLAGS) -def:$(PDEF) -out:$*.dll \
 ##WIN32##        $(PLIBS) $(PGLUE) $(PRES) $(CLIB) $(SLIB) $(WINLIBS)
+##WIN32##      $(_VC_MANIFEST_EMBED_DLL)
 
 ##WIN32##$(KLIB): $(KDEF) $(KLIBS) $(KGLUE) $(KRES) $(CLIB) $(SLIB) $(MITLIBS) $(DNSLIBS)
 ##WIN32##      link $(WINDLLFLAGS) -def:$(KDEF) -out:$*.dll \
 ##WIN32##        $(KLIBS) $(KGLUE) $(KRES) $(CLIB) $(SLIB) $(MITLIBS) $(DNSLIBS) $(WINLIBS) $(SCLIB)
+##WIN32##      $(_VC_MANIFEST_EMBED_DLL)
 
 ##WIN32##$(GLIB): $(GDEF) $(GLIBS) $(GGLUE) $(GRES) $(KLIB) $(CLIB) $(SLIB)
 ##WIN32##      link $(WINDLLFLAGS) -def:$(GDEF) -out:$*.dll \
 ##WIN32##        $(GLIBS) $(GGLUE) $(GRES) $(KLIB) $(CLIB) $(SLIB) $(WINLIBS) $(SCLIB)
+##WIN32##              $(_VC_MANIFEST_EMBED_DLL)
 
 ##WIN32##$(K4LIB): $(K4DEF) $(K4LIBS) $(K4GLUE) $(K4RES) $(KLIB) $(CLIB) $(PLIB)
 ##WIN32##      link $(WINDLLFLAGS) -def:$(K4DEF) -out:$*.dll \
 ##WIN32##        $(K4LIBS) $(K4GLUE) $(K4RES) $(KLIB) $(CLIB) $(PLIB) $(WINLIBS) $(SCLIB)
+##WIN32##      $(_VC_MANIFEST_EMBED_DLL)
 
 ##WIN32##$(K5_GLUE): win_glue.c
 ##WIN32##      $(CC) $(ALL_CFLAGS) $(MITFLAGS) /c /DKRB5=1 /Fo$@ $**
index 58d07b03db538d6002bc2a4b69f7aa9c989dc7f6..963bbc2788e989f875b29e0f894d2a7dd35e15be 100644 (file)
@@ -3,7 +3,7 @@
 void KRB5_CALLCONV
 krb5_get_init_creds_opt_init(krb5_get_init_creds_opt *opt)
 {
-   opt->flags = 0;
+   opt->flags = KRB5_GET_INIT_CREDS_OPT_CHG_PWD_PRMPT;
 }
 
 void KRB5_CALLCONV
@@ -63,3 +63,13 @@ krb5_get_init_creds_opt_set_salt(krb5_get_init_creds_opt *opt, krb5_data *salt)
    opt->flags |= KRB5_GET_INIT_CREDS_OPT_SALT;
    opt->salt = salt;
 }
+
+void KRB5_CALLCONV
+krb5_get_init_creds_opt_set_salt(krb5_get_init_creds_opt *opt, int prompt)
+{
+   if (prompt)
+     opt->flags |= KRB5_GET_INIT_CREDS_OPT_CHG_PWD_PRMPT;
+   else
+     opt->flags &= ~KRB5_GET_INIT_CREDS_OPT_CHG_PWD_PRMPT;
+}
+
index 102ae741c91df744a595b83892bba9eceb1961d8..f857c4667977e0b3419d918a8f0f9577e2abc568 100644 (file)
@@ -4,6 +4,8 @@ all-windows:: $(OUTPRE)libecho.exe $(OUTPRE)getopt.lib
 
 $(OUTPRE)libecho.exe: $(OUTPRE)libecho.obj
        link -out:$@ $** $(SCLIB)
+       $(_VC_MANIFEST_EMBED_EXE)
+       
 
 $(OUTPRE)getopt.lib: $(OUTPRE)getopt.obj $(OUTPRE)getopt_long.obj
        lib -out:$@ $**
@@ -11,4 +13,4 @@ $(OUTPRE)getopt.lib: $(OUTPRE)getopt.obj $(OUTPRE)getopt_long.obj
 install-windows::
 
 clean-windows::
-       $(RM) $(OUTPRE)*.res $(OUTPRE)*.map $(OUTPRE)*.obj $(OUTPRE)*.exe
+       $(RM) $(OUTPRE)*.res $(OUTPRE)*.map $(OUTPRE)*.obj $(OUTPRE)*.exe $(OUTPRE)*.manifest
index 1e9e50ed6df1df17646d7e400460051b91f6d38d..bc884a3fb16c732437c4891d4f08f7c1d1eafa33 100644 (file)
@@ -55,6 +55,7 @@ all:: Makefile $(OUTPRE)$(NAME).exe
 $(OUTPRE)$(NAME).exe: $(NAME).def $(OBJS) $(XOBJS) $(LIBS)
        $(LINK) $(LFLAGS) /map:$*.map /out:$@ $(OBJS) $(XOBJS) \
          $(LIBS) $(SYSLIBS) $(SCLIB)
+                               $(_VC_MANIFEST_EMBED_EXE)
 
 install::
        $(CP) $(OUTPRE)$(NAME).exe $(DESTDIR)
index 2aec54469b0c4fd4cd1fe07ed3971c3f8a04832f..c2f7ada19c1606f7636ed8658fd68b388348d3a8 100644 (file)
@@ -28,6 +28,7 @@ clean-windows::
 $(OUTPRE)kgina.dll: $(OBJS) $(KLIB) $(CLIB)
        link $(WINDLLFLAGS) -def:gina.def -out:$*.dll \
           $** $(WINLIBS) $(SCLIB)
+       $(_VC_MANIFEST_EMBED_DLL)
 
 $(OUTPRE)ginastub.obj: ginastub.h
 
index c6604268984df943cf52d2c9dadcb34c36de2f35..8ede1dbae09b615e34280765adcfe566044f807a 100644 (file)
@@ -324,7 +324,8 @@ MT=mt.exe -nologo
 _VC_MANIFEST_EMBED_EXE= \\r
 if exist $@.manifest $(MT) -outputresource:$@;1 -manifest $@.manifest\r
 \r
-_VC_MANIFEST_EMBED_DLL=$(_VC_MANIFEST_EMBED_EXE)\r
+_VC_MANIFEST_EMBED_DLL= \\r
+if exist $@.manifest $(MT) -outputresource:$@;2 -manifest $@.manifest\r
 \r
 # Note that if you are merging manifests, then the VS generated\r
 # manifest should be cleaned up after calling _VC_MANIFEST_EMBED_???.\r
index 03fc6e7e4c3805b1694eae9592645b2914a93260..96562ec36b48eb7743c3a287cdaa0dd3ebf833da 100644 (file)
@@ -1,37 +1,39 @@
-# Makefile for the KFW Network Provider\r
-#\r
-\r
-thisconfigdir=./..\r
-myfulldir=windows/nplogon\r
-mydir=.\r
-BUILDTOP=$(REL)..$(S)..\r
-DEFINES = \r
-LOCALINCLUDES = -I$(BUILDTOP) -I$(PISMERE)\athena\util\loadfuncs \\r
-       -I$(PISMERE)\athena\auth\krb5\src\include\kerberosIV \\r
-       -I$(PISMERE)\athena\auth\krb4\include \\r
-       -I$(PISMERE)\athena\auth\leash\include\r
-PROG_LIBPATH=-L$(TOPLIBD) -L$(KRB5_LIBDIR)\r
-\r
-SYSLIBS = kernel32.lib user32.lib advapi32.lib wsock32.lib secur32.lib userenv.lib\r
-RFLAGS = $(LOCALINCLUDES)\r
-RCFLAGS = $(RFLAGS) -D_WIN32\r
-\r
-all-windows:: $(OUTPRE)kfwlogon.dll $(OUTPRE)kfwcpcc.exe\r
-\r
-$(OUTPRE)kfwlogon.res: kfwlogon.rc ..\version.rc\r
-\r
-$(OUTPRE)kfwcpcc.res: kfwcpcc.rc ..\version.rc\r
-\r
-$(OUTPRE)kfwlogon.dll: $(OUTPRE)kfwlogon.obj $(OUTPRE)kfwcommon.obj $(OUTPRE)kfwlogon.res\r
-    link $(DLL_LINKOPTS) -out:$@ $(OUTPRE)kfwlogon.obj $(OUTPRE)kfwcommon.obj -entry:DllEntryPoint -def:kfwlogon.def $(SYSLIBS) $(KLIB) $(CLIB)\r
-\r
-$(OUTPRE)kfwcpcc.exe: $(OUTPRE)kfwcpcc.obj $(OUTPRE)kfwcommon.obj $(OUTPRE)kfwcpcc.res\r
-    link $(EXE_LINKOPTS) -out:$@ $(OUTPRE)kfwcpcc.obj $(OUTPRE)kfwcommon.obj $(SYSLIBS) $(KLIB) $(CLIB)\r
-\r
-install::\r
-        copy $(OUTPRE)kfwlogon.dll $(DESTDIR)\r
-        copy $(OUTPRE)kfwcpcc.exe  $(DESTDIR)\r
-\r
-clean::\r
-        $(RM) $(OUTPRE)*.exe $(OUTPRE)*.dll $(OUTPRE)*.res\r
-\r
+# Makefile for the KFW Network Provider
+#
+
+thisconfigdir=./..
+myfulldir=windows/nplogon
+mydir=.
+BUILDTOP=$(REL)..$(S)..
+DEFINES = 
+LOCALINCLUDES = -I$(BUILDTOP) -I$(PISMERE)\athena\util\loadfuncs \
+       -I$(PISMERE)\athena\auth\krb5\src\include\kerberosIV \
+       -I$(PISMERE)\athena\auth\krb4\include \
+       -I$(PISMERE)\athena\auth\leash\include
+PROG_LIBPATH=-L$(TOPLIBD) -L$(KRB5_LIBDIR)
+
+SYSLIBS = kernel32.lib user32.lib advapi32.lib wsock32.lib secur32.lib userenv.lib
+RFLAGS = $(LOCALINCLUDES)
+RCFLAGS = $(RFLAGS) -D_WIN32
+
+all-windows:: $(OUTPRE)kfwlogon.dll $(OUTPRE)kfwcpcc.exe
+
+$(OUTPRE)kfwlogon.res: kfwlogon.rc ..\version.rc
+
+$(OUTPRE)kfwcpcc.res: kfwcpcc.rc ..\version.rc
+
+$(OUTPRE)kfwlogon.dll: $(OUTPRE)kfwlogon.obj $(OUTPRE)kfwcommon.obj $(OUTPRE)kfwlogon.res
+    link $(DLL_LINKOPTS) -out:$@ $(OUTPRE)kfwlogon.obj $(OUTPRE)kfwcommon.obj -entry:DllEntryPoint -def:kfwlogon.def $(SYSLIBS) $(KLIB) $(CLIB)
+    $(_VC_MANIFEST_EMBED_DLL)
+
+$(OUTPRE)kfwcpcc.exe: $(OUTPRE)kfwcpcc.obj $(OUTPRE)kfwcommon.obj $(OUTPRE)kfwcpcc.res
+    link $(EXE_LINKOPTS) -out:$@ $(OUTPRE)kfwcpcc.obj $(OUTPRE)kfwcommon.obj $(SYSLIBS) $(KLIB) $(CLIB)
+    $(_VC_MANIFEST_EMBED_EXE)
+
+install::
+        copy $(OUTPRE)kfwlogon.dll $(DESTDIR)
+        copy $(OUTPRE)kfwcpcc.exe  $(DESTDIR)
+
+clean::
+        $(RM) $(OUTPRE)*.exe $(OUTPRE)*.dll $(OUTPRE)*.res
+
index b1275bbb4b2d6d3aa95f6788cce4ecfc40df3298..6162eb08e1035150800a1daa97b72076d62ddb7f 100644 (file)
@@ -13,9 +13,11 @@ all-windows:: $(OUTPRE)ms2mit.exe $(OUTPRE)mit2ms.exe
 
 $(OUTPRE)ms2mit.exe: $(OUTPRE)ms2mit.obj
     link $(EXE_LINKOPTS) -out:$@ $(OUTPRE)ms2mit.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj user32.lib advapi32.lib $(KLIB) $(CLIB)
+    $(_VC_MANIFEST_EMBED_EXE)
 
 $(OUTPRE)mit2ms.exe: $(OUTPRE)mit2ms.obj
     link $(EXE_LINKOPTS) -out:$@ $(OUTPRE)mit2ms.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj user32.lib advapi32.lib $(KLIB) $(CLIB)
+    $(_VC_MANIFEST_EMBED_EXE)
 
 install::
        copy $(OUTPRE)ms2mit.exe $(DESTDIR)
index 0603cc4ba0d95dd786ef59bf9d3002f15598e5f0..1ff8f599b978e9d5a95fc9e97730d5f040779ddb 100644 (file)
@@ -35,6 +35,7 @@ all:: Makefile $(OUTPRE)telnet.exe
 $(OUTPRE)telnet.exe: telnet.def $(OBJS) $(XOBJS) $(LIBS)
        $(LINK) $(LFLAGS) /map:$*.map /out:$@ $(OBJS) $(XOBJS) \
          $(LIBS) $(SYSLIBS) $(SCLIB)
+       $(_VC_MANIFEST_EMBED_EXE)
 
 install::
        copy $(OUTPRE)telnet.exe $(DESTDIR)