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 # msun must be built before libg++ and libstdc++.
16 # libmd must be built before libatm, libopie, libradius, and libtacplus.
17 # ncurses must be built before libdialog, libedit and libreadline.
18 # libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
19 # libopie must be built before libpam.
20 # libradius must be built before libpam.
21 # librpcsvc must be built before libpam.
22 # libsbuf must be built before libcam.
23 # libtacplus must be built before libpam.
24 # libutil must be built before libpam.
25 # libypclnt must be built before libpam.
26 # libgssapi must be built before librpcsec_gss
28 # Otherwise, the SUBDIR list should be in alphabetical order.
30 # Except it appears bind needs to be compiled last
32 SUBDIR_ORDERED= ${_csu} \
39 ${_libiconv_modules} \
54 .if ${MK_KERBEROS_SUPPORT} != "no"
55 SUBDIR_ORDERED+= libcom_err
58 SUBDIR= ${SUBDIR_ORDERED} \
131 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
132 _csu=csu/${MACHINE_ARCH}-elf
133 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
134 _csu=csu/${MACHINE_ARCH}
135 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
136 _csu=csu/${MACHINE_CPUARCH}
141 # NB: keep these sorted by MK_* knobs
143 .if ${MK_ATF} != "no"
147 .if ${MK_ATM} != "no"
151 .if ${MK_BIND} != "no"
155 .if ${MK_BLUETOOTH} != "no"
156 _libbluetooth= libbluetooth
160 .if ${MK_BSNMP} != "no"
164 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
168 .if ${MK_GPIB} != "no"
172 .if ${MK_GSSAPI} != "no"
173 _libgssapi= libgssapi
174 _librpcsec_gss= librpcsec_gss
177 .if ${MK_ICONV} != "no"
178 _libiconv_modules= libiconv_modules
181 .if ${MK_IPX} != "no"
185 .if ${MK_LDNS} != "no"
189 .if ${MK_LIBCPLUSPLUS} != "no"
191 _libcplusplus= libc++
194 .if ${MK_LIBICONV_COMPAT} != "no"
195 _libiconv_compat= libiconv_compat
198 .if ${MK_LIBTHR} != "no"
202 .if ${MK_NAND} != "no"
203 _libnandfs= libnandfs
206 .if ${MK_NETGRAPH} != "no"
207 _libnetgraph= libnetgraph
210 .if ${MK_NIS} != "no"
211 _libypclnt= libypclnt
214 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
218 _librtld_db= librtld_db
221 .if ${MACHINE_CPUARCH} == "amd64"
222 _libvmmapi= libvmmapi
225 .if ${MACHINE_CPUARCH} == "ia64"
230 .if ${MACHINE_CPUARCH} == "mips"
232 _librtld_db= librtld_db
235 .if ${MACHINE_CPUARCH} == "powerpc"
237 _librtld_db= librtld_db
241 .if ${MACHINE_CPUARCH} == "sparc64"
245 .if ${MK_OPENSSL} != "no"
249 .if ${MK_PMC} != "no"
253 .if ${MK_SENDMAIL} != "no"
254 _libmilter= libmilter
257 _libsmutil= libsmutil
260 .if ${MK_TELNET} != "no"
261 _libtelnet= libtelnet
264 .if ${MK_USB} != "no"
265 _libusbhid= libusbhid
269 .if !defined(LIBRARIES_ONLY)
271 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
274 .include <bsd.subdir.mk>