1# 2# $Id: Makefile,v 1.17 1999/01/24 07:48:30 markm Exp $ 3# 4 5LCRYPTBASE= libcrypt 6LSCRYPTBASE= libscrypt 7 8.if ${OBJFORMAT} != elf 9LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} 10LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} 11.else 12LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR} 13LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR} 14.endif 15 16# called libscrypt - for scramble crypt! 17.PATH: ${.CURDIR}/../libmd 18LIB= scrypt 19SRCS= crypt.c md5c.c 20CFLAGS+= -I${.CURDIR}/../libmd -DLIBC_SCCS 21 22.if ${OBJFORMAT} == elf 23SONAME= ${LCRYPTBASE}.so.${SHLIB_MAJOR} 24.endif 25 26# Include this early to pick up the definitions of SHLIB_MAJOR and 27# SHLIB_MINOR which are used in the existence tests. 28.include "${.CURDIR}/../Makefile.inc" 29 30# We only install the links if they do not already exist. 31# This may have to be revised 32.if !exists(${DESTDIR}${LIBDIR}/${LCRYPTBASE}.a) 33SYMLINKS+= ${LSCRYPTBASE}.a ${LIBDIR}/${LCRYPTBASE}.a 34.endif 35.if !defined(NOPROFILE) && !exists(${DESTDIR}${LIBDIR}/${LCRYPTBASE}_p.a) 36SYMLINKS+= ${LSCRYPTBASE}_p.a ${LIBDIR}/${LCRYPTBASE}_p.a 37.endif 38.if !defined(NOPIC) && !exists(${DESTDIR}${SHLIBDIR}/${LCRYPTSO}) 39SYMLINKS+= ${LSCRYPTSO} ${SHLIBDIR}/${LCRYPTSO} 40.endif 41.if !defined(NOPIC) && ${OBJFORMAT} == elf && \ 42 !exists(${DESTDIR}${SHLIBDIR}/${LCRYPTBASE}.so) 43SYMLINKS+= ${LSCRYPTBASE}.so ${SHLIBDIR}/${LCRYPTBASE}.so 44.endif 45 46.include <bsd.lib.mk> 47