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} \
61 ${_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 SUBDIR.${MK_DIALOG}+= libdpv
202 .if ${MK_FILE} != "no"
206 .if ${MK_GPIO} != "no"
210 .if ${MK_GSSAPI} != "no"
211 _libgssapi= libgssapi
212 _librpcsec_gss= librpcsec_gss
215 .if ${MK_ICONV} != "no"
216 _libiconv_modules= libiconv_modules
219 .if ${MK_KERBEROS_SUPPORT} != "no"
220 _libcom_err= libcom_err
223 .if ${MK_LDNS} != "no"
227 # The libraries under libclang_rt can only be built by clang, and only make
228 # sense to build when clang is enabled at all. Furthermore, they can only be
229 # built for certain architectures.
230 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
231 (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
232 (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb") || \
233 (${MACHINE_CPUARCH} == "i386"))
234 _libclang_rt= libclang_rt
237 .if ${MK_LIBCPLUSPLUS} != "no"
239 _libcplusplus= libc++
242 .if ${MK_LIBTHR} != "no"
246 .if ${MK_NAND} != "no"
247 _libnandfs= libnandfs
250 .if ${MK_NETGRAPH} != "no"
251 _libnetgraph= libnetgraph
254 .if ${MK_NIS} != "no"
255 _libypclnt= libypclnt
258 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
261 _librtld_db= librtld_db
264 .if ${MACHINE_CPUARCH} == "amd64"
265 .if ${MK_BHYVE} != "no"
266 _libvmmapi= libvmmapi
270 .if ${MACHINE_CPUARCH} == "mips"
272 _librtld_db= librtld_db
275 .if ${MACHINE_CPUARCH} == "powerpc"
277 _librtld_db= librtld_db
280 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
281 ${MACHINE_CPUARCH} == "riscv"
283 _librtld_db= librtld_db
286 .if ${MK_OPENSSL} != "no"
290 .if ${MK_PMC} != "no"
294 .if ${MK_RADIUS_SUPPORT} != "no"
295 _libradius= libradius
298 .if ${MK_SENDMAIL} != "no"
299 _libmilter= libmilter
302 _libsmutil= libsmutil
305 .if ${MK_TELNET} != "no"
306 _libtelnet= libtelnet
309 .if ${MK_TESTS_SUPPORT} != "no"
312 .if ${MK_TESTS} != "no"
316 .if ${MK_UNBOUND} != "no"
317 _libunbound= libunbound
320 .if ${MK_USB} != "no"
321 _libusbhid= libusbhid
329 .include <bsd.subdir.mk>