Makefile revision 115583
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 115583 2003-06-01 00:32:21Z marcel $ 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. 881920Skris# libcom_err must be built before libkrb and libpam. 979471Smarkm# libcrypt must be built before libkrb and libpam. 1081133Stmm# libkvm must be built before libdevstat. 1159897Sjoe# msun must be built before libg++ and libstdc++. 1279471Smarkm# libmd must be built before libatm, libopie, libradius, and 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. 1682355Smarkm# librpcsvc must be built before libpam. 1794690Sdes# libsbuf must be built before libcam. 1841257Sjdp# libtacplus must be built before libpam. 1956081Sbde# libutil must be built before libpam. 2094690Sdes# libypclnt must be built before libpam. 2134689Sbde# 2234689Sbde# Otherwise, the SUBDIR list should be in alphabetical order. 2334689Sbde 2481133StmmSUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd \ 2594690Sdes libncurses libradius librpcsvc libsbuf libtacplus libutil libypclnt \ 2678560Sobrien ${_compat} libalias libatm ${_libbind} libbz2 libc ${_libc_r} \ 27111204Sobrien libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \ 28110546Sphk libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \ 2990796Sgshapiro libipx libisc libmenu ${_libmilter} ${_libmp} ${_libncp} \ 30113997Sdeischen libnetgraph libopie libpam libpanel libpcap ${_libpthread} \ 3196505Sru ${_libsm} ${_libsmb} ${_libsmdb} ${_libsmutil} \ 32115484Smtm ${_libstand} ${_libtelnet} ${_libthr} libufs libugidfw libusbhid \ 33115484Smtm ${_libvgl} libwrap libxpg4 liby libz 3434689Sbde 35103436Speter.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 36103436Speter_csu=csu/${MACHINE_ARCH}-elf 3772309Sobrien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 3834689Sbde_csu=csu/${MACHINE_ARCH} 3972309Sobrien.else 4072309Sobrien_csu=csu 411573Srgrimes.endif 421573Srgrimes 43114296Sobrien.if ${MACHINE_ARCH} != "amd64" 44114315Speter_libstand= libstand 45108753Smarcel.if !defined(NOLIBC_R) 4634689Sbde_libc_r= libc_r 4717706Sjulian.endif 48114296Sobrien.endif 4917706Sjulian 5053927Speter.if !defined(NO_BIND) 5153922Speter_libbind= libbind 5253922Speter.endif 5353922Speter 5486252Sgshapiro.if !defined(NO_SENDMAIL) 5590796Sgshapiro_libmilter= libmilter 5690796Sgshapiro_libsm= libsm 5786252Sgshapiro_libsmdb= libsmdb 5886252Sgshapiro_libsmutil= libsmutil 5986252Sgshapiro.endif 6086252Sgshapiro 6134689Sbde.if ${MACHINE_ARCH} == "i386" 6238477Sgpalmer_compat= compat 6352228Sbp_libncp= libncp 6487960Ssheldonh_libsmb= libsmb 6534689Sbde_libvgl= libvgl 66113997Sdeischen.if !defined(NOLIBPTHREAD) 67113997Sdeischen_libpthread= libpthread 6836026Sjb.endif 69115484Smtm.if !defined(NOLIBTHR) 70115484Smtm_libthr= libthr 71113997Sdeischen.endif 72115484Smtm.endif 7334689Sbde 74115583Smarcel.if ${MACHINE_ARCH} == "ia64" 75115583Smarcel.if !defined(NOLIBTHR) 76115583Smarcel_libthr= libthr 77115583Smarcel.endif 78115583Smarcel.endif 79115583Smarcel 8041912Sdfr.if ${MACHINE_ARCH} == "alpha" 8141912Sdfr_libio= libio 8272309Sobrien_compat= compat 8341912Sdfr.endif 8441912Sdfr 85111204Sobrien.if ${MACHINE_ARCH} != "powerpc" 86114279Sru_libdisk= libdisk 87111204Sobrien.endif 88111204Sobrien 8951994Smarkm.if defined(RELEASEDIR) || \ 90111987Smarkm (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberos5)) || \ 91115157Sdes defined(NOCRYPT) || defined(NO_OPENSSL) || defined(NO_KERBEROS) 9234689Sbde_libtelnet= libtelnet 9334689Sbde.endif 9420845Speter 95115157Sdes.if exists(${.CURDIR}/../crypto) && !defined(NOCRYPT) && !defined(NO_OPENSSL) 9681054Ssobomax_libmp= libmp 9781054Ssobomax.endif 9881054Ssobomax 991573Srgrimes.include <bsd.subdir.mk> 100