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 ibauditd.
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} \
52 SUBDIR= ${SUBDIR_ORDERED} \
117 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
118 _csu=csu/${MACHINE_ARCH}-elf
119 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
120 _csu=csu/${MACHINE_ARCH}
121 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
122 _csu=csu/${MACHINE_CPUARCH}
127 # NB: keep these sorted by MK_* knobs
129 .if ${MK_ATM} != "no"
133 .if ${MK_BIND} != "no"
137 .if ${MK_BLUETOOTH} != "no"
138 _libbluetooth= libbluetooth
142 .if ${MK_BSNMP} != "no"
146 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
150 .if ${MK_GPIB} != "no"
154 .if ${MK_GSSAPI} != "no"
155 _libgssapi= libgssapi
156 _librpcsec_gss= librpcsec_gss
159 .if ${MK_IPX} != "no"
163 .if ${MK_LIBTHR} != "no"
167 .if ${MK_NETGRAPH} != "no"
168 _libnetgraph= libnetgraph
171 .if ${MK_NIS} != "no"
172 _libypclnt= libypclnt
175 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
176 .if ${MK_NCP} != "no"
182 _librtld_db= librtld_db
185 .if ${MACHINE_CPUARCH} == "ia64"
190 .if ${MACHINE_CPUARCH} == "amd64"
191 .if ${MK_NCP} != "no"
196 .if ${MACHINE_CPUARCH} == "powerpc"
200 .if ${MACHINE_CPUARCH} == "sparc64"
204 .if ${MK_OPENSSL} != "no"
208 .if ${MK_PMC} != "no"
212 .if ${MK_PKGTOOLS} != "no"
216 .if ${MK_SENDMAIL} != "no"
217 _libmilter= libmilter
220 _libsmutil= libsmutil
223 .if ${MK_TELNET} != "no"
224 _libtelnet= libtelnet
227 .if ${MK_USB} != "no"
228 _libusbhid= libusbhid
232 .include <bsd.subdir.mk>