1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD$ 3 4.include <src.opts.mk> 5 6# The SUBDIR_BOOTSTRAP 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_BOOTSTRAP= \ 12 csu \ 13 .WAIT \ 14 libc \ 15 libc_nonshared \ 16 libcompiler_rt \ 17 ${_libclang_rt} \ 18 ${_libcplusplus} \ 19 ${_libcxxrt} \ 20 libelf \ 21 msun 22 23# The main list; please keep these sorted alphabetically. 24 25SUBDIR= ${SUBDIR_BOOTSTRAP} \ 26 .WAIT \ 27 geom \ 28 libalias \ 29 libarchive \ 30 libauditd \ 31 libbegemot \ 32 libblocksruntime \ 33 libbsdstat \ 34 libbsm \ 35 libbz2 \ 36 libcalendar \ 37 libcam \ 38 libcapsicum \ 39 libcasper \ 40 libcompat \ 41 libcrypt \ 42 libdevctl \ 43 libdevinfo \ 44 libdevstat \ 45 ${_libdl} \ 46 libdwarf \ 47 libedit \ 48 libelftc \ 49 libevent \ 50 libexecinfo \ 51 libexpat \ 52 libfetch \ 53 libfigpar \ 54 libgeom \ 55 libifconfig \ 56 libipsec \ 57 libjail \ 58 libkiconv \ 59 libkvm \ 60 liblzma \ 61 libmemstat \ 62 libmd \ 63 libmt \ 64 lib80211 \ 65 libnetbsd \ 66 libnv \ 67 libopenbsd \ 68 libopie \ 69 libpam \ 70 libpathconv \ 71 libpcap \ 72 libpjdlog \ 73 libpmc \ 74 libpmcstat \ 75 ${_libproc} \ 76 libprocstat \ 77 libregex \ 78 librpcsvc \ 79 librss \ 80 librt \ 81 ${_librtld_db} \ 82 libsbuf \ 83 libsmb \ 84 libsqlite3 \ 85 libstdbuf \ 86 libstdthreads \ 87 libsysdecode \ 88 libtacplus \ 89 libthread_db \ 90 libucl \ 91 libufs \ 92 libugidfw \ 93 libulog \ 94 libutil \ 95 ${_libvgl} \ 96 libwrap \ 97 libxo \ 98 liby \ 99 libz \ 100 libzstd \ 101 ncurses 102 103# Inter-library dependencies. When the makefile for a library contains LDADD 104# libraries, those libraries should be listed as build order dependencies here. 105 106SUBDIR_DEPEND_geom= libufs 107SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd 108SUBDIR_DEPEND_libauditdm= libbsm 109SUBDIR_DEPEND_libbsnmp= ${_libnetgraph} 110SUBDIR_DEPEND_libc++:= libcxxrt 111SUBDIR_DEPEND_libc= libcompiler_rt 112SUBDIR_DEPEND_libcam= libsbuf 113SUBDIR_DEPEND_libcasper= libnv 114SUBDIR_DEPEND_libdevstat= libkvm 115SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil 116SUBDIR_DEPEND_libedit= ncurses 117SUBDIR_DEPEND_libgeom= libexpat libsbuf 118SUBDIR_DEPEND_librpcsec_gss= libgssapi 119SUBDIR_DEPEND_libmagic= libz 120SUBDIR_DEPEND_libmemstat= libkvm 121SUBDIR_DEPEND_libopie= libmd 122SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 123SUBDIR_DEPEND_libpjdlog= libutil 124SUBDIR_DEPEND_libprocstat= libkvm libutil 125SUBDIR_DEPEND_libradius= libmd 126SUBDIR_DEPEND_libsmb= libkiconv 127SUBDIR_DEPEND_libtacplus= libmd 128SUBDIR_DEPEND_libulog= libmd 129SUBDIR_DEPEND_libunbound= ${_libldns} 130SUBDIR_DEPEND_liblzma= ${_libthr} 131.if ${MK_OFED} != "no" 132SUBDIR_DEPEND_libpcap= ofed 133.endif 134 135# NB: keep these sorted by MK_* knobs 136 137SUBDIR.${MK_ATM}+= libngatm 138SUBDIR.${MK_BLACKLIST}+=libblacklist 139SUBDIR.${MK_BLUETOOTH}+=libbluetooth libsdp 140SUBDIR.${MK_BSNMP}+= libbsnmp 141 142.if !defined(COMPAT_32BIT) && !defined(COMPAT_SOFTFP) 143SUBDIR.${MK_CLANG}+= clang 144.endif 145 146SUBDIR.${MK_CUSE}+= libcuse 147SUBDIR.${MK_CXX}+= libdevdctl 148SUBDIR.${MK_TOOLCHAIN}+=libpe 149SUBDIR.${MK_DIALOG}+= libdpv 150SUBDIR.${MK_FILE}+= libmagic 151SUBDIR.${MK_GPIO}+= libgpio 152SUBDIR.${MK_GSSAPI}+= libgssapi librpcsec_gss 153SUBDIR.${MK_ICONV}+= libiconv_modules 154SUBDIR.${MK_KERBEROS_SUPPORT}+= libcom_err 155SUBDIR.${MK_LDNS}+= libldns 156 157# The libraries under libclang_rt can only be built by clang, and only make 158# sense to build when clang is enabled at all. Furthermore, they can only be 159# built for certain architectures. 160.if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \ 161 (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 162 ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "i386") 163_libclang_rt= libclang_rt 164.endif 165 166.if ${MK_LIBCPLUSPLUS} != "no" 167_libcxxrt= libcxxrt 168_libcplusplus= libc++ 169_libcplusplus+= libc++experimental 170.endif 171 172SUBDIR.${MK_EFI}+= libefivar 173SUBDIR.${MK_LIBTHR}+= libthr 174SUBDIR.${MK_LLVM_LIBUNWIND}+= libgcc_eh 175SUBDIR.${MK_LLVM_LIBUNWIND}+= libgcc_s 176SUBDIR.${MK_NAND}+= libnandfs 177SUBDIR.${MK_NETGRAPH}+= libnetgraph 178SUBDIR.${MK_NIS}+= libypclnt 179 180.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 181_libvgl= libvgl 182.endif 183 184.if ${MACHINE_CPUARCH} == "aarch64" 185SUBDIR.${MK_PMC}+= libopencsd 186.endif 187 188.if ${MACHINE_CPUARCH} == "amd64" 189SUBDIR.${MK_PMC}+= libipt 190SUBDIR.${MK_BHYVE}+= libvmmapi 191.endif 192 193.if ${MACHINE_CPUARCH} != "sparc64" 194_libproc= libproc 195_librtld_db= librtld_db 196.endif 197 198.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mfilter} 199_libdl= libdl 200.endif 201 202SUBDIR.${MK_OPENSSL}+= libmp 203SUBDIR.${MK_RADIUS_SUPPORT}+= libradius 204SUBDIR.${MK_SENDMAIL}+= libmilter libsm libsmdb libsmutil 205SUBDIR.${MK_TELNET}+= libtelnet 206SUBDIR.${MK_TESTS_SUPPORT}+= atf 207SUBDIR.${MK_TESTS}+= tests 208SUBDIR.${MK_UNBOUND}+= libunbound 209SUBDIR.${MK_USB}+= libusbhid libusb 210SUBDIR.${MK_OFED}+= ofed 211SUBDIR.${MK_ZFS}+= libbe 212 213.if !make(install) 214SUBDIR_PARALLEL= 215.endif 216 217.include <bsd.subdir.mk> 218