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} \
58 ${_libiconv_modules} \
123 # Inter-library dependencies. When the makefile for a library contains LDADD
124 # libraries, those libraries should be listed as build order dependencies here.
126 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
127 SUBDIR_DEPEND_libatm= libmd
128 SUBDIR_DEPEND_libauditdm= libbsm
129 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
130 SUBDIR_DEPEND_libc++= libcxxrt
131 SUBDIR_DEPEND_libc= libcompiler_rt
132 SUBDIR_DEPEND_libcam= libsbuf
133 SUBDIR_DEPEND_libcapsicum= libnv
134 SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog
135 SUBDIR_DEPEND_libdevstat= libkvm
136 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
137 SUBDIR_DEPEND_libedit= ncurses
138 SUBDIR_DEPEND_libg++= msun
139 SUBDIR_DEPEND_libgeom= libexpat libsbuf
140 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
141 SUBDIR_DEPEND_libmagic= libz
142 SUBDIR_DEPEND_libmemstat= libkvm
143 SUBDIR_DEPEND_libopie= libmd
144 SUBDIR_DEPEND_libpam= libcrypt libopie libradius librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
145 SUBDIR_DEPEND_libpjdlog= libutil
146 SUBDIR_DEPEND_libprocstat= libkvm libutil
147 SUBDIR_DEPEND_libradius= libmd
148 SUBDIR_DEPEND_libreadline= ncurses
149 SUBDIR_DEPEND_libsmb= libkiconv
150 SUBDIR_DEPEND_libstdc++= msun
151 SUBDIR_DEPEND_libtacplus= libmd
152 SUBDIR_DEPEND_libulog= libmd
153 SUBDIR_DEPEND_libunbound= ${_libldns}
155 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
156 _csu=csu/${MACHINE_ARCH}-elf
157 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
158 _csu=csu/${MACHINE_ARCH}
159 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
160 _csu=csu/${MACHINE_CPUARCH}
165 # NB: keep these sorted by MK_* knobs
167 .if ${MK_ATM} != "no"
171 .if ${MK_BLUETOOTH} != "no"
172 _libbluetooth= libbluetooth
176 .if ${MK_BSNMP} != "no"
180 .if ${MK_CASPER} != "no"
181 _libcapsicum= libcapsicum
182 _libcasper= libcasper
185 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
189 .if ${MK_CUSE} != "no"
193 .if ${MK_GPIB} != "no"
197 .if ${MK_GSSAPI} != "no"
198 _libgssapi= libgssapi
199 _librpcsec_gss= librpcsec_gss
202 .if ${MK_ICONV} != "no"
203 _libiconv_modules= libiconv_modules
206 .if ${MK_KERBEROS_SUPPORT} != "no"
207 _libcom_err= libcom_err
210 .if ${MK_LDNS} != "no"
214 .if ${MK_LIBCPLUSPLUS} != "no"
216 _libcplusplus= libc++
219 .if ${MK_LIBTHR} != "no"
223 .if ${MK_NAND} != "no"
224 _libnandfs= libnandfs
227 .if ${MK_NETGRAPH} != "no"
228 _libnetgraph= libnetgraph
231 .if ${MK_NIS} != "no"
232 _libypclnt= libypclnt
239 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
243 _librtld_db= librtld_db
246 .if ${MACHINE_CPUARCH} == "amd64"
247 _libvmmapi= libvmmapi
250 .if ${MACHINE_CPUARCH} == "mips"
252 _librtld_db= librtld_db
255 .if ${MACHINE_CPUARCH} == "powerpc"
257 _librtld_db= librtld_db
261 .if ${MACHINE_CPUARCH} == "sparc64"
265 .if ${MK_OPENSSL} != "no"
269 .if ${MK_PMC} != "no"
273 .if ${MK_SENDMAIL} != "no"
274 _libmilter= libmilter
277 _libsmutil= libsmutil
280 .if ${MK_TELNET} != "no"
281 _libtelnet= libtelnet
284 .if ${MK_TESTS_SUPPORT} != "no"
287 .if ${MK_TESTS} != "no"
291 .if ${MK_UNBOUND} != "no"
292 _libunbound= libunbound
295 .if ${MK_USB} != "no"
296 _libusbhid= libusbhid
300 .if !defined(LIBRARIES_ONLY)
302 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
309 .include <bsd.subdir.mk>