Makefile revision 255597
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 255597 2013-09-15 14:51:23Z 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. 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 \ 35205113Simp libbsm \ 36205113Simp libauditd \ 37215127Sed libcompiler_rt \ 38205113Simp libcrypt \ 39205113Simp libelf \ 40219019Sgabor ${_libiconv_modules} \ 41205113Simp libkvm \ 42205113Simp msun \ 43205113Simp libmd \ 44205113Simp ncurses \ 45205113Simp ${_libnetgraph} \ 46205113Simp libradius \ 47205113Simp librpcsvc \ 48205113Simp libsbuf \ 49205113Simp libtacplus \ 50205113Simp libutil \ 51227987Sdim ${_libypclnt} \ 52227987Sdim ${_libcxxrt} \ 53227987Sdim ${_libcplusplus} 54205113Simp 55233337Sstas.if ${MK_KERBEROS_SUPPORT} != "no" 56233337SstasSUBDIR_ORDERED+= libcom_err 57233337Sstas.endif 58233337Sstas 59205113SimpSUBDIR= ${SUBDIR_ORDERED} \ 60205113Simp libalias \ 61205113Simp libarchive \ 62205113Simp ${_libatm} \ 63205113Simp libbegemot \ 64215127Sed libblocksruntime \ 65205113Simp ${_libbluetooth} \ 66205113Simp ${_libbsnmp} \ 67205113Simp libbz2 \ 68205113Simp libcalendar \ 69205113Simp libcam \ 70205113Simp libcompat \ 71205113Simp libdevinfo \ 72205113Simp libdevstat \ 73205113Simp libdwarf \ 74205113Simp libedit \ 75205113Simp ${_libefi} \ 76255180Semaste libexecinfo \ 77205113Simp libexpat \ 78205113Simp libfetch \ 79205113Simp libgeom \ 80205113Simp ${_libgpib} \ 81205113Simp ${_libgssapi} \ 82205113Simp ${_librpcsec_gss} \ 83254273Speter ${_libiconv_compat} \ 84205113Simp libipsec \ 85205113Simp ${_libipx} \ 86205113Simp libjail \ 87205113Simp libkiconv \ 88246827Sdes ${_libldns} \ 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 \ 117205113Simp libufs \ 118205113Simp libugidfw \ 119205113Simp libulog \ 120255597Sdes ${_libunbound} \ 121205113Simp ${_libusbhid} \ 122205113Simp ${_libusb} \ 123205113Simp ${_libvgl} \ 124245652Sneel ${_libvmmapi} \ 125205113Simp libwrap \ 126205113Simp liby \ 127247779Sbapt libyaml \ 128205113Simp libz \ 129241823Smarcel ${_atf} \ 130208964Srdivacky ${_bind} \ 131208964Srdivacky ${_clang} 13234689Sbde 133211759Simp.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 134211759Simp_csu=csu/${MACHINE_ARCH}-elf 135211934Snwhitehorn.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 136211934Snwhitehorn_csu=csu/${MACHINE_ARCH} 137211725Simp.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 138211725Simp_csu=csu/${MACHINE_CPUARCH} 13972309Sobrien.else 14072309Sobrien_csu=csu 1411573Srgrimes.endif 1421573Srgrimes 143183242Ssam# NB: keep these sorted by MK_* knobs 144183242Ssam 145241823Smarcel.if ${MK_ATF} != "no" 146241823Smarcel_atf= atf 147241823Smarcel.endif 148241823Smarcel 149156813Sru.if ${MK_ATM} != "no" 150121340Sharti_libngatm= libngatm 151119508Sphk.endif 152119508Sphk 153156813Sru.if ${MK_BIND} != "no" 154135549Sdes_bind= bind 15553922Speter.endif 15653922Speter 157156813Sru.if ${MK_BLUETOOTH} != "no" 158125123Semax_libbluetooth= libbluetooth 159125123Semax_libsdp= libsdp 160125123Semax.endif 161131768Semax 162183242Ssam.if ${MK_BSNMP} != "no" 163183242Ssam_libbsnmp= libbsnmp 164183242Ssam.endif 165183242Ssam 166209400Sed.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 167208964Srdivacky_clang= clang 168208964Srdivacky.endif 169208964Srdivacky 170183242Ssam.if ${MK_GPIB} != "no" 171183242Ssam_libgpib= libgpib 172183242Ssam.endif 173183242Ssam 174174548Sru.if ${MK_GSSAPI} != "no" 175174519Sdougb_libgssapi= libgssapi 176181344Sdfr_librpcsec_gss= librpcsec_gss 177174519Sdougb.endif 178174519Sdougb 179219019Sgabor.if ${MK_ICONV} != "no" 180219019Sgabor_libiconv_modules= libiconv_modules 181219019Sgabor.endif 182219019Sgabor 183156905Sru.if ${MK_IPX} != "no" 184156905Sru_libipx= libipx 185156905Sru.endif 186156905Sru 187246827Sdes.if ${MK_LDNS} != "no" 188246827Sdes_libldns= libldns 189246827Sdes.endif 190246827Sdes 191246328Sdes.if ${MK_LIBCPLUSPLUS} != "no" 192246328Sdes_libcxxrt= libcxxrt 193246328Sdes_libcplusplus= libc++ 194246328Sdes.endif 195246328Sdes 196254273Speter.if ${MK_LIBICONV_COMPAT} != "no" 197254273Speter_libiconv_compat= libiconv_compat 198254273Speter.endif 199254273Speter 200183242Ssam.if ${MK_LIBTHR} != "no" 201183242Ssam_libthr= libthr 202183242Ssam.endif 203183242Ssam 204235537Sgber.if ${MK_NAND} != "no" 205235537Sgber_libnandfs= libnandfs 206235537Sgber.endif 207235537Sgber 208183242Ssam.if ${MK_NETGRAPH} != "no" 209183242Ssam_libnetgraph= libnetgraph 210183242Ssam.endif 211183242Ssam 212183242Ssam.if ${MK_NIS} != "no" 213183242Ssam_libypclnt= libypclnt 214183242Ssam.endif 215183242Ssam 216211725Simp.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 217252356Sdavide_libsmb= libsmb 21834689Sbde_libvgl= libvgl 219210682Srpaulo_libproc= libproc 220210690Srpaulo_librtld_db= librtld_db 22136026Sjb.endif 22234689Sbde 223245652Sneel.if ${MACHINE_CPUARCH} == "amd64" 224245652Sneel_libvmmapi= libvmmapi 225245652Sneel.endif 226245652Sneel 227211725Simp.if ${MACHINE_CPUARCH} == "ia64" 228203181Smarcel_libefi= libefi 229252356Sdavide_libsmb= libsmb 230161524Smarcel.endif 231161524Smarcel 232233413Sgonzo.if ${MACHINE_CPUARCH} == "mips" 233233413Sgonzo_libproc= libproc 234233413Sgonzo_librtld_db= librtld_db 235233413Sgonzo.endif 236233413Sgonzo 237242723Sjhibbits.if ${MACHINE_CPUARCH} == "powerpc" 238242723Sjhibbits_libproc= libproc 239242723Sjhibbits_librtld_db= librtld_db 240252356Sdavide_libsmb= libsmb 241242723Sjhibbits.endif 242242723Sjhibbits 243252356Sdavide.if ${MACHINE_CPUARCH} == "sparc64" 244252356Sdavide_libsmb= libsmb 245252356Sdavide.endif 246252356Sdavide 247183242Ssam.if ${MK_OPENSSL} != "no" 248183242Ssam_libmp= libmp 249117797Smtm.endif 250117797Smtm 251183242Ssam.if ${MK_PMC} != "no" 252183242Ssam_libpmc= libpmc 253129225Scognet.endif 254129225Scognet 255183242Ssam.if ${MK_SENDMAIL} != "no" 256183242Ssam_libmilter= libmilter 257183242Ssam_libsm= libsm 258183242Ssam_libsmdb= libsmdb 259183242Ssam_libsmutil= libsmutil 260126799Sphk.endif 261126799Sphk 262183242Ssam.if ${MK_TELNET} != "no" 263183242Ssam_libtelnet= libtelnet 264141403Sphk.endif 265141403Sphk 266255597Sdes.if ${MK_UNBOUND} != "no" 267255597Sdes_libunbound= libunbound 268255597Sdes.endif 269255597Sdes 270183242Ssam.if ${MK_USB} != "no" 271183242Ssam_libusbhid= libusbhid 272189589Sthompsa_libusb= libusb 273183242Ssam.endif 274183242Ssam 275250112Sbrooks.if !defined(LIBRARIES_ONLY) 276249484Skientzleafterinstall: 277250112Sbrooks ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include 278250112Sbrooks.endif 279249484Skientzle 2801573Srgrimes.include <bsd.subdir.mk> 281