Add KRB524_STATIC_HACK for Windows build so that we can generate a
authorDanilo Almeida <dalmeida@mit.edu>
Fri, 28 Sep 2001 15:37:25 +0000 (15:37 +0000)
committerDanilo Almeida <dalmeida@mit.edu>
Fri, 28 Sep 2001 15:37:25 +0000 (15:37 +0000)
k524init binary that has an static copy of the krb5 library and does
not depend on krb5 nor krb524 DLLs.  This is so that we can distribute
a standalone k524init binary before 1.3 goes out.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13760 dc483132-0cff-0310-8789-dd5450dbe970

src/krb524/ChangeLog
src/krb524/Makefile.in

index 04728258c13048fa373786e9fb0c116e6f0c23e8..9430325ed61c51a4fa935710568d12dd98646ea5 100644 (file)
@@ -1,3 +1,11 @@
+2001-09-28  Danilo Almeida  <dalmeida@mit.edu>
+
+       * Makefile.in: Add KRB524_STATIC_HACK for Windows build so that we
+       can generate a k524init binary that has an static copy of the krb5
+       library and does not depend on krb5 nor krb524 DLLs.  This is so
+       that we can distribute a standalone k524init binary before 1.3
+       goes out.
+
 2001-09-01  Ken Raeburn  <raeburn@mit.edu>
 
        * Makefile.in (SRCS): Use $(srcdir).
index ab17bd2e7bb3811e00a7de3d3095fe8dcaee1d3f..3bc0a88ae1e4c5cb3fff9fa5dac0228d53e5fd90 100644 (file)
@@ -45,6 +45,8 @@ KRB524_LIB    = libkrb524.a
 ##WIN32##K4LIB=$(USE_ALTERNATE_KRB4_LIB)
 ##WIN32##!endif
 
+K524LIB = $(OUTPRE)krb524.lib
+K524DEP = $(K524LIB)
 K524DEF = krb524.def
 WINLIBS = kernel32.lib wsock32.lib user32.lib shell32.lib oldnames.lib \
        version.lib advapi32.lib gdi32.lib
@@ -74,6 +76,18 @@ STLIBOBJS = \
        $(OUTPRE)krb524_err.$(OBJEXT) \
        $(OUTPRE)libinit.$(OBJEXT)
 
+##WIN32##!ifdef KRB524_STATIC_HACK
+LPREFIX=..\lib
+K5_GLUE=$(LPREFIX)\$(OUTPRE)k5_glue.obj
+KLIBS = $(LPREFIX)\krb5\$(OUTPRE)krb5.lib \
+       $(LPREFIX)\crypto\$(OUTPRE)crypto.lib \
+       $(BUILDTOP)\util\profile\$(OUTPRE)profile.lib \
+       $(LPREFIX)\des425\$(OUTPRE)des425.lib
+KLIB=$(KLIBS) $(DNSLIBS) $(K5_GLUE) $(CLIB)
+STLIBOBJS=$(STLIBOBJS:libinit=globals)
+K524DEP=$(STLIBOBJS)
+##WIN32##!endif
+
 GENS   = krb524_err.c krb524_err.h
 
 KRB524_HDR=$(BUILDTOP)$(S)include$(S)krb524.h
@@ -102,7 +116,7 @@ includes:: krb524.h krb524_err.h
 
 ../include/krb524_err.h: includes
 
-all-windows:: $(KRB524_HDR) $(OUTPRE)krb524.lib $(OUTPRE)k524init.exe
+all-windows:: $(KRB524_HDR) $(K524LIB) $(OUTPRE)k524init.exe
 
 krb524test: libkrb524.a test.o $(KRB524_DEPLIB) $(KRB4COMPAT_DEPLIBS)
        $(CC_LINK) -o krb524test test.o $(KRB524_LIB) $(KRB4COMPAT_LIBS)
@@ -113,12 +127,11 @@ krb524d: krb524d.o $(KADMSRV_DEPLIBS) $(KRB524_DEPLIB) $(KRB4COMPAT_DEPLIBS)
 k524init: k524init.o  $(KRB524_DEPLIB) $(KRB4COMPAT_DEPLIBS)
        $(CC_LINK) -o k524init k524init.o $(KRB524_LIB) $(KRB4COMPAT_LIBS)
 
-$(OUTPRE)krb524.lib: $(STLIBOBJS) $(K4LIB) $(KLIB)
+$(K524LIB): $(STLIBOBJS) $(K4LIB) $(KLIB)
        link $(DLL_LINKOPTS) -def:$(K524DEF) -out:$*.dll $** $(WINLIBS)
 
-$(OUTPRE)k524init.exe: $(OUTPRE)k524init.$(OBJEXT) $(KLIB) $(K4LIB) $(BUILDTOP)\util\windows\$(OUTPRE)getopt.lib
-       link $(EXE_LINKOPTS) -out:$@ $** $(KLIB) $(K4LIB) $(WINLIBS) $(CLIB)\
-        $(OUTPRE)krb524.lib
+$(OUTPRE)k524init.exe: $(OUTPRE)k524init.$(OBJEXT) $(K524DEP) $(KLIB) $(K4LIB) $(CLIB) $(BUILDTOP)\util\windows\$(OUTPRE)getopt.lib
+       link $(EXE_LINKOPTS) -out:$@ $** $(WINLIBS)
 
 install-unix:: install-libs
        $(INSTALL_PROGRAM) krb524d $(DESTDIR)$(SERVER_BINDIR)/krb524d