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.
11 SUBDIR_ORDERED= ${_csu} \
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_libg++= msun
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_libreadline= ncurses
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 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
160 _csu=csu/${MACHINE_ARCH}-elf
161 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
162 _csu=csu/${MACHINE_ARCH}
163 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
164 _csu=csu/${MACHINE_CPUARCH}
169 # NB: keep these sorted by MK_* knobs
171 .if ${MK_ATM} != "no"
175 .if ${MK_BLUETOOTH} != "no"
176 _libbluetooth= libbluetooth
180 .if ${MK_BSNMP} != "no"
184 .if ${MK_CASPER} != "no"
185 _libcapsicum= libcapsicum
186 _libcasper= libcasper
189 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
193 .if ${MK_CUSE} != "no"
197 .if ${MK_ELFTOOLCHAIN_TOOLS} != "no"
201 .if ${MK_FILE} != "no"
205 .if ${MK_GPIO} != "no"
209 .if ${MK_GSSAPI} != "no"
210 _libgssapi= libgssapi
211 _librpcsec_gss= librpcsec_gss
214 .if ${MK_ICONV} != "no"
215 _libiconv_modules= libiconv_modules
218 .if ${MK_KERBEROS_SUPPORT} != "no"
219 _libcom_err= libcom_err
222 .if ${MK_LDNS} != "no"
226 # The libraries under libclang_rt can only be built by clang, and only make
227 # sense to build when clang is enabled at all. Furthermore, they can only be
228 # built for certain architectures.
229 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
230 (${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" || \
231 (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb"))
232 _libclang_rt= libclang_rt
235 .if ${MK_LIBCPLUSPLUS} != "no"
237 _libcplusplus= libc++
240 .if ${MK_LIBTHR} != "no"
244 .if ${MK_NAND} != "no"
245 _libnandfs= libnandfs
248 .if ${MK_NETGRAPH} != "no"
249 _libnetgraph= libnetgraph
252 .if ${MK_NIS} != "no"
253 _libypclnt= libypclnt
260 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
264 _librtld_db= librtld_db
267 .if ${MACHINE_CPUARCH} == "amd64"
268 .if ${MK_BHYVE} != "no"
269 _libvmmapi= libvmmapi
273 .if ${MACHINE_CPUARCH} == "mips"
275 _librtld_db= librtld_db
278 .if ${MACHINE_CPUARCH} == "powerpc"
280 _librtld_db= librtld_db
284 .if ${MACHINE_CPUARCH} == "sparc64"
288 .if ${MACHINE_CPUARCH} == "arm"
291 _librtld_db= librtld_db
294 .if ${MK_OPENSSL} != "no"
298 .if ${MK_PMC} != "no"
302 .if ${MK_RADIUS_SUPPORT} != "no"
303 _libradius= libradius
306 .if ${MK_SENDMAIL} != "no"
307 _libmilter= libmilter
310 _libsmutil= libsmutil
313 .if ${MK_TELNET} != "no"
314 _libtelnet= libtelnet
317 .if ${MK_TESTS_SUPPORT} != "no"
320 .if ${MK_TESTS} != "no"
324 .if ${MK_UNBOUND} != "no"
325 _libunbound= libunbound
328 .if ${MK_USB} != "no"
329 _libusbhid= libusbhid
333 .if !defined(LIBRARIES_ONLY)
335 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
342 .include <bsd.subdir.mk>