1994-08-09 17:07:27 +00:00
|
|
|
#
|
1997-02-22 15:12:41 +00:00
|
|
|
# $Id$
|
1994-08-09 17:07:27 +00:00
|
|
|
#
|
|
|
|
|
1994-08-09 18:49:04 +00:00
|
|
|
LCRYPTBASE= libcrypt
|
1994-11-14 06:44:45 +00:00
|
|
|
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
1994-08-09 18:49:04 +00:00
|
|
|
|
|
|
|
LSCRYPTBASE= libscrypt
|
1994-11-14 06:44:45 +00:00
|
|
|
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
1994-08-09 18:49:04 +00:00
|
|
|
|
1994-08-09 17:07:27 +00:00
|
|
|
# called libscrypt - for scramble crypt!
|
1994-11-07 21:07:09 +00:00
|
|
|
.PATH: ${.CURDIR}/../libmd
|
1994-08-09 17:07:27 +00:00
|
|
|
LIB= scrypt
|
1994-11-07 21:07:09 +00:00
|
|
|
SRCS= crypt.c md5c.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../libmd
|
1994-08-09 17:07:27 +00:00
|
|
|
|
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
|
1994-11-07 21:07:09 +00:00
|
|
|
|
1994-08-09 18:49:04 +00:00
|
|
|
afterinstall:
|
1995-05-30 05:51:47 +00:00
|
|
|
.if !defined(NOPIC)
|
1994-11-14 06:44:45 +00:00
|
|
|
@cd ${DESTDIR}${SHLIBDIR}; \
|
|
|
|
if [ ! -e ${LCRYPTSO} ]; then \
|
|
|
|
rm -f ${LCRYPTSO}; \
|
|
|
|
ln -s ${LSCRYPTSO} ${LCRYPTSO}; \
|
1994-08-12 21:12:37 +00:00
|
|
|
fi
|
|
|
|
.endif
|
1994-11-14 06:44:45 +00:00
|
|
|
@cd ${DESTDIR}${LIBDIR}; \
|
|
|
|
if [ ! -e ${LCRYPTBASE}.a ]; then \
|
|
|
|
rm -f ${LCRYPTBASE}.a; \
|
|
|
|
ln -s ${LSCRYPTBASE}.a libcrypt.a; \
|
1994-08-20 18:13:59 +00:00
|
|
|
fi
|
|
|
|
.if !defined(NOPROFILE)
|
1994-11-14 06:44:45 +00:00
|
|
|
@cd ${DESTDIR}${LIBDIR}; \
|
|
|
|
if [ ! -e ${LCRYPTBASE}_p.a ]; then \
|
|
|
|
rm -f ${LCRYPTBASE}_p.a; \
|
|
|
|
ln -s ${LSCRYPTBASE}_p.a libcrypt_p.a; \
|
1994-08-09 18:49:04 +00:00
|
|
|
fi
|
1994-08-20 18:13:59 +00:00
|
|
|
.endif
|
1994-08-09 18:49:04 +00:00
|
|
|
|
1994-08-09 17:07:27 +00:00
|
|
|
.include <bsd.lib.mk>
|