1994-08-09 17:07:27 +00:00
|
|
|
#
|
1998-08-30 01:57:55 +00:00
|
|
|
# $Id: Makefile,v 1.11 1998/05/28 12:52:03 peter Exp $
|
1994-08-09 17:07:27 +00:00
|
|
|
#
|
|
|
|
|
1994-08-09 18:49:04 +00:00
|
|
|
LCRYPTBASE= libcrypt
|
|
|
|
LSCRYPTBASE= libscrypt
|
1997-09-05 12:12:35 +00: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 12:12:35 +00:00
|
|
|
.else
|
|
|
|
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
|
|
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
|
|
.endif
|
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
|
1998-05-28 12:52:03 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../libmd -DLIBC_SCCS
|
1994-08-09 17:07:27 +00:00
|
|
|
|
1998-08-30 01:57:55 +00:00
|
|
|
.if ${OBJFORMAT} == elf
|
1997-09-05 12:12:35 +00:00
|
|
|
SONAME= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
|
|
.endif
|
|
|
|
|
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
|
1997-09-05 12:12:35 +00: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 21:12:37 +00: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 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>
|