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++
240 .if ${MK_EFI} != "no"
241 _libefivar= libefivar
244 .if ${MK_LIBTHR} != "no"
248 .if ${MK_NAND} != "no"
249 _libnandfs= libnandfs
252 .if ${MK_NETGRAPH} != "no"
253 _libnetgraph= libnetgraph
256 .if ${MK_NIS} != "no"
257 _libypclnt= libypclnt
260 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
263 _librtld_db= librtld_db
266 .if ${MACHINE_CPUARCH} == "amd64"
267 .if ${MK_BHYVE} != "no"
268 _libvmmapi= libvmmapi
272 .if ${MACHINE_CPUARCH} == "mips"
274 _librtld_db= librtld_db
277 .if ${MACHINE_CPUARCH} == "powerpc"
279 _librtld_db= librtld_db
282 .if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mfilter}
286 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
287 ${MACHINE_CPUARCH} == "riscv"
289 _librtld_db= librtld_db
291 SUBDIR.${MK_OFED}+= ofed
293 .if ${MK_OPENSSL} != "no"
297 .if ${MK_PMC} != "no"
301 .if ${MK_RADIUS_SUPPORT} != "no"
302 _libradius= libradius
305 .if ${MK_SENDMAIL} != "no"
306 _libmilter= libmilter
309 _libsmutil= libsmutil
312 .if ${MK_TELNET} != "no"
313 _libtelnet= libtelnet
316 .if ${MK_TESTS_SUPPORT} != "no"
319 .if ${MK_TESTS} != "no"
323 .if ${MK_UNBOUND} != "no"
324 _libunbound= libunbound
327 .if ${MK_USB} != "no"
328 _libusbhid= libusbhid
336 .include <bsd.subdir.mk>