blob: 953f9d017a62dc8977b5da8c64d84ce6f17f105d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#
# $Id: Makefile,v 1.9 1997/02/22 15:06:14 peter Exp $
#
LCRYPTBASE= libcrypt
LSCRYPTBASE= libscrypt
.if ${BINFORMAT} != elf
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
.else
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}
.endif
# called libscrypt - for scramble crypt!
.PATH: ${.CURDIR}/../libmd
LIB= scrypt
SRCS= crypt.c md5c.c
CFLAGS+= -I${.CURDIR}/../libmd
.if ${BINFORMAT} == elf
SONAME= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
.endif
# We only install the links if they do not already exist.
# This may have to be revised
afterinstall:
.if !defined(NOPIC)
@cd ${DESTDIR}${SHLIBDIR}; \
if [ ! -e ${LCRYPTSO} ]; then \
rm -f ${LCRYPTSO}; \
ln -s ${LSCRYPTSO} ${LCRYPTSO}; \
fi
.endif
.if !defined(NOPIC) && ${BINFORMAT} == elf
@cd ${DESTDIR}${LIBDIR}; \
if [ ! -e ${LCRYPTBASE}.so ]; then \
rm -f ${LCRYPTBASE}.so; \
ln -s ${LSCRYPTBASE}.so libcrypt.so; \
fi
.endif
@cd ${DESTDIR}${LIBDIR}; \
if [ ! -e ${LCRYPTBASE}.a ]; then \
rm -f ${LCRYPTBASE}.a; \
ln -s ${LSCRYPTBASE}.a libcrypt.a; \
fi
.if !defined(NOPROFILE)
@cd ${DESTDIR}${LIBDIR}; \
if [ ! -e ${LCRYPTBASE}_p.a ]; then \
rm -f ${LCRYPTBASE}_p.a; \
ln -s ${LSCRYPTBASE}_p.a libcrypt_p.a; \
fi
.endif
.include <bsd.lib.mk>
|