1994-08-09 17:07:27 +00:00
|
|
|
#
|
1994-08-12 21:12:37 +00:00
|
|
|
# $Id: Makefile,v 1.2 1994/08/09 18:49:04 csgr Exp $
|
1994-08-09 17:07:27 +00:00
|
|
|
#
|
|
|
|
|
1994-08-09 18:49:04 +00:00
|
|
|
LCRYPTBASE= libcrypt
|
|
|
|
LCRYPTSO= $(LCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
|
|
|
|
|
|
|
|
|
|
|
LSCRYPTBASE= libscrypt
|
|
|
|
LSCRYPTSO= $(LSCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
|
|
|
|
1994-08-09 17:07:27 +00:00
|
|
|
# called libscrypt - for scramble crypt!
|
|
|
|
LIB= scrypt
|
|
|
|
SRCS= crypt.c
|
|
|
|
|
1994-08-09 18:49:04 +00:00
|
|
|
# We only install the links if they do not already exist.
|
|
|
|
# This may have to be revised
|
|
|
|
afterinstall:
|
1994-08-12 21:12:37 +00:00
|
|
|
.if defined(SHLIB_MAJOR) && !defined(NOSHARED)
|
1994-08-09 18:49:04 +00:00
|
|
|
@if [ ! -e $(LCRYPTSO) ]; then \
|
|
|
|
cd $(DESTDIR)/$(LIBDIR); \
|
|
|
|
rm -f $(LCRYPTSO); \
|
|
|
|
ln -s $(LSCRYPTSO) $(LCRYPTSO); \
|
1994-08-12 21:12:37 +00:00
|
|
|
fi
|
|
|
|
.endif
|
|
|
|
@if [ ! -e $(LCRYPTBASE).a ]; then \
|
|
|
|
cd $(DESTDIR)/$(LIBDIR); \
|
1994-08-09 18:49:04 +00:00
|
|
|
rm -f $(LCRYPTBASE).a $(LCRYPTBASE)_p.a; \
|
|
|
|
ln -s $(LSCRYPTBASE).a libcrypt.a; \
|
|
|
|
ln -s $(LSCRYPTBASE)_p.a libcrypt_p.a; \
|
|
|
|
fi
|
|
|
|
|
1994-08-09 17:07:27 +00:00
|
|
|
.include <bsd.lib.mk>
|