+Tue Jan 23 04:06:36 1996 <tytso@rsts-11.mit.edu>
+
+ * Makefile.in: Add support for building the gssapi library as a
+ shared library.
+
Tue Jan 23 03:32:25 1996 Theodore Y. Ts'o <tytso@dcl>
* configure.in: Add the mechglue directory as a subdir
##DOSBUILDTOP = ..\..
+CRYPTO_VER=@CRYPTO_SH_VERS@
+COMERR_VER=@COMERR_SH_VERS@
+KRB5_VER=@KRB5_SH_VERS@
+DEPLIBS=$(TOPLIBD)/libcrypto.$(SHEXT).$(CRYPTO_VER) \
+ $(TOPLIBD)/libcom_err.$(SHEXT).$(COMERR_VER) \
+ $(TOPLIBD)/libkrb5.$(SHEXT).$(KRB5_VER)
+LIB_SUBDIRS= generic krb5 mechglue
+LIBDONE= generic/DONE krb5/DONE mechglue/DONE
+LIBUPDATE= $(BUILDTOP)/util/libupdate
+
all-unix::
all-mac::
-libgssapi_krb5.a: generic/DONE krb5/DONE mechglue/DONE
- (cd generic; $(TST) $(ARADD) ../$@ `cat DONE` ; fi)
- (cd krb5; $(TST) $(ARADD) ../$@ `cat DONE` ; fi)
- (cd mechglue; $(TST) $(ARADD) ../$@ `cat DONE` ; fi)
- $(RANLIB) $@
+libgssapi_krb5.$(STEXT): $(LIBDONE)
+ if test -f $@ ; then \
+ for i in $(LIB_SUBDIRS) ; \
+ do \
+ $(LIBUPDATE) $@ $$i/DONE $$i ; \
+ done ; \
+ else \
+ for i in $(LIB_SUBDIRS) ; \
+ do \
+ $(LIBUPDATE) --force $@ $$i/DONE $$i ; \
+ done ; \
+ fi
+ $(RANLIB) libgssapi_krb5.$(STEXT)
+ touch libgssapi_krb5.stamp
install:: libgssapi_krb5.a
$(INSTALL_DATA) libgssapi_krb5.a $(DESTDIR)$(KRB5_LIBDIR)/libgssapi_krb5.a
AC_PROG_RANLIB
AC_PROG_INSTALL
DO_SUBDIRS
+V5_MAKE_SHARED_LIB(libgssapi_krb5,0.1,.., ./krb5)
+CRYPTO_SH_VERS=$krb5_cv_shlib_version_libcrypto
+AC_SUBST(CRYPTO_SH_VERS)
+COMERR_SH_VERS=$krb5_cv_shlib_version_libcom_err
+AC_SUBST(COMERR_SH_VERS)
+KRB5_SH_VERS=$krb5_cv_shlib_version_libkrb5
+AC_SUBST(KRB5_SH_VERS)
AppendRule([all:: libgssapi_krb5.a])
LinkFileDir(../libgssapi_krb5.a, libgssapi_krb5.a, ./gssapi)
AppendRule([all-unix:: ../libgssapi_krb5.a])
+Tue Jan 23 04:05:23 1996 <tytso@rsts-11.mit.edu>
+
+ * Makefile.in: Add support for building GSSAPI as a shared
+ library.
+
Tue Jan 23 03:25:02 1996 Theodore Y. Ts'o <tytso@dcl>
* rel_oid.c (krb5_gss_internal_release_oid): Add the new interface
##DOSBUILDTOP = ..\..\..
##DOSLIBNAME=..\gssapi.$(LIBEXT)
-all:: $(OBJS)
+.c.o:
+ $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
+
+all-unix:: shared $(OBJS)
+
+all-mac:: shared $(OBJS)
+
+all-windows:: $(OBJS)
+
+shared:
+ mkdir shared
ETSRCS= gssapi_err_krb5.c
ETOBJS= gssapi_err_krb5.$(OBJEXT)
ETHDRS= gssapi_err_krb5.h
gssapi_err_krb5.$(OBJEXT): gssapi_err_krb5.c
+ $(CC) $(CFLAGS) -c $*.c
+@SHARED_RULE_LOCAL@
gssapi_err_krb5.h: gssapi_err_krb5.et
all-windows:: $(SRCS) $(HDRS) includes $(OBJS)
clean-unix::
- $(RM) $(ETHDRS) $(ETSRCS)
+ $(RM) $(ETHDRS) $(ETSRCS) shared/*
clean-mac::
- $(RM) $(ETHDRS) $(ETSRCS)
+ $(RM) $(ETHDRS) $(ETSRCS) shared/*
clean-windows::