1 # @(#)Makefile 8.1 (Berkeley) 6/4/93
6 # To satisfy shared library or ELF linkage when only the libraries being
9 # csu must be built before all shared libaries for ELF.
10 # libc must be built before all other shared libraries.
11 # libbsm must be built before libauditd.
12 # libcom_err must be built before libpam.
13 # libcrypt must be built before libpam.
14 # libkvm must be built before libdevstat.
15 # libldns must be built before libunbound.
16 # msun must be built before libg++ and libstdc++.
17 # libmd must be built before libatm, libopie, libradius, and libtacplus.
18 # ncurses must be built before libdialog, libedit and libreadline.
19 # libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
20 # libopie must be built before libpam.
21 # libradius must be built before libpam.
22 # librpcsvc must be built before libpam.
23 # libsbuf must be built before libcam.
24 # libtacplus must be built before libpam.
25 # libutil must be built before libpam.
26 # libypclnt must be built before libpam.
27 # libgssapi must be built before librpcsec_gss
29 # Otherwise, the SUBDIR list should be in alphabetical order.
31 # Except it appears bind needs to be compiled last
33 SUBDIR_ORDERED= ${_csu} \
45 ${_libiconv_modules} \
60 .if ${MK_KERBEROS_SUPPORT} != "no"
61 SUBDIR_ORDERED+= libcom_err
64 SUBDIR= ${SUBDIR_ORDERED} \
137 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
138 _csu=csu/${MACHINE_ARCH}-elf
139 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
140 _csu=csu/${MACHINE_ARCH}
141 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
142 _csu=csu/${MACHINE_CPUARCH}
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_CASPER} != "no"
163 _libcapsicum= libcapsicum
164 _libcasper= libcasper
167 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
171 .if ${MK_GPIB} != "no"
175 .if ${MK_GSSAPI} != "no"
176 _libgssapi= libgssapi
177 _librpcsec_gss= librpcsec_gss
180 .if ${MK_ICONV} != "no"
181 _libiconv_modules= libiconv_modules
184 .if ${MK_LDNS} != "no"
188 .if ${MK_LIBCPLUSPLUS} != "no"
190 _libcplusplus= libc++
193 .if ${MK_LIBTHR} != "no"
197 .if ${MK_NAND} != "no"
198 _libnandfs= libnandfs
201 .if ${MK_NETGRAPH} != "no"
202 _libnetgraph= libnetgraph
205 .if ${MK_NIS} != "no"
206 _libypclnt= libypclnt
209 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
213 _librtld_db= librtld_db
216 .if ${MACHINE_CPUARCH} == "amd64"
217 _libvmmapi= libvmmapi
220 .if ${MACHINE_CPUARCH} == "ia64"
225 .if ${MACHINE_CPUARCH} == "mips"
227 _librtld_db= librtld_db
230 .if ${MACHINE_CPUARCH} == "powerpc"
232 _librtld_db= librtld_db
236 .if ${MACHINE_CPUARCH} == "sparc64"
240 .if ${MK_OPENSSL} != "no"
244 .if ${MK_PMC} != "no"
248 .if ${MK_SENDMAIL} != "no"
249 _libmilter= libmilter
252 _libsmutil= libsmutil
255 .if ${MK_TELNET} != "no"
256 _libtelnet= libtelnet
259 .if ${MK_TESTS} != "no"
264 .if ${MK_UNBOUND} != "no"
265 _libunbound= libunbound
268 .if ${MK_USB} != "no"
269 _libusbhid= libusbhid
273 .if !defined(LIBRARIES_ONLY)
275 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
282 .include <bsd.subdir.mk>