1994-08-08 17:18:09 +00:00
|
|
|
#
|
1997-09-05 12:21:22 +00:00
|
|
|
# $Id: Makefile,v 1.12 1997/02/22 14:40:27 peter Exp $
|
1994-08-08 17:18:09 +00:00
|
|
|
#
|
|
|
|
|
1994-08-09 18:52:52 +00:00
|
|
|
LCRYPTBASE= libcrypt
|
|
|
|
LDCRYPTBASE= libdescrypt
|
1997-09-05 12:21:22 +00:00
|
|
|
|
|
|
|
.if ${BINFORMAT} != elf
|
|
|
|
LCRYPTSO= $(LCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
1994-08-09 18:52:52 +00:00
|
|
|
LDCRYPTSO= $(LDCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
1997-09-05 12:21:22 +00:00
|
|
|
.else
|
|
|
|
LCRYPTSO= $(LCRYPTBASE).so.$(SHLIB_MAJOR)
|
|
|
|
LDCRYPTSO= $(LDCRYPTBASE).so.$(SHLIB_MAJOR)
|
|
|
|
.endif
|
1994-08-09 18:52:52 +00:00
|
|
|
|
1995-12-16 09:14:12 +00:00
|
|
|
.PATH: ${.CURDIR}/../../../lib/libmd
|
|
|
|
|
1994-08-09 18:52:52 +00:00
|
|
|
LIB= descrypt
|
1995-12-16 09:14:12 +00:00
|
|
|
SRCS= crypt.c crypt-md5.c md5c.c
|
1996-02-21 08:15:08 +00:00
|
|
|
MAN3= crypt.3
|
1995-12-16 09:14:12 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../../lib/libmd -Wall
|
1994-08-26 19:03:23 +00:00
|
|
|
PRECIOUSLIB= yes
|
1994-08-08 17:18:09 +00:00
|
|
|
|
1997-09-05 12:21:22 +00:00
|
|
|
.if ${BINFORMAT} == elf
|
|
|
|
SONAME= ${LCRYPTBASE}.so.$(SHLIB_MAJOR)
|
|
|
|
.endif
|
|
|
|
|
1994-08-08 17:29:04 +00:00
|
|
|
test:
|
|
|
|
cd test ; make test ; make clean
|
1994-08-09 18:52:52 +00:00
|
|
|
|
1994-08-20 18:16:57 +00:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
1994-08-09 18:52:52 +00:00
|
|
|
# We only install the links if they do not already exist.
|
|
|
|
# This may have to be revised
|
|
|
|
afterinstall:
|
1994-08-20 18:16:57 +00:00
|
|
|
.if !defined(NOPIC) && defined(SHLIB_MAJOR)
|
|
|
|
@cd $(DESTDIR)/$(LIBDIR); \
|
|
|
|
if [ ! -e $(LCRYPTSO) ]; then \
|
1994-08-09 18:52:52 +00:00
|
|
|
rm -f $(LCRYPTSO); \
|
|
|
|
ln -s $(LDCRYPTSO) $(LCRYPTSO); \
|
1994-08-12 21:02:31 +00:00
|
|
|
fi
|
1997-09-05 12:21:22 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(NOPIC) && defined(SHLIB_MAJOR) && ${BINFORMAT} == elf
|
|
|
|
@cd $(DESTDIR)/$(LIBDIR); \
|
|
|
|
if [ ! -e $(LCRYPTBASE).so ]; then \
|
|
|
|
rm -f $(LCRYPTBASE).so; \
|
|
|
|
ln -s $(LDCRYPTBASE).so libcrypt.so; \
|
|
|
|
fi
|
1994-08-12 21:02:31 +00:00
|
|
|
.endif
|
1994-08-20 18:16:57 +00:00
|
|
|
@cd $(DESTDIR)/$(LIBDIR); \
|
|
|
|
if [ ! -e $(LCRYPTBASE).a ]; then \
|
|
|
|
rm -f $(LCRYPTBASE).a; \
|
1994-08-09 18:52:52 +00:00
|
|
|
ln -s $(LDCRYPTBASE).a libcrypt.a; \
|
1994-08-20 18:16:57 +00:00
|
|
|
fi
|
|
|
|
.if !defined(NOPROFILE)
|
|
|
|
@cd $(DESTDIR)/$(LIBDIR); \
|
|
|
|
if [ ! -e $(LCRYPTBASE)_p.a ]; then \
|
|
|
|
rm -f $(LCRYPTBASE)_p.a; \
|
1994-08-09 18:52:52 +00:00
|
|
|
ln -s $(LDCRYPTBASE)_p.a libcrypt_p.a; \
|
|
|
|
fi
|
1994-08-20 18:16:57 +00:00
|
|
|
.endif
|