Makefile revision 119553
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 119553 2003-08-29 10:35:01Z phk $ 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 \ 26119508Sphk ${_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} \ 32119553Sphk 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 43116906Smarcel# libc_r is obsolete on ia64. 44119002Sobrien.if ${MACHINE_ARCH} != "ia64" && ${MACHINE_ARCH} != "powerpc" 45108753Smarcel.if !defined(NOLIBC_R) 4634689Sbde_libc_r= libc_r 4717706Sjulian.endif 48116906Smarcel.endif 4917706Sjulian 50119508Sphk.if !defined(NOATM) 51119508Sphk_libatm= libatm 52119508Sphk.endif 53119508Sphk 5453927Speter.if !defined(NO_BIND) 5553922Speter_libbind= libbind 5653922Speter.endif 5753922Speter 5886252Sgshapiro.if !defined(NO_SENDMAIL) 5990796Sgshapiro_libmilter= libmilter 6090796Sgshapiro_libsm= libsm 6186252Sgshapiro_libsmdb= libsmdb 6286252Sgshapiro_libsmutil= libsmutil 6386252Sgshapiro.endif 6486252Sgshapiro 65119553Sphk.if !defined(NO_USB) 66119553Sphk_libusbhid= libusbhid 67119553Sphk.endif 68119553Sphk 6934689Sbde.if ${MACHINE_ARCH} == "i386" 7038477Sgpalmer_compat= compat 7152228Sbp_libncp= libncp 7287960Ssheldonh_libsmb= libsmb 7334689Sbde_libvgl= libvgl 7436026Sjb.endif 7534689Sbde 7641912Sdfr.if ${MACHINE_ARCH} == "alpha" 7741912Sdfr_libio= libio 7872309Sobrien_compat= compat 7941912Sdfr.endif 8041912Sdfr 81117950Speter.if ${MACHINE_ARCH} == "amd64" 82117950Speter_libncp= libncp 83117950Speter_libsmb= libsmb 84118694Sdeischen.endif 85118694Sdeischen 86118694Sdeischen.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "sparc64" 87118675Sdeischen.if !defined(NOLIBPTHREAD) 88118675Sdeischen_libpthread= libpthread 89117950Speter.endif 90118675Sdeischen.endif 91117950Speter 92117797Smtm.if ${MACHINE_ARCH} != "amd64" && ${MACHINE_ARCH} != "powerpc" 93117797Smtm.if !defined(NOLIBTHR) 94117797Smtm_libthr= libthr 95117797Smtm.endif 96117797Smtm.endif 97117797Smtm 98111204Sobrien.if ${MACHINE_ARCH} != "powerpc" 99114279Sru_libdisk= libdisk 100111204Sobrien.endif 101111204Sobrien 102117978Smarkm.if !defined(NOCRYPT) && !defined(NO_OPENSSL) 10381054Ssobomax_libmp= libmp 10481054Ssobomax.endif 10581054Ssobomax 1061573Srgrimes.include <bsd.subdir.mk> 107