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} \
63 ${_libiconv_modules} \
133 # Inter-library dependencies. When the makefile for a library contains LDADD
134 # libraries, those libraries should be listed as build order dependencies here.
136 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
137 SUBDIR_DEPEND_libatm= libmd
138 SUBDIR_DEPEND_libauditdm= libbsm
139 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
140 SUBDIR_DEPEND_libc++:= libcxxrt
141 SUBDIR_DEPEND_libc= libcompiler_rt
142 SUBDIR_DEPEND_libcam= libsbuf
143 SUBDIR_DEPEND_libcasper= libnv
144 SUBDIR_DEPEND_libdevstat= libkvm
145 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
146 SUBDIR_DEPEND_libedit= ncurses
147 SUBDIR_DEPEND_libgeom= libexpat libsbuf
148 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
149 SUBDIR_DEPEND_libmagic= libz
150 SUBDIR_DEPEND_libmemstat= libkvm
151 SUBDIR_DEPEND_libopie= libmd
152 SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
153 SUBDIR_DEPEND_libpjdlog= libutil
154 SUBDIR_DEPEND_libprocstat= libkvm libutil
155 SUBDIR_DEPEND_libradius= libmd
156 SUBDIR_DEPEND_libsmb= libkiconv
157 SUBDIR_DEPEND_libtacplus= libmd
158 SUBDIR_DEPEND_libulog= libmd
159 SUBDIR_DEPEND_libunbound= ${_libldns}
160 SUBDIR_DEPEND_liblzma= ${_libthr}
162 # NB: keep these sorted by MK_* knobs
164 .if ${MK_ATM} != "no"
168 .if ${MK_BLACKLIST} != "no"
169 _libblacklist= libblacklist
172 .if ${MK_BLUETOOTH} != "no"
173 _libbluetooth= libbluetooth
177 .if ${MK_BSNMP} != "no"
181 .if ${MK_CASPER} != "no"
182 _libcasper= libcasper
185 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) && !defined(COMPAT_SOFTFP)
189 .if ${MK_CUSE} != "no"
193 .if ${MK_CXX} != "no"
194 _libdevdctl= libdevdctl
197 .if ${MK_TOOLCHAIN} != "no"
202 SUBDIR.${MK_DIALOG}+= libdpv
204 .if ${MK_FILE} != "no"
208 .if ${MK_GPIO} != "no"
212 .if ${MK_GSSAPI} != "no"
213 _libgssapi= libgssapi
214 _librpcsec_gss= librpcsec_gss
217 .if ${MK_ICONV} != "no"
218 _libiconv_modules= libiconv_modules
221 .if ${MK_KERBEROS_SUPPORT} != "no"
222 _libcom_err= libcom_err
225 .if ${MK_LDNS} != "no"
229 # The libraries under libclang_rt can only be built by clang, and only make
230 # sense to build when clang is enabled at all. Furthermore, they can only be
231 # built for certain architectures.
232 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
233 (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
234 (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb") || \
235 (${MACHINE_CPUARCH} == "i386"))
236 _libclang_rt= libclang_rt
239 .if ${MK_LIBCPLUSPLUS} != "no"
241 _libcplusplus= libc++
244 .if ${MACHINE_ARCH} == "amd64"
245 _libefivar= libefivar
248 .if ${MK_LIBTHR} != "no"
252 .if ${MK_NAND} != "no"
253 _libnandfs= libnandfs
256 .if ${MK_NETGRAPH} != "no"
257 _libnetgraph= libnetgraph
260 .if ${MK_NIS} != "no"
261 _libypclnt= libypclnt
264 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
267 _librtld_db= librtld_db
270 .if ${MACHINE_CPUARCH} == "amd64"
271 .if ${MK_BHYVE} != "no"
272 _libvmmapi= libvmmapi
276 .if ${MACHINE_CPUARCH} == "mips"
278 _librtld_db= librtld_db
281 .if ${MACHINE_CPUARCH} == "powerpc"
283 _librtld_db= librtld_db
286 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
287 ${MACHINE_CPUARCH} == "riscv"
289 _librtld_db= librtld_db
292 .if ${MK_OPENSSL} != "no"
296 .if ${MK_PMC} != "no"
300 .if ${MK_RADIUS_SUPPORT} != "no"
301 _libradius= libradius
304 .if ${MK_SENDMAIL} != "no"
305 _libmilter= libmilter
308 _libsmutil= libsmutil
311 .if ${MK_TELNET} != "no"
312 _libtelnet= libtelnet
315 .if ${MK_TESTS_SUPPORT} != "no"
318 .if ${MK_TESTS} != "no"
322 .if ${MK_UNBOUND} != "no"
323 _libunbound= libunbound
326 .if ${MK_USB} != "no"
327 _libusbhid= libusbhid
335 .include <bsd.subdir.mk>