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} \ 75205113Simp libexpat \ 76205113Simp libfetch \ 77205113Simp libgeom \ 78205113Simp ${_libgpib} \ 79205113Simp ${_libgssapi} \ 80205113Simp ${_librpcsec_gss} \ 81205113Simp libipsec \ 82205113Simp ${_libipx} \ 83205113Simp libjail \ 84205113Simp libkiconv \ 85207842Smm liblzma \ 86205113Simp libmagic \ 87241774Suqs libmandoc \ 88205113Simp libmemstat \ 89205113Simp ${_libmilter} \ 90205113Simp ${_libmp} \ 91235537Sgber ${_libnandfs} \ 92244557Sbrooks libnetbsd \ 93205113Simp ${_libngatm} \ 94205113Simp libopie \ 95205113Simp libpam \ 96205113Simp libpcap \ 97205113Simp ${_libpmc} \ 98210682Srpaulo ${_libproc} \ 99221807Sstas libprocstat \ 100205113Simp librt \ 101210690Srpaulo ${_librtld_db} \ 102205113Simp ${_libsdp} \ 103205113Simp ${_libsm} \ 104205113Simp ${_libsmdb} \ 105205113Simp ${_libsmutil} \ 106205113Simp libstand \ 107234772Sjlh libstdbuf \ 108228904Sed libstdthreads \ 109205113Simp ${_libtelnet} \ 110205113Simp ${_libthr} \ 111205113Simp libthread_db \ 112205113Simp libufs \ 113205113Simp libugidfw \ 114205113Simp libulog \ 115205113Simp ${_libusbhid} \ 116205113Simp ${_libusb} \ 117205113Simp ${_libvgl} \ 118245652Sneel ${_libvmmapi} \ 119205113Simp libwrap \ 120205113Simp liby \ 121205113Simp libz \ 122241823Smarcel ${_atf} \ 123208964Srdivacky ${_bind} \ 124208964Srdivacky ${_clang} 12534689Sbde 126211759Simp.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 127211759Simp_csu=csu/${MACHINE_ARCH}-elf 128211934Snwhitehorn.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 129211934Snwhitehorn_csu=csu/${MACHINE_ARCH} 130211725Simp.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 131211725Simp_csu=csu/${MACHINE_CPUARCH} 13272309Sobrien.else 13372309Sobrien_csu=csu 1341573Srgrimes.endif 1351573Srgrimes 136183242Ssam# NB: keep these sorted by MK_* knobs 137183242Ssam 138241823Smarcel.if ${MK_ATF} != "no" 139241823Smarcel_atf= atf 140241823Smarcel.endif 141241823Smarcel 142156813Sru.if ${MK_ATM} != "no" 143121340Sharti_libngatm= libngatm 144119508Sphk.endif 145119508Sphk 146156813Sru.if ${MK_BIND} != "no" 147135549Sdes_bind= bind 14853922Speter.endif 14953922Speter 150156813Sru.if ${MK_BLUETOOTH} != "no" 151125123Semax_libbluetooth= libbluetooth 152125123Semax_libsdp= libsdp 153125123Semax.endif 154131768Semax 155183242Ssam.if ${MK_BSNMP} != "no" 156183242Ssam_libbsnmp= libbsnmp 157183242Ssam.endif 158183242Ssam 159209400Sed.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 160208964Srdivacky_clang= clang 161208964Srdivacky.endif 162208964Srdivacky 163183242Ssam.if ${MK_GPIB} != "no" 164183242Ssam_libgpib= libgpib 165183242Ssam.endif 166183242Ssam 167174548Sru.if ${MK_GSSAPI} != "no" 168174519Sdougb_libgssapi= libgssapi 169181344Sdfr_librpcsec_gss= librpcsec_gss 170174519Sdougb.endif 171174519Sdougb 172219019Sgabor.if ${MK_ICONV} != "no" 173219019Sgabor_libiconv_modules= libiconv_modules 174219019Sgabor.endif 175219019Sgabor 176156905Sru.if ${MK_IPX} != "no" 177156905Sru_libipx= libipx 178156905Sru.endif 179156905Sru 180246328Sdes.if ${MK_LIBCPLUSPLUS} != "no" 181246328Sdes_libcxxrt= libcxxrt 182246328Sdes_libcplusplus= libc++ 183246328Sdes.endif 184246328Sdes 185183242Ssam.if ${MK_LIBTHR} != "no" 186183242Ssam_libthr= libthr 187183242Ssam.endif 188183242Ssam 189235537Sgber.if ${MK_NAND} != "no" 190235537Sgber_libnandfs= libnandfs 191235537Sgber.endif 192235537Sgber 193183242Ssam.if ${MK_NETGRAPH} != "no" 194183242Ssam_libnetgraph= libnetgraph 195183242Ssam.endif 196183242Ssam 197183242Ssam.if ${MK_NIS} != "no" 198183242Ssam_libypclnt= libypclnt 199183242Ssam.endif 200183242Ssam 201211725Simp.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 20234689Sbde_libvgl= libvgl 203210682Srpaulo_libproc= libproc 204210690Srpaulo_librtld_db= librtld_db 20536026Sjb.endif 20634689Sbde 207245652Sneel.if ${MACHINE_CPUARCH} == "amd64" 208245652Sneel_libvmmapi= libvmmapi 209245652Sneel.endif 210245652Sneel 211211725Simp.if ${MACHINE_CPUARCH} == "ia64" 212203181Smarcel_libefi= libefi 213161524Smarcel.endif 214161524Smarcel 215233413Sgonzo.if ${MACHINE_CPUARCH} == "mips" 216233413Sgonzo_libproc= libproc 217233413Sgonzo_librtld_db= librtld_db 218233413Sgonzo.endif 219233413Sgonzo 220242723Sjhibbits.if ${MACHINE_CPUARCH} == "powerpc" 221242723Sjhibbits_libproc= libproc 222242723Sjhibbits_librtld_db= librtld_db 223242723Sjhibbits.endif 224242723Sjhibbits 225183242Ssam.if ${MK_OPENSSL} != "no" 226183242Ssam_libmp= libmp 227117797Smtm.endif 228117797Smtm 229183242Ssam.if ${MK_PMC} != "no" 230183242Ssam_libpmc= libpmc 231129225Scognet.endif 232129225Scognet 233183242Ssam.if ${MK_SENDMAIL} != "no" 234183242Ssam_libmilter= libmilter 235183242Ssam_libsm= libsm 236183242Ssam_libsmdb= libsmdb 237183242Ssam_libsmutil= libsmutil 238126799Sphk.endif 239126799Sphk 240183242Ssam.if ${MK_TELNET} != "no" 241183242Ssam_libtelnet= libtelnet 242141403Sphk.endif 243141403Sphk 244183242Ssam.if ${MK_USB} != "no" 245183242Ssam_libusbhid= libusbhid 246189589Sthompsa_libusb= libusb 247183242Ssam.endif 248183242Ssam 2491573Srgrimes.include <bsd.subdir.mk> 250