158f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 27f3dea24SPeter Wemm# $FreeBSD$ 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. 84870a3d3SKris Kennaway# libcom_err must be built before libkrb and libpam. 9ccdee0d9SMark Murray# libcrypt must be built before libkrb and libpam. 10c4a5ef6eSThomas Moestl# libkvm must be built before libdevstat. 11a04f2acdSJosef Karthauser# msun must be built before libg++ and libstdc++. 12ccdee0d9SMark Murray# libmd must be built before libatm, libopie, libradius, and libtacplus. 1368db2328SPeter Wemm# libncurses must be built before libdialog, libedit and libreadline. 1414b42810SKris Kennaway# libopie must be built before libpam. 1560da54eeSJohn Polstra# libradius must be built before libpam. 1676ed168aSMark Murray# librpcsvc must be built before libpam. 1797b877c9SDag-Erling Smørgrav# libsbuf must be built before libcam. 1860da54eeSJohn Polstra# libtacplus must be built before libpam. 19c5da4b13SBruce Evans# libutil must be built before libpam. 2097b877c9SDag-Erling Smørgrav# libypclnt must be built before libpam. 21c9811e98SBruce Evans# 22c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order. 23c9811e98SBruce Evans 24c4a5ef6eSThomas MoestlSUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd \ 2597b877c9SDag-Erling Smørgrav libncurses libradius librpcsvc libsbuf libtacplus libutil libypclnt \ 26d2454086SDavid E. O'Brien ${_compat} libalias libatm ${_libbind} libbz2 libc ${_libc_r} \ 27d2454086SDavid E. O'Brien libcalendar libcam libcompat libdevinfo libdevstat libdisk \ 2807cf2196SRuslan Ermilov libedit libfetch libform libftpio ${_libio} libipsec \ 29850dab17SGregory Neil Shapiro libipx libisc libmenu ${_libmilter} ${_libmp} ${_libncp} \ 30cd7249ffSRobert Watson libnetgraph libopie libpam libpanel libpcap \ 3107cf2196SRuslan Ermilov ${_libsm} ${_libsmb} ${_libsmdb} ${_libsmutil} \ 32a6402160SJosef Karthauser libstand ${_libtelnet} libusbhid ${_libvgl} libwrap libxpg4 liby libz 3358f0484fSRodney W. Grimes 348deb7ff0SJohn Birrell.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 358deb7ff0SJohn Birrell_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 3656a91a6fSDavid E. O'Brien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 37c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH} 3856a91a6fSDavid E. O'Brien.else 3956a91a6fSDavid E. O'Brien_csu=csu 40b09f41a4SJohn Birrell.endif 41b09f41a4SJohn Birrell 42086b2eb5SPoul-Henning Kamp.if !defined(NOLIBC_R) && ${MACHINE_ARCH} != ia64 && ${MACHINE_ARCH} != sparc64 43c9811e98SBruce Evans_libc_r= libc_r 445f160d14SJohn Birrell.endif 45ff2edf0cSPeter Wemm 4683b8ab27SPeter Wemm.if !defined(NO_BIND) 47072355e0SPeter Wemm_libbind= libbind 48072355e0SPeter Wemm.endif 49072355e0SPeter Wemm 506dbfffa3SGregory Neil Shapiro.if !defined(NO_SENDMAIL) 51850dab17SGregory Neil Shapiro_libmilter= libmilter 52850dab17SGregory Neil Shapiro_libsm= libsm 536dbfffa3SGregory Neil Shapiro_libsmdb= libsmdb 546dbfffa3SGregory Neil Shapiro_libsmutil= libsmutil 556dbfffa3SGregory Neil Shapiro.endif 566dbfffa3SGregory Neil Shapiro 57c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386" 58d78dcde2SGary Palmer_compat= compat 59f24bb3a4SBoris Popov_libncp= libncp 6023eb26faSSheldon Hearn_libsmb= libsmb 61c9811e98SBruce Evans_libvgl= libvgl 62d788c4fbSJohn Birrell.endif 63c9811e98SBruce Evans 6412e25f33SDoug Rabson.if ${MACHINE_ARCH} == "alpha" 6512e25f33SDoug Rabson_libio= libio 6656a91a6fSDavid E. O'Brien_compat= compat 6712e25f33SDoug Rabson.endif 6812e25f33SDoug Rabson 69f05d1ad2SMark Murray.if defined(RELEASEDIR) || \ 70f05d1ad2SMark Murray (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \ 710dc44b5aSRuslan Ermilov defined(NOCRYPT) || (defined(NOSECURE) && !defined(MAKE_KERBEROS4)) 72c9811e98SBruce Evans_libtelnet= libtelnet 73c9811e98SBruce Evans.endif 748ff10292SPeter Wemm 752ec6a0bcSDavid E. O'Brien.if exists(${.CURDIR}/../crypto) && !defined(NOCRYPT) && !defined(NO_OPENSSL) \ 762ec6a0bcSDavid E. O'Brien && !defined(NOSECURE) 77a8ec1b48SMaxim Sobolev_libmp= libmp 78a8ec1b48SMaxim Sobolev.endif 79a8ec1b48SMaxim Sobolev 8058f0484fSRodney W. Grimes.include <bsd.subdir.mk> 81