Makefile revision 255180
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 255180 2013-09-03 15:22:04Z emaste $ 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 libexecinfo \ 76205113Simp libexpat \ 77205113Simp libfetch \ 78205113Simp libgeom \ 79205113Simp ${_libgpib} \ 80205113Simp ${_libgssapi} \ 81205113Simp ${_librpcsec_gss} \ 82254273Speter ${_libiconv_compat} \ 83205113Simp libipsec \ 84205113Simp ${_libipx} \ 85205113Simp libjail \ 86205113Simp libkiconv \ 87246827Sdes ${_libldns} \ 88207842Smm liblzma \ 89205113Simp libmagic \ 90241774Suqs libmandoc \ 91205113Simp libmemstat \ 92205113Simp ${_libmilter} \ 93205113Simp ${_libmp} \ 94235537Sgber ${_libnandfs} \ 95244557Sbrooks libnetbsd \ 96205113Simp ${_libngatm} \ 97205113Simp libopie \ 98205113Simp libpam \ 99205113Simp libpcap \ 100205113Simp ${_libpmc} \ 101210682Srpaulo ${_libproc} \ 102221807Sstas libprocstat \ 103205113Simp librt \ 104210690Srpaulo ${_librtld_db} \ 105205113Simp ${_libsdp} \ 106205113Simp ${_libsm} \ 107252356Sdavide ${_libsmb} \ 108205113Simp ${_libsmdb} \ 109205113Simp ${_libsmutil} \ 110205113Simp libstand \ 111234772Sjlh libstdbuf \ 112228904Sed libstdthreads \ 113205113Simp ${_libtelnet} \ 114205113Simp ${_libthr} \ 115205113Simp libthread_db \ 116205113Simp libufs \ 117205113Simp libugidfw \ 118205113Simp libulog \ 119205113Simp ${_libusbhid} \ 120205113Simp ${_libusb} \ 121205113Simp ${_libvgl} \ 122245652Sneel ${_libvmmapi} \ 123205113Simp libwrap \ 124205113Simp liby \ 125247779Sbapt libyaml \ 126205113Simp libz \ 127241823Smarcel ${_atf} \ 128208964Srdivacky ${_bind} \ 129208964Srdivacky ${_clang} 13034689Sbde 131211759Simp.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 132211759Simp_csu=csu/${MACHINE_ARCH}-elf 133211934Snwhitehorn.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 134211934Snwhitehorn_csu=csu/${MACHINE_ARCH} 135211725Simp.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 136211725Simp_csu=csu/${MACHINE_CPUARCH} 13772309Sobrien.else 13872309Sobrien_csu=csu 1391573Srgrimes.endif 1401573Srgrimes 141183242Ssam# NB: keep these sorted by MK_* knobs 142183242Ssam 143241823Smarcel.if ${MK_ATF} != "no" 144241823Smarcel_atf= atf 145241823Smarcel.endif 146241823Smarcel 147156813Sru.if ${MK_ATM} != "no" 148121340Sharti_libngatm= libngatm 149119508Sphk.endif 150119508Sphk 151156813Sru.if ${MK_BIND} != "no" 152135549Sdes_bind= bind 15353922Speter.endif 15453922Speter 155156813Sru.if ${MK_BLUETOOTH} != "no" 156125123Semax_libbluetooth= libbluetooth 157125123Semax_libsdp= libsdp 158125123Semax.endif 159131768Semax 160183242Ssam.if ${MK_BSNMP} != "no" 161183242Ssam_libbsnmp= libbsnmp 162183242Ssam.endif 163183242Ssam 164209400Sed.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 165208964Srdivacky_clang= clang 166208964Srdivacky.endif 167208964Srdivacky 168183242Ssam.if ${MK_GPIB} != "no" 169183242Ssam_libgpib= libgpib 170183242Ssam.endif 171183242Ssam 172174548Sru.if ${MK_GSSAPI} != "no" 173174519Sdougb_libgssapi= libgssapi 174181344Sdfr_librpcsec_gss= librpcsec_gss 175174519Sdougb.endif 176174519Sdougb 177219019Sgabor.if ${MK_ICONV} != "no" 178219019Sgabor_libiconv_modules= libiconv_modules 179219019Sgabor.endif 180219019Sgabor 181156905Sru.if ${MK_IPX} != "no" 182156905Sru_libipx= libipx 183156905Sru.endif 184156905Sru 185246827Sdes.if ${MK_LDNS} != "no" 186246827Sdes_libldns= libldns 187246827Sdes.endif 188246827Sdes 189246328Sdes.if ${MK_LIBCPLUSPLUS} != "no" 190246328Sdes_libcxxrt= libcxxrt 191246328Sdes_libcplusplus= libc++ 192246328Sdes.endif 193246328Sdes 194254273Speter.if ${MK_LIBICONV_COMPAT} != "no" 195254273Speter_libiconv_compat= libiconv_compat 196254273Speter.endif 197254273Speter 198183242Ssam.if ${MK_LIBTHR} != "no" 199183242Ssam_libthr= libthr 200183242Ssam.endif 201183242Ssam 202235537Sgber.if ${MK_NAND} != "no" 203235537Sgber_libnandfs= libnandfs 204235537Sgber.endif 205235537Sgber 206183242Ssam.if ${MK_NETGRAPH} != "no" 207183242Ssam_libnetgraph= libnetgraph 208183242Ssam.endif 209183242Ssam 210183242Ssam.if ${MK_NIS} != "no" 211183242Ssam_libypclnt= libypclnt 212183242Ssam.endif 213183242Ssam 214211725Simp.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 215252356Sdavide_libsmb= libsmb 21634689Sbde_libvgl= libvgl 217210682Srpaulo_libproc= libproc 218210690Srpaulo_librtld_db= librtld_db 21936026Sjb.endif 22034689Sbde 221245652Sneel.if ${MACHINE_CPUARCH} == "amd64" 222245652Sneel_libvmmapi= libvmmapi 223245652Sneel.endif 224245652Sneel 225211725Simp.if ${MACHINE_CPUARCH} == "ia64" 226203181Smarcel_libefi= libefi 227252356Sdavide_libsmb= libsmb 228161524Smarcel.endif 229161524Smarcel 230233413Sgonzo.if ${MACHINE_CPUARCH} == "mips" 231233413Sgonzo_libproc= libproc 232233413Sgonzo_librtld_db= librtld_db 233233413Sgonzo.endif 234233413Sgonzo 235242723Sjhibbits.if ${MACHINE_CPUARCH} == "powerpc" 236242723Sjhibbits_libproc= libproc 237242723Sjhibbits_librtld_db= librtld_db 238252356Sdavide_libsmb= libsmb 239242723Sjhibbits.endif 240242723Sjhibbits 241252356Sdavide.if ${MACHINE_CPUARCH} == "sparc64" 242252356Sdavide_libsmb= libsmb 243252356Sdavide.endif 244252356Sdavide 245183242Ssam.if ${MK_OPENSSL} != "no" 246183242Ssam_libmp= libmp 247117797Smtm.endif 248117797Smtm 249183242Ssam.if ${MK_PMC} != "no" 250183242Ssam_libpmc= libpmc 251129225Scognet.endif 252129225Scognet 253183242Ssam.if ${MK_SENDMAIL} != "no" 254183242Ssam_libmilter= libmilter 255183242Ssam_libsm= libsm 256183242Ssam_libsmdb= libsmdb 257183242Ssam_libsmutil= libsmutil 258126799Sphk.endif 259126799Sphk 260183242Ssam.if ${MK_TELNET} != "no" 261183242Ssam_libtelnet= libtelnet 262141403Sphk.endif 263141403Sphk 264183242Ssam.if ${MK_USB} != "no" 265183242Ssam_libusbhid= libusbhid 266189589Sthompsa_libusb= libusb 267183242Ssam.endif 268183242Ssam 269250112Sbrooks.if !defined(LIBRARIES_ONLY) 270249484Skientzleafterinstall: 271250112Sbrooks ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include 272250112Sbrooks.endif 273249484Skientzle 2741573Srgrimes.include <bsd.subdir.mk> 275