Deleted Added
full compact
Makefile (50476) Makefile (51462)
1#
1#
2# $FreeBSD: head/lib/libcrypt/Makefile 50476 1999-08-28 00:22:10Z peter $
2# $FreeBSD: head/lib/libcrypt/Makefile 51462 1999-09-20 12:45:49Z markm $
3#
4
3#
4
5LCRYPTBASE= libcrypt
6LSCRYPTBASE= libscrypt
5SHLIB_MAJOR= 3
6LIB= scrypt
7
7
8.if ${OBJFORMAT} != elf
9LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
10LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
11.else
8LCRYPTBASE= libcrypt
9LSCRYPTBASE= lib${LIB}
10
12LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
13LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}
11LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
12LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}
14.endif
15
13
16# called libscrypt - for scramble crypt!
17.PATH: ${.CURDIR}/../libmd
18LIB= scrypt
19SRCS= crypt.c md5c.c
20CFLAGS+= -I${.CURDIR}/../libmd -DLIBC_SCCS
14.PATH: ${.CURDIR}/../libmd
15SRCS= crypt.c crypt-md5.c crypt-shs.c misc.c
16STATICSRCS= md5c.c sha0c.c sha1c.c
17STATICOBJS= ${STATICSRCS:S/.c/.o/g}
18MAN3= crypt.3
19CFLAGS+= -I${.CURDIR}/../libmd
20CFLAGS+= -DLIBC_SCCS -Wall
21PRECIOUSLIB= yes
21
22
22.if ${OBJFORMAT} == elf
23SONAME= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
24.endif
23LDADD+= -lmd
24DPADD+= ${LIBMD}
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)

--- 6 unchanged lines hidden (view full) ---

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>
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)

--- 6 unchanged lines hidden (view full) ---

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
48afterinstall:
49.if !defined(NOPIC)
50 @cd ${DESTDIR}${SHLIBDIR}; \
51 rm -f ${LCRYPTSO}; \
52 ln -sf ${LSCRYPTSO} ${LCRYPTSO};
53.endif
54.if !defined(NOPIC) && ${OBJFORMAT} == elf
55 @cd ${DESTDIR}${SHLIBDIR}; \
56 rm -f ${LCRYPTBASE}.so; \
57 ln -sf ${LSCRYPTBASE}.so libcrypt.so
58.endif
59 @cd ${DESTDIR}${LIBDIR}; \
60 rm -f ${LCRYPTBASE}.a; \
61 ln -sf ${LSCRYPTBASE}.a libcrypt.a
62.if !defined(NOPROFILE)
63 @cd ${DESTDIR}${LIBDIR}; \
64 rm -f ${LCRYPTBASE}_p.a; \
65 ln -sf ${LSCRYPTBASE}_p.a libcrypt_p.a
66.endif