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} \
54 ${_libiconv_modules} \
115 # Inter-library dependencies. When the makefile for a library contains LDADD
116 # libraries, those libraries should be listed as build order dependencies here.
118 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
119 SUBDIR_DEPEND_libatm= libmd
120 SUBDIR_DEPEND_libauditdm= libbsm
121 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
122 SUBDIR_DEPEND_libc++= libcxxrt
123 SUBDIR_DEPEND_libc= libcompiler_rt
124 SUBDIR_DEPEND_libcam= libsbuf
125 SUBDIR_DEPEND_libdevstat= libkvm
126 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
127 SUBDIR_DEPEND_libedit= ncurses
128 SUBDIR_DEPEND_libg++= msun
129 SUBDIR_DEPEND_libgeom= libexpat libsbuf
130 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
131 SUBDIR_DEPEND_libmagic= libz
132 SUBDIR_DEPEND_libmemstat= libkvm
133 SUBDIR_DEPEND_libopie= libmd
134 SUBDIR_DEPEND_libpam= libcrypt libopie libradius librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
135 SUBDIR_DEPEND_libpjdlog= libutil
136 SUBDIR_DEPEND_libprocstat= libkvm libutil
137 SUBDIR_DEPEND_libradius= libmd
138 SUBDIR_DEPEND_libreadline= ncurses
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}
145 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
146 _csu=csu/${MACHINE_ARCH}-elf
147 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
148 _csu=csu/${MACHINE_ARCH}
149 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
150 _csu=csu/${MACHINE_CPUARCH}
155 # NB: keep these sorted by MK_* knobs
157 .if ${MK_ATM} != "no"
161 .if ${MK_BLUETOOTH} != "no"
162 _libbluetooth= libbluetooth
166 .if ${MK_BSNMP} != "no"
170 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
174 .if ${MK_GPIB} != "no"
178 .if ${MK_GSSAPI} != "no"
179 _libgssapi= libgssapi
180 _librpcsec_gss= librpcsec_gss
183 .if ${MK_ICONV} != "no"
184 _libiconv_modules= libiconv_modules
187 .if ${MK_KERBEROS_SUPPORT} != "no"
188 _libcom_err= libcom_err
191 .if ${MK_IPX} != "no"
195 .if ${MK_LDNS} != "no"
199 .if ${MK_LIBCPLUSPLUS} != "no"
201 _libcplusplus= libc++
204 .if ${MK_LIBTHR} != "no"
208 .if ${MK_NAND} != "no"
209 _libnandfs= libnandfs
212 .if ${MK_NETGRAPH} != "no"
213 _libnetgraph= libnetgraph
216 .if ${MK_NIS} != "no"
217 _libypclnt= libypclnt
220 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
224 _librtld_db= librtld_db
227 .if ${MACHINE_CPUARCH} == "amd64"
228 _libvmmapi= libvmmapi
231 .if ${MACHINE_CPUARCH} == "ia64"
236 .if ${MACHINE_CPUARCH} == "mips"
238 _librtld_db= librtld_db
241 .if ${MACHINE_CPUARCH} == "powerpc"
243 _librtld_db= librtld_db
247 .if ${MACHINE_CPUARCH} == "sparc64"
251 .if ${MK_OPENSSL} != "no"
255 .if ${MK_PMC} != "no"
259 .if ${MK_SENDMAIL} != "no"
260 _libmilter= libmilter
263 _libsmutil= libsmutil
266 .if ${MK_TELNET} != "no"
267 _libtelnet= libtelnet
270 .if ${MK_TESTS} != "no"
275 .if ${MK_UNBOUND} != "no"
276 _libunbound= libunbound
279 .if ${MK_USB} != "no"
280 _libusbhid= libusbhid
284 .if !defined(LIBRARIES_ONLY)
286 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
293 .include <bsd.subdir.mk>