158f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 27f3dea24SPeter Wemm# $FreeBSD$ 3c9811e98SBruce Evans 4c6063d0dSWarner Losh.include <src.opts.mk> 5e1fe3dbaSRuslan Ermilov 6a1c70d69SIan Lepore# The SUBDIR_ORDERED 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 119b3e440bSWarner LoshSUBDIR_ORDERED= ${_csu} \ 12b8fffe16SWarner Losh .WAIT \ 139b3e440bSWarner Losh libc \ 14091b8336SPeter Wemm libc_nonshared \ 1539cd938cSEd Schouten libcompiler_rt \ 16a1c70d69SIan Lepore ${_libcplusplus} \ 1749c8e5e7SDimitry Andric ${_libcxxrt} \ 18a1c70d69SIan Lepore libelf \ 19a1c70d69SIan Lepore msun 209b3e440bSWarner Losh 21a1c70d69SIan Lepore# The main list; please keep these sorted alphabetically. 220e46933cSStanislav Sedov 239b3e440bSWarner LoshSUBDIR= ${SUBDIR_ORDERED} \ 24b8fffe16SWarner Losh .WAIT \ 259b3e440bSWarner Losh libalias \ 269b3e440bSWarner Losh libarchive \ 279b3e440bSWarner Losh ${_libatm} \ 28a1c70d69SIan Lepore libauditd \ 299b3e440bSWarner Losh libbegemot \ 3039cd938cSEd Schouten libblocksruntime \ 319b3e440bSWarner Losh ${_libbluetooth} \ 329b3e440bSWarner Losh ${_libbsnmp} \ 3381bd3d89SAdrian Chadd libbsdstat \ 34a1c70d69SIan Lepore libbsm \ 359b3e440bSWarner Losh libbz2 \ 369b3e440bSWarner Losh libcalendar \ 379b3e440bSWarner Losh libcam \ 38a1c70d69SIan Lepore ${_libcapsicum} \ 3942a85952SPawel Jakub Dawidek ${_libcasper} \ 40a1c70d69SIan Lepore ${_libcom_err} \ 419b3e440bSWarner Losh libcompat \ 42a1c70d69SIan Lepore libcrypt \ 439b3e440bSWarner Losh libdevinfo \ 449b3e440bSWarner Losh libdevstat \ 457fc89952SDevin Teske libdpv \ 469b3e440bSWarner Losh libdwarf \ 479b3e440bSWarner Losh libedit \ 48f9721976SXin LI ${_libevent} \ 494b1fb8ffSEd Maste libexecinfo \ 509b3e440bSWarner Losh libexpat \ 519b3e440bSWarner Losh libfetch \ 52041394f3SDevin Teske libfigpar \ 539b3e440bSWarner Losh libgeom \ 549b3e440bSWarner Losh ${_libgpib} \ 55*f12128e4SRui Paulo libgpio \ 569b3e440bSWarner Losh ${_libgssapi} \ 579b3e440bSWarner Losh ${_librpcsec_gss} \ 58a1c70d69SIan Lepore ${_libiconv_modules} \ 599b3e440bSWarner Losh libipsec \ 609b3e440bSWarner Losh libjail \ 619b3e440bSWarner Losh libkiconv \ 62a1c70d69SIan Lepore libkvm \ 63a1c70d69SIan Lepore ${_libldns} \ 6481ad8388SMartin Matuska liblzma \ 659b3e440bSWarner Losh libmagic \ 66cc4842a1SUlrich Spörlein libmandoc \ 679b3e440bSWarner Losh libmemstat \ 68a1c70d69SIan Lepore libmd \ 699b3e440bSWarner Losh ${_libmilter} \ 709b3e440bSWarner Losh ${_libmp} \ 717f725bcdSGrzegorz Bernacki ${_libnandfs} \ 726bea8766SBrooks Davis libnetbsd \ 73a1c70d69SIan Lepore ${_libnetgraph} \ 749b3e440bSWarner Losh ${_libngatm} \ 75a1c70d69SIan Lepore libnv \ 76e806d508SBaptiste Daroussin libohash \ 779b3e440bSWarner Losh libopie \ 789b3e440bSWarner Losh libpam \ 799b3e440bSWarner Losh libpcap \ 80a1c70d69SIan Lepore libpjdlog \ 819b3e440bSWarner Losh ${_libpmc} \ 8254bb94d7SRui Paulo ${_libproc} \ 830daf62d9SStanislav Sedov libprocstat \ 84a1c70d69SIan Lepore libradius \ 85a1c70d69SIan Lepore librpcsvc \ 869b3e440bSWarner Losh librt \ 87fb05b666SRui Paulo ${_librtld_db} \ 88a1c70d69SIan Lepore libsbuf \ 899b3e440bSWarner Losh ${_libsdp} \ 909b3e440bSWarner Losh ${_libsm} \ 91237abf0cSDavide Italiano ${_libsmb} \ 929b3e440bSWarner Losh ${_libsmdb} \ 939b3e440bSWarner Losh ${_libsmutil} \ 94362492e5SBaptiste Daroussin libsqlite3 \ 959b3e440bSWarner Losh libstand \ 966486b015SJeremie Le Hen libstdbuf \ 97fc6f0665SEd Schouten libstdthreads \ 98a1c70d69SIan Lepore libtacplus \ 999b3e440bSWarner Losh ${_libtelnet} \ 1009b3e440bSWarner Losh ${_libthr} \ 1019b3e440bSWarner Losh libthread_db \ 1024ca4d6a8SBaptiste Daroussin libucl \ 1039b3e440bSWarner Losh libufs \ 1049b3e440bSWarner Losh libugidfw \ 1059b3e440bSWarner Losh libulog \ 1068f8790cdSDag-Erling Smørgrav ${_libunbound} \ 1079b3e440bSWarner Losh ${_libusbhid} \ 1089b3e440bSWarner Losh ${_libusb} \ 109a1c70d69SIan Lepore libutil \ 1109b3e440bSWarner Losh ${_libvgl} \ 111366f6083SPeter Grehan ${_libvmmapi} \ 1129b3e440bSWarner Losh libwrap \ 113d7790611SMarcel Moolenaar libxo \ 1149b3e440bSWarner Losh liby \ 115a1c70d69SIan Lepore ${_libypclnt} \ 1169b3e440bSWarner Losh libz \ 117a1c70d69SIan Lepore ncurses \ 118c175365cSMarcel Moolenaar ${_atf} \ 119cc21b86fSJulio Merino ${_clang} \ 12036716419SHans Petter Selasky ${_cuse} \ 121cc21b86fSJulio Merino ${_tests} 12258f0484fSRodney W. Grimes 123a1c70d69SIan Lepore# Inter-library dependencies. When the makefile for a library contains LDADD 124a1c70d69SIan Lepore# libraries, those libraries should be listed as build order dependencies here. 125a1c70d69SIan Lepore 126a1c70d69SIan LeporeSUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd 127a1c70d69SIan LeporeSUBDIR_DEPEND_libatm= libmd 128a1c70d69SIan LeporeSUBDIR_DEPEND_libauditdm= libbsm 129a1c70d69SIan LeporeSUBDIR_DEPEND_libbsnmp= ${_libnetgraph} 130a1c70d69SIan LeporeSUBDIR_DEPEND_libc++= libcxxrt 131a1c70d69SIan LeporeSUBDIR_DEPEND_libc= libcompiler_rt 132a1c70d69SIan LeporeSUBDIR_DEPEND_libcam= libsbuf 133a1c70d69SIan LeporeSUBDIR_DEPEND_libcapsicum= libnv 134a1c70d69SIan LeporeSUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog 135a1c70d69SIan LeporeSUBDIR_DEPEND_libdevstat= libkvm 1367fc89952SDevin TeskeSUBDIR_DEPEND_libdpv= libfigpar ncurses libutil 137a1c70d69SIan LeporeSUBDIR_DEPEND_libedit= ncurses 138a1c70d69SIan LeporeSUBDIR_DEPEND_libg++= msun 139a1c70d69SIan LeporeSUBDIR_DEPEND_libgeom= libexpat libsbuf 140a1c70d69SIan LeporeSUBDIR_DEPEND_liblibrpcsec_gss= libgssapi 141a1c70d69SIan LeporeSUBDIR_DEPEND_libmagic= libz 142a1c70d69SIan LeporeSUBDIR_DEPEND_libmemstat= libkvm 143a1c70d69SIan LeporeSUBDIR_DEPEND_libopie= libmd 144a1c70d69SIan LeporeSUBDIR_DEPEND_libpam= libcrypt libopie libradius librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 145a1c70d69SIan LeporeSUBDIR_DEPEND_libpjdlog= libutil 146a1c70d69SIan LeporeSUBDIR_DEPEND_libprocstat= libkvm libutil 147a1c70d69SIan LeporeSUBDIR_DEPEND_libradius= libmd 148a1c70d69SIan LeporeSUBDIR_DEPEND_libreadline= ncurses 149a1c70d69SIan LeporeSUBDIR_DEPEND_libsmb= libkiconv 150a1c70d69SIan LeporeSUBDIR_DEPEND_libstdc++= msun 151a1c70d69SIan LeporeSUBDIR_DEPEND_libtacplus= libmd 152a1c70d69SIan LeporeSUBDIR_DEPEND_libulog= libmd 153a1c70d69SIan LeporeSUBDIR_DEPEND_libunbound= ${_libldns} 154a1c70d69SIan Lepore 1552bef81cfSWarner Losh.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 1562bef81cfSWarner Losh_csu=csu/${MACHINE_ARCH}-elf 157b12277d1SNathan Whitehorn.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 158b12277d1SNathan Whitehorn_csu=csu/${MACHINE_ARCH} 15925faff34SWarner Losh.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 16025faff34SWarner Losh_csu=csu/${MACHINE_CPUARCH} 16156a91a6fSDavid E. O'Brien.else 16256a91a6fSDavid E. O'Brien_csu=csu 163b09f41a4SJohn Birrell.endif 164b09f41a4SJohn Birrell 165690f477dSSam Leffler# NB: keep these sorted by MK_* knobs 166690f477dSSam Leffler 167e1fe3dbaSRuslan Ermilov.if ${MK_ATM} != "no" 1689e9dbe04SHartmut Brandt_libngatm= libngatm 1695e1847b4SPoul-Henning Kamp.endif 1705e1847b4SPoul-Henning Kamp 171e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no" 1720986ab12SMaksim Yevmenkin_libbluetooth= libbluetooth 1730986ab12SMaksim Yevmenkin_libsdp= libsdp 17418d948adSMaksim Yevmenkin.endif 17523d1e148SMaksim Yevmenkin 176690f477dSSam Leffler.if ${MK_BSNMP} != "no" 177690f477dSSam Leffler_libbsnmp= libbsnmp 178690f477dSSam Leffler.endif 179690f477dSSam Leffler 18042a85952SPawel Jakub Dawidek.if ${MK_CASPER} != "no" 18142a85952SPawel Jakub Dawidek_libcapsicum= libcapsicum 18242a85952SPawel Jakub Dawidek_libcasper= libcasper 18342a85952SPawel Jakub Dawidek.endif 18442a85952SPawel Jakub Dawidek 185bfc72ed5SEd Schouten.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 1866513cfc8SRoman Divacky_clang= clang 1876513cfc8SRoman Divacky.endif 1886513cfc8SRoman Divacky 18936716419SHans Petter Selasky.if ${MK_CUSE} != "no" 19036716419SHans Petter Selasky_cuse= libcuse 19136716419SHans Petter Selasky.endif 19236716419SHans Petter Selasky 193690f477dSSam Leffler.if ${MK_GPIB} != "no" 194690f477dSSam Leffler_libgpib= libgpib 195690f477dSSam Leffler.endif 196690f477dSSam Leffler 1976dc51ecaSRuslan Ermilov.if ${MK_GSSAPI} != "no" 1983fe21f77SDoug Barton_libgssapi= libgssapi 1998f55a568SDoug Rabson_librpcsec_gss= librpcsec_gss 2003fe21f77SDoug Barton.endif 2013fe21f77SDoug Barton 202ad30f8e7SGabor Kovesdan.if ${MK_ICONV} != "no" 203ad30f8e7SGabor Kovesdan_libiconv_modules= libiconv_modules 204ad30f8e7SGabor Kovesdan.endif 205ad30f8e7SGabor Kovesdan 206a1c70d69SIan Lepore.if ${MK_KERBEROS_SUPPORT} != "no" 207a1c70d69SIan Lepore_libcom_err= libcom_err 208a1c70d69SIan Lepore.endif 209a1c70d69SIan Lepore 2107b5038d7SDag-Erling Smørgrav.if ${MK_LDNS} != "no" 2117b5038d7SDag-Erling Smørgrav_libldns= libldns 2127b5038d7SDag-Erling Smørgrav.endif 2137b5038d7SDag-Erling Smørgrav 21435e370a2SDag-Erling Smørgrav.if ${MK_LIBCPLUSPLUS} != "no" 21535e370a2SDag-Erling Smørgrav_libcxxrt= libcxxrt 21635e370a2SDag-Erling Smørgrav_libcplusplus= libc++ 21735e370a2SDag-Erling Smørgrav.endif 21835e370a2SDag-Erling Smørgrav 219690f477dSSam Leffler.if ${MK_LIBTHR} != "no" 220690f477dSSam Leffler_libthr= libthr 221690f477dSSam Leffler.endif 222690f477dSSam Leffler 2237f725bcdSGrzegorz Bernacki.if ${MK_NAND} != "no" 2247f725bcdSGrzegorz Bernacki_libnandfs= libnandfs 2257f725bcdSGrzegorz Bernacki.endif 2267f725bcdSGrzegorz Bernacki 227690f477dSSam Leffler.if ${MK_NETGRAPH} != "no" 228690f477dSSam Leffler_libnetgraph= libnetgraph 229690f477dSSam Leffler.endif 230690f477dSSam Leffler 231690f477dSSam Leffler.if ${MK_NIS} != "no" 232690f477dSSam Leffler_libypclnt= libypclnt 233690f477dSSam Leffler.endif 234690f477dSSam Leffler 235f9721976SXin LI.if ${MK_PF} != "no" 236f9721976SXin LI_libevent= libevent 237f9721976SXin LI.endif 238f9721976SXin LI 23925faff34SWarner Losh.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 240237abf0cSDavide Italiano_libsmb= libsmb 241c9811e98SBruce Evans_libvgl= libvgl 24254bb94d7SRui Paulo_libproc= libproc 243fb05b666SRui Paulo_librtld_db= librtld_db 244abbb0b30SMarcel Moolenaar.endif 245abbb0b30SMarcel Moolenaar 24670d8f36aSPeter Grehan.if ${MACHINE_CPUARCH} == "amd64" 24770d8f36aSPeter Grehan_libvmmapi= libvmmapi 24870d8f36aSPeter Grehan.endif 24970d8f36aSPeter Grehan 25007d39325SOleksandr Tymoshenko.if ${MACHINE_CPUARCH} == "mips" 25107d39325SOleksandr Tymoshenko_libproc= libproc 25207d39325SOleksandr Tymoshenko_librtld_db= librtld_db 25307d39325SOleksandr Tymoshenko.endif 25407d39325SOleksandr Tymoshenko 255c7570492SJustin Hibbits.if ${MACHINE_CPUARCH} == "powerpc" 256c7570492SJustin Hibbits_libproc= libproc 257c7570492SJustin Hibbits_librtld_db= librtld_db 258237abf0cSDavide Italiano_libsmb= libsmb 259237abf0cSDavide Italiano.endif 260237abf0cSDavide Italiano 261237abf0cSDavide Italiano.if ${MACHINE_CPUARCH} == "sparc64" 262237abf0cSDavide Italiano_libsmb= libsmb 263c7570492SJustin Hibbits.endif 264c7570492SJustin Hibbits 265690f477dSSam Leffler.if ${MK_OPENSSL} != "no" 266690f477dSSam Leffler_libmp= libmp 267690f477dSSam Leffler.endif 268690f477dSSam Leffler 269690f477dSSam Leffler.if ${MK_PMC} != "no" 270690f477dSSam Leffler_libpmc= libpmc 271690f477dSSam Leffler.endif 272690f477dSSam Leffler 273690f477dSSam Leffler.if ${MK_SENDMAIL} != "no" 274690f477dSSam Leffler_libmilter= libmilter 275690f477dSSam Leffler_libsm= libsm 276690f477dSSam Leffler_libsmdb= libsmdb 277690f477dSSam Leffler_libsmutil= libsmutil 278690f477dSSam Leffler.endif 279690f477dSSam Leffler 280690f477dSSam Leffler.if ${MK_TELNET} != "no" 281690f477dSSam Leffler_libtelnet= libtelnet 282e9043a12SMike Makonnen.endif 283e9043a12SMike Makonnen 284b55e8e6eSWarner Losh.if ${MK_TESTS_SUPPORT} != "no" 285e01d128aSJulio Merino_atf= atf 286b55e8e6eSWarner Losh.endif 287b55e8e6eSWarner Losh.if ${MK_TESTS} != "no" 288cc21b86fSJulio Merino_tests= tests 289e01d128aSJulio Merino.endif 290e01d128aSJulio Merino 2918f8790cdSDag-Erling Smørgrav.if ${MK_UNBOUND} != "no" 2928f8790cdSDag-Erling Smørgrav_libunbound= libunbound 2938f8790cdSDag-Erling Smørgrav.endif 2948f8790cdSDag-Erling Smørgrav 295e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no" 296f3e5ff40SBruce Evans_libusbhid= libusbhid 2976df55934SAndrew Thompson_libusb= libusb 298a8ec1b48SMaxim Sobolev.endif 299a8ec1b48SMaxim Sobolev 3007be23620SBrooks Davis.if !defined(LIBRARIES_ONLY) 3017c83e443STim Kientzleafterinstall: 3027be23620SBrooks Davis ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include 3037be23620SBrooks Davis.endif 3047c83e443STim Kientzle 30554ff5d73SDimitry Andric.if !make(install) 30654ff5d73SDimitry AndricSUBDIR_PARALLEL= 30754ff5d73SDimitry Andric.endif 30854ff5d73SDimitry Andric 30958f0484fSRodney W. Grimes.include <bsd.subdir.mk> 310