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} \
116 # Inter-library dependencies. When the makefile for a library contains LDADD
117 # libraries, those libraries should be listed as build order dependencies here.
119 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
120 SUBDIR_DEPEND_libatm= libmd
121 SUBDIR_DEPEND_libauditdm= libbsm
122 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
123 SUBDIR_DEPEND_libc++= libcxxrt
124 SUBDIR_DEPEND_libc= libcompiler_rt
125 SUBDIR_DEPEND_libcam= libsbuf
126 SUBDIR_DEPEND_libdevstat= libkvm
127 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
128 SUBDIR_DEPEND_libedit= ncurses
129 SUBDIR_DEPEND_libg++= msun
130 SUBDIR_DEPEND_libgeom= libexpat libsbuf
131 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
132 SUBDIR_DEPEND_libmagic= libz
133 SUBDIR_DEPEND_libmemstat= libkvm
134 SUBDIR_DEPEND_libopie= libmd
135 SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
136 SUBDIR_DEPEND_libpjdlog= libutil
137 SUBDIR_DEPEND_libprocstat= libkvm libutil
138 SUBDIR_DEPEND_libradius= libmd
139 SUBDIR_DEPEND_libsmb= libkiconv
140 SUBDIR_DEPEND_libstdc++= msun
141 SUBDIR_DEPEND_libtacplus= libmd
142 SUBDIR_DEPEND_libulog= libmd
143 SUBDIR_DEPEND_libunbound= ${_libldns}
144 SUBDIR_DEPEND_liblzma= ${_libthr}
146 # NB: keep these sorted by MK_* knobs
148 .if ${MK_ATM} != "no"
152 .if ${MK_BLUETOOTH} != "no"
153 _libbluetooth= libbluetooth
157 .if ${MK_BSNMP} != "no"
161 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
165 .if ${MK_FILE} != "no"
169 .if ${MK_GPIB} != "no"
173 .if ${MK_GSSAPI} != "no"
174 _libgssapi= libgssapi
175 _librpcsec_gss= librpcsec_gss
178 .if ${MK_ICONV} != "no"
179 _libiconv_modules= libiconv_modules
182 .if ${MK_KERBEROS_SUPPORT} != "no"
183 _libcom_err= libcom_err
186 .if ${MK_IPX} != "no"
190 .if ${MK_LDNS} != "no"
194 .if ${MK_LIBCPLUSPLUS} != "no"
196 _libcplusplus= libc++
199 .if ${MK_LIBTHR} != "no"
203 .if ${MK_NAND} != "no"
204 _libnandfs= libnandfs
207 .if ${MK_NETGRAPH} != "no"
208 _libnetgraph= libnetgraph
211 .if ${MK_NIS} != "no"
212 _libypclnt= libypclnt
215 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
219 _librtld_db= librtld_db
222 .if ${MACHINE_CPUARCH} == "amd64"
223 .if ${MK_BHYVE} != "no"
224 _libvmmapi= libvmmapi
228 .if ${MACHINE_CPUARCH} == "ia64"
233 .if ${MACHINE_CPUARCH} == "mips"
235 _librtld_db= librtld_db
238 .if ${MACHINE_CPUARCH} == "powerpc"
240 _librtld_db= librtld_db
244 .if ${MACHINE_CPUARCH} == "sparc64"
248 .if ${MK_OPENSSL} != "no"
252 .if ${MK_PMC} != "no"
256 .if ${MK_RADIUS_SUPPORT} != "no"
257 _libradius= libradius
260 .if ${MK_SENDMAIL} != "no"
261 _libmilter= libmilter
264 _libsmutil= libsmutil
267 .if ${MK_TELNET} != "no"
268 _libtelnet= libtelnet
271 .if ${MK_TESTS} != "no"
276 .if ${MK_UNBOUND} != "no"
277 _libunbound= libunbound
280 .if ${MK_USB} != "no"
281 _libusbhid= libusbhid
285 .if !defined(LIBRARIES_ONLY)
287 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
294 .include <bsd.subdir.mk>