Makefile revision 294364
1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD: stable/10/lib/Makefile 294364 2016-01-19 23:36:49Z ian $ 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 libnv \ 74 libopie \ 75 libpam \ 76 libpcap \ 77 ${_libpmc} \ 78 ${_libproc} \ 79 libprocstat \ 80 ${_libradius} \ 81 librpcsvc \ 82 librt \ 83 ${_librtld_db} \ 84 libsbuf \ 85 ${_libsdp} \ 86 ${_libsm} \ 87 libsmb \ 88 ${_libsmdb} \ 89 ${_libsmutil} \ 90 libstand \ 91 libstdbuf \ 92 libstdthreads \ 93 libtacplus \ 94 ${_libtelnet} \ 95 ${_libthr} \ 96 libthread_db \ 97 libucl \ 98 libufs \ 99 libugidfw \ 100 libulog \ 101 ${_libunbound} \ 102 ${_libusbhid} \ 103 ${_libusb} \ 104 libutil \ 105 ${_libvgl} \ 106 ${_libvmmapi} \ 107 libwrap \ 108 liby \ 109 ${_libypclnt} \ 110 libyaml \ 111 libz \ 112 ncurses \ 113 ${_atf} \ 114 ${_clang} \ 115 ${_tests} 116 117# Inter-library dependencies. When the makefile for a library contains LDADD 118# libraries, those libraries should be listed as build order dependencies here. 119 120SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd 121SUBDIR_DEPEND_libatm= libmd 122SUBDIR_DEPEND_libauditdm= libbsm 123SUBDIR_DEPEND_libbsnmp= ${_libnetgraph} 124SUBDIR_DEPEND_libc++= libcxxrt 125SUBDIR_DEPEND_libc= libcompiler_rt 126SUBDIR_DEPEND_libcam= libsbuf 127SUBDIR_DEPEND_libdevstat= libkvm 128SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil 129SUBDIR_DEPEND_libedit= ncurses 130SUBDIR_DEPEND_libg++= msun 131SUBDIR_DEPEND_libgeom= libexpat libsbuf 132SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi 133SUBDIR_DEPEND_libmagic= libz 134SUBDIR_DEPEND_libmemstat= libkvm 135SUBDIR_DEPEND_libopie= libmd 136SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 137SUBDIR_DEPEND_libpjdlog= libutil 138SUBDIR_DEPEND_libprocstat= libkvm libutil 139SUBDIR_DEPEND_libradius= libmd 140SUBDIR_DEPEND_libsmb= libkiconv 141SUBDIR_DEPEND_libstdc++= msun 142SUBDIR_DEPEND_libtacplus= libmd 143SUBDIR_DEPEND_libulog= libmd 144SUBDIR_DEPEND_libunbound= ${_libldns} 145SUBDIR_DEPEND_liblzma= ${_libthr} 146 147# NB: keep these sorted by MK_* knobs 148 149.if ${MK_ATM} != "no" 150_libngatm= libngatm 151.endif 152 153.if ${MK_BLUETOOTH} != "no" 154_libbluetooth= libbluetooth 155_libsdp= libsdp 156.endif 157 158.if ${MK_BSNMP} != "no" 159_libbsnmp= libbsnmp 160.endif 161 162.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 163_clang= clang 164.endif 165 166.if ${MK_FILE} != "no" 167_libmagic= libmagic 168.endif 169 170.if ${MK_GPIB} != "no" 171_libgpib= libgpib 172.endif 173 174.if ${MK_GSSAPI} != "no" 175_libgssapi= libgssapi 176_librpcsec_gss= librpcsec_gss 177.endif 178 179.if ${MK_ICONV} != "no" 180_libiconv_modules= libiconv_modules 181.endif 182 183.if ${MK_KERBEROS_SUPPORT} != "no" 184_libcom_err= libcom_err 185.endif 186 187.if ${MK_IPX} != "no" 188_libipx= libipx 189.endif 190 191.if ${MK_LDNS} != "no" 192_libldns= libldns 193.endif 194 195.if ${MK_LIBCPLUSPLUS} != "no" 196_libcxxrt= libcxxrt 197_libcplusplus= libc++ 198.endif 199 200.if ${MK_LIBTHR} != "no" 201_libthr= libthr 202.endif 203 204.if ${MK_NAND} != "no" 205_libnandfs= libnandfs 206.endif 207 208.if ${MK_NETGRAPH} != "no" 209_libnetgraph= libnetgraph 210.endif 211 212.if ${MK_NIS} != "no" 213_libypclnt= libypclnt 214.endif 215 216.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 217_libvgl= libvgl 218_libproc= libproc 219_librtld_db= librtld_db 220.endif 221 222.if ${MACHINE_CPUARCH} == "amd64" 223.if ${MK_BHYVE} != "no" 224_libvmmapi= libvmmapi 225.endif 226.endif 227 228.if ${MACHINE_CPUARCH} == "ia64" 229_libefi= libefi 230.endif 231 232.if ${MACHINE_CPUARCH} == "mips" 233_libproc= libproc 234_librtld_db= librtld_db 235.endif 236 237.if ${MACHINE_CPUARCH} == "powerpc" 238_libproc= libproc 239_librtld_db= librtld_db 240.endif 241 242.if ${MK_OPENSSL} != "no" 243_libmp= libmp 244.endif 245 246.if ${MK_PMC} != "no" 247_libpmc= libpmc 248.endif 249 250.if ${MK_RADIUS_SUPPORT} != "no" 251_libradius= libradius 252.endif 253 254.if ${MK_SENDMAIL} != "no" 255_libmilter= libmilter 256_libsm= libsm 257_libsmdb= libsmdb 258_libsmutil= libsmutil 259.endif 260 261.if ${MK_TELNET} != "no" 262_libtelnet= libtelnet 263.endif 264 265.if ${MK_TESTS} != "no" 266_atf= atf 267_tests= tests 268.endif 269 270.if ${MK_UNBOUND} != "no" 271_libunbound= libunbound 272.endif 273 274.if ${MK_USB} != "no" 275_libusbhid= libusbhid 276_libusb= libusb 277.endif 278 279.if !defined(LIBRARIES_ONLY) 280afterinstall: 281 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include 282.endif 283 284.if !make(install) 285SUBDIR_PARALLEL= 286.endif 287 288.include <bsd.subdir.mk> 289