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} \
130 # Inter-library dependencies. When the makefile for a library contains LDADD
131 # libraries, those libraries should be listed as build order dependencies here.
133 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
134 SUBDIR_DEPEND_libatm= libmd
135 SUBDIR_DEPEND_libauditdm= libbsm
136 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
137 SUBDIR_DEPEND_libc++:= libcxxrt
138 SUBDIR_DEPEND_libc= libcompiler_rt
139 SUBDIR_DEPEND_libcam= libsbuf
140 SUBDIR_DEPEND_libcasper= libnv
141 SUBDIR_DEPEND_libdevstat= libkvm
142 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
143 SUBDIR_DEPEND_libedit= ncurses
144 SUBDIR_DEPEND_libgeom= libexpat libsbuf
145 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
146 SUBDIR_DEPEND_libmagic= libz
147 SUBDIR_DEPEND_libmemstat= libkvm
148 SUBDIR_DEPEND_libopie= libmd
149 SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
150 SUBDIR_DEPEND_libpjdlog= libutil
151 SUBDIR_DEPEND_libprocstat= libkvm libutil
152 SUBDIR_DEPEND_libradius= libmd
153 SUBDIR_DEPEND_libsmb= libkiconv
154 SUBDIR_DEPEND_libtacplus= libmd
155 SUBDIR_DEPEND_libulog= libmd
156 SUBDIR_DEPEND_libunbound= ${_libldns}
157 SUBDIR_DEPEND_liblzma= ${_libthr}
159 # NB: keep these sorted by MK_* knobs
161 .if ${MK_ATM} != "no"
165 .if ${MK_BLACKLIST} != "no"
166 _libblacklist= libblacklist
169 .if ${MK_BLUETOOTH} != "no"
170 _libbluetooth= libbluetooth
174 .if ${MK_BSNMP} != "no"
178 .if ${MK_CASPER} != "no"
179 _libcasper= libcasper
182 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) && !defined(COMPAT_SOFTFP)
186 .if ${MK_CUSE} != "no"
190 .if ${MK_CXX} != "no"
191 _libdevdctl= libdevdctl
194 .if ${MK_TOOLCHAIN} != "no"
199 .if ${MK_FILE} != "no"
203 .if ${MK_GPIO} != "no"
207 .if ${MK_GSSAPI} != "no"
208 _libgssapi= libgssapi
209 _librpcsec_gss= librpcsec_gss
212 .if ${MK_ICONV} != "no"
213 _libiconv_modules= libiconv_modules
216 .if ${MK_KERBEROS_SUPPORT} != "no"
217 _libcom_err= libcom_err
220 .if ${MK_LDNS} != "no"
224 # The libraries under libclang_rt can only be built by clang, and only make
225 # sense to build when clang is enabled at all. Furthermore, they can only be
226 # built for certain architectures.
227 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
228 (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
229 (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb") || \
230 (${MACHINE_CPUARCH} == "i386"))
231 _libclang_rt= libclang_rt
234 .if ${MK_LIBCPLUSPLUS} != "no"
236 _libcplusplus= libc++
239 .if ${MK_LIBTHR} != "no"
243 .if ${MK_NAND} != "no"
244 _libnandfs= libnandfs
247 .if ${MK_NETGRAPH} != "no"
248 _libnetgraph= libnetgraph
251 .if ${MK_NIS} != "no"
252 _libypclnt= libypclnt
255 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
258 _librtld_db= librtld_db
261 .if ${MACHINE_CPUARCH} == "amd64"
262 .if ${MK_BHYVE} != "no"
263 _libvmmapi= libvmmapi
267 .if ${MACHINE_CPUARCH} == "mips"
269 _librtld_db= librtld_db
272 .if ${MACHINE_CPUARCH} == "powerpc"
274 _librtld_db= librtld_db
277 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
278 ${MACHINE_CPUARCH} == "riscv"
280 _librtld_db= librtld_db
283 .if ${MK_OPENSSL} != "no"
287 .if ${MK_PMC} != "no"
291 .if ${MK_RADIUS_SUPPORT} != "no"
292 _libradius= libradius
295 .if ${MK_SENDMAIL} != "no"
296 _libmilter= libmilter
299 _libsmutil= libsmutil
302 .if ${MK_TELNET} != "no"
303 _libtelnet= libtelnet
306 .if ${MK_TESTS_SUPPORT} != "no"
309 .if ${MK_TESTS} != "no"
313 .if ${MK_UNBOUND} != "no"
314 _libunbound= libunbound
317 .if ${MK_USB} != "no"
318 _libusbhid= libusbhid
326 .include <bsd.subdir.mk>