Add shared library support.
authorJohn Carr <jfc@mit.edu>
Fri, 21 Aug 1992 03:21:29 +0000 (03:21 +0000)
committerJohn Carr <jfc@mit.edu>
Fri, 21 Aug 1992 03:21:29 +0000 (03:21 +0000)
Make DES library name configurable

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

src/lib/krb5/Imakefile

index a9eecd9da51a0710b09dc64fe057e21db97f526a..f1704082b331e6a9d45c016936d17adcb9fb0011 100644 (file)
@@ -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)) */