Teach libdescrypt about elf builds.
This commit is contained in:
parent
a9c87f32ee
commit
a99f0e8211
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29147
@ -1,12 +1,17 @@
|
|||||||
#
|
#
|
||||||
# $Id$
|
# $Id: Makefile,v 1.12 1997/02/22 14:40:27 peter Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
LCRYPTBASE= libcrypt
|
LCRYPTBASE= libcrypt
|
||||||
LCRYPTSO= $(LCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
|
||||||
|
|
||||||
LDCRYPTBASE= libdescrypt
|
LDCRYPTBASE= libdescrypt
|
||||||
|
|
||||||
|
.if ${BINFORMAT} != elf
|
||||||
|
LCRYPTSO= $(LCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
LDCRYPTSO= $(LDCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
LDCRYPTSO= $(LDCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
|
||||||
|
.else
|
||||||
|
LCRYPTSO= $(LCRYPTBASE).so.$(SHLIB_MAJOR)
|
||||||
|
LDCRYPTSO= $(LDCRYPTBASE).so.$(SHLIB_MAJOR)
|
||||||
|
.endif
|
||||||
|
|
||||||
.PATH: ${.CURDIR}/../../../lib/libmd
|
.PATH: ${.CURDIR}/../../../lib/libmd
|
||||||
|
|
||||||
@ -16,6 +21,10 @@ MAN3= crypt.3
|
|||||||
CFLAGS+= -I${.CURDIR}/../../../lib/libmd -Wall
|
CFLAGS+= -I${.CURDIR}/../../../lib/libmd -Wall
|
||||||
PRECIOUSLIB= yes
|
PRECIOUSLIB= yes
|
||||||
|
|
||||||
|
.if ${BINFORMAT} == elf
|
||||||
|
SONAME= ${LCRYPTBASE}.so.$(SHLIB_MAJOR)
|
||||||
|
.endif
|
||||||
|
|
||||||
test:
|
test:
|
||||||
cd test ; make test ; make clean
|
cd test ; make test ; make clean
|
||||||
|
|
||||||
@ -30,6 +39,13 @@ afterinstall:
|
|||||||
rm -f $(LCRYPTSO); \
|
rm -f $(LCRYPTSO); \
|
||||||
ln -s $(LDCRYPTSO) $(LCRYPTSO); \
|
ln -s $(LDCRYPTSO) $(LCRYPTSO); \
|
||||||
fi
|
fi
|
||||||
|
.endif
|
||||||
|
.if !defined(NOPIC) && defined(SHLIB_MAJOR) && ${BINFORMAT} == elf
|
||||||
|
@cd $(DESTDIR)/$(LIBDIR); \
|
||||||
|
if [ ! -e $(LCRYPTBASE).so ]; then \
|
||||||
|
rm -f $(LCRYPTBASE).so; \
|
||||||
|
ln -s $(LDCRYPTBASE).so libcrypt.so; \
|
||||||
|
fi
|
||||||
.endif
|
.endif
|
||||||
@cd $(DESTDIR)/$(LIBDIR); \
|
@cd $(DESTDIR)/$(LIBDIR); \
|
||||||
if [ ! -e $(LCRYPTBASE).a ]; then \
|
if [ ! -e $(LCRYPTBASE).a ]; then \
|
||||||
|
Loading…
Reference in New Issue
Block a user