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} \
21 # The main list; please keep these sorted alphabetically.
23 SUBDIR= ${SUBDIR_ORDERED} \
52 ${_libiconv_modules} \
113 # Inter-library dependencies. When the makefile for a library contains LDADD
114 # libraries, those libraries should be listed as build order dependencies here.
116 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
117 SUBDIR_DEPEND_libatm= libmd
118 SUBDIR_DEPEND_libauditdm= libbsm
119 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
120 SUBDIR_DEPEND_libc++= libcxxrt
121 SUBDIR_DEPEND_libc= libcompiler_rt
122 SUBDIR_DEPEND_libcam= libsbuf
123 SUBDIR_DEPEND_libdevstat= libkvm
124 SUBDIR_DEPEND_libdiaglog= ncurses
125 SUBDIR_DEPEND_libedit= ncurses
126 SUBDIR_DEPEND_libg++= msun
127 SUBDIR_DEPEND_libgeom= libexpat libsbuf
128 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
129 SUBDIR_DEPEND_libmagic= libz
130 SUBDIR_DEPEND_libmemstat= libkvm
131 SUBDIR_DEPEND_libopie= libmd
132 SUBDIR_DEPEND_libpam= libcrypt libopie libradius librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
133 SUBDIR_DEPEND_libpjdlog= libutil
134 SUBDIR_DEPEND_libprocstat= libkvm libutil
135 SUBDIR_DEPEND_libradius= libmd
136 SUBDIR_DEPEND_libreadline= ncurses
137 SUBDIR_DEPEND_libsmb= libkiconv
138 SUBDIR_DEPEND_libstdc++= msun
139 SUBDIR_DEPEND_libtacplus= libmd
140 SUBDIR_DEPEND_libulog= libmd
141 SUBDIR_DEPEND_libunbound= ${_libldns}
143 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
144 _csu=csu/${MACHINE_ARCH}-elf
145 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
146 _csu=csu/${MACHINE_ARCH}
147 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
148 _csu=csu/${MACHINE_CPUARCH}
153 # NB: keep these sorted by MK_* knobs
155 .if ${MK_ATM} != "no"
159 .if ${MK_BLUETOOTH} != "no"
160 _libbluetooth= libbluetooth
164 .if ${MK_BSNMP} != "no"
168 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
172 .if ${MK_GPIB} != "no"
176 .if ${MK_GSSAPI} != "no"
177 _libgssapi= libgssapi
178 _librpcsec_gss= librpcsec_gss
181 .if ${MK_ICONV} != "no"
182 _libiconv_modules= libiconv_modules
185 .if ${MK_KERBEROS_SUPPORT} != "no"
186 _libcom_err= libcom_err
189 .if ${MK_IPX} != "no"
193 .if ${MK_LDNS} != "no"
197 .if ${MK_LIBCPLUSPLUS} != "no"
199 _libcplusplus= libc++
202 .if ${MK_LIBTHR} != "no"
206 .if ${MK_NAND} != "no"
207 _libnandfs= libnandfs
210 .if ${MK_NETGRAPH} != "no"
211 _libnetgraph= libnetgraph
214 .if ${MK_NIS} != "no"
215 _libypclnt= libypclnt
218 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
222 _librtld_db= librtld_db
225 .if ${MACHINE_CPUARCH} == "amd64"
226 _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_SENDMAIL} != "no"
258 _libmilter= libmilter
261 _libsmutil= libsmutil
264 .if ${MK_TELNET} != "no"
265 _libtelnet= libtelnet
268 .if ${MK_TESTS} != "no"
273 .if ${MK_UNBOUND} != "no"
274 _libunbound= libunbound
277 .if ${MK_USB} != "no"
278 _libusbhid= libusbhid
282 .if !defined(LIBRARIES_ONLY)
284 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
291 .include <bsd.subdir.mk>