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