freebsd-dev/lib/compat/compat22/Makefile
Peter Wemm 7a19c34992 Put on my peril-sensitive sunglasses. Remove any old libraries that
we have just installed a replacement for.  This should solve the problem
of having a stale /usr/lib/libc.so.4 after we put a fresh
/usr/lib/compat/libc.so.4 in its place.
2001-09-21 09:10:09 +00:00

40 lines
1.4 KiB
Makefile

# $FreeBSD$
DISTRIBUTION= compat22
LIBS= libalias.so.2.4 libc.so.3.1 libc_r.so.3.0 libcalendar.so.2.0 \
libcom_err.so.2.0 libcurses.so.2.0 libdialog.so.3.1 libedit.so.2.0 \
libf2c.so.2.0 libftpio.so.4.0 libg++.so.4.0 libgmp.so.3.0 \
libgnuregex.so.2.0 libipx.so.2.0 libkvm.so.2.0 libm.so.2.0 \
libmp.so.3.0 libmytinfo.so.2.0 libncurses.so.3.1 libopie.so.2.0 \
libpcap.so.2.2 libreadline.so.3.0 librpcsvc.so.2.0 libscrypt.so.2.0 \
libscsi.so.2.0 libskey.so.2.0 libss.so.2.0 libstdc++.so.2.0 \
libtelnet.so.2.0 libtermcap.so.2.1 libutil.so.2.2 libvgl.so.1.0 \
libxpg4.so.2.0 libz.so.2.0
CLEANFILES+= ${LIBS} ld.so
all: ${LIBS} ld.so
.for lib in ${LIBS} ld.so
${lib}: ${lib}.gz.uu
uudecode -p ${.CURDIR}/${lib}.gz.uu | gunzip > ${lib}
.endfor
beforeinstall:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ld.so \
${DESTDIR}/usr/libexec
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}/aout
@${ECHO} "libcrypt.so.2.0 -> libscrypt.so.2.0" ; \
cd ${DESTDIR}${LIBCOMPATDIR}/aout ; \
ln -sf libscrypt.so.2.0 libcrypt.so.2.0
@${ECHO} "libtermlib.so.2.1 -> libtermcap.so.2.1" ; \
cd ${DESTDIR}${LIBCOMPATDIR}/aout ; \
ln -sf libtermcap.so.2.1 libtermlib.so.2.1
rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@}
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.
.include <bsd.prog.mk>