1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD$ 3 4.include <bsd.own.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 libasl \ 27 libarchive \ 28 ${_libatm} \ 29 libauditd \ 30 libbegemot \ 31 libblocksruntime \ 32 ${_libbluetooth} \ 33 ${_libbsnmp} \ 34 libbsm \ 35 libbz2 \ 36 libcalendar \ 37 libcam \ 38 ${_libcom_err} \ 39 libcompat \ 40 libcrypt \ 41 libdevinfo \ 42 libdevstat \ 43 libdispatch \ 44 libdpv \ 45 libdwarf \ 46 libedit \ 47 ${_libefi} \ 48 libexecinfo \ 49 libexpat \ 50 libfetch \ 51 libfigpar \ 52 libgeom \ 53 ${_libgpib} \ 54 ${_libgssapi} \ 55 ${_librpcsec_gss} \ 56 ${_libiconv_modules} \ 57 libipsec \ 58 ${_libipx} \ 59 libjail \ 60 libjansson \ 61 libkiconv \ 62 libkvm \ 63 liblaunch \ 64 ${_libldns} \ 65 liblzma \ 66 ${_libmagic} \ 67 libmach \ 68 libmagic \ 69 libmandoc \ 70 libmemstat \ 71 libmd \ 72 ${_libmilter} \ 73 ${_libmp} \ 74 libmt \ 75 ${_libnandfs} \ 76 libnetbsd \ 77 ${_libnetgraph} \ 78 ${_libngatm} \ 79 libnotify \ 80 libnv \ 81 libopie \ 82 libosxsupport \ 83 libpam \ 84 libpcap \ 85 ${_libpmc} \ 86 ${_libproc} \ 87 libprocstat \ 88 ${_libradius} \ 89 librpcsvc \ 90 librt \ 91 ${_librtld_db} \ 92 libsbuf \ 93 ${_libsdp} \ 94 ${_libsm} \ 95 ${_libsmb} \ 96 ${_libsmdb} \ 97 ${_libsmutil} \ 98 libstand \ 99 libstdbuf \ 100 libstdthreads \ 101 libSystem \ 102 libtacplus \ 103 ${_libtelnet} \ 104 ${_libthr} \ 105 libthread_db \ 106 libucl \ 107 libufs \ 108 libugidfw \ 109 libulog \ 110 ${_libunbound} \ 111 ${_libusbhid} \ 112 ${_libusb} \ 113 libutil \ 114 ${_libvgl} \ 115 ${_libvmmapi} \ 116 libwrap \ 117 libxpc \ 118 liby \ 119 ${_libypclnt} \ 120 libyaml \ 121 libz \ 122 ncurses \ 123 ${_atf} \ 124 ${_clang} \ 125 ${_tests} 126 127# Inter-library dependencies. When the makefile for a library contains LDADD 128# libraries, those libraries should be listed as build order dependencies here. 129 130SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd 131SUBDIR_DEPEND_libatm= libmd 132SUBDIR_DEPEND_libauditdm= libbsm 133SUBDIR_DEPEND_libbsnmp= ${_libnetgraph} 134SUBDIR_DEPEND_libc++= libcxxrt 135SUBDIR_DEPEND_libc= libcompiler_rt 136SUBDIR_DEPEND_libcam= libsbuf 137SUBDIR_DEPEND_libdevstat= libkvm 138SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil 139SUBDIR_DEPEND_libedit= ncurses 140SUBDIR_DEPEND_libg++= msun 141SUBDIR_DEPEND_libgeom= libexpat libsbuf 142SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi 143SUBDIR_DEPEND_libmagic= libz 144SUBDIR_DEPEND_libmemstat= libkvm 145SUBDIR_DEPEND_libopie= libmd 146SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 147SUBDIR_DEPEND_libpjdlog= libutil 148SUBDIR_DEPEND_libprocstat= libkvm libutil 149SUBDIR_DEPEND_libradius= libmd 150SUBDIR_DEPEND_libsmb= libkiconv 151SUBDIR_DEPEND_libstdc++= msun 152SUBDIR_DEPEND_libtacplus= libmd 153SUBDIR_DEPEND_libulog= libmd 154SUBDIR_DEPEND_libunbound= ${_libldns} 155 156.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 157_csu=csu/${MACHINE_ARCH}-elf 158.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 159_csu=csu/${MACHINE_ARCH} 160.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 161_csu=csu/${MACHINE_CPUARCH} 162.else 163_csu=csu 164.endif 165 166# NB: keep these sorted by MK_* knobs 167 168.if ${MK_ATM} != "no" 169_libngatm= libngatm 170.endif 171 172.if ${MK_BLUETOOTH} != "no" 173_libbluetooth= libbluetooth 174_libsdp= libsdp 175.endif 176 177.if ${MK_BSNMP} != "no" 178_libbsnmp= libbsnmp 179.endif 180 181.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 182_clang= clang 183.endif 184 185.if ${MK_FILE} != "no" 186_libmagic= libmagic 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_IPX} != "no" 207_libipx= libipx 208.endif 209 210.if ${MK_LDNS} != "no" 211_libldns= libldns 212.endif 213 214.if ${MK_LIBCPLUSPLUS} != "no" 215_libcxxrt= libcxxrt 216_libcplusplus= libc++ 217.endif 218 219.if ${MK_LIBTHR} != "no" 220_libthr= libthr 221.endif 222 223.if ${MK_NAND} != "no" 224_libnandfs= libnandfs 225.endif 226 227.if ${MK_NETGRAPH} != "no" 228_libnetgraph= libnetgraph 229.endif 230 231.if ${MK_NIS} != "no" 232_libypclnt= libypclnt 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.if ${MK_BHYVE} != "no" 244_libvmmapi= libvmmapi 245.endif 246.endif 247 248.if ${MACHINE_CPUARCH} == "ia64" 249_libefi= libefi 250_libsmb= libsmb 251.endif 252 253.if ${MACHINE_CPUARCH} == "mips" 254_libproc= libproc 255_librtld_db= librtld_db 256.endif 257 258 259.if ${MACHINE_CPUARCH} == "powerpc" 260_libproc= libproc 261_librtld_db= librtld_db 262_libsmb= libsmb 263.endif 264 265.if ${MACHINE_CPUARCH} == "sparc64" 266_libsmb= libsmb 267.endif 268 269.if ${MK_OPENSSL} != "no" 270_libmp= libmp 271.endif 272 273.if ${MK_PMC} != "no" 274_libpmc= libpmc 275.endif 276 277.if ${MK_RADIUS_SUPPORT} != "no" 278_libradius= libradius 279.endif 280 281.if ${MK_SENDMAIL} != "no" 282_libmilter= libmilter 283_libsm= libsm 284_libsmdb= libsmdb 285_libsmutil= libsmutil 286.endif 287 288.if ${MK_TELNET} != "no" 289_libtelnet= libtelnet 290.endif 291 292.if ${MK_TESTS} != "no" 293_atf= atf 294_tests= tests 295.endif 296 297.if ${MK_UNBOUND} != "no" 298_libunbound= libunbound 299.endif 300 301.if ${MK_USB} != "no" 302_libusbhid= libusbhid 303_libusb= libusb 304.endif 305 306.if !defined(LIBRARIES_ONLY) 307afterinstall: 308 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include 309.endif 310 311.if !make(install) 312SUBDIR_PARALLEL= 313.endif 314 315.include <bsd.subdir.mk> 316