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} \
126 # Inter-library dependencies. When the makefile for a library contains LDADD
127 # libraries, those libraries should be listed as build order dependencies here.
129 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
130 SUBDIR_DEPEND_libatm= libmd
131 SUBDIR_DEPEND_libauditdm= libbsm
132 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
133 SUBDIR_DEPEND_libc++:= libcxxrt
134 SUBDIR_DEPEND_libc= libcompiler_rt
135 SUBDIR_DEPEND_libcam= libsbuf
136 SUBDIR_DEPEND_libcapsicum= libnv
137 SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog
138 SUBDIR_DEPEND_libdevstat= libkvm
139 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
140 SUBDIR_DEPEND_libedit= ncurses
141 SUBDIR_DEPEND_libgeom= libexpat libsbuf
142 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
143 SUBDIR_DEPEND_libmagic= libz
144 SUBDIR_DEPEND_libmemstat= libkvm
145 SUBDIR_DEPEND_libopie= libmd
146 SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
147 SUBDIR_DEPEND_libpjdlog= libutil
148 SUBDIR_DEPEND_libprocstat= libkvm libutil
149 SUBDIR_DEPEND_libradius= libmd
150 SUBDIR_DEPEND_libsmb= libkiconv
151 SUBDIR_DEPEND_libtacplus= libmd
152 SUBDIR_DEPEND_libulog= libmd
153 SUBDIR_DEPEND_libunbound= ${_libldns}
154 SUBDIR_DEPEND_liblzma= ${_libthr}
156 # NB: keep these sorted by MK_* knobs
158 .if ${MK_ATM} != "no"
162 .if ${MK_BLUETOOTH} != "no"
163 _libbluetooth= libbluetooth
167 .if ${MK_BSNMP} != "no"
171 .if ${MK_CASPER} != "no"
172 _libcapsicum= libcapsicum
173 _libcasper= libcasper
176 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
180 .if ${MK_CUSE} != "no"
184 .if ${MK_TOOLCHAIN} != "no"
188 .if ${MK_FILE} != "no"
192 .if ${MK_GPIO} != "no"
196 .if ${MK_GSSAPI} != "no"
197 _libgssapi= libgssapi
198 _librpcsec_gss= librpcsec_gss
201 .if ${MK_ICONV} != "no"
202 _libiconv_modules= libiconv_modules
205 .if ${MK_KERBEROS_SUPPORT} != "no"
206 _libcom_err= libcom_err
209 .if ${MK_LDNS} != "no"
213 # The libraries under libclang_rt can only be built by clang, and only make
214 # sense to build when clang is enabled at all. Furthermore, they can only be
215 # built for certain architectures.
216 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
217 (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
218 (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb") || \
219 (${MACHINE_CPUARCH} == "i386"))
220 _libclang_rt= libclang_rt
223 .if ${MK_LIBCPLUSPLUS} != "no"
225 _libcplusplus= libc++
228 .if ${MK_LIBTHR} != "no"
232 .if ${MK_NAND} != "no"
233 _libnandfs= libnandfs
236 .if ${MK_NETGRAPH} != "no"
237 _libnetgraph= libnetgraph
240 .if ${MK_NIS} != "no"
241 _libypclnt= libypclnt
244 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
248 _librtld_db= librtld_db
251 .if ${MACHINE_CPUARCH} == "amd64"
252 .if ${MK_BHYVE} != "no"
253 _libvmmapi= libvmmapi
257 .if ${MACHINE_CPUARCH} == "mips"
259 _librtld_db= librtld_db
262 .if ${MACHINE_CPUARCH} == "powerpc"
264 _librtld_db= librtld_db
268 .if ${MACHINE_CPUARCH} == "sparc64"
272 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm"
275 _librtld_db= librtld_db
278 .if ${MK_OPENSSL} != "no"
282 .if ${MK_PMC} != "no"
286 .if ${MK_RADIUS_SUPPORT} != "no"
287 _libradius= libradius
290 .if ${MK_SENDMAIL} != "no"
291 _libmilter= libmilter
294 _libsmutil= libsmutil
297 .if ${MK_TELNET} != "no"
298 _libtelnet= libtelnet
301 .if ${MK_TESTS_SUPPORT} != "no"
304 .if ${MK_TESTS} != "no"
308 .if ${MK_UNBOUND} != "no"
309 _libunbound= libunbound
312 .if ${MK_USB} != "no"
313 _libusbhid= libusbhid
321 .include <bsd.subdir.mk>