1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD$ 3 4.include <src.opts.mk> 5 6# The SUBDIR_ORDERED list is a small set of libraries which are used by many 7# of the other libraries. These are built first with a .WAIT between them 8# and the main list to avoid needing a SUBDIR_DEPEND line on every library 9# naming just these few items. 10 11SUBDIR_ORDERED= ${_csu} \ 12 .WAIT \ 13 libc \ 14 libc_nonshared \ 15 libcompiler_rt \ 16 ${_libcplusplus} \ 17 ${_libcxxrt} \ 18 libelf \ 19 msun 20 21# The main list; please keep these sorted alphabetically. 22 23SUBDIR= ${SUBDIR_ORDERED} \ 24 .WAIT \ 25 libalias \ 26 libarchive \ 27 ${_libatm} \ 28 libauditd \ 29 libbegemot \ 30 libblocksruntime \ 31 ${_libbluetooth} \ 32 ${_libbsnmp} \ 33 libbsdstat \ 34 libbsm \ 35 libbz2 \ 36 libcalendar \ 37 libcam \ 38 ${_libcapsicum} \ 39 ${_libcasper} \ 40 ${_libcom_err} \ 41 libcompat \ 42 libcrypt \ 43 libdevinfo \ 44 libdevstat \ 45 libdwarf \ 46 libedit \ 47 ${_libevent} \ 48 libexecinfo \ 49 libexpat \ 50 libfetch \ 51 libgeom \ 52 ${_libgpib} \ 53 ${_libgssapi} \ 54 ${_librpcsec_gss} \ 55 ${_libiconv_modules} \ 56 libipsec \ 57 libjail \ 58 libkiconv \ 59 libkvm \ 60 ${_libldns} \ 61 liblzma \ 62 libmagic \ 63 libmandoc \ 64 libmemstat \ 65 libmd \ 66 ${_libmilter} \ 67 ${_libmp} \ 68 ${_libnandfs} \ 69 libnetbsd \ 70 ${_libnetgraph} \ 71 ${_libngatm} \ 72 libnv \ 73 libohash \ 74 libopie \ 75 libpam \ 76 libpcap \ 77 libpjdlog \ 78 ${_libpmc} \ 79 ${_libproc} \ 80 libprocstat \ 81 libradius \ 82 librpcsvc \ 83 librt \ 84 ${_librtld_db} \ 85 libsbuf \ 86 ${_libsdp} \ 87 ${_libsm} \ 88 ${_libsmb} \ 89 ${_libsmdb} \ 90 ${_libsmutil} \ 91 libstand \ 92 libstdbuf \ 93 libstdthreads \ 94 libtacplus \ 95 ${_libtelnet} \ 96 ${_libthr} \ 97 libthread_db \ 98 libucl \ 99 libufs \ 100 libugidfw \ 101 libulog \ 102 ${_libunbound} \ 103 ${_libusbhid} \ 104 ${_libusb} \ 105 libutil \ 106 ${_libvgl} \ 107 ${_libvmmapi} \ 108 libwrap \ 109 libxo \ 110 liby \ 111 ${_libypclnt} \ 112 libz \ 113 ncurses \ 114 ${_atf} \ 115 ${_clang} \ 116 ${_cuse} \ 117 ${_tests} 118 119# Inter-library dependencies. When the makefile for a library contains LDADD 120# libraries, those libraries should be listed as build order dependencies here. 121 122SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd 123SUBDIR_DEPEND_libatm= libmd 124SUBDIR_DEPEND_libauditdm= libbsm 125SUBDIR_DEPEND_libbsnmp= ${_libnetgraph} 126SUBDIR_DEPEND_libc++= libcxxrt 127SUBDIR_DEPEND_libc= libcompiler_rt 128SUBDIR_DEPEND_libcam= libsbuf 129SUBDIR_DEPEND_libcapsicum= libnv 130SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog 131SUBDIR_DEPEND_libdevstat= libkvm 132SUBDIR_DEPEND_libdiaglog= ncurses 133SUBDIR_DEPEND_libedit= ncurses 134SUBDIR_DEPEND_libg++= msun 135SUBDIR_DEPEND_libgeom= libexpat libsbuf 136SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi 137SUBDIR_DEPEND_libmagic= libz 138SUBDIR_DEPEND_libmemstat= libkvm 139SUBDIR_DEPEND_libopie= libmd 140SUBDIR_DEPEND_libpam= libcrypt libopie libradius librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 141SUBDIR_DEPEND_libpjdlog= libutil 142SUBDIR_DEPEND_libprocstat= libkvm libutil 143SUBDIR_DEPEND_libradius= libmd 144SUBDIR_DEPEND_libreadline= ncurses 145SUBDIR_DEPEND_libsmb= libkiconv 146SUBDIR_DEPEND_libstdc++= msun 147SUBDIR_DEPEND_libtacplus= libmd 148SUBDIR_DEPEND_libulog= libmd 149SUBDIR_DEPEND_libunbound= ${_libldns} 150 151.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 152_csu=csu/${MACHINE_ARCH}-elf 153.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 154_csu=csu/${MACHINE_ARCH} 155.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 156_csu=csu/${MACHINE_CPUARCH} 157.else 158_csu=csu 159.endif 160 161# NB: keep these sorted by MK_* knobs 162 163.if ${MK_ATM} != "no" 164_libngatm= libngatm 165.endif 166 167.if ${MK_BLUETOOTH} != "no" 168_libbluetooth= libbluetooth 169_libsdp= libsdp 170.endif 171 172.if ${MK_BSNMP} != "no" 173_libbsnmp= libbsnmp 174.endif 175 176.if ${MK_CASPER} != "no" 177_libcapsicum= libcapsicum 178_libcasper= libcasper 179.endif 180 181.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 182_clang= clang 183.endif 184 185.if ${MK_CUSE} != "no" 186_cuse= libcuse 187.endif 188 189.if ${MK_GPIB} != "no" 190_libgpib= libgpib 191.endif 192 193.if ${MK_GSSAPI} != "no" 194_libgssapi= libgssapi 195_librpcsec_gss= librpcsec_gss 196.endif 197 198.if ${MK_ICONV} != "no" 199_libiconv_modules= libiconv_modules 200.endif 201 202.if ${MK_KERBEROS_SUPPORT} != "no" 203_libcom_err= libcom_err 204.endif 205 206.if ${MK_LDNS} != "no" 207_libldns= libldns 208.endif 209 210.if ${MK_LIBCPLUSPLUS} != "no" 211_libcxxrt= libcxxrt 212_libcplusplus= libc++ 213.endif 214 215.if ${MK_LIBTHR} != "no" 216_libthr= libthr 217.endif 218 219.if ${MK_NAND} != "no" 220_libnandfs= libnandfs 221.endif 222 223.if ${MK_NETGRAPH} != "no" 224_libnetgraph= libnetgraph 225.endif 226 227.if ${MK_NIS} != "no" 228_libypclnt= libypclnt 229.endif 230 231.if ${MK_PF} != "no" 232_libevent= libevent 233.endif 234 235.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 236_libsmb= libsmb 237_libvgl= libvgl 238_libproc= libproc 239_librtld_db= librtld_db 240.endif 241 242.if ${MACHINE_CPUARCH} == "amd64" 243_libvmmapi= libvmmapi 244.endif 245 246.if ${MACHINE_CPUARCH} == "mips" 247_libproc= libproc 248_librtld_db= librtld_db 249.endif 250 251.if ${MACHINE_CPUARCH} == "powerpc" 252_libproc= libproc 253_librtld_db= librtld_db 254_libsmb= libsmb 255.endif 256 257.if ${MACHINE_CPUARCH} == "sparc64" 258_libsmb= libsmb 259.endif 260 261.if ${MK_OPENSSL} != "no" 262_libmp= libmp 263.endif 264 265.if ${MK_PMC} != "no" 266_libpmc= libpmc 267.endif 268 269.if ${MK_SENDMAIL} != "no" 270_libmilter= libmilter 271_libsm= libsm 272_libsmdb= libsmdb 273_libsmutil= libsmutil 274.endif 275 276.if ${MK_TELNET} != "no" 277_libtelnet= libtelnet 278.endif 279 280.if ${MK_TESTS_SUPPORT} != "no" 281_atf= atf 282.endif 283.if ${MK_TESTS} != "no" 284_tests= tests 285.endif 286 287.if ${MK_UNBOUND} != "no" 288_libunbound= libunbound 289.endif 290 291.if ${MK_USB} != "no" 292_libusbhid= libusbhid 293_libusb= libusb 294.endif 295 296.if !defined(LIBRARIES_ONLY) 297afterinstall: 298 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include 299.endif 300 301.if !make(install) 302SUBDIR_PARALLEL= 303.endif 304 305.include <bsd.subdir.mk> 306