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 libstdbuf \ 108 libstdthreads \ 109 ${_libtelnet} \ 110 ${_libthr} \ 111 libthread_db \ 112 libufs \ 113 libugidfw \ 114 libulog \ 115 ${_libusbhid} \ 116 ${_libusb} \ 117 ${_libvgl} \ 118 libwrap \ 119 liby \ 120 libz \ 121 ${_bind} \ 122 ${_clang} 123 124.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 125_csu=csu/${MACHINE_ARCH}-elf 126.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 127_csu=csu/${MACHINE_ARCH} 128.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 129_csu=csu/${MACHINE_CPUARCH} 130.else 131_csu=csu 132.endif 133 134# NB: keep these sorted by MK_* knobs 135 136.if ${MK_ATM} != "no" 137_libngatm= libngatm 138.endif 139 140.if ${MK_BIND} != "no" 141_bind= bind 142.endif 143 144.if ${MK_BLUETOOTH} != "no" 145_libbluetooth= libbluetooth 146_libsdp= libsdp 147.endif 148 149.if ${MK_BSNMP} != "no" 150_libbsnmp= libbsnmp 151.endif 152 153.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 154_clang= clang 155.endif 156 157.if ${MK_GPIB} != "no" 158_libgpib= libgpib 159.endif 160 161.if ${MK_GSSAPI} != "no" 162_libgssapi= libgssapi 163_librpcsec_gss= librpcsec_gss 164.endif 165 166.if ${MK_ICONV} != "no" 167_libiconv_modules= libiconv_modules 168.endif 169 170.if ${MK_IPX} != "no" 171_libipx= libipx 172.endif 173 174.if ${MK_LIBTHR} != "no" 175_libthr= libthr 176.endif 177 178.if ${MK_NETGRAPH} != "no" 179_libnetgraph= libnetgraph 180.endif 181 182.if ${MK_NIS} != "no" 183_libypclnt= libypclnt 184.endif 185 186.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 187.if ${MK_NCP} != "no" 188_libncp= libncp 189.endif 190_libsmb= libsmb 191_libvgl= libvgl 192_libproc= libproc 193_librtld_db= librtld_db 194.endif 195 196.if ${MACHINE_CPUARCH} == "ia64" 197_libefi= libefi 198_libsmb= libsmb 199.endif 200 201.if ${MACHINE_CPUARCH} == "mips" 202_libproc= libproc 203_librtld_db= librtld_db 204.endif 205 206.if ${MACHINE_CPUARCH} == "powerpc" 207_libsmb= libsmb 208.endif 209 210.if ${MACHINE_CPUARCH} == "sparc64" 211_libsmb= libsmb 212.endif 213 214.if ${MK_OPENSSL} != "no" 215_libmp= libmp 216.endif 217 218.if ${MK_LIBCPLUSPLUS} != "no" 219_libcxxrt= libcxxrt 220_libcplusplus= libc++ 221.endif 222 223.if ${MK_PMC} != "no" 224_libpmc= libpmc 225.endif 226 227.if ${MK_SENDMAIL} != "no" 228_libmilter= libmilter 229_libsm= libsm 230_libsmdb= libsmdb 231_libsmutil= libsmutil 232.endif 233 234.if ${MK_TELNET} != "no" 235_libtelnet= libtelnet 236.endif 237 238.if ${MK_USB} != "no" 239_libusbhid= libusbhid 240_libusb= libusb 241.endif 242 243.include <bsd.subdir.mk> 244