Makefile revision 117978
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 117978 2003-07-24 18:30:25Z markm $ 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 \ 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} \ 32117675Smarkm 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. 44116906Smarcel.if ${MACHINE_ARCH} != "ia64" 45108753Smarcel.if !defined(NOLIBC_R) 4634689Sbde_libc_r= libc_r 4717706Sjulian.endif 48116906Smarcel.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 69113997Sdeischen.endif 7034689Sbde 71115583Smarcel.if ${MACHINE_ARCH} == "ia64" 72116906Smarcel.if !defined(NOLIBPTHREAD) 73116906Smarcel_libpthread= libpthread 74116906Smarcel.endif 75115583Smarcel.endif 76115583Smarcel 7741912Sdfr.if ${MACHINE_ARCH} == "alpha" 7841912Sdfr_libio= libio 7972309Sobrien_compat= compat 8041912Sdfr.endif 8141912Sdfr 82117950Speter.if ${MACHINE_ARCH} == "amd64" 83117950Speter_libncp= libncp 84117950Speter_libsmb= libsmb 85117950Speter.endif 86117950Speter 87117797Smtm.if ${MACHINE_ARCH} != "amd64" && ${MACHINE_ARCH} != "powerpc" 88117797Smtm.if !defined(NOLIBTHR) 89117797Smtm_libthr= libthr 90117797Smtm.endif 91117797Smtm.endif 92117797Smtm 93111204Sobrien.if ${MACHINE_ARCH} != "powerpc" 94114279Sru_libdisk= libdisk 95111204Sobrien.endif 96111204Sobrien 97117978Smarkm.if !defined(NOCRYPT) && !defined(NO_OPENSSL) 9881054Ssobomax_libmp= libmp 9981054Ssobomax.endif 10081054Ssobomax 1011573Srgrimes.include <bsd.subdir.mk> 102