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 229886bcdfSPeter WemmSUBDIR= ${_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} 3456a91a6fSDavid E. O'Brien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 35c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH} 3656a91a6fSDavid E. O'Brien.else 3756a91a6fSDavid E. O'Brien_csu=csu 38b09f41a4SJohn Birrell.endif 39b09f41a4SJohn Birrell 405f160d14SJohn Birrell.if !defined(NOLIBC_R) 41c9811e98SBruce Evans_libc_r= libc_r 425f160d14SJohn Birrell.endif 43ff2edf0cSPeter Wemm 4483b8ab27SPeter Wemm.if !defined(NO_BIND) 45072355e0SPeter Wemm_libbind= libbind 46072355e0SPeter Wemm.endif 47072355e0SPeter Wemm 48c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386" 49d78dcde2SGary Palmer_compat= compat 50f24bb3a4SBoris Popov_libncp= libncp 51c9811e98SBruce Evans_libvgl= libvgl 52d788c4fbSJohn Birrell.endif 53c9811e98SBruce Evans 5412e25f33SDoug Rabson.if ${MACHINE_ARCH} == "alpha" 5512e25f33SDoug Rabson_libio= libio 5656a91a6fSDavid E. O'Brien_compat= compat 5712e25f33SDoug Rabson.endif 5812e25f33SDoug Rabson 59f05d1ad2SMark Murray.if defined(RELEASEDIR) || \ 60f05d1ad2SMark Murray (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \ 610dc44b5aSRuslan Ermilov defined(NOCRYPT) || (defined(NOSECURE) && !defined(MAKE_KERBEROS4)) 62c9811e98SBruce Evans_libtelnet= libtelnet 63c9811e98SBruce Evans.endif 648ff10292SPeter Wemm 6558f0484fSRodney W. Grimes.include <bsd.subdir.mk> 66