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 libkrb5 and libpam.
13 # libcrypt must be built before libkrb5 and 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 SUBDIR= ${_csu} libc libbsm libauditd libcom_err libcrypt libelf libkvm msun \
32 ncurses ${_libnetgraph} libradius librpcsvc libsbuf \
33 libtacplus libutil ${_libypclnt} libalias libarchive \
34 ${_libatm} libbegemot ${_libbluetooth} ${_libbsnmp} libbz2 \
35 libcalendar libcam libcompat libdevinfo libdevstat libdisk \
36 libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \
37 ${_libgssapi} ${_librpcsec_gss} libipsec \
38 ${_libipx} libjail libkiconv libmagic libmemstat ${_libmilter} \
39 ${_libmp} ${_libncp} ${_libngatm} libopie libpam libpcap \
40 ${_libpmc} libproc librt ${_libsdp} ${_libsm} ${_libsmb} \
41 ${_libsmdb} ${_libsmutil} libstand \
42 ${_libtelnet} ${_libthr} libthread_db libufs libugidfw libulog \
43 ${_libusbhid} ${_libusb} ${_libvgl} libwrap liby libz \
46 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
47 _csu=csu/${MACHINE_ARCH}-elf
48 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
49 _csu=csu/${MACHINE_ARCH}
54 # NB: keep these sorted by MK_* knobs
60 .if ${MK_BIND} != "no"
64 .if ${MK_BLUETOOTH} != "no"
65 _libbluetooth= libbluetooth
69 .if ${MK_BSNMP} != "no"
73 .if ${MK_GPIB} != "no"
77 .if ${MK_GSSAPI} != "no"
79 _librpcsec_gss= librpcsec_gss
86 .if ${MK_LIBTHR} != "no"
90 .if ${MK_NETGRAPH} != "no"
91 _libnetgraph= libnetgraph
98 .if ${MACHINE_ARCH} == "i386"
106 .if ${MACHINE_ARCH} == "ia64"
110 .if ${MACHINE_ARCH} == "amd64"
111 .if ${MK_NCP} != "no"
118 .if ${MACHINE_ARCH} == "powerpc"
122 .if ${MK_OPENSSL} != "no"
126 .if ${MK_PMC} != "no"
130 .if ${MK_SENDMAIL} != "no"
131 _libmilter= libmilter
134 _libsmutil= libsmutil
137 .if ${MK_TELNET} != "no"
138 _libtelnet= libtelnet
141 .if ${MK_USB} != "no"
142 _libusbhid= libusbhid
146 .include <bsd.subdir.mk>