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} \
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_liblibrpcsec_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_CXX} != "no"
192 _libdevdctl= libdevdctl
195 .if ${MK_TOOLCHAIN} != "no"
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++
240 .if ${MK_LIBTHR} != "no"
244 .if ${MK_NAND} != "no"
245 _libnandfs= libnandfs
248 .if ${MK_NETGRAPH} != "no"
249 _libnetgraph= libnetgraph
252 .if ${MK_NIS} != "no"
253 _libypclnt= libypclnt
256 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
259 _librtld_db= librtld_db
262 .if ${MACHINE_CPUARCH} == "amd64"
263 .if ${MK_BHYVE} != "no"
264 _libvmmapi= libvmmapi
268 .if ${MACHINE_CPUARCH} == "mips"
270 _librtld_db= librtld_db
273 .if ${MACHINE_CPUARCH} == "powerpc"
275 _librtld_db= librtld_db
278 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
279 ${MACHINE_CPUARCH} == "riscv"
281 _librtld_db= librtld_db
284 .if ${MK_OPENSSL} != "no"
288 .if ${MK_PMC} != "no"
292 .if ${MK_RADIUS_SUPPORT} != "no"
293 _libradius= libradius
296 .if ${MK_SENDMAIL} != "no"
297 _libmilter= libmilter
300 _libsmutil= libsmutil
303 .if ${MK_TELNET} != "no"
304 _libtelnet= libtelnet
307 .if ${MK_TESTS_SUPPORT} != "no"
310 .if ${MK_TESTS} != "no"
314 .if ${MK_UNBOUND} != "no"
315 _libunbound= libunbound
318 .if ${MK_USB} != "no"
319 _libusbhid= libusbhid
327 .include <bsd.subdir.mk>