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} \
51 SUBDIR= ${SUBDIR_ORDERED} \
114 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
115 _csu=csu/${MACHINE_ARCH}-elf
116 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
117 _csu=csu/${MACHINE_ARCH}
122 # NB: keep these sorted by MK_* knobs
124 .if ${MK_ATM} != "no"
128 .if ${MK_BIND} != "no"
132 .if ${MK_BLUETOOTH} != "no"
133 _libbluetooth= libbluetooth
137 .if ${MK_BSNMP} != "no"
141 .if ${MK_CLANG} != "no"
145 .if ${MK_GPIB} != "no"
149 .if ${MK_GSSAPI} != "no"
150 _libgssapi= libgssapi
151 _librpcsec_gss= librpcsec_gss
154 .if ${MK_IPX} != "no"
158 .if ${MK_LIBTHR} != "no"
162 .if ${MK_NETGRAPH} != "no"
163 _libnetgraph= libnetgraph
166 .if ${MK_NIS} != "no"
167 _libypclnt= libypclnt
170 .if ${MACHINE_ARCH} == "i386"
171 .if ${MK_NCP} != "no"
178 .if ${MACHINE_ARCH} == "ia64"
183 .if ${MACHINE_ARCH} == "amd64"
184 .if ${MK_NCP} != "no"
191 .if ${MACHINE_ARCH} == "powerpc"
195 .if ${MACHINE_ARCH} == "sparc64"
199 .if ${MK_OPENSSL} != "no"
203 .if ${MK_PMC} != "no"
207 .if ${MK_PKGTOOLS} != "no"
211 .if ${MK_SENDMAIL} != "no"
212 _libmilter= libmilter
215 _libsmutil= libsmutil
218 .if ${MK_TELNET} != "no"
219 _libtelnet= libtelnet
222 .if ${MK_USB} != "no"
223 _libusbhid= libusbhid
227 .include <bsd.subdir.mk>