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 # libc must be built before all other shared libraries
9 # libcom_err must be built before libkrb5 and libpam.
10 # libcrypt must be built before libkrb5 and libpam.
11 # libkvm must be built before libdevstat.
12 # msun must be built before libg++ and libstdc++.
13 # libmd must be built before libatm, libopie, libradius, and libtacplus.
14 # ncurses must be built before libdialog, libedit and libreadline.
15 # libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
16 # libopie must be built before libpam.
17 # libradius must be built before libpam.
18 # librpcsvc must be built before libpam.
19 # libsbuf must be built before libcam.
20 # libtacplus must be built before libpam.
21 # libutil must be built before libpam.
22 # libypclnt must be built before libpam.
24 # Otherwise, the SUBDIR list should be in alphabetical order.
26 SUBDIR= ${_csu} libc libbsm libcom_err libcrypt libkvm msun libmd ncurses \
27 libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
28 ${_libypclnt} libalias libarchive ${_libatm} \
29 libbegemot ${_libbluetooth} libbsnmp libbz2 ${_libc_r} \
30 libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \
31 libedit libexpat libfetch libftpio libgeom ${_libgpib} \
33 libipx libkiconv libmagic libmemstat ${_libmilter} ${_libmp} \
34 ${_libncp} ${_libngatm} libopie libpam libpcap \
35 libpmc ${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \
36 ${_libsmutil} libstand libtelnet ${_libthr} ${_libthread_db} libufs \
37 libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind}
39 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
40 _csu=csu/${MACHINE_ARCH}-elf
41 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
42 _csu=csu/${MACHINE_ARCH}
56 .if !defined(NO_BLUETOOTH)
57 _libbluetooth= libbluetooth
61 .if ${MACHINE_ARCH} == "i386"
67 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "ia64" && \
68 ${MACHINE_ARCH} != "powerpc" && !defined(NO_LIBC_R)
72 .if ${MACHINE_ARCH} != "arm"
76 .if ${MACHINE_ARCH} == "alpha"
80 .if !defined(NO_SENDMAIL)
87 .if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
91 .if ${MACHINE_ARCH} == "amd64"
96 .if !defined(NO_LIBPTHREAD)
97 _libpthread= libpthread
100 .if !defined(NO_LIBTHR)
104 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "powerpc"
105 _libthread_db= libthread_db
109 _libusbhid= libusbhid
113 _libypclnt= libypclnt
116 .if !defined(NO_GPIB)
120 .include <bsd.subdir.mk>