1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $Id: Makefile,v 1.81 1998/10/01 14:49:57 jkh Exp $ 3 4# To satisfy shared library or ELF linkage when only the libraries being 5# built are visible: 6# 7# csu must be built before all shared libaries for ELF. 8# libcom_err must be built before libss. 9# libcrypt must be built before libskey. 10# libm must be built before libf2c, libg++ and libstdc++. 11# libmd must be built before libatm, libopie and libskey. 12# libmytinfo must be built before libdialog and libncurses. 13# libncurses must be built before libdialog. 14# libtermcap must be built before libcurses, libedit and libreadline. 15# 16# Otherwise, the SUBDIR list should be in alphabetical order. 17 18SUBDIR= ${_csu} libcom_err ${_libcrypt} ${_libm} libmd libmytinfo \ 19 libncurses libtermcap \ 20 ${_compat} libalias libatm libbind libc ${_libc_r} libcalendar libcam \ 21 libcompat libcurses libdevstat libdisk libedit libf2c libfetch \ 22 libftpio libgnumalloc libipx libkvm libopie \ 23 libpcap libresolv librpcsvc libskey libss libstand \ 24 ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz 25 26.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 27_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 28.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 29_csu=csu/${MACHINE_ARCH} 30.endif 31 32.if !defined(NOLIBC_R) 33_libc_r= libc_r 34.endif 35 36# Build both libraries. They have different names, so no harm, 37# and this avoids having stale libscrypt.* 38.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 39_libcrypt= ../secure/lib/libcrypt libcrypt 40.else 41_libcrypt= libcrypt 42.endif 43 44.if ${MACHINE_ARCH} == "i386" 45_compat= compat 46_libvgl= libvgl 47.endif 48 49.if defined(WANT_CSRG_LIBM) 50_libm= libm 51.else 52_libm= msun 53.endif 54 55.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \ 56 defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 57_libtelnet= libtelnet 58.endif 59 60.include <bsd.subdir.mk> 61