From f533042ce5c42f8e58cf6ea17487d509a05e2c4f Mon Sep 17 00:00:00 2001 From: John Carr Date: Fri, 21 Aug 1992 03:21:29 +0000 Subject: [PATCH] Add shared library support. Make DES library name configurable git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2364 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/Imakefile | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/lib/krb5/Imakefile b/src/lib/krb5/Imakefile index a9eecd9da..f1704082b 100644 --- a/src/lib/krb5/Imakefile +++ b/src/lib/krb5/Imakefile @@ -36,34 +36,36 @@ VPOBJS= VPSRCS= #else VPOBJS=vfprintf.o vsprintf.o -VPSRCS=vfprintf.c vsprintf.c +VPSRCS=$(SRCDIR)vfprintf.c $(SRCDIR)vsprintf.c #endif #ifdef HasVsyslog VSOBJS= VSSRCS= #else VSOBJS=syslog.o -VSSRCS=syslog.c +VSSRCS=$(SRCDIR)syslog.c #endif #ifdef HasStrdup STOBJS= STSRCS= #else STOBJS=strdup.o -STSRCS=strdup.c +STSRCS=$(SRCDIR)strdup.c +#endif +#ifndef HasStrerror +PEOBJS=perror.o +PESRCS=$(SRCDIR)perror.c #endif INCLUDES=$(STDC_TOP_INCLUDES) OBJS = \ cryptoconf.o \ - perror.o \ - $(VSOBJS) $(VPOBJS) $(STOBJS) + $(PEOBJS) $(VSOBJS) $(VPOBJS) $(STOBJS) SRCS = \ - cryptoconf.c \ - perror.c \ - $(VSSRCS) $(VPSRCS) $(STSRCS) + $(SRCDIR)cryptoconf.c \ + $(PESRCS) $(VSSRCS) $(VPSRCS) $(STSRCS) MakeSubdirs($(SUBDIRS)) @@ -113,9 +115,12 @@ asn.1/Makefile:: #endif /* UseSedHack */ -AdditiveLibraryTarget(krb5,$(OBJS)) +AdditiveLibraryTarget(krb5,$(OBJS),-L$(KRB5_LIBDIR) -Lshared $(LDLOCATIONS) -l$(DESLIB) $(ISODELIB) -lcom_err) -RanlibLibraryTarget(des5) +RanlibLibraryTarget($(DESLIB),) Krb5InstallLibrary(krb5,$(KRB5_LIBDIR)) -Krb5InstallLibrary(des5,$(KRB5_LIBDIR)) +Krb5InstallLibrary($(DESLIB),$(KRB5_LIBDIR)) + +SharedLibraryTarget(kdb5,-L$(KRB5_LIBDIR) -Lshared $(LDLOCATIONS) -lkrb5 -l$(DESLIB) $(ISODELIB) -lcom_err) +/* SharedLibraryTarget(des425,-L$(KRB5_LIBDIR) -Lshared $(LDLOCATIONS) -l$(DESLIB)) */ -- 2.26.2