1 # @(#)Makefile 8.1 (Berkeley) 6/4/93
4 # To satisfy shared library or ELF linkage when only the libraries being
7 # csu must be built before all shared libaries for ELF.
8 # libcom_err must be built before libkrb5 and libpam.
9 # libcrypt must be built before libkrb5 and libpam.
10 # libkvm must be built before libdevstat.
11 # msun must be built before libg++ and libstdc++.
12 # libmd must be built before libatm, libopie, libradius, and libtacplus.
13 # libncurses must be built before libdialog, libedit and libreadline.
14 # libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
15 # libopie must be built before libpam.
16 # libradius must be built before libpam.
17 # librpcsvc must be built before libpam.
18 # libsbuf must be built before libcam.
19 # libtacplus must be built before libpam.
20 # libutil must be built before libpam.
21 # libypclnt must be built before libpam.
23 # Otherwise, the SUBDIR list should be in alphabetical order.
25 SUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd libncurses \
26 libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
27 ${_libypclnt} ${_compat} libalias libarchive ${_libatm} ${_libbind} \
28 ${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \
29 libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \
30 libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \
31 libipx libisc libkiconv libmenu ${_libmilter} ${_libmp} ${_libncp} \
32 ${_libngatm} libopie libpam libpanel libpcap \
33 ${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \
34 ${_libsmutil} libstand libtelnet ${_libthr} libufs libugidfw \
35 ${_libusbhid} ${_libvgl} libwrap libxpg4 liby libz
37 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
38 _csu=csu/${MACHINE_ARCH}-elf
39 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
40 _csu=csu/${MACHINE_ARCH}
54 .if ${MACHINE_ARCH} == "i386"
55 .if !defined(NO_BLUETOOTH)
56 _libbluetooth= libbluetooth
65 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "ia64" && \
66 ${MACHINE_ARCH} != "powerpc" && !defined(NOLIBC_R)
70 .if ${MACHINE_ARCH} != "arm"
74 .if ${MACHINE_ARCH} == "alpha"
79 .if !defined(NO_SENDMAIL)
86 .if !defined(NOCRYPT) && !defined(NO_OPENSSL)
90 .if ${MACHINE_ARCH} == "amd64"
95 .if ${MACHINE_ARCH} != "powerpc" && !defined(NOLIBPTHREAD)
96 _libpthread= libpthread
99 .if ${MACHINE_ARCH} != "amd64" && ${MACHINE_ARCH} != "arm" && \
105 _libusbhid= libusbhid
108 .if !defined(NO_YP_LIBC)
109 _libypclnt= libypclnt
112 .include <bsd.subdir.mk>