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} \
139 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
140 _csu=csu/${MACHINE_ARCH}-elf
141 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
142 _csu=csu/${MACHINE_ARCH}
143 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
144 _csu=csu/${MACHINE_CPUARCH}
149 # NB: keep these sorted by MK_* knobs
151 .if ${MK_ATM} != "no"
155 .if ${MK_BLUETOOTH} != "no"
156 _libbluetooth= libbluetooth
160 .if ${MK_BSNMP} != "no"
164 .if ${MK_CASPER} != "no"
165 _libcapsicum= libcapsicum
166 _libcasper= libcasper
169 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
173 .if ${MK_GPIB} != "no"
177 .if ${MK_GSSAPI} != "no"
178 _libgssapi= libgssapi
179 _librpcsec_gss= librpcsec_gss
182 .if ${MK_ICONV} != "no"
183 _libiconv_modules= libiconv_modules
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 _libvmmapi= libvmmapi
226 .if ${MACHINE_CPUARCH} == "ia64"
231 .if ${MACHINE_CPUARCH} == "mips"
233 _librtld_db= librtld_db
236 .if ${MACHINE_CPUARCH} == "powerpc"
238 _librtld_db= librtld_db
242 .if ${MACHINE_CPUARCH} == "sparc64"
246 .if ${MK_OPENSSL} != "no"
250 .if ${MK_PMC} != "no"
254 .if ${MK_SENDMAIL} != "no"
255 _libmilter= libmilter
258 _libsmutil= libsmutil
261 .if ${MK_TELNET} != "no"
262 _libtelnet= libtelnet
265 .if ${MK_TESTS} != "no"
270 .if ${MK_UNBOUND} != "no"
271 _libunbound= libunbound
274 .if ${MK_USB} != "no"
275 _libusbhid= libusbhid
279 .if !defined(LIBRARIES_ONLY)
281 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
284 .include <bsd.subdir.mk>