Makefile revision 56353
134689Sbde#	@(#)Makefile	8.1 (Berkeley) 6/4/93
250476Speter# $FreeBSD: head/lib/Makefile 56353 2000-01-21 02:00:53Z bde $
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.
856081Sbde# libcom_err must be built before libkrb, libpam and libss.
956081Sbde# libcrypt must be built before libkrb, libpam and libskey.
1056081Sbde# libm must be built before libg++ and libstdc++.
1156353Sbde# libmd must be built before libatm, libopie, libradius, libskey, and
1256353Sbde# 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.
1756081Sbde# libutil must be built before libpam.
1834689Sbde#
1934689Sbde# Otherwise, the SUBDIR list should be in alphabetical order.
2034689Sbde
2156353SbdeSUBDIR=	${_csu} libcom_err ${_libcrypt} ${_libm} libmd \
2256132Sbde	libncurses libradius libskey libtacplus libutil \
2353922Speter	${_compat} libalias libatm ${_libbind} libc ${_libc_r} libcalendar \
2453922Speter	libcam libcompat libdevstat libdisk libedit libfetch libform \
2555505Sshin	libftpio libgnumalloc ${_libio} libipsec libipx libkvm libmenu \
2655505Sshin	${_libncp} \
2756058Srwatson	libnetgraph libopie libpam libpanel libpcap \
2856058Srwatson	libposix1e libresolv librpcsvc libss \
2956132Sbde	libstand ${_libtelnet} ${_libvgl} libwrap libxpg4 liby libz
3034689Sbde
3138632Sjb.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
3238632Sjb_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
3334330Sjb.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
3434689Sbde_csu=csu/${MACHINE_ARCH}
351573Srgrimes.endif
361573Srgrimes
3734330Sjb.if !defined(NOLIBC_R)
3834689Sbde_libc_r=	libc_r
3917706Sjulian.endif
4017706Sjulian
4153927Speter.if !defined(NO_BIND)
4253922Speter_libbind=	libbind
4353922Speter.endif
4453922Speter
4550738Smarkm_libcrypt=	libcrypt
4650738Smarkm.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
4734738Smarkm# Build both libraries. They have different names, so no harm,
4834738Smarkm# and this avoids having stale libscrypt.*
4950738Smarkm_libcrypt+=	../secure/lib/libcrypt
5011071Sache.endif
5111071Sache
5234689Sbde.if ${MACHINE_ARCH} == "i386"
5338477Sgpalmer_compat=	compat
5452228Sbp_libncp=	libncp
5534689Sbde_libvgl=	libvgl
5636026Sjb.endif
5734689Sbde
5832386Sjb.if defined(WANT_CSRG_LIBM)
5934689Sbde_libm=		libm
602119Sjkh.else
6134689Sbde_libm=		msun
622119Sjkh.endif
632119Sjkh
6441912Sdfr.if ${MACHINE_ARCH} == "alpha"
6541912Sdfr_libio=		libio
6641912Sdfr.endif
6741912Sdfr
6851994Smarkm.if defined(RELEASEDIR) || \
6951994Smarkm    (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \
7034689Sbde    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
7134689Sbde_libtelnet=	libtelnet
7234689Sbde.endif
7320845Speter
741573Srgrimes.include <bsd.subdir.mk>
75