Makefile revision 50899
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 50899 1999-09-04 13:08:35Z 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. 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 \ 2350899Sbde libcompat libdevstat libdisk libedit libfetch \ 2441912Sdfr libftpio libgnumalloc ${_libio} libipx libkvm libopie libpam \ 2541257Sjdp libpcap libresolv librpcsvc libss libstand \ 2644746Smarkm ${_libtelnet} libutil ${_libvgl} libwrap libxpg4 liby libz 2734689Sbde 2850899Sbde#SUBDIR+=libform libmenu libpanel 2950633Speter 3038632Sjb.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 3138632Sjb_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 3234330Sjb.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 3334689Sbde_csu=csu/${MACHINE_ARCH} 341573Srgrimes.endif 351573Srgrimes 3634330Sjb.if !defined(NOLIBC_R) 3734689Sbde_libc_r= libc_r 3817706Sjulian.endif 3917706Sjulian 4050738Smarkm_libcrypt= libcrypt 4150738Smarkm.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 4234738Smarkm# Build both libraries. They have different names, so no harm, 4334738Smarkm# and this avoids having stale libscrypt.* 4450738Smarkm_libcrypt+= ../secure/lib/libcrypt 4511071Sache.endif 4611071Sache 4734689Sbde.if ${MACHINE_ARCH} == "i386" 4838477Sgpalmer_compat= compat 4934689Sbde_libvgl= libvgl 5036026Sjb.endif 5134689Sbde 5232386Sjb.if defined(WANT_CSRG_LIBM) 5334689Sbde_libm= libm 542119Sjkh.else 5534689Sbde_libm= msun 562119Sjkh.endif 572119Sjkh 5841912Sdfr.if ${MACHINE_ARCH} == "alpha" 5941912Sdfr_libio= libio 6041912Sdfr.endif 6141912Sdfr 6234689Sbde.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \ 6334689Sbde defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 6434689Sbde_libtelnet= libtelnet 6534689Sbde.endif 6620845Speter 671573Srgrimes.include <bsd.subdir.mk> 68