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} \
59 ${_libiconv_modules} \
124 # Inter-library dependencies. When the makefile for a library contains LDADD
125 # libraries, those libraries should be listed as build order dependencies here.
127 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
128 SUBDIR_DEPEND_libatm= libmd
129 SUBDIR_DEPEND_libauditdm= libbsm
130 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
131 SUBDIR_DEPEND_libc++= libcxxrt
132 SUBDIR_DEPEND_libc= libcompiler_rt
133 SUBDIR_DEPEND_libcam= libsbuf
134 SUBDIR_DEPEND_libcapsicum= libnv
135 SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog
136 SUBDIR_DEPEND_libdevstat= libkvm
137 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
138 SUBDIR_DEPEND_libedit= ncurses
139 SUBDIR_DEPEND_libg++= msun
140 SUBDIR_DEPEND_libgeom= libexpat libsbuf
141 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
142 SUBDIR_DEPEND_libmagic= libz
143 SUBDIR_DEPEND_libmemstat= libkvm
144 SUBDIR_DEPEND_libopie= libmd
145 SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
146 SUBDIR_DEPEND_libpjdlog= libutil
147 SUBDIR_DEPEND_libprocstat= libkvm libutil
148 SUBDIR_DEPEND_libradius= libmd
149 SUBDIR_DEPEND_libreadline= ncurses
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}
156 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
157 _csu=csu/${MACHINE_ARCH}-elf
158 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
159 _csu=csu/${MACHINE_ARCH}
160 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
161 _csu=csu/${MACHINE_CPUARCH}
166 # NB: keep these sorted by MK_* knobs
168 .if ${MK_ATM} != "no"
172 .if ${MK_BLUETOOTH} != "no"
173 _libbluetooth= libbluetooth
177 .if ${MK_BSNMP} != "no"
181 .if ${MK_CASPER} != "no"
182 _libcapsicum= libcapsicum
183 _libcasper= libcasper
186 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
190 .if ${MK_CUSE} != "no"
194 .if ${MK_ELFTOOLCHAIN_TOOLS} != "no"
198 .if ${MK_FILE} != "no"
202 .if ${MK_GPIO} != "no"
206 .if ${MK_GSSAPI} != "no"
207 _libgssapi= libgssapi
208 _librpcsec_gss= librpcsec_gss
211 .if ${MK_ICONV} != "no"
212 _libiconv_modules= libiconv_modules
215 .if ${MK_KERBEROS_SUPPORT} != "no"
216 _libcom_err= libcom_err
219 .if ${MK_LDNS} != "no"
223 # The libraries under libclang_rt can only be built by clang, and only make
224 # sense to build when clang is enabled at all. Furthermore, they can only be
225 # built for certain architectures.
226 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
227 (${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" || \
228 (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb"))
229 _libclang_rt= libclang_rt
232 .if ${MK_LIBCPLUSPLUS} != "no"
234 _libcplusplus= libc++
237 .if ${MK_LIBTHR} != "no"
241 .if ${MK_NAND} != "no"
242 _libnandfs= libnandfs
245 .if ${MK_NETGRAPH} != "no"
246 _libnetgraph= libnetgraph
249 .if ${MK_NIS} != "no"
250 _libypclnt= libypclnt
257 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
261 _librtld_db= librtld_db
264 .if ${MACHINE_CPUARCH} == "amd64"
265 .if ${MK_BHYVE} != "no"
266 _libvmmapi= libvmmapi
270 .if ${MACHINE_CPUARCH} == "mips"
272 _librtld_db= librtld_db
275 .if ${MACHINE_CPUARCH} == "powerpc"
277 _librtld_db= librtld_db
281 .if ${MACHINE_CPUARCH} == "sparc64"
285 .if ${MK_OPENSSL} != "no"
289 .if ${MK_PMC} != "no"
293 .if ${MK_RADIUS_SUPPORT} != "no"
294 _libradius= libradius
297 .if ${MK_SENDMAIL} != "no"
298 _libmilter= libmilter
301 _libsmutil= libsmutil
304 .if ${MK_TELNET} != "no"
305 _libtelnet= libtelnet
308 .if ${MK_TESTS_SUPPORT} != "no"
311 .if ${MK_TESTS} != "no"
315 .if ${MK_UNBOUND} != "no"
316 _libunbound= libunbound
319 .if ${MK_USB} != "no"
320 _libusbhid= libusbhid
324 .if !defined(LIBRARIES_ONLY)
326 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
333 .include <bsd.subdir.mk>