mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
1130b656e5
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
42 lines
898 B
Makefile
42 lines
898 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
LCRYPTBASE= libcrypt
|
|
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
|
|
|
LSCRYPTBASE= libscrypt
|
|
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
|
|
|
# called libscrypt - for scramble crypt!
|
|
.PATH: ${.CURDIR}/../libmd
|
|
LIB= scrypt
|
|
SRCS= crypt.c md5c.c
|
|
CFLAGS+= -I${.CURDIR}/../libmd
|
|
|
|
# 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 -s ${LSCRYPTSO} ${LCRYPTSO}; \
|
|
fi
|
|
.endif
|
|
@cd ${DESTDIR}${LIBDIR}; \
|
|
if [ ! -e ${LCRYPTBASE}.a ]; then \
|
|
rm -f ${LCRYPTBASE}.a; \
|
|
ln -s ${LSCRYPTBASE}.a libcrypt.a; \
|
|
fi
|
|
.if !defined(NOPROFILE)
|
|
@cd ${DESTDIR}${LIBDIR}; \
|
|
if [ ! -e ${LCRYPTBASE}_p.a ]; then \
|
|
rm -f ${LCRYPTBASE}_p.a; \
|
|
ln -s ${LSCRYPTBASE}_p.a libcrypt_p.a; \
|
|
fi
|
|
.endif
|
|
|
|
.include <bsd.lib.mk>
|