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 \ 27e4b0a90eSBrooks Davis geom \ 289b3e440bSWarner Losh libalias \ 299b3e440bSWarner Losh libarchive \ 30a1c70d69SIan Lepore libauditd \ 319b3e440bSWarner Losh libbegemot \ 3239cd938cSEd Schouten libblocksruntime \ 3381bd3d89SAdrian Chadd libbsdstat \ 34a1c70d69SIan Lepore libbsm \ 359b3e440bSWarner Losh libbz2 \ 369b3e440bSWarner Losh libcalendar \ 379b3e440bSWarner Losh libcam \ 387a6e3cf8SMariusz Zaborski libcapsicum \ 39ceb36bc9SMariusz Zaborski libcasper \ 409b3e440bSWarner Losh libcompat \ 41a1c70d69SIan Lepore libcrypt \ 4264de8019SJohn Baldwin libdevctl \ 439b3e440bSWarner Losh libdevinfo \ 449b3e440bSWarner Losh libdevstat \ 45*7c807d77SEd Maste libdl \ 469b3e440bSWarner Losh libdwarf \ 479b3e440bSWarner Losh libedit \ 485f8eed2fSEd Maste libelftc \ 490d9e60c8SBryan Drewery libevent \ 504b1fb8ffSEd Maste libexecinfo \ 519b3e440bSWarner Losh libexpat \ 529b3e440bSWarner Losh libfetch \ 53041394f3SDevin Teske libfigpar \ 549b3e440bSWarner Losh libgeom \ 55ec214349SKristof Provost libifconfig \ 569b3e440bSWarner Losh libipsec \ 579b3e440bSWarner Losh libjail \ 589b3e440bSWarner Losh libkiconv \ 59a1c70d69SIan Lepore libkvm \ 6081ad8388SMartin Matuska liblzma \ 619b3e440bSWarner Losh libmemstat \ 62a1c70d69SIan Lepore libmd \ 6343518607SKenneth D. Merry libmt \ 64127be1a7SAdrian Chadd lib80211 \ 656bea8766SBrooks Davis libnetbsd \ 66a1c70d69SIan Lepore libnv \ 67a36eca08SCraig Rodrigues libopenbsd \ 689b3e440bSWarner Losh libopie \ 699b3e440bSWarner Losh libpam \ 7082fcadcdSBryan Drewery libpathconv \ 71f39bffc6SKonstantin Belousov libpcap \ 72a1c70d69SIan Lepore libpjdlog \ 7354bb94d7SRui Paulo ${_libproc} \ 740daf62d9SStanislav Sedov libprocstat \ 75b37f6c98SKyle Evans libregex \ 76a1c70d69SIan Lepore librpcsvc \ 7735c05a4fSAdrian Chadd librss \ 789b3e440bSWarner Losh librt \ 79fb05b666SRui Paulo ${_librtld_db} \ 80a1c70d69SIan Lepore libsbuf \ 8191ee3463SIan Lepore libsmb \ 82362492e5SBaptiste Daroussin libsqlite3 \ 836486b015SJeremie Le Hen libstdbuf \ 84fc6f0665SEd Schouten libstdthreads \ 85d6fb4894SJohn Baldwin libsysdecode \ 86a1c70d69SIan Lepore libtacplus \ 879b3e440bSWarner Losh libthread_db \ 884ca4d6a8SBaptiste Daroussin libucl \ 899b3e440bSWarner Losh libufs \ 909b3e440bSWarner Losh libugidfw \ 919b3e440bSWarner Losh libulog \ 92a1c70d69SIan Lepore libutil \ 939b3e440bSWarner Losh ${_libvgl} \ 949b3e440bSWarner Losh libwrap \ 95d7790611SMarcel Moolenaar libxo \ 969b3e440bSWarner Losh liby \ 979b3e440bSWarner Losh libz \ 98e2290905SBaptiste Daroussin libzstd \ 99cd060b8dSEd Maste ncurses 10058f0484fSRodney W. Grimes 101a1c70d69SIan Lepore# Inter-library dependencies. When the makefile for a library contains LDADD 102a1c70d69SIan Lepore# libraries, those libraries should be listed as build order dependencies here. 103a1c70d69SIan Lepore 104e4b0a90eSBrooks DavisSUBDIR_DEPEND_geom= libufs 105a1c70d69SIan LeporeSUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd 106a1c70d69SIan LeporeSUBDIR_DEPEND_libauditdm= libbsm 107a1c70d69SIan LeporeSUBDIR_DEPEND_libbsnmp= ${_libnetgraph} 108468a365dSBryan DrewerySUBDIR_DEPEND_libc++:= libcxxrt 109a1c70d69SIan LeporeSUBDIR_DEPEND_libc= libcompiler_rt 110a1c70d69SIan LeporeSUBDIR_DEPEND_libcam= libsbuf 111c501d73cSMariusz ZaborskiSUBDIR_DEPEND_libcasper= libnv 112a1c70d69SIan LeporeSUBDIR_DEPEND_libdevstat= libkvm 1137fc89952SDevin TeskeSUBDIR_DEPEND_libdpv= libfigpar ncurses libutil 114a1c70d69SIan LeporeSUBDIR_DEPEND_libedit= ncurses 115a1c70d69SIan LeporeSUBDIR_DEPEND_libgeom= libexpat libsbuf 116bc53c94fSEnji CooperSUBDIR_DEPEND_librpcsec_gss= libgssapi 117a1c70d69SIan LeporeSUBDIR_DEPEND_libmagic= libz 118a1c70d69SIan LeporeSUBDIR_DEPEND_libmemstat= libkvm 119a1c70d69SIan LeporeSUBDIR_DEPEND_libopie= libmd 12031a741f4SEnji CooperSUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 121a1c70d69SIan LeporeSUBDIR_DEPEND_libpjdlog= libutil 122a1c70d69SIan LeporeSUBDIR_DEPEND_libprocstat= libkvm libutil 123a1c70d69SIan LeporeSUBDIR_DEPEND_libradius= libmd 124a1c70d69SIan LeporeSUBDIR_DEPEND_libsmb= libkiconv 125b626f5a7SGlen BarberSUBDIR_DEPEND_libtacplus= libmd 126a1c70d69SIan LeporeSUBDIR_DEPEND_libulog= libmd 127a1c70d69SIan LeporeSUBDIR_DEPEND_libunbound= ${_libldns} 12853200025SRui PauloSUBDIR_DEPEND_liblzma= ${_libthr} 129f39bffc6SKonstantin Belousov.if ${MK_OFED} != "no" 130f39bffc6SKonstantin BelousovSUBDIR_DEPEND_libpcap= ofed 131f39bffc6SKonstantin Belousov.endif 132a1c70d69SIan Lepore 133690f477dSSam Leffler# NB: keep these sorted by MK_* knobs 134690f477dSSam Leffler 135cd060b8dSEd MasteSUBDIR.${MK_ATM}+= libngatm 136cd060b8dSEd MasteSUBDIR.${MK_BLACKLIST}+=libblacklist 137cd060b8dSEd MasteSUBDIR.${MK_BLUETOOTH}+=libbluetooth libsdp 138cd060b8dSEd MasteSUBDIR.${MK_BSNMP}+= libbsnmp 139cd060b8dSEd Maste 140cd060b8dSEd Maste.if !defined(COMPAT_32BIT) && !defined(COMPAT_SOFTFP) 141cd060b8dSEd MasteSUBDIR.${MK_CLANG}+= clang 1425e1847b4SPoul-Henning Kamp.endif 1435e1847b4SPoul-Henning Kamp 144cd060b8dSEd MasteSUBDIR.${MK_CUSE}+= libcuse 145cd060b8dSEd MasteSUBDIR.${MK_CXX}+= libdevdctl 1465f8eed2fSEd MasteSUBDIR.${MK_TOOLCHAIN}+=libpe 147f987297fSEd MasteSUBDIR.${MK_DIALOG}+= libdpv 148cd060b8dSEd MasteSUBDIR.${MK_FILE}+= libmagic 149cd060b8dSEd MasteSUBDIR.${MK_GPIO}+= libgpio 150cd060b8dSEd MasteSUBDIR.${MK_GSSAPI}+= libgssapi librpcsec_gss 151cd060b8dSEd MasteSUBDIR.${MK_ICONV}+= libiconv_modules 152cd060b8dSEd MasteSUBDIR.${MK_KERBEROS_SUPPORT}+= libcom_err 153cd060b8dSEd MasteSUBDIR.${MK_LDNS}+= libldns 1547b5038d7SDag-Erling Smørgrav 1558028b78dSDimitry Andric# The libraries under libclang_rt can only be built by clang, and only make 1568028b78dSDimitry Andric# sense to build when clang is enabled at all. Furthermore, they can only be 1578028b78dSDimitry Andric# built for certain architectures. 1588028b78dSDimitry Andric.if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \ 159b78ee15eSRuslan Bukin (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 16071cb2dfcSWarner Losh ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "i386") 1618028b78dSDimitry Andric_libclang_rt= libclang_rt 1628028b78dSDimitry Andric.endif 1638028b78dSDimitry Andric 16435e370a2SDag-Erling Smørgrav.if ${MK_LIBCPLUSPLUS} != "no" 16535e370a2SDag-Erling Smørgrav_libcxxrt= libcxxrt 1668e69077bSDimitry Andric_libcplusplus= libc++ 1678e69077bSDimitry Andric_libcplusplus+= libc++experimental 1688e69077bSDimitry Andric.endif 16935e370a2SDag-Erling Smørgrav 170cd060b8dSEd MasteSUBDIR.${MK_EFI}+= libefivar 171cd060b8dSEd MasteSUBDIR.${MK_LIBTHR}+= libthr 172c7fbd772SEd MasteSUBDIR.${MK_LLVM_LIBUNWIND}+= libgcc_eh 173c7fbd772SEd MasteSUBDIR.${MK_LLVM_LIBUNWIND}+= libgcc_s 174cd060b8dSEd MasteSUBDIR.${MK_NAND}+= libnandfs 175cd060b8dSEd MasteSUBDIR.${MK_NETGRAPH}+= libnetgraph 176cd060b8dSEd MasteSUBDIR.${MK_NIS}+= libypclnt 177690f477dSSam Leffler 17825faff34SWarner Losh.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 179c9811e98SBruce Evans_libvgl= libvgl 180abbb0b30SMarcel Moolenaar.endif 181abbb0b30SMarcel Moolenaar 182cde6fa28SRuslan Bukin.if ${MACHINE_CPUARCH} == "aarch64" 183cde6fa28SRuslan BukinSUBDIR.${MK_PMC}+= libopencsd 184cde6fa28SRuslan Bukin.endif 185cde6fa28SRuslan Bukin 18670d8f36aSPeter Grehan.if ${MACHINE_CPUARCH} == "amd64" 18730b3274fSRuslan BukinSUBDIR.${MK_PMC}+= libipt 188cd060b8dSEd MasteSUBDIR.${MK_BHYVE}+= libvmmapi 18902629e46SEnji Cooper.endif 19070d8f36aSPeter Grehan 191df283203SEd Maste.if ${MACHINE_CPUARCH} != "sparc64" 192fcb56067SGeorge V. Neville-Neil_libproc= libproc 193fcb56067SGeorge V. Neville-Neil_librtld_db= librtld_db 194fcb56067SGeorge V. Neville-Neil.endif 195fcb56067SGeorge V. Neville-Neil 196cd060b8dSEd MasteSUBDIR.${MK_OPENSSL}+= libmp 197bc82609aSKyle EvansSUBDIR.${MK_PMC}+= libpmc libpmcstat 198cd060b8dSEd MasteSUBDIR.${MK_RADIUS_SUPPORT}+= libradius 199cd060b8dSEd MasteSUBDIR.${MK_SENDMAIL}+= libmilter libsm libsmdb libsmutil 200cd060b8dSEd MasteSUBDIR.${MK_TELNET}+= libtelnet 201cd060b8dSEd MasteSUBDIR.${MK_TESTS_SUPPORT}+= atf 202cd060b8dSEd MasteSUBDIR.${MK_TESTS}+= tests 203cd060b8dSEd MasteSUBDIR.${MK_UNBOUND}+= libunbound 204cd060b8dSEd MasteSUBDIR.${MK_USB}+= libusbhid libusb 205f39bffc6SKonstantin BelousovSUBDIR.${MK_OFED}+= ofed 2067920ad94SKyle EvansSUBDIR.${MK_ZFS}+= libbe 207a8ec1b48SMaxim Sobolev 20854ff5d73SDimitry Andric.if !make(install) 20954ff5d73SDimitry AndricSUBDIR_PARALLEL= 21054ff5d73SDimitry Andric.endif 21154ff5d73SDimitry Andric 21258f0484fSRodney W. Grimes.include <bsd.subdir.mk> 213