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