Makefile revision 121054
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 121054 2003-10-12 22:04:24Z emax $ 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. 8117675Smarkm# libcom_err must be built before libkrb5 and libpam. 9117675Smarkm# libcrypt must be built before libkrb5 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 \ 26121054Semax ${_compat} libalias ${_libatm} ${_libbind} \ 27121054Semax ${_libbluetooth} libbz2 libc ${_libc_r} \ 28111204Sobrien libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \ 29110546Sphk libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \ 30120492Sfjoe libipx libisc libkiconv libmenu ${_libmilter} ${_libmp} ${_libncp} \ 31113997Sdeischen libnetgraph libopie libpam libpanel libpcap ${_libpthread} \ 32121054Semax ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} ${_libsmutil} \ 33119553Sphk libstand libtelnet ${_libthr} libufs libugidfw ${_libusbhid} \ 34115484Smtm ${_libvgl} libwrap libxpg4 liby libz 3534689Sbde 36103436Speter.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 37103436Speter_csu=csu/${MACHINE_ARCH}-elf 3872309Sobrien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 3934689Sbde_csu=csu/${MACHINE_ARCH} 4072309Sobrien.else 4172309Sobrien_csu=csu 421573Srgrimes.endif 431573Srgrimes 44116906Smarcel# libc_r is obsolete on ia64. 45119002Sobrien.if ${MACHINE_ARCH} != "ia64" && ${MACHINE_ARCH} != "powerpc" 46108753Smarcel.if !defined(NOLIBC_R) 4734689Sbde_libc_r= libc_r 4817706Sjulian.endif 49116906Smarcel.endif 5017706Sjulian 51119508Sphk.if !defined(NOATM) 52119508Sphk_libatm= libatm 53119508Sphk.endif 54119508Sphk 5553927Speter.if !defined(NO_BIND) 5653922Speter_libbind= libbind 5753922Speter.endif 5853922Speter 5986252Sgshapiro.if !defined(NO_SENDMAIL) 6090796Sgshapiro_libmilter= libmilter 6190796Sgshapiro_libsm= libsm 6286252Sgshapiro_libsmdb= libsmdb 6386252Sgshapiro_libsmutil= libsmutil 6486252Sgshapiro.endif 6586252Sgshapiro 66119553Sphk.if !defined(NO_USB) 67119553Sphk_libusbhid= libusbhid 68119553Sphk.endif 69119553Sphk 7034689Sbde.if ${MACHINE_ARCH} == "i386" 7138477Sgpalmer_compat= compat 72121054Semax_libbluetooth= libbluetooth 7352228Sbp_libncp= libncp 74121054Semax_libsdp= libsdp 7587960Ssheldonh_libsmb= libsmb 7634689Sbde_libvgl= libvgl 7736026Sjb.endif 7834689Sbde 7941912Sdfr.if ${MACHINE_ARCH} == "alpha" 8041912Sdfr_libio= libio 8172309Sobrien_compat= compat 8241912Sdfr.endif 8341912Sdfr 84117950Speter.if ${MACHINE_ARCH} == "amd64" 85117950Speter_libncp= libncp 86117950Speter_libsmb= libsmb 87118694Sdeischen.endif 88118694Sdeischen 89118694Sdeischen.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "sparc64" 90118675Sdeischen.if !defined(NOLIBPTHREAD) 91118675Sdeischen_libpthread= libpthread 92117950Speter.endif 93118675Sdeischen.endif 94117950Speter 95117797Smtm.if ${MACHINE_ARCH} != "amd64" && ${MACHINE_ARCH} != "powerpc" 96117797Smtm.if !defined(NOLIBTHR) 97117797Smtm_libthr= libthr 98117797Smtm.endif 99117797Smtm.endif 100117797Smtm 101111204Sobrien.if ${MACHINE_ARCH} != "powerpc" 102114279Sru_libdisk= libdisk 103111204Sobrien.endif 104111204Sobrien 105117978Smarkm.if !defined(NOCRYPT) && !defined(NO_OPENSSL) 10681054Ssobomax_libmp= libmp 10781054Ssobomax.endif 10881054Ssobomax 1091573Srgrimes.include <bsd.subdir.mk> 110