Makefile revision 151727
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 151727 2005-10-27 03:09:20Z davidxu $ 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. 14122568Sharti# libnetgraph must be built before libbsnmp/modules/snmp_netgraph. 1559353Skris# libopie must be built before libpam. 1641257Sjdp# libradius must be built before libpam. 1782355Smarkm# librpcsvc must be built before libpam. 1894690Sdes# libsbuf must be built before libcam. 1941257Sjdp# libtacplus must be built before libpam. 2056081Sbde# libutil must be built before libpam. 2194690Sdes# libypclnt must be built before libpam. 2234689Sbde# 2334689Sbde# Otherwise, the SUBDIR list should be in alphabetical order. 2434689Sbde 25122568ShartiSUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd libncurses \ 26126799Sphk libnetgraph libradius librpcsvc libsbuf libtacplus libutil \ 27135549Sdes ${_libypclnt} libalias libarchive ${_libatm} \ 28135771Strhodes libbegemot ${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \ 29129225Scognet libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \ 30141403Sphk libedit libexpat libfetch libform libftpio libgeom ${_libgpib} \ 31141403Sphk ${_libio} libipsec \ 32148000Srwatson libipx libkiconv libmagic libmemstat libmenu ${_libmilter} ${_libmp} \ 33137554Smarkm ${_libncp} ${_libngatm} libopie libpam libpanel libpcap \ 34145341Smarcel libpmc ${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \ 35132335Smarcel ${_libsmutil} libstand libtelnet ${_libthr} ${_libthread_db} libufs \ 36137682Stjr libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind} 3734689Sbde 38103436Speter.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 39103436Speter_csu=csu/${MACHINE_ARCH}-elf 4072309Sobrien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 4134689Sbde_csu=csu/${MACHINE_ARCH} 4272309Sobrien.else 4372309Sobrien_csu=csu 441573Srgrimes.endif 451573Srgrimes 46139105Sru.if !defined(NO_ATM) 47119508Sphk_libatm= libatm 48121340Sharti_libngatm= libngatm 49119508Sphk.endif 50119508Sphk 5153927Speter.if !defined(NO_BIND) 52135549Sdes_bind= bind 5353922Speter.endif 5453922Speter 55125123Semax.if !defined(NO_BLUETOOTH) 56125123Semax_libbluetooth= libbluetooth 57125123Semax_libsdp= libsdp 58125123Semax.endif 59131768Semax 60131768Semax.if ${MACHINE_ARCH} == "i386" 6152228Sbp_libncp= libncp 6287960Ssheldonh_libsmb= libsmb 6334689Sbde_libvgl= libvgl 6436026Sjb.endif 6534689Sbde 66129237Sbde.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "ia64" && \ 67139104Sru ${MACHINE_ARCH} != "powerpc" && !defined(NO_LIBC_R) 68151727Sdavidxu_libc_r= 69129236Sbde.endif 70129236Sbde 71129236Sbde.if ${MACHINE_ARCH} != "arm" 72129236Sbde_libdisk= libdisk 73129236Sbde.endif 74129236Sbde 7541912Sdfr.if ${MACHINE_ARCH} == "alpha" 7641912Sdfr_libio= libio 7741912Sdfr.endif 7841912Sdfr 79129236Sbde.if !defined(NO_SENDMAIL) 80129236Sbde_libmilter= libmilter 81129236Sbde_libsm= libsm 82129236Sbde_libsmdb= libsmdb 83129236Sbde_libsmutil= libsmutil 84129236Sbde.endif 85129236Sbde 86139113Sru.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) 87129236Sbde_libmp= libmp 88129236Sbde.endif 89129236Sbde 90117950Speter.if ${MACHINE_ARCH} == "amd64" 91117950Speter_libncp= libncp 92117950Speter_libsmb= libsmb 93118694Sdeischen.endif 94118694Sdeischen 95150314Simura.if ${MACHINE_ARCH} == "powerpc" 96150314Simura_libsmb= libsmb 97150314Simura.endif 98150314Simura 99139104Sru.if !defined(NO_LIBPTHREAD) 100118675Sdeischen_libpthread= libpthread 101117950Speter.endif 102117950Speter 103144520Sdavidxu.if !defined(NO_LIBTHR) 104144520Sdavidxu_libthr= libthr 105117797Smtm.endif 106117797Smtm 107132335Smarcel.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "powerpc" 108144520Sdavidxu_libthread_db= libthread_db 109132335Smarcel.endif 110132335Smarcel 111129236Sbde.if !defined(NO_USB) 112129236Sbde_libusbhid= libusbhid 113129225Scognet.endif 114129225Scognet 115137675Sbz.if !defined(NO_NIS) 116126799Sphk_libypclnt= libypclnt 117126799Sphk.endif 118126799Sphk 119141403Sphk.if !defined(NO_GPIB) 120141403Sphk_libgpib= libgpib 121141403Sphk.endif 122141403Sphk 1231573Srgrimes.include <bsd.subdir.mk> 124