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} \
125 # Inter-library dependencies. When the makefile for a library contains LDADD
126 # libraries, those libraries should be listed as build order dependencies here.
128 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
129 SUBDIR_DEPEND_libatm= libmd
130 SUBDIR_DEPEND_libauditdm= libbsm
131 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
132 SUBDIR_DEPEND_libc++= libcxxrt
133 SUBDIR_DEPEND_libc= libcompiler_rt
134 SUBDIR_DEPEND_libcam= libsbuf
135 SUBDIR_DEPEND_libcapsicum= libnv
136 SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog
137 SUBDIR_DEPEND_libdevstat= libkvm
138 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
139 SUBDIR_DEPEND_libedit= ncurses
140 SUBDIR_DEPEND_libg++= msun
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_libstdc++= msun
152 SUBDIR_DEPEND_libtacplus= libmd
153 SUBDIR_DEPEND_libulog= libmd
154 SUBDIR_DEPEND_libunbound= ${_libldns}
155 SUBDIR_DEPEND_liblzma= ${_libthr}
157 # NB: keep these sorted by MK_* knobs
159 .if ${MK_ATM} != "no"
163 .if ${MK_BLUETOOTH} != "no"
164 _libbluetooth= libbluetooth
168 .if ${MK_BSNMP} != "no"
172 .if ${MK_CASPER} != "no"
173 _libcapsicum= libcapsicum
174 _libcasper= libcasper
177 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
181 .if ${MK_CUSE} != "no"
185 .if ${MK_ELFTOOLCHAIN_TOOLS} != "no"
189 .if ${MK_FILE} != "no"
193 .if ${MK_GPIO} != "no"
197 .if ${MK_GSSAPI} != "no"
198 _libgssapi= libgssapi
199 _librpcsec_gss= librpcsec_gss
202 .if ${MK_ICONV} != "no"
203 _libiconv_modules= libiconv_modules
206 .if ${MK_KERBEROS_SUPPORT} != "no"
207 _libcom_err= libcom_err
210 .if ${MK_LDNS} != "no"
214 # The libraries under libclang_rt can only be built by clang, and only make
215 # sense to build when clang is enabled at all. Furthermore, they can only be
216 # built for certain architectures.
217 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
218 (${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" || \
219 (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb"))
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
248 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
252 _librtld_db= librtld_db
255 .if ${MACHINE_CPUARCH} == "amd64"
256 .if ${MK_BHYVE} != "no"
257 _libvmmapi= libvmmapi
261 .if ${MACHINE_CPUARCH} == "mips"
263 _librtld_db= librtld_db
266 .if ${MACHINE_CPUARCH} == "powerpc"
268 _librtld_db= librtld_db
272 .if ${MACHINE_CPUARCH} == "sparc64"
276 .if ${MACHINE_CPUARCH} == "arm"
279 _librtld_db= librtld_db
282 .if ${MK_OPENSSL} != "no"
286 .if ${MK_PMC} != "no"
290 .if ${MK_RADIUS_SUPPORT} != "no"
291 _libradius= libradius
294 .if ${MK_SENDMAIL} != "no"
295 _libmilter= libmilter
298 _libsmutil= libsmutil
301 .if ${MK_TELNET} != "no"
302 _libtelnet= libtelnet
305 .if ${MK_TESTS_SUPPORT} != "no"
308 .if ${MK_TESTS} != "no"
312 .if ${MK_UNBOUND} != "no"
313 _libunbound= libunbound
316 .if ${MK_USB} != "no"
317 _libusbhid= libusbhid
321 .if !defined(LIBRARIES_ONLY)
323 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
330 .include <bsd.subdir.mk>