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}
159 .if ${MK_OFED} != "no"
160 SUBDIR_DEPEND_libpcap= ofed
163 # NB: keep these sorted by MK_* knobs
165 .if ${MK_ATM} != "no"
169 .if ${MK_BLACKLIST} != "no"
170 _libblacklist= libblacklist
173 .if ${MK_BLUETOOTH} != "no"
174 _libbluetooth= libbluetooth
178 .if ${MK_BSNMP} != "no"
182 .if ${MK_CASPER} != "no"
183 _libcasper= libcasper
186 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) && !defined(COMPAT_SOFTFP)
190 .if ${MK_CUSE} != "no"
194 .if ${MK_TOOLCHAIN} != "no"
198 SUBDIR.${MK_DIALOG}+= libdpv
200 .if ${MK_FILE} != "no"
204 .if ${MK_GPIO} != "no"
208 .if ${MK_GSSAPI} != "no"
209 _libgssapi= libgssapi
210 _librpcsec_gss= librpcsec_gss
213 .if ${MK_ICONV} != "no"
214 _libiconv_modules= libiconv_modules
217 .if ${MK_KERBEROS_SUPPORT} != "no"
218 _libcom_err= libcom_err
221 .if ${MK_LDNS} != "no"
225 # The libraries under libclang_rt can only be built by clang, and only make
226 # sense to build when clang is enabled at all. Furthermore, they can only be
227 # built for certain architectures.
228 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
229 (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
230 (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb") || \
231 (${MACHINE_CPUARCH} == "i386"))
232 _libclang_rt= libclang_rt
235 .if ${MK_LIBCPLUSPLUS} != "no"
237 _libcplusplus= libc++ libc++experimental
238 _libcplusplus+= libc++fs
241 .if ${MK_EFI} != "no"
242 _libefivar= libefivar
245 .if ${MK_LIBTHR} != "no"
249 .if ${MK_NAND} != "no"
250 _libnandfs= libnandfs
253 .if ${MK_NETGRAPH} != "no"
254 _libnetgraph= libnetgraph
257 .if ${MK_NIS} != "no"
258 _libypclnt= libypclnt
261 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
264 _librtld_db= librtld_db
267 .if ${MACHINE_CPUARCH} == "amd64"
268 .if ${MK_BHYVE} != "no"
269 _libvmmapi= libvmmapi
273 .if ${MACHINE_CPUARCH} == "mips"
275 _librtld_db= librtld_db
278 .if ${MACHINE_CPUARCH} == "powerpc"
280 _librtld_db= librtld_db
283 .if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mfilter}
287 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
288 ${MACHINE_CPUARCH} == "riscv"
290 _librtld_db= librtld_db
292 SUBDIR.${MK_OFED}+= ofed
294 SUBDIR.${MK_OPENMP}+= libomp
296 .if ${MK_OPENSSL} != "no"
300 .if ${MK_PMC} != "no"
304 .if ${MK_RADIUS_SUPPORT} != "no"
305 _libradius= libradius
308 .if ${MK_SENDMAIL} != "no"
309 _libmilter= libmilter
312 _libsmutil= libsmutil
315 .if ${MK_TELNET} != "no"
316 _libtelnet= libtelnet
319 .if ${MK_TESTS_SUPPORT} != "no"
322 .if ${MK_TESTS} != "no"
326 .if ${MK_UNBOUND} != "no"
327 _libunbound= libunbound
330 .if ${MK_USB} != "no"
331 _libusbhid= libusbhid
339 .include <bsd.subdir.mk>