1994-08-09 17:07:27 +00:00
|
|
|
#
|
1999-03-23 03:41:09 +00:00
|
|
|
# $Id: Makefile,v 1.17 1999/01/24 07:48:30 markm Exp $
|
1994-08-09 17:07:27 +00:00
|
|
|
#
|
|
|
|
|
1999-01-23 08:27:46 +00:00
|
|
|
LCRYPTBASE= libcrypt
|
|
|
|
LSCRYPTBASE= libscrypt
|
1997-09-05 12:12:35 +00:00
|
|
|
|
1998-08-30 02:52:04 +00:00
|
|
|
.if ${OBJFORMAT} != elf
|
1997-09-05 12:12:35 +00:00
|
|
|
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
1994-11-14 06:44:45 +00:00
|
|
|
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
1997-09-05 12:12:35 +00:00
|
|
|
.else
|
|
|
|
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
|
|
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
|
|
.endif
|
1994-08-09 18:49:04 +00:00
|
|
|
|
1999-01-23 08:27:46 +00:00
|
|
|
# called libscrypt - for scramble crypt!
|
|
|
|
.PATH: ${.CURDIR}/../libmd
|
|
|
|
LIB= scrypt
|
|
|
|
SRCS= crypt.c md5c.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../libmd -DLIBC_SCCS
|
|
|
|
|
|
|
|
.if ${OBJFORMAT} == elf
|
|
|
|
SONAME= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
|
|
.endif
|
|
|
|
|
1999-03-23 03:41:09 +00:00
|
|
|
# Include this early to pick up the definitions of SHLIB_MAJOR and
|
|
|
|
# SHLIB_MINOR which are used in the existence tests.
|
|
|
|
.include "${.CURDIR}/../Makefile.inc"
|
|
|
|
|
1999-01-23 08:27:46 +00:00
|
|
|
# We only install the links if they do not already exist.
|
|
|
|
# This may have to be revised
|
1999-03-23 03:41:09 +00:00
|
|
|
.if !exists(${DESTDIR}${LIBDIR}/${LCRYPTBASE}.a)
|
|
|
|
SYMLINKS+= ${LSCRYPTBASE}.a ${LIBDIR}/${LCRYPTBASE}.a
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPROFILE) && !exists(${DESTDIR}${LIBDIR}/${LCRYPTBASE}_p.a)
|
|
|
|
SYMLINKS+= ${LSCRYPTBASE}_p.a ${LIBDIR}/${LCRYPTBASE}_p.a
|
1997-09-05 12:12:35 +00:00
|
|
|
.endif
|
1999-03-23 03:41:09 +00:00
|
|
|
.if !defined(NOPIC) && !exists(${DESTDIR}${SHLIBDIR}/${LCRYPTSO})
|
|
|
|
SYMLINKS+= ${LSCRYPTSO} ${SHLIBDIR}/${LCRYPTSO}
|
1994-08-12 21:12:37 +00:00
|
|
|
.endif
|
1999-03-23 03:41:09 +00:00
|
|
|
.if !defined(NOPIC) && ${OBJFORMAT} == elf && \
|
|
|
|
!exists(${DESTDIR}${SHLIBDIR}/${LCRYPTBASE}.so)
|
|
|
|
SYMLINKS+= ${LSCRYPTBASE}.so ${SHLIBDIR}/${LCRYPTBASE}.so
|
1994-08-20 18:13:59 +00:00
|
|
|
.endif
|
1994-08-09 18:49:04 +00:00
|
|
|
|
1994-08-09 17:07:27 +00:00
|
|
|
.include <bsd.lib.mk>
|