+Thu May 25 22:15:18 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * configure.in, Makefile.in: Add support for shared libraries.
+
Thu Apr 13 15:49:16 1995 Keith Vetter (keithv@fusion.com)
* *.[ch]: removed unneeded INTERFACE from non-api functions.
TST=if test -n "`cat DONE`" ; then
+.c.o:
+ $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
+
OBJS= cryptoconf.$(OBJEXT) \
des_crc.$(OBJEXT) \
des_md5.$(OBJEXT) \
$(srcdir)/des_md5.c \
$(srcdir)/raw_des.c
+LIB_SUBDIRS= des md4 md5 crc32 os .
+LIBUPDATE= $(BUILDTOP)/util/libupdate
+LIBDONE= ./des/DONE ./md4/DONE ./md5/DONE ./crc32/DONE ./os/DONE ./DONE
+
all:: all-$(WHAT)
-all-unix::
+all-unix:: shared
+
+shared:
+ mkdir shared
+
# FIXME, need to build the library too...
all-mac:: $(OBJS)
all-windows:: $(OBJS)
-libcrypto.a: ./des/DONE ./md4/DONE ./md5/DONE ./crc32/DONE ./os/DONE $(OBJS)
- (cd des; $(TST) $(ARADD) ../$@ `cat DONE` ; fi)
- (cd crc32; $(TST) $(ARADD) ../$@ `cat DONE` ; fi)
- (cd md4; $(TST) $(ARADD) ../$@ `cat DONE` ; fi)
- (cd md5; $(TST) $(ARADD) ../$@ `cat DONE` ; fi)
- (cd os; $(TST) $(ARADD) ../$@ `cat DONE` ; fi)
- $(ARADD) $@ $(OBJS)
+libcrypto.a: $(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) $@
libcrypto.lib:
clean-unix::
$(RM) libcrypto.a
+ $(RM) shared/*
clean-windows::
$(RM) crypto.lib crypto.bak
AC_PROG_ARCHIVE_ADD
AC_PROG_RANLIB
AC_PROG_INSTALL
+V5_SHARED_LIB_OBJS
+SubdirLibraryRule([${OBJS}])
MAKE_SUBDIRS("making",all)
MAKE_SUBDIRS("cleaning",clean)
MAKE_SUBDIRS("checking",check)
AppendRule([all:: libcrypto.a])
+V5_MAKE_SHARED_LIB(libcrypto)
KRB_INCLUDE
WITH_KRB5ROOT
V5_AC_OUTPUT_MAKEFILE
+Thu May 25 22:15:49 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * configure.in, Makefile.in: Add support for shared libraries.
+
Thu Apr 13 15:49:16 1995 Keith Vetter (keithv@fusion.com)
* *.[ch]: removed unneeded INTERFACE from non-api functions.
##DOSLIBNAME=..\crypto.lib
##DOS!include $(BUILDTOP)\config\windows.in
+.c.o:
+ $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
+
OBJS= crc.$(OBJEXT)
SRCS= $(srcdir)/crc.c $(srcdir)/crctest.c
-all:: $(OBJS)
+all:: shared $(OBJS)
+
+shared:
+ mkdir shared
crctest: crctest.$(OBJEXT) $(OBJS)
$(RM) crctest
clean::
$(RM) crctest$(EXEEXT) crctest.$(OBJEXT)
+ $(RM) shared/*
WITH_CCOPTS
AC_SET_BUILDTOP
CONFIG_RULES
+V5_SHARED_LIB_OBJS
SubdirLibraryRule([${OBJS}])
KRB_INCLUDE
V5_AC_OUTPUT_MAKEFILE
+Thu May 25 22:16:02 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * configure.in, Makefile.in: Add support for shared libraries.
+
Fri May 12 02:46:13 1995 Mark Eichin <eichin@cygnus.com>
* key_sched.c (mit_des_key_sched): *always* fill in the schedule,
OTHEROBJS=f_cbc.$(OBJEXT) f_cksum.$(OBJEXT) f_sched.$(OBJEXT) f_ecb.$(OBJEXT) f_parity.$(OBJEXT) f_tables.$(OBJEXT)
+.c.o:
+ $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
+
OBJS= cbc_cksum.$(OBJEXT) \
cs_entry.$(OBJEXT) \
finish_key.$(OBJEXT) \
$(srcdir)/weak_key.c \
$(OTHERSRCS)
-all:: $(OBJS)
+all:: shared $(OBJS)
+
+shared:
+ mkdir shared
includes:: depend
clean::
$(RM) destest$(EXEEXT) verify$(EXEEXT) destest.$(OBJEXT) verify.$(OBJEXT)
+ $(RM) shared/*
AC_SET_BUILDTOP
CONFIG_RULES
WITH_NETLIB
+V5_SHARED_LIB_OBJS
SubdirLibraryRule([${OBJS}])
KRB_INCLUDE
V5_AC_OUTPUT_MAKEFILE
+Thu May 25 22:16:14 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * configure.in, Makefile.in: Add support for shared libraries.
+
Thu Apr 20 11:39:15 1995 <tytso@rsx-11.mit.edu>
* rsa-md4.h: removed unneeded #include of wordsize.h
##DOSLIBNAME=..\crypto.lib
##DOS!include $(BUILDTOP)\config\windows.in
+.c.o:
+ $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
+
OBJS= md4.$(OBJEXT) md4glue.$(OBJEXT) md4crypto.$(OBJEXT)
SRCS= $(srcdir)/md4.c $(srcdir)/md4glue.c $(srcdir)/md4crypto.c
-all:: $(OBJS)
+all:: shared $(OBJS)
+
+shared:
+ mkdir shared
t_mddriver.c: $(srcdir)/../md5/t_mddriver.c
$(CP) $(srcdir)/../md5/t_mddriver.c t_mddriver.c
clean::
$(RM) t_mddriver$(EXEEXT) t_mddriver.$(OBJEXT) t_mddriver.c
+ $(RM) shared/*
WITH_CCOPTS
AC_SET_BUILDTOP
CONFIG_RULES
+V5_SHARED_LIB_OBJS
SubdirLibraryRule([${OBJS}])
KRB_INCLUDE
V5_AC_OUTPUT_MAKEFILE
+Thu May 25 22:16:26 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * configure.in, Makefile.in: Add support for shared libraries.
+
Thu Apr 13 15:49:16 1995 Keith Vetter (keithv@fusion.com)
* *.[ch]: removed unneeded INTERFACE from non-api functions.
##DOSLIBNAME=..\crypto.lib
##DOS!include $(BUILDTOP)\config\windows.in
+.c.o:
+ $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
+
OBJS= md5.$(OBJEXT) md5glue.$(OBJEXT) md5crypto.$(OBJEXT)
SRCS= $(srcdir)/md5.c $(srcdir)/md5glue.c $(srcdir)/md5crypto.c
-all:: $(OBJS)
+all:: shared $(OBJS)
+
+shared:
+ mkdir shared
t_mddriver: t_mddriver.o md5.o
$(CC) $(CFLAGS) $(LDFLAGS) -o t_mddriver t_mddriver.o md5.o
clean::
$(RM) t_mddriver$(EXEEXT) t_mddriver.$(OBJEXT)
+ $(RM) shared/*
WITH_CCOPTS
AC_SET_BUILDTOP
CONFIG_RULES
+V5_SHARED_LIB_OBJS
SubdirLibraryRule([${OBJS}])
KRB_INCLUDE
V5_AC_OUTPUT_MAKEFILE
+Thu May 25 22:16:35 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * configure.in, Makefile.in: Add support for shared libraries.
+
Thu Apr 13 15:49:16 1995 Keith Vetter (keithv@fusion.com)
* *.[ch]: removed unneeded INTERFACE from non-api functions.
LIBOBJS = @LIBOBJS@
+.c.o:
+ $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
+
OBJS= rnd_confoun.$(OBJEXT) localaddr.$(OBJEXT) ustime.$(OBJEXT) $(LIBOBJS)
SRCS= rnd_confoun.c
all:: all-$(WHAT)
-all-unix:: $(OBJS)
+
+all-unix:: shared $(OBJS)
+
all-mac:: $(OBJS)
+
all-windows: rnd_confoun.obj
+shared:
+ mkdir shared
+
+
localaddr.c: $(SRCTOP)$(S)lib$(S)krb5$(S)os$(S)localaddr.c
-$(LN) $(SRCTOP)$(S)lib$(S)krb5$(S)os$(S)localaddr.c $@
ustime.c: $(SRCTOP)$(S)lib$(S)krb5$(S)os$(S)ustime.c
-$(LN) $(SRCTOP)$(S)lib$(S)krb5$(S)os$(S)ustime.c $@
-
memmove.c: $(SRCTOP)$(S)lib$(S)krb5$(S)posix$(S)memmove.c
-$(LN) $(SRCTOP)$(S)lib$(S)krb5$(S)posix$(S)memmove.c $@
+localaddr.o: localaddr.c
+ $(CC) $(CFLAGS) -c $*.c
+@SHARED_RULE_LOCAL@
+
+ustime.o: ustime.c
+ $(CC) $(CFLAGS) -c $*.c
+@SHARED_RULE_LOCAL@
+
+memmove.o: memmove.c
+ $(CC) $(CFLAGS) -c $*.c
+@SHARED_RULE_LOCAL@
+
+
clean::
$(RM) ustime.c localaddr.c memmove.c
+ $(RM) shared/*
WITH_CCOPTS
AC_SET_BUILDTOP
CONFIG_RULES
+V5_SHARED_LIB_OBJS
SubdirLibraryRule([${OBJS}])
KRB_INCLUDE
AC_LN_S