1994-08-09 19:07:27 +02:00
|
|
|
#
|
1999-01-23 09:27:46 +01:00
|
|
|
# $Id$
|
1994-08-09 19:07:27 +02:00
|
|
|
#
|
|
|
|
|
1999-01-23 09:27:46 +01:00
|
|
|
LCRYPTBASE= libcrypt
|
|
|
|
LSCRYPTBASE= libscrypt
|
1997-09-05 14:12:35 +02:00
|
|
|
|
1998-08-30 04:52:04 +02:00
|
|
|
.if ${OBJFORMAT} != elf
|
1997-09-05 14:12:35 +02:00
|
|
|
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
1994-11-14 07:44:45 +01:00
|
|
|
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
1997-09-05 14:12:35 +02:00
|
|
|
.else
|
|
|
|
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
|
|
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
|
|
.endif
|
1994-08-09 20:49:04 +02:00
|
|
|
|
1999-01-23 09:27:46 +01:00
|
|
|
# called libscrypt - for scramble crypt!
|
|
|
|
.PATH: ${.CURDIR}/../libmd
|
|
|
|
LIB= scrypt
|
|
|
|
SRCS= crypt.c md5c.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../libmd -DLIBC_SCCS
|
|
|
|
|
|
|
|
.if ${OBJFORMAT} == elf
|
|
|
|
SONAME= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# We only install the links if they do not already exist.
|
|
|
|
# This may have to be revised
|
|
|
|
|
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}; \
|
1999-01-23 09:27:46 +01:00
|
|
|
if [ ! -e ${LCRYPTSO} ]; then \
|
1994-11-14 07:44:45 +01:00
|
|
|
rm -f ${LCRYPTSO}; \
|
1999-01-24 08:51:33 +01:00
|
|
|
ln -sf ${LSCRYPTSO} ${LCRYPTSO}; \
|
1999-01-23 09:27:46 +01:00
|
|
|
fi
|
1997-09-05 14:12:35 +02:00
|
|
|
.endif
|
1998-08-30 04:52:04 +02:00
|
|
|
.if !defined(NOPIC) && ${OBJFORMAT} == elf
|
1998-09-02 17:09:15 +02:00
|
|
|
@cd ${DESTDIR}${SHLIBDIR}; \
|
1999-01-23 09:27:46 +01:00
|
|
|
if [ ! -e ${LCRYPTBASE}.so ]; then \
|
1997-09-05 14:12:35 +02:00
|
|
|
rm -f ${LCRYPTBASE}.so; \
|
1999-01-24 08:51:33 +01:00
|
|
|
ln -sf ${LSCRYPTBASE}.so libcrypt.so; \
|
1999-01-23 09:27:46 +01:00
|
|
|
fi
|
1994-08-12 23:12:37 +02:00
|
|
|
.endif
|
1994-11-14 07:44:45 +01:00
|
|
|
@cd ${DESTDIR}${LIBDIR}; \
|
1999-01-23 09:27:46 +01:00
|
|
|
if [ ! -e ${LCRYPTBASE}.a ]; then \
|
1994-11-14 07:44:45 +01:00
|
|
|
rm -f ${LCRYPTBASE}.a; \
|
1999-01-24 08:51:33 +01:00
|
|
|
ln -sf ${LSCRYPTBASE}.a libcrypt.a; \
|
1999-01-23 09:27:46 +01:00
|
|
|
fi
|
1994-08-20 20:13:59 +02:00
|
|
|
.if !defined(NOPROFILE)
|
1994-11-14 07:44:45 +01:00
|
|
|
@cd ${DESTDIR}${LIBDIR}; \
|
1999-01-23 09:27:46 +01:00
|
|
|
if [ ! -e ${LCRYPTBASE}_p.a ]; then \
|
1994-11-14 07:44:45 +01:00
|
|
|
rm -f ${LCRYPTBASE}_p.a; \
|
1999-01-24 08:51:33 +01:00
|
|
|
ln -sf ${LSCRYPTBASE}_p.a libcrypt_p.a; \
|
1999-01-23 09:27:46 +01: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>
|