Makefile revision 264303
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: stable/10/lib/Makefile 264303 2014-04-09 18:16:58Z dim $ 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. 15255597Sdes# libldns must be built before libunbound. 1659897Sjoe# msun must be built before libg++ and libstdc++. 1779471Smarkm# libmd must be built before libatm, libopie, libradius, and libtacplus. 18166131Srafan# ncurses must be built before libdialog, libedit and libreadline. 19122568Sharti# libnetgraph must be built before libbsnmp/modules/snmp_netgraph. 2059353Skris# libopie must be built before libpam. 2141257Sjdp# libradius must be built before libpam. 2282355Smarkm# librpcsvc must be built before libpam. 2394690Sdes# libsbuf must be built before libcam. 2441257Sjdp# libtacplus must be built before libpam. 2556081Sbde# libutil must be built before libpam. 2694690Sdes# libypclnt must be built before libpam. 27181344Sdfr# libgssapi must be built before librpcsec_gss 2834689Sbde# 2934689Sbde# Otherwise, the SUBDIR list should be in alphabetical order. 30204738Simp# 31204738Simp# Except it appears bind needs to be compiled last 3234689Sbde 33205113SimpSUBDIR_ORDERED= ${_csu} \ 34205113Simp libc \ 35258398Speter libc_nonshared \ 36205113Simp libbsm \ 37205113Simp libauditd \ 38215127Sed libcompiler_rt \ 39205113Simp libcrypt \ 40205113Simp libelf \ 41219019Sgabor ${_libiconv_modules} \ 42205113Simp libkvm \ 43255601Sdes ${_libldns} \ 44205113Simp msun \ 45205113Simp libmd \ 46205113Simp ncurses \ 47205113Simp ${_libnetgraph} \ 48205113Simp libradius \ 49205113Simp librpcsvc \ 50205113Simp libsbuf \ 51205113Simp libtacplus \ 52205113Simp libutil \ 53227987Sdim ${_libypclnt} \ 54227987Sdim ${_libcxxrt} \ 55227987Sdim ${_libcplusplus} 56205113Simp 57233337Sstas.if ${MK_KERBEROS_SUPPORT} != "no" 58233337SstasSUBDIR_ORDERED+= libcom_err 59233337Sstas.endif 60233337Sstas 61205113SimpSUBDIR= ${SUBDIR_ORDERED} \ 62205113Simp libalias \ 63205113Simp libarchive \ 64205113Simp ${_libatm} \ 65205113Simp libbegemot \ 66215127Sed libblocksruntime \ 67205113Simp ${_libbluetooth} \ 68205113Simp ${_libbsnmp} \ 69205113Simp libbz2 \ 70205113Simp libcalendar \ 71205113Simp libcam \ 72205113Simp libcompat \ 73205113Simp libdevinfo \ 74205113Simp libdevstat \ 75205113Simp libdwarf \ 76205113Simp libedit \ 77205113Simp ${_libefi} \ 78255180Semaste libexecinfo \ 79205113Simp libexpat \ 80205113Simp libfetch \ 81205113Simp libgeom \ 82205113Simp ${_libgpib} \ 83205113Simp ${_libgssapi} \ 84205113Simp ${_librpcsec_gss} \ 85205113Simp libipsec \ 86205113Simp ${_libipx} \ 87205113Simp libjail \ 88205113Simp libkiconv \ 89207842Smm liblzma \ 90205113Simp libmagic \ 91241774Suqs libmandoc \ 92205113Simp libmemstat \ 93205113Simp ${_libmilter} \ 94205113Simp ${_libmp} \ 95235537Sgber ${_libnandfs} \ 96244557Sbrooks libnetbsd \ 97205113Simp ${_libngatm} \ 98205113Simp libopie \ 99205113Simp libpam \ 100205113Simp libpcap \ 101205113Simp ${_libpmc} \ 102210682Srpaulo ${_libproc} \ 103221807Sstas libprocstat \ 104205113Simp librt \ 105210690Srpaulo ${_librtld_db} \ 106205113Simp ${_libsdp} \ 107205113Simp ${_libsm} \ 108252356Sdavide ${_libsmb} \ 109205113Simp ${_libsmdb} \ 110205113Simp ${_libsmutil} \ 111205113Simp libstand \ 112234772Sjlh libstdbuf \ 113228904Sed libstdthreads \ 114205113Simp ${_libtelnet} \ 115205113Simp ${_libthr} \ 116205113Simp libthread_db \ 117263019Sbapt libucl \ 118205113Simp libufs \ 119205113Simp libugidfw \ 120205113Simp libulog \ 121255597Sdes ${_libunbound} \ 122205113Simp ${_libusbhid} \ 123205113Simp ${_libusb} \ 124205113Simp ${_libvgl} \ 125245652Sneel ${_libvmmapi} \ 126205113Simp libwrap \ 127205113Simp liby \ 128247779Sbapt libyaml \ 129205113Simp libz \ 130241823Smarcel ${_atf} \ 131260013Sjmmv ${_clang} \ 132260013Sjmmv ${_tests} 13334689Sbde 134211759Simp.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 135211759Simp_csu=csu/${MACHINE_ARCH}-elf 136211934Snwhitehorn.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 137211934Snwhitehorn_csu=csu/${MACHINE_ARCH} 138211725Simp.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 139211725Simp_csu=csu/${MACHINE_CPUARCH} 14072309Sobrien.else 14172309Sobrien_csu=csu 1421573Srgrimes.endif 1431573Srgrimes 144183242Ssam# NB: keep these sorted by MK_* knobs 145183242Ssam 146156813Sru.if ${MK_ATM} != "no" 147121340Sharti_libngatm= libngatm 148119508Sphk.endif 149119508Sphk 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 180246827Sdes.if ${MK_LDNS} != "no" 181246827Sdes_libldns= libldns 182246827Sdes.endif 183246827Sdes 184246328Sdes.if ${MK_LIBCPLUSPLUS} != "no" 185246328Sdes_libcxxrt= libcxxrt 186246328Sdes_libcplusplus= libc++ 187246328Sdes.endif 188246328Sdes 189183242Ssam.if ${MK_LIBTHR} != "no" 190183242Ssam_libthr= libthr 191183242Ssam.endif 192183242Ssam 193235537Sgber.if ${MK_NAND} != "no" 194235537Sgber_libnandfs= libnandfs 195235537Sgber.endif 196235537Sgber 197183242Ssam.if ${MK_NETGRAPH} != "no" 198183242Ssam_libnetgraph= libnetgraph 199183242Ssam.endif 200183242Ssam 201183242Ssam.if ${MK_NIS} != "no" 202183242Ssam_libypclnt= libypclnt 203183242Ssam.endif 204183242Ssam 205211725Simp.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 206252356Sdavide_libsmb= libsmb 20734689Sbde_libvgl= libvgl 208210682Srpaulo_libproc= libproc 209210690Srpaulo_librtld_db= librtld_db 21036026Sjb.endif 21134689Sbde 212245652Sneel.if ${MACHINE_CPUARCH} == "amd64" 213245652Sneel_libvmmapi= libvmmapi 214245652Sneel.endif 215245652Sneel 216211725Simp.if ${MACHINE_CPUARCH} == "ia64" 217203181Smarcel_libefi= libefi 218252356Sdavide_libsmb= libsmb 219161524Smarcel.endif 220161524Smarcel 221233413Sgonzo.if ${MACHINE_CPUARCH} == "mips" 222233413Sgonzo_libproc= libproc 223233413Sgonzo_librtld_db= librtld_db 224233413Sgonzo.endif 225233413Sgonzo 226242723Sjhibbits.if ${MACHINE_CPUARCH} == "powerpc" 227242723Sjhibbits_libproc= libproc 228242723Sjhibbits_librtld_db= librtld_db 229252356Sdavide_libsmb= libsmb 230242723Sjhibbits.endif 231242723Sjhibbits 232252356Sdavide.if ${MACHINE_CPUARCH} == "sparc64" 233252356Sdavide_libsmb= libsmb 234252356Sdavide.endif 235252356Sdavide 236183242Ssam.if ${MK_OPENSSL} != "no" 237183242Ssam_libmp= libmp 238117797Smtm.endif 239117797Smtm 240183242Ssam.if ${MK_PMC} != "no" 241183242Ssam_libpmc= libpmc 242129225Scognet.endif 243129225Scognet 244183242Ssam.if ${MK_SENDMAIL} != "no" 245183242Ssam_libmilter= libmilter 246183242Ssam_libsm= libsm 247183242Ssam_libsmdb= libsmdb 248183242Ssam_libsmutil= libsmutil 249126799Sphk.endif 250126799Sphk 251183242Ssam.if ${MK_TELNET} != "no" 252183242Ssam_libtelnet= libtelnet 253141403Sphk.endif 254141403Sphk 255260013Sjmmv.if ${MK_TESTS} != "no" 256260013Sjmmv_atf= atf 257260013Sjmmv_tests= tests 258260013Sjmmv.endif 259260013Sjmmv 260255597Sdes.if ${MK_UNBOUND} != "no" 261255597Sdes_libunbound= libunbound 262255597Sdes.endif 263255597Sdes 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 274264303Sdim.if !make(install) 275264303SdimSUBDIR_PARALLEL= 276264303Sdim.endif 277264303Sdim 2781573Srgrimes.include <bsd.subdir.mk> 279