1 # @(#)Makefile 8.1 (Berkeley) 6/4/93
6 # The SUBDIR_ORDERED 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.
22 # The main list; please keep these sorted alphabetically.
24 SUBDIR= ${SUBDIR_ORDERED} \
60 ${_libiconv_modules} \
128 # Inter-library dependencies. When the makefile for a library contains LDADD
129 # libraries, those libraries should be listed as build order dependencies here.
131 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
132 SUBDIR_DEPEND_libatm= libmd
133 SUBDIR_DEPEND_libauditdm= libbsm
134 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
135 SUBDIR_DEPEND_libc++:= libcxxrt
136 SUBDIR_DEPEND_libc= libcompiler_rt
137 SUBDIR_DEPEND_libcam= libsbuf
138 SUBDIR_DEPEND_libcasper= libnv
139 SUBDIR_DEPEND_libdevstat= libkvm
140 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
141 SUBDIR_DEPEND_libedit= ncurses
142 SUBDIR_DEPEND_libgeom= libexpat libsbuf
143 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
144 SUBDIR_DEPEND_libmagic= libz
145 SUBDIR_DEPEND_libmemstat= libkvm
146 SUBDIR_DEPEND_libopie= libmd
147 SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
148 SUBDIR_DEPEND_libpjdlog= libutil
149 SUBDIR_DEPEND_libprocstat= libkvm libutil
150 SUBDIR_DEPEND_libradius= libmd
151 SUBDIR_DEPEND_libsmb= libkiconv
152 SUBDIR_DEPEND_libstdc++:= msun
153 SUBDIR_DEPEND_libtacplus= libmd
154 SUBDIR_DEPEND_libulog= libmd
155 SUBDIR_DEPEND_libunbound= ${_libldns}
156 SUBDIR_DEPEND_liblzma= ${_libthr}
158 # NB: keep these sorted by MK_* knobs
160 .if ${MK_ATM} != "no"
164 .if ${MK_BLUETOOTH} != "no"
165 _libbluetooth= libbluetooth
169 .if ${MK_BSNMP} != "no"
173 .if ${MK_CASPER} != "no"
174 _libcasper= libcasper
177 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) && !defined(COMPAT_SOFTFP)
181 .if ${MK_CUSE} != "no"
185 .if ${MK_TOOLCHAIN} != "no"
190 .if ${MK_FILE} != "no"
194 .if ${MK_GPIO} != "no"
198 .if ${MK_GSSAPI} != "no"
199 _libgssapi= libgssapi
200 _librpcsec_gss= librpcsec_gss
203 .if ${MK_ICONV} != "no"
204 _libiconv_modules= libiconv_modules
207 .if ${MK_KERBEROS_SUPPORT} != "no"
208 _libcom_err= libcom_err
211 .if ${MK_LDNS} != "no"
215 # The libraries under libclang_rt can only be built by clang, and only make
216 # sense to build when clang is enabled at all. Furthermore, they can only be
217 # built for certain architectures.
218 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
219 (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
220 (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb") || \
221 (${MACHINE_CPUARCH} == "i386"))
222 _libclang_rt= libclang_rt
225 .if ${MK_LIBCPLUSPLUS} != "no"
227 _libcplusplus= libc++
230 .if ${MK_LIBTHR} != "no"
234 .if ${MK_NAND} != "no"
235 _libnandfs= libnandfs
238 .if ${MK_NETGRAPH} != "no"
239 _libnetgraph= libnetgraph
242 .if ${MK_NIS} != "no"
243 _libypclnt= libypclnt
246 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
249 _librtld_db= librtld_db
252 .if ${MACHINE_CPUARCH} == "amd64"
253 .if ${MK_BHYVE} != "no"
254 _libvmmapi= libvmmapi
258 .if ${MACHINE_CPUARCH} == "mips"
260 _librtld_db= librtld_db
263 .if ${MACHINE_CPUARCH} == "powerpc"
265 _librtld_db= librtld_db
268 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
269 ${MACHINE_CPUARCH} == "riscv"
271 _librtld_db= librtld_db
274 .if ${MK_OPENSSL} != "no"
278 .if ${MK_PMC} != "no"
282 .if ${MK_RADIUS_SUPPORT} != "no"
283 _libradius= libradius
286 .if ${MK_SENDMAIL} != "no"
287 _libmilter= libmilter
290 _libsmutil= libsmutil
293 .if ${MK_TELNET} != "no"
294 _libtelnet= libtelnet
297 .if ${MK_TESTS_SUPPORT} != "no"
300 .if ${MK_TESTS} != "no"
304 .if ${MK_UNBOUND} != "no"
305 _libunbound= libunbound
308 .if ${MK_USB} != "no"
309 _libusbhid= libusbhid
317 .include <bsd.subdir.mk>