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