From: Tom Yu Date: Tue, 17 Apr 2007 23:08:46 +0000 (+0000) Subject: pull up r19471 from trunk X-Git-Tag: krb5-1.6.1-final~25 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b37e997fb3695b9561e3a0b2c8fbcb0a21ad4c26;p=krb5.git pull up r19471 from trunk r19471@cathode-dark-space: jaltman | 2007-04-14 12:38:50 -0400 ticket: 5529 tags: pullup Add resource data windows/version.rc for: kinit.exe, klist.exe, kdestroy.exe, kvno.exe kdeltkt.exe, kcpytkt.exe, kfwlogon.dll, kfwcpcc.exe gss-client.exe, gss-server.exe, kpasswd.exe Remove resource files: kfwcpcc.rc kfwlogon.rc and use windows/version.rc in their place Add resource make rules to Makefile.in files included in this commit Add missing _VC_MANIFEST_EMBED_EXE rule to kpasswd/Makefile.in Comment out addition Windows only make rules with ##WIN32## ticket: 5529 version_fixed: 1.6.1 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19483 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/gss-sample/Makefile.in b/src/appl/gss-sample/Makefile.in index f43bdc9d6..da68f128c 100644 --- a/src/appl/gss-sample/Makefile.in +++ b/src/appl/gss-sample/Makefile.in @@ -11,7 +11,23 @@ SRCS= $(srcdir)/gss-client.c $(srcdir)/gss-misc.c $(srcdir)/gss-server.c OBJS= gss-client.o gss-misc.o gss-server.o all-unix:: gss-server gss-client -all-windows:: $(OUTPRE)gss-server.exe $(OUTPRE)gss-client.exe + +##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc +##WIN32##RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY + +##WIN32##GSSCLIENT=$(OUTPRE)gss-client.exe +##WIN32##GSSSERVER=$(OUTPRE)gss-server.exe + +##WIN32##CLIENTRES=$(GSSCLIENT:.exe=.res) +##WIN32##SERVERRES=$(GSSSERVER:.exe=.res) + +##WIN32##$(CLIENTRES): $(VERSIONRC) +##WIN32## $(RC) $(RCFLAGS) -DGSS_CLIENT_APP -fo $@ -r $** +##WIN32##$(SERVERRES): $(VERSIONRC) +##WIN32## $(RC) $(RCFLAGS) -DGSS_SERVER_APP -fo $@ -r $** + + +##WIN32##all-windows:: $(OUTPRE)gss-server.exe $(OUTPRE)gss-client.exe gss-server: gss-server.o gss-misc.o $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS) $(CC_LINK) -o gss-server gss-server.o gss-misc.o $(GSS_LIBS) $(KRB5_BASE_LIBS) @@ -19,13 +35,13 @@ gss-server: gss-server.o gss-misc.o $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS) gss-client: gss-client.o gss-misc.o $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS) $(CC_LINK) -o gss-client gss-client.o gss-misc.o $(GSS_LIBS) $(KRB5_BASE_LIBS) -$(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) +##WIN32##$(GSSSERVER): $(OUTPRE)gss-server.obj $(OUTPRE)gss-misc.obj $(GLIB) $(KLIB) $(SERVERRES) +##WIN32## link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib $(SCLIB) +##WIN32## $(_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) +##WIN32##$(GSSCLIENT): $(OUTPRE)gss-client.obj $(OUTPRE)gss-misc.obj $(GLIB) $(KLIB) $(CLIENTRES) +##WIN32## link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib $(SCLIB) +##WIN32## $(_VC_MANIFEST_EMBED_EXE) clean-unix:: $(RM) gss-server gss-client diff --git a/src/clients/kcpytkt/Makefile.in b/src/clients/kcpytkt/Makefile.in index a989b5006..a47ac5f8f 100644 --- a/src/clients/kcpytkt/Makefile.in +++ b/src/clients/kcpytkt/Makefile.in @@ -6,16 +6,26 @@ BUILDTOP=$(REL)..$(S).. PROG_LIBPATH=-L$(TOPLIBD) PROG_RPATH=$(KRB5_LIBDIR) +##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc +##WIN32##RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY + +##WIN32##KCPYTKT=$(OUTPRE)kcpytkt.exe + +##WIN32##EXERES=$(KCPYTKT:.exe=.res) + +##WIN32##$(EXERES): $(VERSIONRC) +##WIN32## $(RC) $(RCFLAGS) -DKCPYTKT_APP -fo $@ -r $** + all-unix:: kcpytkt -all-windows:: $(OUTPRE)kcpytkt.exe +##WIN32##all-windows:: $(KCPYTKT) all-mac:: kcpytkt: kcpytkt.o $(KRB4COMPAT_DEPLIBS) $(CC_LINK) -o $@ kcpytkt.o $(KRB4COMPAT_LIBS) -$(OUTPRE)kcpytkt.exe: $(OUTPRE)kcpytkt.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB) - link $(EXE_LINKOPTS) /out:$@ $** - $(_VC_MANIFEST_EMBED_EXE) +##WIN32##$(KCPYTKT): $(OUTPRE)kcpytkt.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB) $(EXERES) +##WIN32## link $(EXE_LINKOPTS) /out:$@ $** +##WIN32## $(_VC_MANIFEST_EMBED_EXE) clean-unix:: $(RM) kcpytkt.o kcpytkt diff --git a/src/clients/kdeltkt/Makefile.in b/src/clients/kdeltkt/Makefile.in index f5f746f28..dbd4b7116 100644 --- a/src/clients/kdeltkt/Makefile.in +++ b/src/clients/kdeltkt/Makefile.in @@ -6,16 +6,26 @@ BUILDTOP=$(REL)..$(S).. PROG_LIBPATH=-L$(TOPLIBD) PROG_RPATH=$(KRB5_LIBDIR) +##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc +##WIN32##RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY + +##WIN32##KDELTKT=$(OUTPRE)kdeltkt.exe + +##WIN32##EXERES=$(KDELTKT:.exe=.res) + +##WIN32##$(EXERES): $(VERSIONRC) +##WIN32## $(RC) $(RCFLAGS) -DKDELTKT_APP -fo $@ -r $** + all-unix:: kdeltkt -all-windows:: $(OUTPRE)kdeltkt.exe +##WIN32##all-windows:: $(KDELTKT) all-mac:: kdeltkt: kdeltkt.o $(KRB4COMPAT_DEPLIBS) $(CC_LINK) -o $@ kdeltkt.o $(KRB4COMPAT_LIBS) -$(OUTPRE)kdeltkt.exe: $(OUTPRE)kdeltkt.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB) - link $(EXE_LINKOPTS) /out:$@ $** - $(_VC_MANIFEST_EMBED_EXE) +##WIN32##$(KDELTKT): $(OUTPRE)kdeltkt.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB) $(EXERES) +##WIN32## link $(EXE_LINKOPTS) /out:$@ $** +##WIN32## $(_VC_MANIFEST_EMBED_EXE) clean-unix:: $(RM) kdeltkt.o kdeltkt diff --git a/src/clients/kdestroy/Makefile.in b/src/clients/kdestroy/Makefile.in index ce273af9b..51cf5cf5d 100644 --- a/src/clients/kdestroy/Makefile.in +++ b/src/clients/kdestroy/Makefile.in @@ -9,15 +9,25 @@ SRCS=kdestroy.c PROG_LIBPATH=-L$(TOPLIBD) PROG_RPATH=$(KRB5_LIBDIR) +##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc +##WIN32##RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY + +##WIN32##KDESTROY=$(OUTPRE)kdestroy.exe + +##WIN32##EXERES=$(KDESTROY:.exe=.res) + +##WIN32##$(EXERES): $(VERSIONRC) +##WIN32## $(RC) $(RCFLAGS) -DKDESTROY_APP -fo $@ -r $** + all-unix:: kdestroy -all-windows:: $(OUTPRE)kdestroy.exe +##WIN32##all-windows:: $(KDESTROY) kdestroy: kdestroy.o $(KRB4COMPAT_DEPLIBS) $(CC_LINK) -o $@ kdestroy.o $(KRB4COMPAT_LIBS) -$(OUTPRE)kdestroy.exe: $(OUTPRE)kdestroy.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB) - link $(EXE_LINKOPTS) -out:$@ $** - $(_VC_MANIFEST_EMBED_EXE) +##WIN32##$(KDESTROY): $(OUTPRE)kdestroy.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB) $(EXERES) +##WIN32## link $(EXE_LINKOPTS) -out:$@ $** +##WIN32## $(_VC_MANIFEST_EMBED_EXE) clean-unix:: $(RM) kdestroy.o kdestroy diff --git a/src/clients/kinit/Makefile.in b/src/clients/kinit/Makefile.in index ec023b757..ead20cf12 100644 --- a/src/clients/kinit/Makefile.in +++ b/src/clients/kinit/Makefile.in @@ -12,15 +12,25 @@ SRCS=kinit.c ##WIN32##LOCALINCLUDES=-I$(BUILDTOP)\util\windows ##WIN32##DEFINES=-DGETOPT_LONG +##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc +##WIN32##RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY + +##WIN32##KINIT=$(OUTPRE)kinit.exe + +##WIN32##EXERES=$(KINIT:.exe=.res) + +##WIN32##$(EXERES): $(VERSIONRC) +##WIN32## $(RC) $(RCFLAGS) -DKINIT_APP -fo $@ -r $** + all-unix:: kinit -all-windows:: $(OUTPRE)kinit.exe +##WIN32##all-windows:: $(KINIT) kinit: kinit.o $(KRB4COMPAT_DEPLIBS) $(CC_LINK) -o $@ kinit.o $(KRB4COMPAT_LIBS) -$(OUTPRE)kinit.exe: $(OUTPRE)kinit.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.lib $(KLIB) $(CLIB) - link $(EXE_LINKOPTS) -out:$@ $** advapi32.lib - $(_VC_MANIFEST_EMBED_EXE) +##WIN32##$(KINIT): $(OUTPRE)kinit.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.lib $(KLIB) $(CLIB) $(EXERES) +##WIN32## link $(EXE_LINKOPTS) -out:$@ $** advapi32.lib +##WIN32## $(_VC_MANIFEST_EMBED_EXE) clean-unix:: $(RM) kinit.o kinit diff --git a/src/clients/klist/Makefile.in b/src/clients/klist/Makefile.in index 7a834045c..66d0c4acd 100644 --- a/src/clients/klist/Makefile.in +++ b/src/clients/klist/Makefile.in @@ -9,15 +9,25 @@ PROG_RPATH=$(KRB5_LIBDIR) SRCS = klist.c +##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc +##WIN32##RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY + +##WIN32##KLIST=$(OUTPRE)klist.exe + +##WIN32##EXERES=$(KLIST:.exe=.res) + +##WIN32##$(EXERES): $(VERSIONRC) +##WIN32## $(RC) $(RCFLAGS) -DKLIST_APP -fo $@ -r $** + all-unix:: klist -all-windows:: $(OUTPRE)klist.exe +##WIN32##all-windows:: $(KLIST) klist: klist.o $(KRB4COMPAT_DEPLIBS) $(CC_LINK) -o $@ klist.o $(KRB4COMPAT_LIBS) -$(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) +##WIN32##$(KLIST): $(OUTPRE)klist.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.lib $(SLIB) $(KLIB) $(CLIB) $(EXERES) +##WIN32## link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib $(SCLIB) +##WIN32## $(_VC_MANIFEST_EMBED_EXE) clean-unix:: $(RM) klist.o klist diff --git a/src/clients/kpasswd/Makefile.in b/src/clients/kpasswd/Makefile.in index 062733498..bfa26f730 100644 --- a/src/clients/kpasswd/Makefile.in +++ b/src/clients/kpasswd/Makefile.in @@ -17,6 +17,16 @@ ksetpwd: ksetpwd.o $(KRB5_BASE_DEPLIBS) kpasswd.o: $(srcdir)/kpasswd.c ksetpwd.o: $(srcdir)/ksetpwd.c +##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc +##WIN32##RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY + +##WIN32##KPWD=$(OUTPRE)kpasswd.exe + +##WIN32##EXERES=$(KPWD:.exe=.res) + +##WIN32##$(EXERES): $(VERSIONRC) +##WIN32## $(RC) $(RCFLAGS) -DKPASSWD_APP -fo $@ -r $** + all-unix:: kpasswd ksetpwd clean-unix:: @@ -26,10 +36,12 @@ install-all install-kdc install-server install-client install-unix:: $(INSTALL_PROGRAM) kpasswd $(DESTDIR)$(CLIENT_BINDIR)/`echo kpasswd|sed '$(transform)'` $(INSTALL_DATA) $(srcdir)/kpasswd.M $(DESTDIR)$(CLIENT_MANDIR)/`echo kpasswd|sed '$(transform)'`.1; -all-windows:: $(OUTPRE)kpasswd.exe +##WIN32##all-windows:: $(KPWD) + +##WIN32##$(KPWD): $(OUTPRE)kpasswd.obj $(KLIB) $(CLIB) $(EXERES) +##WIN32## link $(EXE_LINKOPTS) -out:$@ $** $(SCLIB) +##WIN32## $(_VC_MANIFEST_EMBED_EXE) -$(OUTPRE)kpasswd.exe: $(OUTPRE)kpasswd.obj $(KLIB) $(CLIB) - link $(EXE_LINKOPTS) -out:$@ $** $(SCLIB) # +++ Dependency line eater +++ # # Makefile dependencies follow. This must be the last section in diff --git a/src/clients/kvno/Makefile.in b/src/clients/kvno/Makefile.in index 70729311e..047c25b34 100644 --- a/src/clients/kvno/Makefile.in +++ b/src/clients/kvno/Makefile.in @@ -9,15 +9,26 @@ SRCS=kvno.c PROG_LIBPATH=-L$(TOPLIBD) PROG_RPATH=$(KRB5_LIBDIR) +##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc +##WIN32##RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY + +##WIN32##KVNO=$(OUTPRE)kvno.exe + +##WIN32##EXERES=$(KVNO:.exe=.res) + +##WIN32##$(EXERES): $(VERSIONRC) +##WIN32## $(RC) $(RCFLAGS) -DKVNO_APP -fo $@ -r $** + all-unix:: kvno -all-windows:: $(OUTPRE)kvno.exe + +##WIN32##all-windows:: $(KVNO) kvno: kvno.o $(KRB4COMPAT_DEPLIBS) $(CC_LINK) -o $@ kvno.o $(KRB4COMPAT_LIBS) -$(OUTPRE)kvno.exe: $(OUTPRE)kvno.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB) - link $(EXE_LINKOPTS) /out:$@ $** - $(_VC_MANIFEST_EMBED_EXE) +##WIN32##$(KVNO): $(OUTPRE)kvno.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB) $(EXERES) +##WIN32## link $(EXE_LINKOPTS) /out:$@ $** +##WIN32## $(_VC_MANIFEST_EMBED_EXE) clean-unix:: $(RM) kvno.o kvno diff --git a/src/krb524/Makefile.in b/src/krb524/Makefile.in index 4b1ab9578..df0de594c 100644 --- a/src/krb524/Makefile.in +++ b/src/krb524/Makefile.in @@ -38,6 +38,7 @@ PROG_RPATH=$(KRB5_LIBDIR) ##WIN32##K4LIB=$(USE_ALTERNATE_KRB4_LIB) ##WIN32##!endif +K524EXE = $(OUTPRE)k524init.exe K524LIB = $(OUTPRE)krb524.lib K524DEP = $(K524LIB) K524DEF = krb524.def @@ -70,9 +71,20 @@ EXTRADEPSRCS = \ ##WIN32##K524DEP=$(STLIBOBJS) ##WIN32##!endif +##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc +##WIN32##RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY + +##WIN32##EXERES=$(K524EXE:.exe=.res) +##WIN32##LIBRES=$(K524LIB:.lib=.res) + +##WIN32##$(EXERES): $(VERSIONRC) +##WIN32## $(RC) $(RCFLAGS) -DKRB524_INIT -fo $@ -r $** +##WIN32##$(LIBRES): $(VERSIONRC) +##WIN32## $(RC) $(RCFLAGS) -DKRB524_LIB -fo $@ -r $** + all-unix:: krb524d krb524test k524init -all-windows:: $(OUTPRE)k524init.exe $(K524LIB) +##WIN32##all-windows:: $(K524EXE) $(K524LIB) krb524test: test.o $(KRB5_DEPLIB) $(KRB4COMPAT_DEPLIBS) $(CC_LINK) -o krb524test test.o $(KRB5_LIB) $(KRB4COMPAT_LIBS) @@ -86,13 +98,13 @@ krb524d: $(SERVER_OBJS) $(KADMSRV_DEPLIBS) $(KRB5_DEPLIB) $(KRB4COMPAT_DEPLIBS) k524init: $(CLIENT_OBJS) $(KRB5_DEPLIB) $(KRB4COMPAT_DEPLIBS) $(CC_LINK) -o k524init $(CLIENT_OBJS) $(KRB5_LIB) $(KRB4COMPAT_LIBS) -$(K524LIB): $(OUTPRE)krb524.$(OBJEXT) $(OUTPRE)libinit.$(OBJEXT) $(KLIB) $(CLIB) - link $(DLL_LINKOPTS) -def:$(K524DEF) -out:$*.dll $** $(WINLIBS) - $(_VC_MANIFEST_EMBED_DLL) +##WIN32##$(K524LIB): $(OUTPRE)krb524.$(OBJEXT) $(OUTPRE)libinit.$(OBJEXT) $(KLIB) $(CLIB) $(LIBRES) +##WIN32## link $(DLL_LINKOPTS) -def:$(K524DEF) -out:$*.dll $** $(WINLIBS) +##WIN32## $(_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) +##WIN32##$(K524EXE): $(OUTPRE)k524init.$(OBJEXT) $(KLIB) $(K4LIB) $(CLIB) $(EXERES) $(BUILDTOP)\util\windows\$(OUTPRE)getopt.lib +##WIN32## link $(EXE_LINKOPTS) -out:$@ $** $(WINLIBS) $(SCLIB) +##WIN32## $(_VC_MANIFEST_EMBED_EXE) install-unix:: $(INSTALL_PROGRAM) krb524d $(DESTDIR)$(SERVER_BINDIR)/krb524d diff --git a/src/windows/kfwlogon/Makefile.in b/src/windows/kfwlogon/Makefile.in index 96562ec36..0d7fcc565 100644 --- a/src/windows/kfwlogon/Makefile.in +++ b/src/windows/kfwlogon/Makefile.in @@ -13,21 +13,29 @@ LOCALINCLUDES = -I$(BUILDTOP) -I$(PISMERE)\athena\util\loadfuncs \ 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 +VERSIONRC = $(BUILDTOP)\windows\version.rc +RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY + +KFWLOGON=$(OUTPRE)kfwlogon.dll +KFWCPCC=$(OUTPRE)kfwcpcc.exe -$(OUTPRE)kfwlogon.res: kfwlogon.rc ..\version.rc +LIBRES=$(KFWLOGON:.dll=.res) +EXERES=$(KFWCPCC:.exe=.res) -$(OUTPRE)kfwcpcc.res: kfwcpcc.rc ..\version.rc +$(LIBRES): $(VERSIONRC) + $(RC) $(RCFLAGS) -DKFWLOGON_LIB -fo $@ -r $** +$(EXERES): $(VERSIONRC) + $(RC) $(RCFLAGS) -DKFWCPCC_APP -fo $@ -r $** + +all-windows:: $(OUTPRE)kfwlogon.dll $(OUTPRE)kfwcpcc.exe -$(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) +$(KFWLOGON): $(OUTPRE)kfwlogon.obj $(OUTPRE)kfwcommon.obj $(LIBRES) + link $(DLL_LINKOPTS) -out:$@ $(OUTPRE)kfwlogon.obj $(OUTPRE)kfwcommon.obj -entry:DllEntryPoint -def:kfwlogon.def $(SYSLIBS) $(KLIB) $(CLIB) $(LIBRES) $(_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) +$(KFWCPCC): $(OUTPRE)kfwcpcc.obj $(OUTPRE)kfwcommon.obj $(EXERES) + link $(EXE_LINKOPTS) -out:$@ $(OUTPRE)kfwcpcc.obj $(OUTPRE)kfwcommon.obj $(SYSLIBS) $(KLIB) $(CLIB) $(EXERES) $(_VC_MANIFEST_EMBED_EXE) install:: diff --git a/src/windows/kfwlogon/kfwcpcc.rc b/src/windows/kfwlogon/kfwcpcc.rc deleted file mode 100644 index 5b0bbf217..000000000 --- a/src/windows/kfwlogon/kfwcpcc.rc +++ /dev/null @@ -1,10 +0,0 @@ -#include -#include -#include "patchlevel.h" - -#define K5_DESCRIPTION "Kerberos for Windows Logon Network Provider\0" -#define K5_FILETYPE VFT_APP -#define K5_INTERNAL_NAME "KFWLOGON\0" -#define K5_ORIGINAL_NAME "kfwcpcc.exe\0" - -#include "..\version.rc" diff --git a/src/windows/kfwlogon/kfwlogon.rc b/src/windows/kfwlogon/kfwlogon.rc deleted file mode 100644 index 1a3cb15ee..000000000 --- a/src/windows/kfwlogon/kfwlogon.rc +++ /dev/null @@ -1,10 +0,0 @@ -#include -#include -#include "patchlevel.h" - -#define K5_DESCRIPTION "Kerberos for Windows Logon Network Provider\0" -#define K5_FILETYPE VFT_DLL -#define K5_INTERNAL_NAME "KFWLOGON\0" -#define K5_ORIGINAL_NAME "kfwlogon.dll\0" - -#include "..\version.rc" diff --git a/src/windows/ms2mit/Makefile.in b/src/windows/ms2mit/Makefile.in index 6162eb08e..0bb4d8d70 100644 --- a/src/windows/ms2mit/Makefile.in +++ b/src/windows/ms2mit/Makefile.in @@ -9,14 +9,28 @@ BUILDTOP=$(REL)..$(S).. DEFINES = PROG_LIBPATH=-L$(TOPLIBD) -L$(KRB5_LIBDIR) -all-windows:: $(OUTPRE)ms2mit.exe $(OUTPRE)mit2ms.exe +VERSIONRC = $(BUILDTOP)\windows\version.rc +RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY -$(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) +MS2MIT=$(OUTPRE)ms2mit.exe +MIT2MS=$(OUTPRE)mit2ms.exe + +MS2MITRES=$(MS2MIT:.exe=.res) +MIT2MSRES=$(MIT2MS:.exe=.res) + +$(MS2MITRES): $(VERSIONRC) + $(RC) $(RCFLAGS) -DMS2MIT_APP -fo $@ -r $** +$(MIT2MSRES): $(VERSIONRC) + $(RC) $(RCFLAGS) -DMIT2MS_APP -fo $@ -r $** + +all-windows:: $(MS2MIT) $(MIT2MS) + +$(MS2MIT): $(OUTPRE)ms2mit.obj $(MS2MITRES) + link $(EXE_LINKOPTS) -out:$@ $(OUTPRE)ms2mit.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj user32.lib advapi32.lib $(KLIB) $(CLIB) $(MS2MITRES) $(_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) +$(MIT2MS): $(OUTPRE)mit2ms.obj $(MIT2MSRES) + link $(EXE_LINKOPTS) -out:$@ $(OUTPRE)mit2ms.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj user32.lib advapi32.lib $(KLIB) $(CLIB) $(MIT2MSRES) $(_VC_MANIFEST_EMBED_EXE) install:: diff --git a/src/windows/version.rc b/src/windows/version.rc index 3f5b1af6f..de4daff7e 100644 --- a/src/windows/version.rc +++ b/src/windows/version.rc @@ -41,7 +41,7 @@ #define K5_PRODUCT_VERSION_STRING MAJOR_MINOR MAYBE_PATCH RELTAIL "\0" #define K5_PRODUCT_VERSION KRB5_MAJOR_RELEASE, KRB5_MINOR_RELEASE, KRB5_PATCHLEVEL, KRB5_BUILDLEVEL -#define K5_COPYRIGHT "Copyright (C) 1997-2006 by the Massachusetts Institute of Technology\0" +#define K5_COPYRIGHT "Copyright (C) 1997-2007 by the Massachusetts Institute of Technology\0" #define K5_COMPANY_NAME "Massachusetts Institute of Technology.\0" /* @@ -162,6 +162,112 @@ #define K5_ORIGINAL_NAME "telnet.exe\0" #endif +#ifdef KRB524_LIB +#define K5_DESCRIPTION "Kerberos v5 to v4 - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "krb524\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "krb524.dll\0" +#endif /* KRB524_LIB */ + +#ifdef KRB524_INIT +#define K5_DESCRIPTION "Kerberos v5 to v4 Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "krb524_init\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "krb524_init.exe\0" +#endif /* KRB524_INIT */ + +#ifdef MS2MIT_APP +#define K5_DESCRIPTION "Microsoft LSA to MIT Credential Cache Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "ms2mit\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "ms2mit.exe\0" +#endif /* MS2MIT_APP */ + +#ifdef MIT2MS_APP +#define K5_DESCRIPTION "MIT to Microsoft LSA Credential Cache Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "mit2ms\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "mit2ms.exe\0" +#endif /* MIT2MS_APP */ + +#ifdef KVNO_APP +#define K5_DESCRIPTION "Key Version Number Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "kvno\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "kvno.exe\0" +#endif /* KVNO_APP */ + +#ifdef KPASSWD_APP +#define K5_DESCRIPTION "Kerberos Change Password Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "kpasswd\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "kpasswd.exe\0" +#endif /* KPASSWD_APP */ + +#ifdef KFWLOGON_LIB +#define K5_DESCRIPTION "Kerberos Network Provider - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "kfwlogon\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "kfwlogon.dll\0" +#endif /* KFWLOGON_LIB */ + +#ifdef KFWCPCC_APP +#define K5_DESCRIPTION "Copy Credential Cache Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "kfwcpcc\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "kfwcpcc.exe\0" +#endif /* KFWCPCC_APP */ + +#ifdef KCPYTKT_APP +#define K5_DESCRIPTION "Kerberos Copy Ticket Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "kcpytkt\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "kcpytkt.exe\0" +#endif /* KCPYTKT_APP */ + +#ifdef KDELTKT_APP +#define K5_DESCRIPTION "Kerberos Delete Ticket Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "kdeltkt\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "kdeltkt.exe\0" +#endif /* KDELTKT_APP */ + +#ifdef KDESTROY_APP +#define K5_DESCRIPTION "Kerberos Destroy Credential Cache Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "kdestroy\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "kdestroy.exe\0" +#endif /* KDESTROY_APP */ + +#ifdef KINIT_APP +#define K5_DESCRIPTION "Kerberos Initialize Credential Cache Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "kinit\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "kinit.exe\0" +#endif /* KINIT_APP */ + +#ifdef KLIST_APP +#define K5_DESCRIPTION "Kerberos List Credential Cache Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "klist\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "klist.exe\0" +#endif /* KLIST_APP */ + +#ifdef GSS_CLIENT_APP +#define K5_DESCRIPTION "GSS Sample Client Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "gss-client\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "gss-client.exe\0" +#endif /* GSS_CLIENT_APP */ + +#ifdef GSS_SERVER_APP +#define K5_DESCRIPTION "GSS Sample Server Application - MIT GSS / Kerberos v5 distribution\0" +#define K5_INTERNAL_NAME "gss-server\0" +#define K5_FILETYPE VFT_DLL +#define K5_ORIGINAL_NAME "gss-server.exe\0" +#endif /* GSS_SERVER_APP */ + + /* * END SPECIFIC VERSION INFO */