Makefile revision 246328
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 246328 2013-02-04 19:05:53Z des $ 31573Srgrimes 4156813Sru.include <bsd.own.mk> 5156813Sru 634689Sbde# To satisfy shared library or ELF linkage when only the libraries being 734689Sbde# built are visible: 834689Sbde# 938752Sbde# csu must be built before all shared libaries for ELF. 10173017Sru# libc must be built before all other shared libraries. 11228989Srwatson# libbsm must be built before libauditd. 12204738Simp# libcom_err must be built before libpam. 13204738Simp# libcrypt must be built before libpam. 1481133Stmm# libkvm must be built before libdevstat. 1559897Sjoe# msun must be built before libg++ and libstdc++. 1679471Smarkm# libmd must be built before libatm, libopie, libradius, and libtacplus. 17166131Srafan# ncurses must be built before libdialog, libedit and libreadline. 18122568Sharti# libnetgraph must be built before libbsnmp/modules/snmp_netgraph. 1959353Skris# libopie must be built before libpam. 2041257Sjdp# libradius must be built before libpam. 2182355Smarkm# librpcsvc must be built before libpam. 2294690Sdes# libsbuf must be built before libcam. 2341257Sjdp# libtacplus must be built before libpam. 2456081Sbde# libutil must be built before libpam. 2594690Sdes# libypclnt must be built before libpam. 26181344Sdfr# libgssapi must be built before librpcsec_gss 2734689Sbde# 2834689Sbde# Otherwise, the SUBDIR list should be in alphabetical order. 29204738Simp# 30204738Simp# Except it appears bind needs to be compiled last 3134689Sbde 32205113SimpSUBDIR_ORDERED= ${_csu} \ 33205113Simp libc \ 34205113Simp libbsm \ 35205113Simp libauditd \ 36215127Sed libcompiler_rt \ 37205113Simp libcrypt \ 38205113Simp libelf \ 39219019Sgabor ${_libiconv_modules} \ 40205113Simp libkvm \ 41205113Simp msun \ 42205113Simp libmd \ 43205113Simp ncurses \ 44205113Simp ${_libnetgraph} \ 45205113Simp libradius \ 46205113Simp librpcsvc \ 47205113Simp libsbuf \ 48205113Simp libtacplus \ 49205113Simp libutil \ 50227987Sdim ${_libypclnt} \ 51227987Sdim ${_libcxxrt} \ 52227987Sdim ${_libcplusplus} 53205113Simp 54233337Sstas.if ${MK_KERBEROS_SUPPORT} != "no" 55233337SstasSUBDIR_ORDERED+= libcom_err 56233337Sstas.endif 57233337Sstas 58205113SimpSUBDIR= ${SUBDIR_ORDERED} \ 59205113Simp libalias \ 60205113Simp libarchive \ 61205113Simp ${_libatm} \ 62205113Simp libbegemot \ 63215127Sed libblocksruntime \ 64205113Simp ${_libbluetooth} \ 65205113Simp ${_libbsnmp} \ 66205113Simp libbz2 \ 67205113Simp libcalendar \ 68205113Simp libcam \ 69205113Simp libcompat \ 70205113Simp libdevinfo \ 71205113Simp libdevstat \ 72205113Simp libdwarf \ 73205113Simp libedit \ 74205113Simp ${_libefi} \ 75255180Semaste libexpat \ 76205113Simp libfetch \ 77205113Simp libgeom \ 78205113Simp ${_libgpib} \ 79205113Simp ${_libgssapi} \ 80205113Simp ${_librpcsec_gss} \ 81205113Simp libipsec \ 82254273Speter ${_libipx} \ 83205113Simp libjail \ 84205113Simp libkiconv \ 85205113Simp liblzma \ 86205113Simp libmagic \ 87246827Sdes libmandoc \ 88207842Smm libmemstat \ 89205113Simp ${_libmilter} \ 90241774Suqs ${_libmp} \ 91205113Simp ${_libnandfs} \ 92205113Simp libnetbsd \ 93205113Simp ${_libngatm} \ 94235537Sgber libopie \ 95244557Sbrooks libpam \ 96205113Simp libpcap \ 97205113Simp ${_libpmc} \ 98205113Simp ${_libproc} \ 99205113Simp libprocstat \ 100205113Simp librt \ 101210682Srpaulo ${_librtld_db} \ 102221807Sstas ${_libsdp} \ 103205113Simp ${_libsm} \ 104210690Srpaulo ${_libsmdb} \ 105205113Simp ${_libsmutil} \ 106205113Simp libstand \ 107252356Sdavide libstdbuf \ 108205113Simp libstdthreads \ 109205113Simp ${_libtelnet} \ 110205113Simp ${_libthr} \ 111234772Sjlh libthread_db \ 112228904Sed libufs \ 113205113Simp libugidfw \ 114205113Simp libulog \ 115205113Simp ${_libusbhid} \ 116205113Simp ${_libusb} \ 117205113Simp ${_libvgl} \ 118205113Simp ${_libvmmapi} \ 119205113Simp libwrap \ 120205113Simp liby \ 121205113Simp libz \ 122245652Sneel ${_atf} \ 123205113Simp ${_bind} \ 124205113Simp ${_clang} 125247779Sbapt 126205113Simp.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 127241823Smarcel_csu=csu/${MACHINE_ARCH}-elf 128208964Srdivacky.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 129208964Srdivacky_csu=csu/${MACHINE_ARCH} 13034689Sbde.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 131211759Simp_csu=csu/${MACHINE_CPUARCH} 132211759Simp.else 133211934Snwhitehorn_csu=csu 134211934Snwhitehorn.endif 135211725Simp 136211725Simp# NB: keep these sorted by MK_* knobs 13772309Sobrien 13872309Sobrien.if ${MK_ATF} != "no" 1391573Srgrimes_atf= atf 1401573Srgrimes.endif 141183242Ssam 142183242Ssam.if ${MK_ATM} != "no" 143241823Smarcel_libngatm= libngatm 144241823Smarcel.endif 145241823Smarcel 146241823Smarcel.if ${MK_BIND} != "no" 147156813Sru_bind= bind 148121340Sharti.endif 149119508Sphk 150119508Sphk.if ${MK_BLUETOOTH} != "no" 151156813Sru_libbluetooth= libbluetooth 152135549Sdes_libsdp= libsdp 15353922Speter.endif 15453922Speter 155156813Sru.if ${MK_BSNMP} != "no" 156125123Semax_libbsnmp= libbsnmp 157125123Semax.endif 158125123Semax 159131768Semax.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 160183242Ssam_clang= clang 161183242Ssam.endif 162183242Ssam 163183242Ssam.if ${MK_GPIB} != "no" 164209400Sed_libgpib= libgpib 165208964Srdivacky.endif 166208964Srdivacky 167208964Srdivacky.if ${MK_GSSAPI} != "no" 168183242Ssam_libgssapi= libgssapi 169183242Ssam_librpcsec_gss= librpcsec_gss 170183242Ssam.endif 171183242Ssam 172174548Sru.if ${MK_ICONV} != "no" 173174519Sdougb_libiconv_modules= libiconv_modules 174181344Sdfr.endif 175174519Sdougb 176174519Sdougb.if ${MK_IPX} != "no" 177219019Sgabor_libipx= libipx 178219019Sgabor.endif 179219019Sgabor 180219019Sgabor.if ${MK_LIBCPLUSPLUS} != "no" 181156905Sru_libcxxrt= libcxxrt 182156905Sru_libcplusplus= libc++ 183156905Sru.endif 184156905Sru 185246827Sdes.if ${MK_LIBTHR} != "no" 186246827Sdes_libthr= libthr 187246827Sdes.endif 188246827Sdes 189246328Sdes.if ${MK_NAND} != "no" 190246328Sdes_libnandfs= libnandfs 191246328Sdes.endif 192246328Sdes 193246328Sdes.if ${MK_NETGRAPH} != "no" 194254273Speter_libnetgraph= libnetgraph 195254273Speter.endif 196254273Speter 197254273Speter.if ${MK_NIS} != "no" 198183242Ssam_libypclnt= libypclnt 199183242Ssam.endif 200183242Ssam 201183242Ssam.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 202235537Sgber_libvgl= libvgl 203235537Sgber_libproc= libproc 204235537Sgber_librtld_db= librtld_db 205235537Sgber.endif 206183242Ssam 207183242Ssam.if ${MACHINE_CPUARCH} == "amd64" 208183242Ssam_libvmmapi= libvmmapi 209183242Ssam.endif 210183242Ssam 211183242Ssam.if ${MACHINE_CPUARCH} == "ia64" 212183242Ssam_libefi= libefi 213183242Ssam.endif 214211725Simp 215252356Sdavide.if ${MACHINE_CPUARCH} == "mips" 21634689Sbde_libproc= libproc 217210682Srpaulo_librtld_db= librtld_db 218210690Srpaulo.endif 21936026Sjb 22034689Sbde.if ${MACHINE_CPUARCH} == "powerpc" 221245652Sneel_libproc= libproc 222245652Sneel_librtld_db= librtld_db 223245652Sneel.endif 224245652Sneel 225211725Simp.if ${MK_OPENSSL} != "no" 226203181Smarcel_libmp= libmp 227252356Sdavide.endif 228161524Smarcel 229161524Smarcel.if ${MK_PMC} != "no" 230233413Sgonzo_libpmc= libpmc 231233413Sgonzo.endif 232233413Sgonzo 233233413Sgonzo.if ${MK_SENDMAIL} != "no" 234233413Sgonzo_libmilter= libmilter 235242723Sjhibbits_libsm= libsm 236242723Sjhibbits_libsmdb= libsmdb 237242723Sjhibbits_libsmutil= libsmutil 238252356Sdavide.endif 239242723Sjhibbits 240242723Sjhibbits.if ${MK_TELNET} != "no" 241252356Sdavide_libtelnet= libtelnet 242252356Sdavide.endif 243252356Sdavide 244252356Sdavide.if ${MK_USB} != "no" 245183242Ssam_libusbhid= libusbhid 246183242Ssam_libusb= libusb 247117797Smtm.endif 248117797Smtm 249183242Ssam.include <bsd.subdir.mk> 250183242Ssam