Makefile revision 280438
1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD: stable/10/lib/Makefile 280438 2015-03-24 14:36:10Z ken $ 3 4.include <bsd.own.mk> 5 6# The SUBDIR_ORDERED list is a small set of libraries which are used by many 7# of the other libraries. These are built first with a .WAIT between them 8# and the main list to avoid needing a SUBDIR_DEPEND line on every library 9# naming just these few items. 10 11SUBDIR_ORDERED= ${_csu} \ 12 .WAIT \ 13 libc \ 14 libc_nonshared \ 15 libcompiler_rt \ 16 ${_libcplusplus} \ 17 ${_libcxxrt} \ 18 libelf \ 19 msun 20 21# The main list; please keep these sorted alphabetically. 22 23SUBDIR= ${SUBDIR_ORDERED} \ 24 .WAIT \ 25 libalias \ 26 libarchive \ 27 ${_libatm} \ 28 libauditd \ 29 libbegemot \ 30 libblocksruntime \ 31 ${_libbluetooth} \ 32 ${_libbsnmp} \ 33 libbsm \ 34 libbz2 \ 35 libcalendar \ 36 libcam \ 37 ${_libcom_err} \ 38 libcompat \ 39 libcrypt \ 40 libdevinfo \ 41 libdevstat \ 42 libdpv \ 43 libdwarf \ 44 libedit \ 45 ${_libefi} \ 46 libexecinfo \ 47 libexpat \ 48 libfetch \ 49 libfigpar \ 50 libgeom \ 51 ${_libgpib} \ 52 ${_libgssapi} \ 53 ${_librpcsec_gss} \ 54 ${_libiconv_modules} \ 55 libipsec \ 56 ${_libipx} \ 57 libjail \ 58 libkiconv \ 59 libkvm \ 60 ${_libldns} \ 61 liblzma \ 62 ${_libmagic} \ 63 libmandoc \ 64 libmemstat \ 65 libmd \ 66 ${_libmilter} \ 67 ${_libmp} \ 68 libmt \ 69 ${_libnandfs} \ 70 libnetbsd \ 71 ${_libnetgraph} \ 72 ${_libngatm} \ 73 libopie \ 74 libpam \ 75 libpcap \ 76 ${_libpmc} \ 77 ${_libproc} \ 78 libprocstat \ 79 ${_libradius} \ 80 librpcsvc \ 81 librt \ 82 ${_librtld_db} \ 83 libsbuf \ 84 ${_libsdp} \ 85 ${_libsm} \ 86 ${_libsmb} \ 87 ${_libsmdb} \ 88 ${_libsmutil} \ 89 libstand \ 90 libstdbuf \ 91 libstdthreads \ 92 libtacplus \ 93 ${_libtelnet} \ 94 ${_libthr} \ 95 libthread_db \ 96 libucl \ 97 libufs \ 98 libugidfw \ 99 libulog \ 100 ${_libunbound} \ 101 ${_libusbhid} \ 102 ${_libusb} \ 103 libutil \ 104 ${_libvgl} \ 105 ${_libvmmapi} \ 106 libwrap \ 107 liby \ 108 ${_libypclnt} \ 109 libyaml \ 110 libz \ 111 ncurses \ 112 ${_atf} \ 113 ${_clang} \ 114 ${_tests} 115 116# Inter-library dependencies. When the makefile for a library contains LDADD 117# libraries, those libraries should be listed as build order dependencies here. 118 119SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd 120SUBDIR_DEPEND_libatm= libmd 121SUBDIR_DEPEND_libauditdm= libbsm 122SUBDIR_DEPEND_libbsnmp= ${_libnetgraph} 123SUBDIR_DEPEND_libc++= libcxxrt 124SUBDIR_DEPEND_libc= libcompiler_rt 125SUBDIR_DEPEND_libcam= libsbuf 126SUBDIR_DEPEND_libdevstat= libkvm 127SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil 128SUBDIR_DEPEND_libedit= ncurses 129SUBDIR_DEPEND_libg++= msun 130SUBDIR_DEPEND_libgeom= libexpat libsbuf 131SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi 132SUBDIR_DEPEND_libmagic= libz 133SUBDIR_DEPEND_libmemstat= libkvm 134SUBDIR_DEPEND_libopie= libmd 135SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 136SUBDIR_DEPEND_libpjdlog= libutil 137SUBDIR_DEPEND_libprocstat= libkvm libutil 138SUBDIR_DEPEND_libradius= libmd 139SUBDIR_DEPEND_libreadline= ncurses 140SUBDIR_DEPEND_libsmb= libkiconv 141SUBDIR_DEPEND_libstdc++= msun 142SUBDIR_DEPEND_libtacplus= libmd 143SUBDIR_DEPEND_libulog= libmd 144SUBDIR_DEPEND_libunbound= ${_libldns} 145 146.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 147_csu=csu/${MACHINE_ARCH}-elf 148.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 149_csu=csu/${MACHINE_ARCH} 150.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 151_csu=csu/${MACHINE_CPUARCH} 152.else 153_csu=csu 154.endif 155 156# NB: keep these sorted by MK_* knobs 157 158.if ${MK_ATM} != "no" 159_libngatm= libngatm 160.endif 161 162.if ${MK_BLUETOOTH} != "no" 163_libbluetooth= libbluetooth 164_libsdp= libsdp 165.endif 166 167.if ${MK_BSNMP} != "no" 168_libbsnmp= libbsnmp 169.endif 170 171.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 172_clang= clang 173.endif 174 175.if ${MK_FILE} != "no" 176_libmagic= libmagic 177.endif 178 179.if ${MK_GPIB} != "no" 180_libgpib= libgpib 181.endif 182 183.if ${MK_GSSAPI} != "no" 184_libgssapi= libgssapi 185_librpcsec_gss= librpcsec_gss 186.endif 187 188.if ${MK_ICONV} != "no" 189_libiconv_modules= libiconv_modules 190.endif 191 192.if ${MK_KERBEROS_SUPPORT} != "no" 193_libcom_err= libcom_err 194.endif 195 196.if ${MK_IPX} != "no" 197_libipx= libipx 198.endif 199 200.if ${MK_LDNS} != "no" 201_libldns= libldns 202.endif 203 204.if ${MK_LIBCPLUSPLUS} != "no" 205_libcxxrt= libcxxrt 206_libcplusplus= libc++ 207.endif 208 209.if ${MK_LIBTHR} != "no" 210_libthr= libthr 211.endif 212 213.if ${MK_NAND} != "no" 214_libnandfs= libnandfs 215.endif 216 217.if ${MK_NETGRAPH} != "no" 218_libnetgraph= libnetgraph 219.endif 220 221.if ${MK_NIS} != "no" 222_libypclnt= libypclnt 223.endif 224 225.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 226_libsmb= libsmb 227_libvgl= libvgl 228_libproc= libproc 229_librtld_db= librtld_db 230.endif 231 232.if ${MACHINE_CPUARCH} == "amd64" 233.if ${MK_BHYVE} != "no" 234_libvmmapi= libvmmapi 235.endif 236.endif 237 238.if ${MACHINE_CPUARCH} == "ia64" 239_libefi= libefi 240_libsmb= libsmb 241.endif 242 243.if ${MACHINE_CPUARCH} == "mips" 244_libproc= libproc 245_librtld_db= librtld_db 246.endif 247 248.if ${MACHINE_CPUARCH} == "powerpc" 249_libproc= libproc 250_librtld_db= librtld_db 251_libsmb= libsmb 252.endif 253 254.if ${MACHINE_CPUARCH} == "sparc64" 255_libsmb= libsmb 256.endif 257 258.if ${MK_OPENSSL} != "no" 259_libmp= libmp 260.endif 261 262.if ${MK_PMC} != "no" 263_libpmc= libpmc 264.endif 265 266.if ${MK_RADIUS_SUPPORT} != "no" 267_libradius= libradius 268.endif 269 270.if ${MK_SENDMAIL} != "no" 271_libmilter= libmilter 272_libsm= libsm 273_libsmdb= libsmdb 274_libsmutil= libsmutil 275.endif 276 277.if ${MK_TELNET} != "no" 278_libtelnet= libtelnet 279.endif 280 281.if ${MK_TESTS} != "no" 282_atf= atf 283_tests= tests 284.endif 285 286.if ${MK_UNBOUND} != "no" 287_libunbound= libunbound 288.endif 289 290.if ${MK_USB} != "no" 291_libusbhid= libusbhid 292_libusb= libusb 293.endif 294 295.if !defined(LIBRARIES_ONLY) 296afterinstall: 297 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include 298.endif 299 300.if !make(install) 301SUBDIR_PARALLEL= 302.endif 303 304.include <bsd.subdir.mk> 305