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 # libfigpar must be built before libdpv (but after ncurses and libutil).
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} \
41 ${_libiconv_modules} \
57 SUBDIR= ${SUBDIR_ORDERED} \
126 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
127 _csu=csu/${MACHINE_ARCH}-elf
128 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
129 _csu=csu/${MACHINE_ARCH}
130 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
131 _csu=csu/${MACHINE_CPUARCH}
136 # NB: keep these sorted by MK_* knobs
138 .if ${MK_ATM} != "no"
142 .if ${MK_BIND} != "no"
146 .if ${MK_BLUETOOTH} != "no"
147 _libbluetooth= libbluetooth
151 .if ${MK_BSNMP} != "no"
155 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
159 .if ${MK_GPIB} != "no"
163 .if ${MK_GSSAPI} != "no"
164 _libgssapi= libgssapi
165 _librpcsec_gss= librpcsec_gss
168 .if ${MK_ICONV} != "no"
169 _libiconv_modules= libiconv_modules
172 .if ${MK_IPX} != "no"
176 .if ${MK_LIBCPLUSPLUS} != "no"
178 _libcplusplus= libc++
181 .if ${MK_LIBTHR} != "no"
185 .if ${MK_NETGRAPH} != "no"
186 _libnetgraph= libnetgraph
189 .if ${MK_NIS} != "no"
190 _libypclnt= libypclnt
193 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
194 .if ${MK_NCP} != "no"
200 _librtld_db= librtld_db
203 .if ${MACHINE_CPUARCH} == "ia64"
208 .if ${MACHINE_CPUARCH} == "amd64"
209 .if ${MK_NCP} != "no"
214 .if ${MACHINE_CPUARCH} == "powerpc"
218 .if ${MACHINE_CPUARCH} == "sparc64"
222 .if ${MK_OPENSSL} != "no"
226 .if ${MK_PMC} != "no"
230 .if ${MK_SENDMAIL} != "no"
231 _libmilter= libmilter
234 _libsmutil= libsmutil
237 .if ${MK_TELNET} != "no"
238 _libtelnet= libtelnet
241 .if ${MK_USB} != "no"
242 _libusbhid= libusbhid
250 .include <bsd.subdir.mk>