1 # @(#)Makefile 8.1 (Berkeley) 6/4/93
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.
23 # The main list; please keep these sorted alphabetically.
25 SUBDIR= ${SUBDIR_BOOTSTRAP} \
64 ${_libiconv_modules} \
131 # Inter-library dependencies. When the makefile for a library contains LDADD
132 # libraries, those libraries should be listed as build order dependencies here.
134 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
135 SUBDIR_DEPEND_libatm= libmd
136 SUBDIR_DEPEND_libauditdm= libbsm
137 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
138 SUBDIR_DEPEND_libc++:= libcxxrt
139 SUBDIR_DEPEND_libc= libcompiler_rt
140 SUBDIR_DEPEND_libcam= libsbuf
141 SUBDIR_DEPEND_libcasper= libnv
142 SUBDIR_DEPEND_libdevstat= libkvm
143 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
144 SUBDIR_DEPEND_libedit= ncurses
145 SUBDIR_DEPEND_libgeom= libexpat libsbuf
146 SUBDIR_DEPEND_librpcsec_gss= libgssapi
147 SUBDIR_DEPEND_libmagic= libz
148 SUBDIR_DEPEND_libmemstat= libkvm
149 SUBDIR_DEPEND_libopie= libmd
150 SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
151 SUBDIR_DEPEND_libpjdlog= libutil
152 SUBDIR_DEPEND_libprocstat= libkvm libutil
153 SUBDIR_DEPEND_libradius= libmd
154 SUBDIR_DEPEND_libsmb= libkiconv
155 SUBDIR_DEPEND_libtacplus= libmd
156 SUBDIR_DEPEND_libulog= libmd
157 SUBDIR_DEPEND_libunbound= ${_libldns}
158 SUBDIR_DEPEND_liblzma= ${_libthr}
160 # NB: keep these sorted by MK_* knobs
162 .if ${MK_ATM} != "no"
166 .if ${MK_BLACKLIST} != "no"
167 _libblacklist= libblacklist
170 .if ${MK_BLUETOOTH} != "no"
171 _libbluetooth= libbluetooth
175 .if ${MK_BSNMP} != "no"
179 .if ${MK_CASPER} != "no"
180 _libcasper= libcasper
183 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) && !defined(COMPAT_SOFTFP)
187 .if ${MK_CUSE} != "no"
191 .if ${MK_TOOLCHAIN} != "no"
195 SUBDIR.${MK_DIALOG}+= libdpv
197 .if ${MK_FILE} != "no"
201 .if ${MK_GPIO} != "no"
205 .if ${MK_GSSAPI} != "no"
206 _libgssapi= libgssapi
207 _librpcsec_gss= librpcsec_gss
210 .if ${MK_ICONV} != "no"
211 _libiconv_modules= libiconv_modules
214 .if ${MK_KERBEROS_SUPPORT} != "no"
215 _libcom_err= libcom_err
218 .if ${MK_LDNS} != "no"
222 # The libraries under libclang_rt can only be built by clang, and only make
223 # sense to build when clang is enabled at all. Furthermore, they can only be
224 # built for certain architectures.
225 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
226 (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
227 (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb") || \
228 (${MACHINE_CPUARCH} == "i386"))
229 _libclang_rt= libclang_rt
232 .if ${MK_LIBCPLUSPLUS} != "no"
234 _libcplusplus= libc++
237 .if ${MK_EFI} != "no"
238 _libefivar= libefivar
241 .if ${MK_LIBTHR} != "no"
245 .if ${MK_NAND} != "no"
246 _libnandfs= libnandfs
249 .if ${MK_NETGRAPH} != "no"
250 _libnetgraph= libnetgraph
253 .if ${MK_NIS} != "no"
254 _libypclnt= libypclnt
257 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
260 _librtld_db= librtld_db
263 .if ${MACHINE_CPUARCH} == "amd64"
264 .if ${MK_BHYVE} != "no"
265 _libvmmapi= libvmmapi
269 .if ${MACHINE_CPUARCH} == "mips"
271 _librtld_db= librtld_db
274 .if ${MACHINE_CPUARCH} == "powerpc"
276 _librtld_db= librtld_db
279 .if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mfilter}
283 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
284 ${MACHINE_CPUARCH} == "riscv"
286 _librtld_db= librtld_db
289 .if ${MK_OPENSSL} != "no"
293 .if ${MK_PMC} != "no"
297 .if ${MK_RADIUS_SUPPORT} != "no"
298 _libradius= libradius
301 .if ${MK_SENDMAIL} != "no"
302 _libmilter= libmilter
305 _libsmutil= libsmutil
308 .if ${MK_TELNET} != "no"
309 _libtelnet= libtelnet
312 .if ${MK_TESTS_SUPPORT} != "no"
315 .if ${MK_TESTS} != "no"
319 .if ${MK_UNBOUND} != "no"
320 _libunbound= libunbound
323 .if ${MK_USB} != "no"
324 _libusbhid= libusbhid
332 .include <bsd.subdir.mk>