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} \
62 ${_libiconv_modules} \
132 # Inter-library dependencies. When the makefile for a library contains LDADD
133 # libraries, those libraries should be listed as build order dependencies here.
135 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
136 SUBDIR_DEPEND_libatm= libmd
137 SUBDIR_DEPEND_libauditdm= libbsm
138 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
139 SUBDIR_DEPEND_libc++:= libcxxrt
140 SUBDIR_DEPEND_libc= libcompiler_rt
141 SUBDIR_DEPEND_libcam= libsbuf
142 SUBDIR_DEPEND_libcasper= libnv
143 SUBDIR_DEPEND_libdevstat= libkvm
144 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
145 SUBDIR_DEPEND_libedit= ncurses
146 SUBDIR_DEPEND_libgeom= libexpat libsbuf
147 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
148 SUBDIR_DEPEND_libmagic= libz
149 SUBDIR_DEPEND_libmemstat= libkvm
150 SUBDIR_DEPEND_libopie= libmd
151 SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
152 SUBDIR_DEPEND_libpjdlog= libutil
153 SUBDIR_DEPEND_libprocstat= libkvm libutil
154 SUBDIR_DEPEND_libradius= libmd
155 SUBDIR_DEPEND_libsmb= libkiconv
156 SUBDIR_DEPEND_libtacplus= libmd
157 SUBDIR_DEPEND_libulog= libmd
158 SUBDIR_DEPEND_libunbound= ${_libldns}
159 SUBDIR_DEPEND_liblzma= ${_libthr}
161 # NB: keep these sorted by MK_* knobs
163 .if ${MK_ATM} != "no"
167 .if ${MK_BLACKLIST} != "no"
168 _libblacklist= libblacklist
171 .if ${MK_BLUETOOTH} != "no"
172 _libbluetooth= libbluetooth
176 .if ${MK_BSNMP} != "no"
180 .if ${MK_CASPER} != "no"
181 _libcasper= libcasper
184 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) && !defined(COMPAT_SOFTFP)
188 .if ${MK_CUSE} != "no"
192 .if ${MK_CXX} != "no"
193 _libdevdctl= libdevdctl
196 .if ${MK_TOOLCHAIN} != "no"
201 SUBDIR.${MK_DIALOG}+= libdpv
203 .if ${MK_FILE} != "no"
207 .if ${MK_GPIO} != "no"
211 .if ${MK_GSSAPI} != "no"
212 _libgssapi= libgssapi
213 _librpcsec_gss= librpcsec_gss
216 .if ${MK_ICONV} != "no"
217 _libiconv_modules= libiconv_modules
220 .if ${MK_KERBEROS_SUPPORT} != "no"
221 _libcom_err= libcom_err
224 .if ${MK_LDNS} != "no"
228 # The libraries under libclang_rt can only be built by clang, and only make
229 # sense to build when clang is enabled at all. Furthermore, they can only be
230 # built for certain architectures.
231 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
232 (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
233 (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb") || \
234 (${MACHINE_CPUARCH} == "i386"))
235 _libclang_rt= libclang_rt
238 .if ${MK_LIBCPLUSPLUS} != "no"
240 _libcplusplus= libc++
243 .if ${MK_LIBTHR} != "no"
247 .if ${MK_NAND} != "no"
248 _libnandfs= libnandfs
251 .if ${MK_NETGRAPH} != "no"
252 _libnetgraph= libnetgraph
255 .if ${MK_NIS} != "no"
256 _libypclnt= libypclnt
259 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
262 _librtld_db= librtld_db
265 .if ${MACHINE_CPUARCH} == "amd64"
266 .if ${MK_BHYVE} != "no"
267 _libvmmapi= libvmmapi
271 .if ${MACHINE_CPUARCH} == "mips"
273 _librtld_db= librtld_db
276 .if ${MACHINE_CPUARCH} == "powerpc"
278 _librtld_db= librtld_db
281 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
282 ${MACHINE_CPUARCH} == "riscv"
284 _librtld_db= librtld_db
287 .if ${MK_OPENSSL} != "no"
291 .if ${MK_PMC} != "no"
295 .if ${MK_RADIUS_SUPPORT} != "no"
296 _libradius= libradius
299 .if ${MK_SENDMAIL} != "no"
300 _libmilter= libmilter
303 _libsmutil= libsmutil
306 .if ${MK_TELNET} != "no"
307 _libtelnet= libtelnet
310 .if ${MK_TESTS_SUPPORT} != "no"
313 .if ${MK_TESTS} != "no"
317 .if ${MK_UNBOUND} != "no"
318 _libunbound= libunbound
321 .if ${MK_USB} != "no"
322 _libusbhid= libusbhid
330 .include <bsd.subdir.mk>