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