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