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