Makefile revision 52419
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 52419 1999-10-21 09:06:11Z julian $ 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 \ 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 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 4752228Sbp_libncp= libncp 4834689Sbde_libvgl= libvgl 4936026Sjb.endif 5034689Sbde 5132386Sjb.if defined(WANT_CSRG_LIBM) 5234689Sbde_libm= libm 532119Sjkh.else 5434689Sbde_libm= msun 552119Sjkh.endif 562119Sjkh 5741912Sdfr.if ${MACHINE_ARCH} == "alpha" 5841912Sdfr_libio= libio 5941912Sdfr.endif 6041912Sdfr 6151994Smarkm.if defined(RELEASEDIR) || \ 6251994Smarkm (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \ 6334689Sbde defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 6434689Sbde_libtelnet= libtelnet 6534689Sbde.endif 6620845Speter 671573Srgrimes.include <bsd.subdir.mk> 68