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