158f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 27f3dea24SPeter Wemm# $FreeBSD$ 3c9811e98SBruce Evans 4c6063d0dSWarner Losh.include <src.opts.mk> 5e1fe3dbaSRuslan Ermilov 6fa6d79e8SBryan Drewery# The SUBDIR_BOOTSTRAP list is a small set of libraries which are used by many 7a1c70d69SIan Lepore# of the other libraries. These are built first with a .WAIT between them 8a1c70d69SIan Lepore# and the main list to avoid needing a SUBDIR_DEPEND line on every library 9a1c70d69SIan Lepore# naming just these few items. 10c9811e98SBruce Evans 11fa6d79e8SBryan DrewerySUBDIR_BOOTSTRAP= \ 12fa6d79e8SBryan Drewery csu \ 13b8fffe16SWarner Losh .WAIT \ 149b3e440bSWarner Losh libc \ 15091b8336SPeter Wemm libc_nonshared \ 1639cd938cSEd Schouten libcompiler_rt \ 178028b78dSDimitry Andric ${_libclang_rt} \ 18a1c70d69SIan Lepore ${_libcplusplus} \ 1949c8e5e7SDimitry Andric ${_libcxxrt} \ 20a1c70d69SIan Lepore libelf \ 21a1c70d69SIan Lepore msun 229b3e440bSWarner Losh 23a1c70d69SIan Lepore# The main list; please keep these sorted alphabetically. 240e46933cSStanislav Sedov 25fa6d79e8SBryan DrewerySUBDIR= ${SUBDIR_BOOTSTRAP} \ 26b8fffe16SWarner Losh .WAIT \ 279b3e440bSWarner Losh libalias \ 289b3e440bSWarner Losh libarchive \ 29a1c70d69SIan Lepore libauditd \ 309b3e440bSWarner Losh libbegemot \ 3139cd938cSEd Schouten libblocksruntime \ 3281bd3d89SAdrian Chadd libbsdstat \ 33a1c70d69SIan Lepore libbsm \ 349b3e440bSWarner Losh libbz2 \ 359b3e440bSWarner Losh libcalendar \ 369b3e440bSWarner Losh libcam \ 377a6e3cf8SMariusz Zaborski libcapsicum \ 38ceb36bc9SMariusz Zaborski libcasper \ 399b3e440bSWarner Losh libcompat \ 40a1c70d69SIan Lepore libcrypt \ 4164de8019SJohn Baldwin libdevctl \ 429b3e440bSWarner Losh libdevinfo \ 439b3e440bSWarner Losh libdevstat \ 4499ac8154SKonstantin Belousov ${_libdl} \ 459b3e440bSWarner Losh libdwarf \ 469b3e440bSWarner Losh libedit \ 470d9e60c8SBryan Drewery libevent \ 484b1fb8ffSEd Maste libexecinfo \ 499b3e440bSWarner Losh libexpat \ 509b3e440bSWarner Losh libfetch \ 51041394f3SDevin Teske libfigpar \ 529b3e440bSWarner Losh libgeom \ 53ec214349SKristof Provost libifconfig \ 549b3e440bSWarner Losh libipsec \ 559b3e440bSWarner Losh libjail \ 569b3e440bSWarner Losh libkiconv \ 57a1c70d69SIan Lepore libkvm \ 5881ad8388SMartin Matuska liblzma \ 599b3e440bSWarner Losh libmemstat \ 60a1c70d69SIan Lepore libmd \ 6143518607SKenneth D. Merry libmt \ 62127be1a7SAdrian Chadd lib80211 \ 636bea8766SBrooks Davis libnetbsd \ 64a1c70d69SIan Lepore libnv \ 65a36eca08SCraig Rodrigues libopenbsd \ 669b3e440bSWarner Losh libopie \ 679b3e440bSWarner Losh libpam \ 68*82fcadcdSBryan Drewery libpathconv \ 699b3e440bSWarner Losh libpcap \ 70a1c70d69SIan Lepore libpjdlog \ 7154bb94d7SRui Paulo ${_libproc} \ 720daf62d9SStanislav Sedov libprocstat \ 73a1c70d69SIan Lepore librpcsvc \ 7435c05a4fSAdrian Chadd librss \ 759b3e440bSWarner Losh librt \ 76fb05b666SRui Paulo ${_librtld_db} \ 77a1c70d69SIan Lepore libsbuf \ 7891ee3463SIan Lepore libsmb \ 79362492e5SBaptiste Daroussin libsqlite3 \ 806486b015SJeremie Le Hen libstdbuf \ 81fc6f0665SEd Schouten libstdthreads \ 82d6fb4894SJohn Baldwin libsysdecode \ 83a1c70d69SIan Lepore libtacplus \ 849b3e440bSWarner Losh libthread_db \ 854ca4d6a8SBaptiste Daroussin libucl \ 869b3e440bSWarner Losh libufs \ 879b3e440bSWarner Losh libugidfw \ 889b3e440bSWarner Losh libulog \ 89a1c70d69SIan Lepore libutil \ 909b3e440bSWarner Losh ${_libvgl} \ 919b3e440bSWarner Losh libwrap \ 92d7790611SMarcel Moolenaar libxo \ 939b3e440bSWarner Losh liby \ 949b3e440bSWarner Losh libz \ 95e2290905SBaptiste Daroussin libzstd \ 96cd060b8dSEd Maste ncurses 9758f0484fSRodney W. Grimes 98a1c70d69SIan Lepore# Inter-library dependencies. When the makefile for a library contains LDADD 99a1c70d69SIan Lepore# libraries, those libraries should be listed as build order dependencies here. 100a1c70d69SIan Lepore 101a1c70d69SIan LeporeSUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd 102a1c70d69SIan LeporeSUBDIR_DEPEND_libauditdm= libbsm 103a1c70d69SIan LeporeSUBDIR_DEPEND_libbsnmp= ${_libnetgraph} 104468a365dSBryan DrewerySUBDIR_DEPEND_libc++:= libcxxrt 105a1c70d69SIan LeporeSUBDIR_DEPEND_libc= libcompiler_rt 106a1c70d69SIan LeporeSUBDIR_DEPEND_libcam= libsbuf 107c501d73cSMariusz ZaborskiSUBDIR_DEPEND_libcasper= libnv 108a1c70d69SIan LeporeSUBDIR_DEPEND_libdevstat= libkvm 1097fc89952SDevin TeskeSUBDIR_DEPEND_libdpv= libfigpar ncurses libutil 110a1c70d69SIan LeporeSUBDIR_DEPEND_libedit= ncurses 111a1c70d69SIan LeporeSUBDIR_DEPEND_libgeom= libexpat libsbuf 112bc53c94fSEnji CooperSUBDIR_DEPEND_librpcsec_gss= libgssapi 113a1c70d69SIan LeporeSUBDIR_DEPEND_libmagic= libz 114a1c70d69SIan LeporeSUBDIR_DEPEND_libmemstat= libkvm 115a1c70d69SIan LeporeSUBDIR_DEPEND_libopie= libmd 11631a741f4SEnji CooperSUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 117a1c70d69SIan LeporeSUBDIR_DEPEND_libpjdlog= libutil 118a1c70d69SIan LeporeSUBDIR_DEPEND_libprocstat= libkvm libutil 119a1c70d69SIan LeporeSUBDIR_DEPEND_libradius= libmd 120a1c70d69SIan LeporeSUBDIR_DEPEND_libsmb= libkiconv 121b626f5a7SGlen BarberSUBDIR_DEPEND_libtacplus= libmd 122a1c70d69SIan LeporeSUBDIR_DEPEND_libulog= libmd 123a1c70d69SIan LeporeSUBDIR_DEPEND_libunbound= ${_libldns} 12453200025SRui PauloSUBDIR_DEPEND_liblzma= ${_libthr} 125a1c70d69SIan Lepore 126690f477dSSam Leffler# NB: keep these sorted by MK_* knobs 127690f477dSSam Leffler 128cd060b8dSEd MasteSUBDIR.${MK_ATM}+= libngatm 129cd060b8dSEd MasteSUBDIR.${MK_BLACKLIST}+=libblacklist 130cd060b8dSEd MasteSUBDIR.${MK_BLUETOOTH}+=libbluetooth libsdp 131cd060b8dSEd MasteSUBDIR.${MK_BSNMP}+= libbsnmp 132cd060b8dSEd Maste 133cd060b8dSEd Maste.if !defined(COMPAT_32BIT) && !defined(COMPAT_SOFTFP) 134cd060b8dSEd MasteSUBDIR.${MK_CLANG}+= clang 1355e1847b4SPoul-Henning Kamp.endif 1365e1847b4SPoul-Henning Kamp 137cd060b8dSEd MasteSUBDIR.${MK_CUSE}+= libcuse 138cd060b8dSEd MasteSUBDIR.${MK_CXX}+= libdevdctl 139cd060b8dSEd MasteSUBDIR.${MK_TOOLCHAIN}+=libelftc libpe 140f987297fSEd MasteSUBDIR.${MK_DIALOG}+= libdpv 141cd060b8dSEd MasteSUBDIR.${MK_FILE}+= libmagic 142cd060b8dSEd MasteSUBDIR.${MK_GPIO}+= libgpio 143cd060b8dSEd MasteSUBDIR.${MK_GSSAPI}+= libgssapi librpcsec_gss 144cd060b8dSEd MasteSUBDIR.${MK_ICONV}+= libiconv_modules 145cd060b8dSEd MasteSUBDIR.${MK_KERBEROS_SUPPORT}+= libcom_err 146cd060b8dSEd MasteSUBDIR.${MK_LDNS}+= libldns 1477b5038d7SDag-Erling Smørgrav 1488028b78dSDimitry Andric# The libraries under libclang_rt can only be built by clang, and only make 1498028b78dSDimitry Andric# sense to build when clang is enabled at all. Furthermore, they can only be 1508028b78dSDimitry Andric# built for certain architectures. 1518028b78dSDimitry Andric.if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \ 152b78ee15eSRuslan Bukin (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 153b78ee15eSRuslan Bukin (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb") || \ 154b78ee15eSRuslan Bukin (${MACHINE_CPUARCH} == "i386")) 1558028b78dSDimitry Andric_libclang_rt= libclang_rt 1568028b78dSDimitry Andric.endif 1578028b78dSDimitry Andric 15835e370a2SDag-Erling Smørgrav.if ${MK_LIBCPLUSPLUS} != "no" 15935e370a2SDag-Erling Smørgrav_libcxxrt= libcxxrt 1608e69077bSDimitry Andric_libcplusplus= libc++ 1618e69077bSDimitry Andric_libcplusplus+= libc++experimental 1628e69077bSDimitry Andric.endif 16335e370a2SDag-Erling Smørgrav 164cd060b8dSEd MasteSUBDIR.${MK_EFI}+= libefivar 165cd060b8dSEd MasteSUBDIR.${MK_LIBTHR}+= libthr 166c7fbd772SEd MasteSUBDIR.${MK_LLVM_LIBUNWIND}+= libgcc_eh 167c7fbd772SEd MasteSUBDIR.${MK_LLVM_LIBUNWIND}+= libgcc_s 168cd060b8dSEd MasteSUBDIR.${MK_NAND}+= libnandfs 169cd060b8dSEd MasteSUBDIR.${MK_NETGRAPH}+= libnetgraph 170cd060b8dSEd MasteSUBDIR.${MK_NIS}+= libypclnt 171690f477dSSam Leffler 17225faff34SWarner Losh.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 173c9811e98SBruce Evans_libvgl= libvgl 174abbb0b30SMarcel Moolenaar.endif 175abbb0b30SMarcel Moolenaar 17670d8f36aSPeter Grehan.if ${MACHINE_CPUARCH} == "amd64" 177cd060b8dSEd MasteSUBDIR.${MK_BHYVE}+= libvmmapi 17802629e46SEnji Cooper.endif 17970d8f36aSPeter Grehan 180df283203SEd Maste.if ${MACHINE_CPUARCH} != "sparc64" 181fcb56067SGeorge V. Neville-Neil_libproc= libproc 182fcb56067SGeorge V. Neville-Neil_librtld_db= librtld_db 183fcb56067SGeorge V. Neville-Neil.endif 184fcb56067SGeorge V. Neville-Neil 18599ac8154SKonstantin Belousov.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mfilter} 18699ac8154SKonstantin Belousov_libdl= libdl 18799ac8154SKonstantin Belousov.endif 18899ac8154SKonstantin Belousov 189cd060b8dSEd MasteSUBDIR.${MK_OPENSSL}+= libmp 190d27927f7SRuslan BukinSUBDIR.${MK_PMC}+= libpmc libpmcstat 191cd060b8dSEd MasteSUBDIR.${MK_RADIUS_SUPPORT}+= libradius 192cd060b8dSEd MasteSUBDIR.${MK_SENDMAIL}+= libmilter libsm libsmdb libsmutil 193cd060b8dSEd MasteSUBDIR.${MK_TELNET}+= libtelnet 194cd060b8dSEd MasteSUBDIR.${MK_TESTS_SUPPORT}+= atf 195cd060b8dSEd MasteSUBDIR.${MK_TESTS}+= tests 196cd060b8dSEd MasteSUBDIR.${MK_UNBOUND}+= libunbound 197cd060b8dSEd MasteSUBDIR.${MK_USB}+= libusbhid libusb 198a8ec1b48SMaxim Sobolev 19954ff5d73SDimitry Andric.if !make(install) 20054ff5d73SDimitry AndricSUBDIR_PARALLEL= 20154ff5d73SDimitry Andric.endif 20254ff5d73SDimitry Andric 20358f0484fSRodney W. Grimes.include <bsd.subdir.mk> 204