freebsd-skq/lib/libcrypt/Makefile
Bruce Evans 643c00317e Install shared libraries in ${DESTDIR}${SHLIBDIR} instead of in
$(DESTDIR)/$(LIBDIR) (I need SHLIBDIR.  The / was a bug and the
$(...) style was inconsistent.)

Install ordinary libraries in ${DESTDIR}${LIBDIR} instead of in
$(DESTDIR)/$(LIBDIR).

Change remaining $(...) to ${...}.
1994-11-14 06:44:45 +00:00

42 lines
939 B
Makefile

#
# $Id: Makefile,v 1.5 1994/11/07 21:07:05 phk Exp $
#
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>