summaryrefslogtreecommitdiffstats
path: root/secure/lib/libcrypt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'secure/lib/libcrypt/Makefile')
-rw-r--r--secure/lib/libcrypt/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/secure/lib/libcrypt/Makefile b/secure/lib/libcrypt/Makefile
new file mode 100644
index 0000000..7963770
--- /dev/null
+++ b/secure/lib/libcrypt/Makefile
@@ -0,0 +1,45 @@
+#
+# $Id: Makefile,v 1.10 1996/03/24 07:30:27 markm Exp $
+#
+
+LCRYPTBASE= libcrypt
+LCRYPTSO= $(LCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
+
+LDCRYPTBASE= libdescrypt
+LDCRYPTSO= $(LDCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
+
+.PATH: ${.CURDIR}/../../../lib/libmd
+
+LIB= descrypt
+SRCS= crypt.c crypt-md5.c md5c.c
+MAN3= crypt.3
+CFLAGS+= -I${.CURDIR}/../../../lib/libmd -Wall
+PRECIOUSLIB= yes
+
+test:
+ cd test ; make test ; make clean
+
+.include <bsd.lib.mk>
+
+# We only install the links if they do not already exist.
+# This may have to be revised
+afterinstall:
+.if !defined(NOPIC) && defined(SHLIB_MAJOR)
+ @cd $(DESTDIR)/$(LIBDIR); \
+ if [ ! -e $(LCRYPTSO) ]; then \
+ rm -f $(LCRYPTSO); \
+ ln -s $(LDCRYPTSO) $(LCRYPTSO); \
+ fi
+.endif
+ @cd $(DESTDIR)/$(LIBDIR); \
+ if [ ! -e $(LCRYPTBASE).a ]; then \
+ rm -f $(LCRYPTBASE).a; \
+ ln -s $(LDCRYPTBASE).a libcrypt.a; \
+ fi
+.if !defined(NOPROFILE)
+ @cd $(DESTDIR)/$(LIBDIR); \
+ if [ ! -e $(LCRYPTBASE)_p.a ]; then \
+ rm -f $(LCRYPTBASE)_p.a; \
+ ln -s $(LDCRYPTBASE)_p.a libcrypt_p.a; \
+ fi
+.endif
OpenPOWER on IntegriCloud