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 libfigpar \ 52 libgeom \ 53 ${_libgpib} \ 54 ${_libgssapi} \ 55 ${_librpcsec_gss} \ 56 ${_libiconv_modules} \ 57 libipsec \ 58 libjail \ 59 libkiconv \ 60 libkvm \ 61 ${_libldns} \ 62 liblzma \ 63 libmagic \ 64 libmandoc \ 65 libmemstat \ 66 libmd \ 67 ${_libmilter} \ 68 ${_libmp} \ 69 ${_libnandfs} \ 70 libnetbsd \ 71 ${_libnetgraph} \ 72 ${_libngatm} \ 73 libnv \ 74 libohash \ 75 libopie \ 76 libpam \ 77 libpcap \ 78 libpjdlog \ 79 ${_libpmc} \ 80 ${_libproc} \ 81 libprocstat \ 82 libradius \ 83 librpcsvc \ 84 librt \ 85 ${_librtld_db} \ 86 libsbuf \ 87 ${_libsdp} \ 88 ${_libsm} \ 89 ${_libsmb} \ 90 ${_libsmdb} \ 91 ${_libsmutil} \ 92 libstand \ 93 libstdbuf \ 94 libstdthreads \ 95 libtacplus \ 96 ${_libtelnet} \ 97 ${_libthr} \ 98 libthread_db \ 99 libucl \ 100 libufs \ 101 libugidfw \ 102 libulog \ 103 ${_libunbound} \ 104 ${_libusbhid} \ 105 ${_libusb} \ 106 libutil \ 107 ${_libvgl} \ 108 ${_libvmmapi} \ 109 libwrap \ 110 libxo \ 111 liby \ 112 ${_libypclnt} \ 113 libz \ 114 ncurses \ 115 ${_atf} \ 116 ${_clang} \ 117 ${_cuse} \ 118 ${_tests} 119 120# Inter-library dependencies. When the makefile for a library contains LDADD 121# libraries, those libraries should be listed as build order dependencies here. 122 123SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd 124SUBDIR_DEPEND_libatm= libmd 125SUBDIR_DEPEND_libauditdm= libbsm 126SUBDIR_DEPEND_libbsnmp= ${_libnetgraph} 127SUBDIR_DEPEND_libc++= libcxxrt 128SUBDIR_DEPEND_libc= libcompiler_rt 129SUBDIR_DEPEND_libcam= libsbuf 130SUBDIR_DEPEND_libcapsicum= libnv 131SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog 132SUBDIR_DEPEND_libdevstat= libkvm 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