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 libssp \ 22 libssp_nonshared \ 23 msun 24 25# The main list; please keep these sorted alphabetically. 26# The only exception is sqlite3: we place it at the start of the list since it 27# takes a long time to build and starting it first improves parallelism. 28 29SUBDIR= ${SUBDIR_BOOTSTRAP} \ 30 .WAIT \ 31 libsqlite3 \ 32 geom \ 33 lib9p \ 34 libalias \ 35 libarchive \ 36 libauditd \ 37 libbegemot \ 38 libblocksruntime \ 39 libbsdstat \ 40 libbsm \ 41 libbz2 \ 42 libcalendar \ 43 libcam \ 44 libcapsicum \ 45 libcasper \ 46 libcompat \ 47 libcrypt \ 48 libdevctl \ 49 libdevinfo \ 50 libdevstat \ 51 libdl \ 52 libdwarf \ 53 libedit \ 54 libelftc \ 55 libevent1 \ 56 libexecinfo \ 57 libexpat \ 58 libfetch \ 59 libfigpar \ 60 libgcc_eh \ 61 libgcc_s \ 62 libgeom \ 63 libifconfig \ 64 libipsec \ 65 libjail \ 66 libkiconv \ 67 libkvm \ 68 liblua \ 69 liblzma \ 70 libmemstat \ 71 libmd \ 72 libmixer \ 73 libmt \ 74 lib80211 \ 75 libnetbsd \ 76 libnetmap \ 77 libnv \ 78 libopenbsd \ 79 libopie \ 80 libpam \ 81 libpathconv \ 82 libpcap \ 83 libpjdlog \ 84 libproc \ 85 libprocstat \ 86 libregex \ 87 librpcsvc \ 88 librss \ 89 librt \ 90 librtld_db \ 91 libsbuf \ 92 libsmb \ 93 libstdbuf \ 94 libstdthreads \ 95 libsysdecode \ 96 libtacplus \ 97 libthr \ 98 libthread_db \ 99 libucl \ 100 libufs \ 101 libugidfw \ 102 libulog \ 103 libutil \ 104 ${_libvgl} \ 105 libwrap \ 106 libxo \ 107 liby \ 108 libz \ 109 libzstd \ 110 ncurses 111 112# Inter-library dependencies. When the makefile for a library contains LDADD 113# libraries, those libraries should be listed as build order dependencies here. 114 115SUBDIR_DEPEND_geom= libufs 116SUBDIR_DEPEND_googletest= libregex 117SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd libzstd 118SUBDIR_DEPEND_libauditdm= libbsm 119SUBDIR_DEPEND_libbsnmp= ${_libnetgraph} 120SUBDIR_DEPEND_libc++:= libcxxrt 121# libssp_nonshared doesn't need to be linked into libc on every arch, but it is 122# small enough to build that this bit of serialization is likely insignificant. 123SUBDIR_DEPEND_libc= libcompiler_rt libssp_nonshared 124SUBDIR_DEPEND_libcam= libsbuf 125SUBDIR_DEPEND_libcasper= libnv 126SUBDIR_DEPEND_libdevstat= libkvm 127SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil 128SUBDIR_DEPEND_libedit= ncurses 129SUBDIR_DEPEND_libgeom= libexpat libsbuf 130SUBDIR_DEPEND_librpcsec_gss= libgssapi 131SUBDIR_DEPEND_libmagic= libz 132SUBDIR_DEPEND_libmemstat= libkvm 133SUBDIR_DEPEND_libopie= libmd 134SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 135SUBDIR_DEPEND_libpjdlog= libutil 136SUBDIR_DEPEND_libprocstat= libkvm libutil 137SUBDIR_DEPEND_libradius= libmd 138SUBDIR_DEPEND_libsmb= libkiconv 139SUBDIR_DEPEND_libtacplus= libmd 140SUBDIR_DEPEND_libulog= libmd 141SUBDIR_DEPEND_libunbound= ${_libldns} 142SUBDIR_DEPEND_liblzma= libthr 143.if ${MK_OFED} != "no" 144SUBDIR_DEPEND_libpcap= ofed 145.endif 146 147.if !defined(COMPAT_32BIT) 148SUBDIR+= flua 149SUBDIR_DEPEND_flua= libjail 150.endif 151 152# NB: keep these sorted by MK_* knobs 153 154SUBDIR.${MK_ATM}+= libngatm 155SUBDIR.${MK_BEARSSL}+= libbearssl libsecureboot 156SUBDIR.${MK_BLACKLIST}+=libblacklist 157SUBDIR.${MK_BLUETOOTH}+=libbluetooth libsdp 158SUBDIR.${MK_BSNMP}+= libbsnmp 159 160.if !defined(COMPAT_32BIT) && !defined(COMPAT_SOFTFP) 161.if ${MK_CLANG} != "no" || ${MK_LLD} != "no" || \ 162 ${MK_LLDB} != "no" || ${MK_LLVM_BINUTILS} != "no" 163SUBDIR+= clang 164.endif 165.endif 166 167SUBDIR.${MK_CUSE}+= libcuse 168SUBDIR.${MK_CXX}+= libdevdctl 169SUBDIR.${MK_TOOLCHAIN}+=libpe 170SUBDIR.${MK_DIALOG}+= libdpv 171SUBDIR.${MK_FILE}+= libmagic 172SUBDIR.${MK_GPIO}+= libgpio 173SUBDIR.${MK_GSSAPI}+= libgssapi librpcsec_gss 174SUBDIR.${MK_ICONV}+= libiconv_modules 175SUBDIR.${MK_KERBEROS_SUPPORT}+= libcom_err 176SUBDIR.${MK_LDNS}+= libldns 177SUBDIR.${MK_STATS}+= libstats 178 179# The libraries under libclang_rt can only be built by clang, and only make 180# sense to build when clang is enabled at all. Furthermore, they can only be 181# built for certain architectures. 182.if ${COMPILER_TYPE} == "clang" && \ 183 (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 184 ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "i386" || \ 185 ${MACHINE_CPUARCH} == "powerpc") 186_libclang_rt= libclang_rt 187.elif ${MK_ASAN} != "no" || ${MK_UBSAN} != "no" 188.error "Requested build with sanitizers but cannot build runtime libraries!" 189.endif 190 191.if ${MK_CXX} != "no" 192_libcxxrt= libcxxrt 193_libcplusplus= libc++ 194_libcplusplus+= libc++experimental 195.endif 196 197SUBDIR.${MK_EFI}+= libefivar 198SUBDIR.${MK_GOOGLETEST}+= googletest 199SUBDIR.${MK_NETGRAPH}+= libnetgraph 200SUBDIR.${MK_NIS}+= libypclnt 201 202.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 203_libvgl= libvgl 204.endif 205 206.if ${MACHINE_CPUARCH} == "aarch64" 207SUBDIR.${MK_PMC}+= libopencsd 208.endif 209 210.if ${MACHINE_CPUARCH} == "amd64" 211SUBDIR.${MK_PMC}+= libipt 212SUBDIR.${MK_BHYVE}+= libvmmapi 213.endif 214 215.if ${MACHINE_ARCH} != "powerpc" 216SUBDIR.${MK_OPENMP}+= libomp 217.endif 218SUBDIR.${MK_OPENSSL}+= libmp 219SUBDIR.${MK_PF}+= libpfctl 220SUBDIR.${MK_PMC}+= libpmc libpmcstat 221SUBDIR.${MK_RADIUS_SUPPORT}+= libradius 222SUBDIR.${MK_SENDMAIL}+= libmilter libsm libsmdb libsmutil 223SUBDIR.${MK_TELNET}+= libtelnet 224SUBDIR.${MK_TESTS_SUPPORT}+= atf 225SUBDIR.${MK_TESTS_SUPPORT}.${MK_CXX}+= liblutok 226SUBDIR.${MK_TESTS}+= tests 227SUBDIR.${MK_UNBOUND}+= libunbound 228SUBDIR.${MK_USB}+= libusbhid libusb 229SUBDIR.${MK_OFED}+= ofed 230SUBDIR.${MK_VERIEXEC}+= libveriexec 231SUBDIR.${MK_ZFS}+= libbe 232 233.if !make(install) 234SUBDIR_PARALLEL= 235.endif 236 237.include <bsd.subdir.mk> 238