Makefile revision 59353
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 59353 2000-04-18 06:13:06Z kris $ 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. 1459353Skris# libopie must be built before libpam. 1541257Sjdp# libradius must be built before libpam. 1641257Sjdp# libskey must be built before libpam. 1741257Sjdp# libtacplus must be built before libpam. 1856081Sbde# libutil must be built before libpam. 1934689Sbde# 2034689Sbde# Otherwise, the SUBDIR list should be in alphabetical order. 2134689Sbde 2256353SbdeSUBDIR= ${_csu} libcom_err ${_libcrypt} ${_libm} libmd \ 2356132Sbde libncurses libradius libskey libtacplus libutil \ 2453922Speter ${_compat} libalias libatm ${_libbind} libc ${_libc_r} libcalendar \ 2553922Speter libcam libcompat libdevstat libdisk libedit libfetch libform \ 2655505Sshin libftpio libgnumalloc ${_libio} libipsec libipx libkvm libmenu \ 2755505Sshin ${_libncp} \ 2856058Srwatson libnetgraph libopie libpam libpanel libpcap \ 2956058Srwatson libposix1e libresolv librpcsvc libss \ 3056132Sbde libstand ${_libtelnet} ${_libvgl} libwrap libxpg4 liby libz 3134689Sbde 3238632Sjb.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 3338632Sjb_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 3434330Sjb.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 3534689Sbde_csu=csu/${MACHINE_ARCH} 361573Srgrimes.endif 371573Srgrimes 3834330Sjb.if !defined(NOLIBC_R) 3934689Sbde_libc_r= libc_r 4017706Sjulian.endif 4117706Sjulian 4253927Speter.if !defined(NO_BIND) 4353922Speter_libbind= libbind 4453922Speter.endif 4553922Speter 4650738Smarkm_libcrypt= libcrypt 4757841Skris.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) && !defined(NO_DESCRYPT) 4834738Smarkm# Build both libraries. They have different names, so no harm, 4934738Smarkm# and this avoids having stale libscrypt.* 5050738Smarkm_libcrypt+= ../secure/lib/libcrypt 5111071Sache.endif 5211071Sache 5334689Sbde.if ${MACHINE_ARCH} == "i386" 5438477Sgpalmer_compat= compat 5552228Sbp_libncp= libncp 5634689Sbde_libvgl= libvgl 5736026Sjb.endif 5834689Sbde 5932386Sjb.if defined(WANT_CSRG_LIBM) 6034689Sbde_libm= libm 612119Sjkh.else 6234689Sbde_libm= msun 632119Sjkh.endif 642119Sjkh 6541912Sdfr.if ${MACHINE_ARCH} == "alpha" 6641912Sdfr_libio= libio 6741912Sdfr.endif 6841912Sdfr 6951994Smarkm.if defined(RELEASEDIR) || \ 7051994Smarkm (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \ 7134689Sbde defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 7234689Sbde_libtelnet= libtelnet 7334689Sbde.endif 7420845Speter 751573Srgrimes.include <bsd.subdir.mk> 76