6db669414b
the US and not allowed to see this. I kept my eyes closed. 8-)
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
#
|
|
# $Id: Makefile,v 1.13 1997/09/05 12:21:22 peter Exp $
|
|
#
|
|
|
|
LCRYPTBASE= libcrypt
|
|
LDCRYPTBASE= libdescrypt
|
|
|
|
.if ${OBJFORMAT} != elf
|
|
LCRYPTSO= $(LCRYPTBASE).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
|
|
|
|
LIB= descrypt
|
|
SRCS= crypt.c crypt-md5.c md5c.c
|
|
MAN3= crypt.3
|
|
CFLAGS+= -I${.CURDIR}/../../../lib/libmd -Wall
|
|
PRECIOUSLIB= yes
|
|
|
|
.if ${OBJFORMAT} == elf
|
|
SONAME= ${LCRYPTBASE}.so.$(SHLIB_MAJOR)
|
|
.endif
|
|
|
|
test:
|
|
cd test ; make test ; make clean
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
# We only install the links if they do not already exist.
|
|
# This may have to be revised
|
|
afterinstall:
|
|
.if !defined(NOPIC) && defined(SHLIB_MAJOR)
|
|
@cd $(DESTDIR)/$(LIBDIR); \
|
|
if [ ! -e $(LCRYPTSO) ]; then \
|
|
rm -f $(LCRYPTSO); \
|
|
ln -s $(LDCRYPTSO) $(LCRYPTSO); \
|
|
fi
|
|
.endif
|
|
.if !defined(NOPIC) && defined(SHLIB_MAJOR) && ${OBJFORMAT} == elf
|
|
@cd $(DESTDIR)/$(LIBDIR); \
|
|
if [ ! -e $(LCRYPTBASE).so ]; then \
|
|
rm -f $(LCRYPTBASE).so; \
|
|
ln -s $(LDCRYPTBASE).so libcrypt.so; \
|
|
fi
|
|
.endif
|
|
@cd $(DESTDIR)/$(LIBDIR); \
|
|
if [ ! -e $(LCRYPTBASE).a ]; then \
|
|
rm -f $(LCRYPTBASE).a; \
|
|
ln -s $(LDCRYPTBASE).a libcrypt.a; \
|
|
fi
|
|
.if !defined(NOPROFILE)
|
|
@cd $(DESTDIR)/$(LIBDIR); \
|
|
if [ ! -e $(LCRYPTBASE)_p.a ]; then \
|
|
rm -f $(LCRYPTBASE)_p.a; \
|
|
ln -s $(LDCRYPTBASE)_p.a libcrypt_p.a; \
|
|
fi
|
|
.endif
|