Makefile revision 4454
1#
2# $Id: Makefile,v 1.5 1994/11/07 21:07:05 phk Exp $
3#
4
5LCRYPTBASE= 	libcrypt
6LCRYPTSO=	${LCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
7
8LSCRYPTBASE= 	libscrypt
9LSCRYPTSO=	${LSCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
10
11# called libscrypt - for scramble crypt!
12.PATH:	${.CURDIR}/../libmd
13LIB=	scrypt
14SRCS=	crypt.c md5c.c
15CFLAGS+=	-I${.CURDIR}/../libmd
16
17# We only install the links if they do not already exist.
18# This may have to be revised
19
20afterinstall:
21.if !defined(NOPIC) 
22	@cd ${DESTDIR}${SHLIBDIR}; \
23	if [ ! -e ${LCRYPTSO} ]; then \
24	rm -f ${LCRYPTSO}; \
25	ln -s ${LSCRYPTSO} ${LCRYPTSO}; \
26	fi
27.endif
28	@cd  ${DESTDIR}${LIBDIR}; \
29	if [ ! -e ${LCRYPTBASE}.a ]; then \
30	rm -f ${LCRYPTBASE}.a; \
31	ln -s ${LSCRYPTBASE}.a libcrypt.a; \
32	fi
33.if !defined(NOPROFILE)
34	@cd  ${DESTDIR}${LIBDIR}; \
35	if [ ! -e ${LCRYPTBASE}_p.a ]; then \
36	rm -f ${LCRYPTBASE}_p.a; \
37	ln -s ${LSCRYPTBASE}_p.a libcrypt_p.a; \
38	fi
39.endif
40
41.include <bsd.lib.mk>
42