Makefile revision 51994
134689Sbde#	@(#)Makefile	8.1 (Berkeley) 6/4/93
250476Speter# $FreeBSD: head/lib/Makefile 51994 1999-10-07 20:02:45Z markm $
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 \
2239271Sphk	${_compat} libalias libatm libbind libc ${_libc_r} libcalendar libcam \
2350948Speter	libcompat libdevstat libdisk libedit libfetch libform \
2450948Speter	libftpio libgnumalloc ${_libio} libipx libkvm libmenu libopie libpam \
2550948Speter	libpanel libpcap libresolv librpcsvc libss libstand \
2644746Smarkm	${_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
3850738Smarkm_libcrypt=	libcrypt
3950738Smarkm.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
4034738Smarkm# Build both libraries. They have different names, so no harm,
4134738Smarkm# and this avoids having stale libscrypt.*
4250738Smarkm_libcrypt+=	../secure/lib/libcrypt
4311071Sache.endif
4411071Sache
4534689Sbde.if ${MACHINE_ARCH} == "i386"
4638477Sgpalmer_compat=	compat
4734689Sbde_libvgl=	libvgl
4836026Sjb.endif
4934689Sbde
5032386Sjb.if defined(WANT_CSRG_LIBM)
5134689Sbde_libm=		libm
522119Sjkh.else
5334689Sbde_libm=		msun
542119Sjkh.endif
552119Sjkh
5641912Sdfr.if ${MACHINE_ARCH} == "alpha"
5741912Sdfr_libio=		libio
5841912Sdfr.endif
5941912Sdfr
6051994Smarkm.if defined(RELEASEDIR) || \
6151994Smarkm    (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \
6234689Sbde    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
6334689Sbde_libtelnet=	libtelnet
6434689Sbde.endif
6520845Speter
661573Srgrimes.include <bsd.subdir.mk>
67