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