1b340441b7
can be found. Submitted by: Bruce
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
LCRYPTBASE= libcrypt
|
|
LSCRYPTBASE= libscrypt
|
|
|
|
.if ${OBJFORMAT} != elf
|
|
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
|
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
|
.else
|
|
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
.endif
|
|
|
|
# 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
|
|
|
|
afterinstall:
|
|
.if !defined(NOPIC)
|
|
@cd ${DESTDIR}${SHLIBDIR}; \
|
|
if [ ! -e ${LCRYPTSO} ]; then \
|
|
rm -f ${LCRYPTSO}; \
|
|
ln -sf ${LSCRYPTSO} ${LCRYPTSO}; \
|
|
fi
|
|
.endif
|
|
.if !defined(NOPIC) && ${OBJFORMAT} == elf
|
|
@cd ${DESTDIR}${SHLIBDIR}; \
|
|
if [ ! -e ${LCRYPTBASE}.so ]; then \
|
|
rm -f ${LCRYPTBASE}.so; \
|
|
ln -sf ${LSCRYPTBASE}.so libcrypt.so; \
|
|
fi
|
|
.endif
|
|
@cd ${DESTDIR}${LIBDIR}; \
|
|
if [ ! -e ${LCRYPTBASE}.a ]; then \
|
|
rm -f ${LCRYPTBASE}.a; \
|
|
ln -sf ${LSCRYPTBASE}.a libcrypt.a; \
|
|
fi
|
|
.if !defined(NOPROFILE)
|
|
@cd ${DESTDIR}${LIBDIR}; \
|
|
if [ ! -e ${LCRYPTBASE}_p.a ]; then \
|
|
rm -f ${LCRYPTBASE}_p.a; \
|
|
ln -sf ${LSCRYPTBASE}_p.a libcrypt_p.a; \
|
|
fi
|
|
.endif
|
|
|
|
.include <bsd.lib.mk>
|