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.
21 # The main list; please keep these sorted alphabetically.
23 SUBDIR= ${SUBDIR_ORDERED} \
54 ${_libiconv_modules} \
117 # Inter-library dependencies. When the makefile for a library contains LDADD
118 # libraries, those libraries should be listed as build order dependencies here.
120 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
121 SUBDIR_DEPEND_libatm= libmd
122 SUBDIR_DEPEND_libauditdm= libbsm
123 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
124 SUBDIR_DEPEND_libc++= libcxxrt
125 SUBDIR_DEPEND_libc= libcompiler_rt
126 SUBDIR_DEPEND_libcam= libsbuf
127 SUBDIR_DEPEND_libdevstat= libkvm
128 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
129 SUBDIR_DEPEND_libedit= ncurses
130 SUBDIR_DEPEND_libg++= msun
131 SUBDIR_DEPEND_libgeom= libexpat libsbuf
132 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
133 SUBDIR_DEPEND_libmagic= libz
134 SUBDIR_DEPEND_libmemstat= libkvm
135 SUBDIR_DEPEND_libopie= libmd
136 SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
137 SUBDIR_DEPEND_libpjdlog= libutil
138 SUBDIR_DEPEND_libprocstat= libkvm libutil
139 SUBDIR_DEPEND_libradius= libmd
140 SUBDIR_DEPEND_libsmb= libkiconv
141 SUBDIR_DEPEND_libstdc++= msun
142 SUBDIR_DEPEND_libtacplus= libmd
143 SUBDIR_DEPEND_libulog= libmd
144 SUBDIR_DEPEND_libunbound= ${_libldns}
145 SUBDIR_DEPEND_liblzma= ${_libthr}
147 # NB: keep these sorted by MK_* knobs
149 .if ${MK_ATM} != "no"
153 .if ${MK_BLUETOOTH} != "no"
154 _libbluetooth= libbluetooth
158 .if ${MK_BSNMP} != "no"
162 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
166 .if ${MK_FILE} != "no"
170 .if ${MK_GPIB} != "no"
174 .if ${MK_GSSAPI} != "no"
175 _libgssapi= libgssapi
176 _librpcsec_gss= librpcsec_gss
179 .if ${MK_ICONV} != "no"
180 _libiconv_modules= libiconv_modules
183 .if ${MK_KERBEROS_SUPPORT} != "no"
184 _libcom_err= libcom_err
187 .if ${MK_IPX} != "no"
191 .if ${MK_LDNS} != "no"
195 .if ${MK_LIBCPLUSPLUS} != "no"
197 _libcplusplus= libc++
200 .if ${MK_LIBTHR} != "no"
204 .if ${MK_NAND} != "no"
205 _libnandfs= libnandfs
208 .if ${MK_NETGRAPH} != "no"
209 _libnetgraph= libnetgraph
212 .if ${MK_NIS} != "no"
213 _libypclnt= libypclnt
216 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
220 _librtld_db= librtld_db
223 .if ${MACHINE_CPUARCH} == "amd64"
224 .if ${MK_BHYVE} != "no"
225 _libvmmapi= libvmmapi
229 .if ${MACHINE_CPUARCH} == "ia64"
234 .if ${MACHINE_CPUARCH} == "mips"
236 _librtld_db= librtld_db
239 .if ${MACHINE_CPUARCH} == "powerpc"
241 _librtld_db= librtld_db
245 .if ${MACHINE_CPUARCH} == "sparc64"
249 .if ${MK_OPENSSL} != "no"
253 .if ${MK_PMC} != "no"
257 .if ${MK_RADIUS_SUPPORT} != "no"
258 _libradius= libradius
261 .if ${MK_SENDMAIL} != "no"
262 _libmilter= libmilter
265 _libsmutil= libsmutil
268 .if ${MK_TELNET} != "no"
269 _libtelnet= libtelnet
272 .if ${MK_TESTS} != "no"
277 .if ${MK_UNBOUND} != "no"
278 _libunbound= libunbound
281 .if ${MK_USB} != "no"
282 _libusbhid= libusbhid
286 .if !defined(LIBRARIES_ONLY)
288 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
295 .include <bsd.subdir.mk>