158f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 209ee9e26SDavid E. O'Brien# $Id: Makefile,v 1.88 1999/03/14 17:55:55 markm Exp $ 3c9811e98SBruce Evans 4c9811e98SBruce Evans# To satisfy shared library or ELF linkage when only the libraries being 5c9811e98SBruce Evans# built are visible: 6c9811e98SBruce Evans# 70f09aefaSBruce Evans# csu must be built before all shared libaries for ELF. 8c9811e98SBruce Evans# libcom_err must be built before libss. 947acf556SBruce Evans# libcrypt must be built before libskey. 1009ee9e26SDavid E. O'Brien# libm must be built before libstdc++. 11468662e8SJohn Polstra# libmd must be built before libatm, libopie, libradius, libskey, 12468662e8SJohn Polstra# and libtacplus. 1347acf556SBruce Evans# libmytinfo must be built before libdialog and libncurses. 1447acf556SBruce Evans# libncurses must be built before libdialog. 1560da54eeSJohn Polstra# libradius must be built before libpam. 1660da54eeSJohn Polstra# libskey must be built before libpam. 1760da54eeSJohn Polstra# libtacplus must be built before libpam. 1847acf556SBruce Evans# libtermcap must be built before libcurses, libedit and libreadline. 19c9811e98SBruce Evans# 20c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order. 21c9811e98SBruce Evans 2247acf556SBruce EvansSUBDIR= ${_csu} libcom_err ${_libcrypt} ${_libm} libmd libmytinfo \ 23d14e80a4SBruce Evans libncurses libradius libskey libtacplus libtermcap \ 243f8c4506SPoul-Henning Kamp ${_compat} libalias libatm libbind libc ${_libc_r} libcalendar libcam \ 25e886e3bdSJordan K. Hubbard libcompat libcurses libdevstat libdisk libedit libf2c libfetch \ 2612e25f33SDoug Rabson libftpio libgnumalloc ${_libio} libipx libkvm libopie libpam \ 2760da54eeSJohn Polstra libpcap libresolv librpcsvc libss libstand \ 28f3fc2030SMark Murray ${_libtelnet} libutil ${_libvgl} libwrap libxpg4 liby libz 2958f0484fSRodney W. Grimes 308deb7ff0SJohn Birrell.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 318deb7ff0SJohn Birrell_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 325f160d14SJohn Birrell.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 33c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH} 34b09f41a4SJohn Birrell.endif 35b09f41a4SJohn Birrell 365f160d14SJohn Birrell.if !defined(NOLIBC_R) 37c9811e98SBruce Evans_libc_r= libc_r 385f160d14SJohn Birrell.endif 39ff2edf0cSPeter Wemm 40efa3929eSMark Murray# Build both libraries. They have different names, so no harm, 41efa3929eSMark Murray# and this avoids having stale libscrypt.* 42efa3929eSMark Murray.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 43c932f886SPeter Wemm_libcrypt= ../secure/lib/libcrypt libcrypt 44c932f886SPeter Wemm.else 45c932f886SPeter Wemm_libcrypt= libcrypt 46e6af2dc8SAndrey A. Chernov.endif 47e6af2dc8SAndrey A. Chernov 48c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386" 49d78dcde2SGary Palmer_compat= compat 50c9811e98SBruce Evans_libvgl= libvgl 51d788c4fbSJohn Birrell.endif 52c9811e98SBruce Evans 536a7a98c9SJohn Birrell.if defined(WANT_CSRG_LIBM) 54c9811e98SBruce Evans_libm= libm 55b6059979SJordan K. Hubbard.else 56c9811e98SBruce Evans_libm= msun 57b6059979SJordan K. Hubbard.endif 58b6059979SJordan K. Hubbard 5912e25f33SDoug Rabson.if ${MACHINE_ARCH} == "alpha" 6012e25f33SDoug Rabson_libio= libio 6112e25f33SDoug Rabson.endif 6212e25f33SDoug Rabson 63c9811e98SBruce Evans.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \ 64c9811e98SBruce Evans defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 65c9811e98SBruce Evans_libtelnet= libtelnet 66c9811e98SBruce Evans.endif 678ff10292SPeter Wemm 6858f0484fSRodney W. Grimes.include <bsd.subdir.mk> 69