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# libldns must be built before libunbound. 16# msun must be built before libg++ and libstdc++. 17# libmd must be built before libatm, libopie, libradius, and libtacplus. 18# ncurses must be built before libdialog, libedit and libreadline. 19# libnetgraph must be built before libbsnmp/modules/snmp_netgraph. 20# libopie must be built before libpam. 21# libradius must be built before libpam. 22# librpcsvc must be built before libpam. 23# libsbuf must be built before libcam. 24# libtacplus must be built before libpam. 25# libutil must be built before libpam. 26# libypclnt must be built before libpam. 27# libgssapi must be built before librpcsec_gss 28# 29# Otherwise, the SUBDIR list should be in alphabetical order. 30# 31# Except it appears bind needs to be compiled last 32 33SUBDIR_ORDERED= ${_csu} \ 34 libc \ 35 libbsm \ 36 libauditd \ 37 libcompiler_rt \ 38 libcrypt \ 39 libelf \ 40 ${_libiconv_modules} \ 41 libkvm \ 42 ${_libldns} \ 43 msun \ 44 libmd \ 45 ncurses \ 46 ${_libnetgraph} \ 47 libradius \ 48 librpcsvc \ 49 libsbuf \ 50 libtacplus \ 51 libutil \ 52 ${_libypclnt} \ 53 ${_libcxxrt} \ 54 ${_libcplusplus} 55 56.if ${MK_KERBEROS_SUPPORT} != "no" 57SUBDIR_ORDERED+= libcom_err 58.endif 59 60SUBDIR= ${SUBDIR_ORDERED} \ 61 libalias \ 62 libarchive \ 63 ${_libatm} \ 64 libbegemot \ 65 libblocksruntime \ 66 ${_libbluetooth} \ 67 ${_libbsnmp} \ 68 libbz2 \ 69 libcalendar \ 70 libcam \ 71 libcompat \ 72 libdevinfo \ 73 libdevstat \ 74 libdwarf \ 75 libedit \ 76 ${_libefi} \ 77 libexecinfo \ 78 libexpat \ 79 libfetch \ 80 libgeom \ 81 ${_libgpib} \ 82 ${_libgssapi} \ 83 ${_librpcsec_gss} \ 84 libipsec \ 85 ${_libipx} \ 86 libjail \ 87 libkiconv \ 88 liblzma \ 89 libmagic \ 90 libmandoc \ 91 libmemstat \ 92 ${_libmilter} \ 93 ${_libmp} \ 94 ${_libnandfs} \ 95 libnetbsd \ 96 ${_libngatm} \ 97 libopie \ 98 libpam \ 99 libpcap \ 100 ${_libpmc} \ 101 ${_libproc} \ 102 libprocstat \ 103 librt \ 104 ${_librtld_db} \ 105 ${_libsdp} \ 106 ${_libsm} \ 107 ${_libsmb} \ 108 ${_libsmdb} \ 109 ${_libsmutil} \ 110 libstand \ 111 libstdbuf \ 112 libstdthreads \ 113 ${_libtelnet} \ 114 ${_libthr} \ 115 libthread_db \ 116 libufs \ 117 libugidfw \ 118 libulog \ 119 ${_libunbound} \ 120 ${_libusbhid} \ 121 ${_libusb} \ 122 ${_libvgl} \ 123 ${_libvmmapi} \ 124 libwrap \ 125 liby \ 126 libyaml \ 127 libz \ 128 ${_atf} \ 129 ${_clang} \ 130 ${_tests} 131 132.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 133_csu=csu/${MACHINE_ARCH}-elf 134.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 135_csu=csu/${MACHINE_ARCH} 136.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 137_csu=csu/${MACHINE_CPUARCH} 138.else 139_csu=csu 140.endif 141 142# NB: keep these sorted by MK_* knobs 143 144.if ${MK_ATM} != "no" 145_libngatm= libngatm 146.endif 147 148.if ${MK_BLUETOOTH} != "no" 149_libbluetooth= libbluetooth 150_libsdp= libsdp 151.endif 152 153.if ${MK_BSNMP} != "no" 154_libbsnmp= libbsnmp 155.endif 156 157.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 158_clang= clang 159.endif 160 161.if ${MK_GPIB} != "no" 162_libgpib= libgpib 163.endif 164 165.if ${MK_GSSAPI} != "no" 166_libgssapi= libgssapi 167_librpcsec_gss= librpcsec_gss 168.endif 169 170.if ${MK_ICONV} != "no" 171_libiconv_modules= libiconv_modules 172.endif 173 174.if ${MK_IPX} != "no" 175_libipx= libipx 176.endif 177 178.if ${MK_LDNS} != "no" 179_libldns= libldns 180.endif 181 182.if ${MK_LIBCPLUSPLUS} != "no" 183_libcxxrt= libcxxrt 184_libcplusplus= libc++ 185.endif 186 187.if ${MK_LIBTHR} != "no" 188_libthr= libthr 189.endif 190 191.if ${MK_NAND} != "no" 192_libnandfs= libnandfs 193.endif 194 195.if ${MK_NETGRAPH} != "no" 196_libnetgraph= libnetgraph 197.endif 198 199.if ${MK_NIS} != "no" 200_libypclnt= libypclnt 201.endif 202 203.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 204_libsmb= libsmb 205_libvgl= libvgl 206_libproc= libproc 207_librtld_db= librtld_db 208.endif 209 210.if ${MACHINE_CPUARCH} == "amd64" 211_libvmmapi= libvmmapi 212.endif 213 214.if ${MACHINE_CPUARCH} == "ia64" 215_libefi= libefi 216_libsmb= libsmb 217.endif 218 219.if ${MACHINE_CPUARCH} == "mips" 220_libproc= libproc 221_librtld_db= librtld_db 222.endif 223 224.if ${MACHINE_CPUARCH} == "powerpc" 225_libproc= libproc 226_librtld_db= librtld_db 227_libsmb= libsmb 228.endif 229 230.if ${MACHINE_CPUARCH} == "sparc64" 231_libsmb= libsmb 232.endif 233 234.if ${MK_OPENSSL} != "no" 235_libmp= libmp 236.endif 237 238.if ${MK_PMC} != "no" 239_libpmc= libpmc 240.endif 241 242.if ${MK_SENDMAIL} != "no" 243_libmilter= libmilter 244_libsm= libsm 245_libsmdb= libsmdb 246_libsmutil= libsmutil 247.endif 248 249.if ${MK_TELNET} != "no" 250_libtelnet= libtelnet 251.endif 252 253.if ${MK_TESTS} != "no" 254_atf= atf 255_tests= tests 256.endif 257 258.if ${MK_UNBOUND} != "no" 259_libunbound= libunbound 260.endif 261 262.if ${MK_USB} != "no" 263_libusbhid= libusbhid 264_libusb= libusb 265.endif 266 267.if !defined(LIBRARIES_ONLY) 268afterinstall: 269 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include 270.endif 271 272.include <bsd.subdir.mk> 273