1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD$ 3 4.include <bsd.own.mk> 5 6# To satisfy shared library or ELF linkage when only the libraries being 7# built are visible: 8# 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 libauditd. 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 27# 28# Otherwise, the SUBDIR list should be in alphabetical order. 29# 30# Except it appears bind needs to be compiled last 31 32SUBDIR_ORDERED= ${_csu} \ 33 libc \ 34 libbsm \ 35 libauditd \ 36 libcompiler_rt \ 37 libcrypt \ 38 libelf \ 39 ${_libiconv_modules} \ 40 libkvm \ 41 msun \ 42 libmd \ 43 ncurses \ 44 ${_libnetgraph} \ 45 libradius \ 46 librpcsvc \ 47 libsbuf \ 48 libtacplus \ 49 libutil \ 50 ${_libypclnt} \ 51 ${_libcxxrt} \ 52 ${_libcplusplus} 53 54.if ${MK_KERBEROS_SUPPORT} != "no" 55SUBDIR_ORDERED+= libcom_err 56.endif 57 58SUBDIR= ${SUBDIR_ORDERED} \ 59 libalias \ 60 libarchive \ 61 ${_libatm} \ 62 libbegemot \ 63 libblocksruntime \ 64 ${_libbluetooth} \ 65 ${_libbsnmp} \ 66 libbz2 \ 67 libcalendar \ 68 libcam \ 69 libcompat \ 70 libdevinfo \ 71 libdevstat \ 72 libdisk \ 73 libdwarf \ 74 libedit \ 75 ${_libefi} \ 76 libexpat \ 77 libfetch \ 78 libgeom \ 79 ${_libgpib} \ 80 ${_libgssapi} \ 81 ${_librpcsec_gss} \ 82 libipsec \ 83 ${_libipx} \ 84 libjail \ 85 libkiconv \ 86 liblzma \ 87 libmagic \ 88 libmemstat \ 89 ${_libmilter} \ 90 ${_libmp} \ 91 ${_libncp} \ 92 ${_libngatm} \ 93 libopie \ 94 libpam \ 95 libpcap \ 96 ${_libpmc} \ 97 ${_libproc} \ 98 libprocstat \ 99 librt \ 100 ${_librtld_db} \ 101 ${_libsdp} \ 102 ${_libsm} \ 103 ${_libsmb} \ 104 ${_libsmdb} \ 105 ${_libsmutil} \ 106 libstand \ 107 libstdthreads \ 108 ${_libtelnet} \ 109 ${_libthr} \ 110 libthread_db \ 111 libufs \ 112 libugidfw \ 113 libulog \ 114 ${_libusbhid} \ 115 ${_libusb} \ 116 ${_libvgl} \ 117 libwrap \ 118 liby \ 119 libz \ 120 ${_bind} \ 121 ${_clang} 122 123.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 124_csu=csu/${MACHINE_ARCH}-elf 125.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 126_csu=csu/${MACHINE_ARCH} 127.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 128_csu=csu/${MACHINE_CPUARCH} 129.else 130_csu=csu 131.endif 132 133# NB: keep these sorted by MK_* knobs 134 135.if ${MK_ATM} != "no" 136_libngatm= libngatm 137.endif 138 139.if ${MK_BIND} != "no" 140_bind= bind 141.endif 142 143.if ${MK_BLUETOOTH} != "no" 144_libbluetooth= libbluetooth 145_libsdp= libsdp 146.endif 147 148.if ${MK_BSNMP} != "no" 149_libbsnmp= libbsnmp 150.endif 151 152.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 153_clang= clang 154.endif 155 156.if ${MK_GPIB} != "no" 157_libgpib= libgpib 158.endif 159 160.if ${MK_GSSAPI} != "no" 161_libgssapi= libgssapi 162_librpcsec_gss= librpcsec_gss 163.endif 164 165.if ${MK_ICONV} != "no" 166_libiconv_modules= libiconv_modules 167.endif 168 169.if ${MK_IPX} != "no" 170_libipx= libipx 171.endif 172 173.if ${MK_LIBTHR} != "no" 174_libthr= libthr 175.endif 176 177.if ${MK_NETGRAPH} != "no" 178_libnetgraph= libnetgraph 179.endif 180 181.if ${MK_NIS} != "no" 182_libypclnt= libypclnt 183.endif 184 185.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 186.if ${MK_NCP} != "no" 187_libncp= libncp 188.endif 189_libsmb= libsmb 190_libvgl= libvgl 191_libproc= libproc 192_librtld_db= librtld_db 193.endif 194 195.if ${MACHINE_CPUARCH} == "ia64" 196_libefi= libefi 197_libsmb= libsmb 198.endif 199 200.if ${MACHINE_CPUARCH} == "mips" 201_libproc= libproc 202_librtld_db= librtld_db 203.endif 204 205.if ${MACHINE_CPUARCH} == "powerpc" 206_libsmb= libsmb 207.endif 208 209.if ${MACHINE_CPUARCH} == "sparc64" 210_libsmb= libsmb 211.endif 212 213.if ${MK_OPENSSL} != "no" 214_libmp= libmp 215.endif 216 217.if ${MK_LIBCPLUSPLUS} != "no" 218_libcxxrt= libcxxrt 219_libcplusplus= libc++ 220.endif 221 222.if ${MK_PMC} != "no" 223_libpmc= libpmc 224.endif 225 226.if ${MK_SENDMAIL} != "no" 227_libmilter= libmilter 228_libsm= libsm 229_libsmdb= libsmdb 230_libsmutil= libsmutil 231.endif 232 233.if ${MK_TELNET} != "no" 234_libtelnet= libtelnet 235.endif 236 237.if ${MK_USB} != "no" 238_libusbhid= libusbhid 239_libusb= libusb 240.endif 241 242.include <bsd.subdir.mk> 243