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_libcapsicum= libnv
139 SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog
140 SUBDIR_DEPEND_libdevstat= libkvm
141 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
142 SUBDIR_DEPEND_libedit= ncurses
143 SUBDIR_DEPEND_libgeom= libexpat libsbuf
144 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
145 SUBDIR_DEPEND_libmagic= libz
146 SUBDIR_DEPEND_libmemstat= libkvm
147 SUBDIR_DEPEND_libopie= libmd
148 SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
149 SUBDIR_DEPEND_libpjdlog= libutil
150 SUBDIR_DEPEND_libprocstat= libkvm libutil
151 SUBDIR_DEPEND_libradius= libmd
152 SUBDIR_DEPEND_libsmb= libkiconv
153 SUBDIR_DEPEND_libstdc++:= msun
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_BLUETOOTH} != "no"
166 _libbluetooth= libbluetooth
170 .if ${MK_BSNMP} != "no"
174 .if ${MK_CASPER} != "no"
175 _libcapsicum= libcapsicum
176 _libcasper= libcasper
179 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
183 .if ${MK_CUSE} != "no"
187 .if ${MK_TOOLCHAIN} != "no"
192 .if ${MK_FILE} != "no"
196 .if ${MK_GPIO} != "no"
200 .if ${MK_GSSAPI} != "no"
201 _libgssapi= libgssapi
202 _librpcsec_gss= librpcsec_gss
205 .if ${MK_ICONV} != "no"
206 _libiconv_modules= libiconv_modules
209 .if ${MK_KERBEROS_SUPPORT} != "no"
210 _libcom_err= libcom_err
213 .if ${MK_LDNS} != "no"
217 # The libraries under libclang_rt can only be built by clang, and only make
218 # sense to build when clang is enabled at all. Furthermore, they can only be
219 # built for certain architectures.
220 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
221 (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
222 (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb") || \
223 (${MACHINE_CPUARCH} == "i386"))
224 _libclang_rt= libclang_rt
227 .if ${MK_LIBCPLUSPLUS} != "no"
229 _libcplusplus= libc++
232 .if ${MK_LIBTHR} != "no"
236 .if ${MK_NAND} != "no"
237 _libnandfs= libnandfs
240 .if ${MK_NETGRAPH} != "no"
241 _libnetgraph= libnetgraph
244 .if ${MK_NIS} != "no"
245 _libypclnt= libypclnt
248 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
251 _librtld_db= librtld_db
254 .if ${MACHINE_CPUARCH} == "amd64"
255 .if ${MK_BHYVE} != "no"
256 _libvmmapi= libvmmapi
260 .if ${MACHINE_CPUARCH} == "mips"
262 _librtld_db= librtld_db
265 .if ${MACHINE_CPUARCH} == "powerpc"
267 _librtld_db= librtld_db
270 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
271 ${MACHINE_CPUARCH} == "riscv"
273 _librtld_db= librtld_db
276 .if ${MK_OPENSSL} != "no"
280 .if ${MK_PMC} != "no"
284 .if ${MK_RADIUS_SUPPORT} != "no"
285 _libradius= libradius
288 .if ${MK_SENDMAIL} != "no"
289 _libmilter= libmilter
292 _libsmutil= libsmutil
295 .if ${MK_TELNET} != "no"
296 _libtelnet= libtelnet
299 .if ${MK_TESTS_SUPPORT} != "no"
302 .if ${MK_TESTS} != "no"
306 .if ${MK_UNBOUND} != "no"
307 _libunbound= libunbound
310 .if ${MK_USB} != "no"
311 _libusbhid= libusbhid
319 .include <bsd.subdir.mk>