Makefile revision 53922
134689Sbde#	@(#)Makefile	8.1 (Berkeley) 6/4/93
250476Speter# $FreeBSD: head/lib/Makefile 53922 1999-11-30 04:22:25Z peter $
31573Srgrimes
434689Sbde# To satisfy shared library or ELF linkage when only the libraries being
534689Sbde# built are visible:
634689Sbde#
738752Sbde# csu must be built before all shared libaries for ELF.
834689Sbde# libcom_err must be built before libss.
950899Sbde# libcrypt must be built before libkrb and libskey.
1045691Sobrien# libm must be built before libstdc++.
1150899Sbde# libmd must be built before libatm, libcrypt, libopie, libradius, libskey,
1250899Sbde# and libtacplus.
1350731Speter# libncurses must be built before libdialog, libedit and libreadline.
1441257Sjdp# libradius must be built before libpam.
1541257Sjdp# libskey must be built before libpam.
1641257Sjdp# libtacplus must be built before libpam.
1734689Sbde#
1834689Sbde# Otherwise, the SUBDIR list should be in alphabetical order.
1934689Sbde
2050738SmarkmSUBDIR=	${_csu} libcom_err ${_libm} libmd ${_libcrypt} \
2150899Sbde	libncurses libradius libskey libtacplus \
2253922Speter	${_compat} libalias libatm ${_libbind} libc ${_libc_r} libcalendar \
2353922Speter	libcam libcompat libdevstat libdisk libedit libfetch libform \
2452228Sbp	libftpio libgnumalloc ${_libio} libipx libkvm libmenu ${_libncp} \
2552419Sjulian	libnetgraph libopie libpam libpanel libpcap libresolv librpcsvc libss \
2652419Sjulian	libstand ${_libtelnet} libutil ${_libvgl} libwrap libxpg4 liby libz
2734689Sbde
2838632Sjb.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
2938632Sjb_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
3034330Sjb.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
3134689Sbde_csu=csu/${MACHINE_ARCH}
321573Srgrimes.endif
331573Srgrimes
3434330Sjb.if !defined(NOLIBC_R)
3534689Sbde_libc_r=	libc_r
3617706Sjulian.endif
3717706Sjulian
3853922Speter.if !defined(NO_BIND) && 0
3953922Speter_libbind=	libbind
4053922Speter.endif
4153922Speter
4250738Smarkm_libcrypt=	libcrypt
4350738Smarkm.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
4434738Smarkm# Build both libraries. They have different names, so no harm,
4534738Smarkm# and this avoids having stale libscrypt.*
4650738Smarkm_libcrypt+=	../secure/lib/libcrypt
4711071Sache.endif
4811071Sache
4934689Sbde.if ${MACHINE_ARCH} == "i386"
5038477Sgpalmer_compat=	compat
5152228Sbp_libncp=	libncp
5234689Sbde_libvgl=	libvgl
5336026Sjb.endif
5434689Sbde
5532386Sjb.if defined(WANT_CSRG_LIBM)
5634689Sbde_libm=		libm
572119Sjkh.else
5834689Sbde_libm=		msun
592119Sjkh.endif
602119Sjkh
6141912Sdfr.if ${MACHINE_ARCH} == "alpha"
6241912Sdfr_libio=		libio
6341912Sdfr.endif
6441912Sdfr
6551994Smarkm.if defined(RELEASEDIR) || \
6651994Smarkm    (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \
6734689Sbde    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
6834689Sbde_libtelnet=	libtelnet
6934689Sbde.endif
7020845Speter
711573Srgrimes.include <bsd.subdir.mk>
72