From d1a6399b685999c7461bacbde66b100c127325a3 Mon Sep 17 00:00:00 2001 From: csgr Date: Tue, 9 Aug 1994 18:49:04 +0000 Subject: The password scrambler now becomes libscrypt, and libcrypt is a symlink to it. (The real libcrypt will be installed as libdescrypt.) Submitted by: Geoff. --- lib/libcrypt/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'lib/libcrypt') diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile index 1792f89..30260ca 100644 --- a/lib/libcrypt/Makefile +++ b/lib/libcrypt/Makefile @@ -2,8 +2,27 @@ # $Id: Makefile,v 1.1.1.1 1994/04/04 14:57:18 g89r4222 Exp $ # +LCRYPTBASE= libcrypt +LCRYPTSO= $(LCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR) + + +LSCRYPTBASE= libscrypt +LSCRYPTSO= $(LSCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR) + # called libscrypt - for scramble crypt! LIB= scrypt SRCS= crypt.c +# We only install the links if they do not already exist. +# This may have to be revised +afterinstall: + @if [ ! -e $(LCRYPTSO) ]; then \ + cd $(DESTDIR)/$(LIBDIR); \ + rm -f $(LCRYPTSO); \ + ln -s $(LSCRYPTSO) $(LCRYPTSO); \ + rm -f $(LCRYPTBASE).a $(LCRYPTBASE)_p.a; \ + ln -s $(LSCRYPTBASE).a libcrypt.a; \ + ln -s $(LSCRYPTBASE)_p.a libcrypt_p.a; \ + fi + .include -- cgit v1.1