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. 8c5da4b13SBruce Evans# libcom_err must be built before libkrb, libpam and libss. 9c5da4b13SBruce Evans# libcrypt must be built before libkrb, libpam and libskey. 10a04f2acdSJosef Karthauser# msun must be built before libg++ and libstdc++. 11a7c9f05aSBruce Evans# libmd must be built before libatm, libopie, libradius, libskey, and 12a7c9f05aSBruce Evans# 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. 1660da54eeSJohn Polstra# libskey must be built before libpam. 1760da54eeSJohn Polstra# libtacplus must be built before libpam. 18c5da4b13SBruce Evans# libutil must be built before libpam. 19c9811e98SBruce Evans# 20c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order. 21c9811e98SBruce Evans 22a04f2acdSJosef KarthauserSUBDIR= ${_csu} libcom_err ${_libcrypt} msun libmd \ 235f34a652SBruce Evans libncurses libradius libskey libtacplus libutil \ 24072355e0SPeter Wemm ${_compat} libalias libatm ${_libbind} libc ${_libc_r} libcalendar \ 25072355e0SPeter Wemm libcam libcompat libdevstat libdisk libedit libfetch libform \ 26c06992e5SArchie Cobbs libftpio libgnumalloc ${_libio} libipsec libipx libisc libkvm libmenu \ 279a4365d0SYoshinobu Inoue ${_libncp} \ 28cd7249ffSRobert Watson libnetgraph libopie libpam libpanel libpcap \ 29cb947c91SGregory Neil Shapiro libposix1e libresolv librpcsvc libsmdb libsmutil libss \ 301976c843SNick Hibma libstand ${_libtelnet} libusb ${_libvgl} libwrap libxpg4 liby libz 3158f0484fSRodney W. Grimes 328deb7ff0SJohn Birrell.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 338deb7ff0SJohn Birrell_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 345f160d14SJohn Birrell.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 35c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH} 36b09f41a4SJohn Birrell.endif 37b09f41a4SJohn Birrell 385f160d14SJohn Birrell.if !defined(NOLIBC_R) 39c9811e98SBruce Evans_libc_r= libc_r 405f160d14SJohn Birrell.endif 41ff2edf0cSPeter Wemm 4283b8ab27SPeter Wemm.if !defined(NO_BIND) 43072355e0SPeter Wemm_libbind= libbind 44072355e0SPeter Wemm.endif 45072355e0SPeter Wemm 467b2d810aSMark Murray_libcrypt= libcrypt 47bb49f794SKris Kennaway.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) && !defined(NO_DESCRYPT) 48efa3929eSMark Murray# Build both libraries. They have different names, so no harm, 49efa3929eSMark Murray# and this avoids having stale libscrypt.* 507b2d810aSMark Murray_libcrypt+= ../secure/lib/libcrypt 51e6af2dc8SAndrey A. Chernov.endif 52e6af2dc8SAndrey A. Chernov 53c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386" 54d78dcde2SGary Palmer_compat= compat 55f24bb3a4SBoris Popov_libncp= libncp 56c9811e98SBruce Evans_libvgl= libvgl 57d788c4fbSJohn Birrell.endif 58c9811e98SBruce Evans 5912e25f33SDoug Rabson.if ${MACHINE_ARCH} == "alpha" 6012e25f33SDoug Rabson_libio= libio 6112e25f33SDoug Rabson.endif 6212e25f33SDoug Rabson 63f05d1ad2SMark Murray.if defined(RELEASEDIR) || \ 64f05d1ad2SMark Murray (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \ 65c9811e98SBruce Evans defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 66c9811e98SBruce Evans_libtelnet= libtelnet 67c9811e98SBruce Evans.endif 688ff10292SPeter Wemm 6958f0484fSRodney W. Grimes.include <bsd.subdir.mk> 70