158f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 27f3dea24SPeter Wemm# $FreeBSD$ 3c9811e98SBruce Evans 4e1fe3dbaSRuslan Ermilov.include <bsd.own.mk> 5e1fe3dbaSRuslan Ermilov 6c9811e98SBruce Evans# To satisfy shared library or ELF linkage when only the libraries being 7c9811e98SBruce Evans# built are visible: 8c9811e98SBruce Evans# 90f09aefaSBruce Evans# csu must be built before all shared libaries for ELF. 104064334fSRuslan Ermilov# libc must be built before all other shared libraries. 11719728bfSRobert Watson# libbsm must be built before libauditd. 12eae951c9SWarner Losh# libcom_err must be built before libpam. 13eae951c9SWarner Losh# libcrypt must be built before libpam. 14c4a5ef6eSThomas Moestl# libkvm must be built before libdevstat. 15a04f2acdSJosef Karthauser# msun must be built before libg++ and libstdc++. 16ccdee0d9SMark Murray# libmd must be built before libatm, libopie, libradius, and libtacplus. 17af5b5a0fSRong-En Fan# ncurses must be built before libdialog, libedit and libreadline. 18360b288fSHartmut Brandt# libnetgraph must be built before libbsnmp/modules/snmp_netgraph. 1914b42810SKris Kennaway# libopie must be built before libpam. 2060da54eeSJohn Polstra# libradius must be built before libpam. 2176ed168aSMark Murray# librpcsvc must be built before libpam. 2297b877c9SDag-Erling Smørgrav# libsbuf must be built before libcam. 2360da54eeSJohn Polstra# libtacplus must be built before libpam. 24c5da4b13SBruce Evans# libutil must be built before libpam. 2597b877c9SDag-Erling Smørgrav# libypclnt must be built before libpam. 268f55a568SDoug Rabson# libgssapi must be built before librpcsec_gss 27c9811e98SBruce Evans# 28c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order. 29eae951c9SWarner Losh# 30eae951c9SWarner Losh# Except it appears bind needs to be compiled last 31c9811e98SBruce Evans 329b3e440bSWarner LoshSUBDIR_ORDERED= ${_csu} \ 339b3e440bSWarner Losh libc \ 349b3e440bSWarner Losh libbsm \ 359b3e440bSWarner Losh libauditd \ 3639cd938cSEd Schouten libcompiler_rt \ 379b3e440bSWarner Losh libcrypt \ 389b3e440bSWarner Losh libelf \ 39ad30f8e7SGabor Kovesdan ${_libiconv_modules} \ 409b3e440bSWarner Losh libkvm \ 419b3e440bSWarner Losh msun \ 429b3e440bSWarner Losh libmd \ 439b3e440bSWarner Losh ncurses \ 449b3e440bSWarner Losh ${_libnetgraph} \ 459b3e440bSWarner Losh libradius \ 469b3e440bSWarner Losh librpcsvc \ 479b3e440bSWarner Losh libsbuf \ 489b3e440bSWarner Losh libtacplus \ 499b3e440bSWarner Losh libutil \ 5049c8e5e7SDimitry Andric ${_libypclnt} \ 5149c8e5e7SDimitry Andric ${_libcxxrt} \ 5249c8e5e7SDimitry Andric ${_libcplusplus} 539b3e440bSWarner Losh 540e46933cSStanislav Sedov.if ${MK_KERBEROS_SUPPORT} != "no" 550e46933cSStanislav SedovSUBDIR_ORDERED+= libcom_err 560e46933cSStanislav Sedov.endif 570e46933cSStanislav Sedov 589b3e440bSWarner LoshSUBDIR= ${SUBDIR_ORDERED} \ 599b3e440bSWarner Losh libalias \ 609b3e440bSWarner Losh libarchive \ 619b3e440bSWarner Losh ${_libatm} \ 629b3e440bSWarner Losh libbegemot \ 6339cd938cSEd Schouten libblocksruntime \ 649b3e440bSWarner Losh ${_libbluetooth} \ 659b3e440bSWarner Losh ${_libbsnmp} \ 669b3e440bSWarner Losh libbz2 \ 679b3e440bSWarner Losh libcalendar \ 689b3e440bSWarner Losh libcam \ 699b3e440bSWarner Losh libcompat \ 709b3e440bSWarner Losh libdevinfo \ 719b3e440bSWarner Losh libdevstat \ 729b3e440bSWarner Losh libdwarf \ 739b3e440bSWarner Losh libedit \ 749b3e440bSWarner Losh ${_libefi} \ 759b3e440bSWarner Losh libexpat \ 769b3e440bSWarner Losh libfetch \ 779b3e440bSWarner Losh libgeom \ 789b3e440bSWarner Losh ${_libgpib} \ 799b3e440bSWarner Losh ${_libgssapi} \ 809b3e440bSWarner Losh ${_librpcsec_gss} \ 819b3e440bSWarner Losh libipsec \ 829b3e440bSWarner Losh ${_libipx} \ 839b3e440bSWarner Losh libjail \ 849b3e440bSWarner Losh libkiconv \ 857b5038d7SDag-Erling Smørgrav ${_libldns} \ 8681ad8388SMartin Matuska liblzma \ 879b3e440bSWarner Losh libmagic \ 88cc4842a1SUlrich Spörlein libmandoc \ 899b3e440bSWarner Losh libmemstat \ 909b3e440bSWarner Losh ${_libmilter} \ 919b3e440bSWarner Losh ${_libmp} \ 927f725bcdSGrzegorz Bernacki ${_libnandfs} \ 936bea8766SBrooks Davis libnetbsd \ 949b3e440bSWarner Losh ${_libngatm} \ 959b3e440bSWarner Losh libopie \ 969b3e440bSWarner Losh libpam \ 979b3e440bSWarner Losh libpcap \ 989b3e440bSWarner Losh ${_libpmc} \ 9954bb94d7SRui Paulo ${_libproc} \ 1000daf62d9SStanislav Sedov libprocstat \ 1019b3e440bSWarner Losh librt \ 102fb05b666SRui Paulo ${_librtld_db} \ 1039b3e440bSWarner Losh ${_libsdp} \ 1049b3e440bSWarner Losh ${_libsm} \ 105*237abf0cSDavide Italiano ${_libsmb} \ 1069b3e440bSWarner Losh ${_libsmdb} \ 1079b3e440bSWarner Losh ${_libsmutil} \ 1089b3e440bSWarner Losh libstand \ 1096486b015SJeremie Le Hen libstdbuf \ 110fc6f0665SEd Schouten libstdthreads \ 1119b3e440bSWarner Losh ${_libtelnet} \ 1129b3e440bSWarner Losh ${_libthr} \ 1139b3e440bSWarner Losh libthread_db \ 1149b3e440bSWarner Losh libufs \ 1159b3e440bSWarner Losh libugidfw \ 1169b3e440bSWarner Losh libulog \ 1179b3e440bSWarner Losh ${_libusbhid} \ 1189b3e440bSWarner Losh ${_libusb} \ 1199b3e440bSWarner Losh ${_libvgl} \ 120366f6083SPeter Grehan ${_libvmmapi} \ 1219b3e440bSWarner Losh libwrap \ 1229b3e440bSWarner Losh liby \ 123e51c53f3SBaptiste Daroussin libyaml \ 1249b3e440bSWarner Losh libz \ 125c175365cSMarcel Moolenaar ${_atf} \ 1266513cfc8SRoman Divacky ${_bind} \ 1276513cfc8SRoman Divacky ${_clang} 12858f0484fSRodney W. Grimes 1292bef81cfSWarner Losh.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 1302bef81cfSWarner Losh_csu=csu/${MACHINE_ARCH}-elf 131b12277d1SNathan Whitehorn.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 132b12277d1SNathan Whitehorn_csu=csu/${MACHINE_ARCH} 13325faff34SWarner Losh.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 13425faff34SWarner Losh_csu=csu/${MACHINE_CPUARCH} 13556a91a6fSDavid E. O'Brien.else 13656a91a6fSDavid E. O'Brien_csu=csu 137b09f41a4SJohn Birrell.endif 138b09f41a4SJohn Birrell 139690f477dSSam Leffler# NB: keep these sorted by MK_* knobs 140690f477dSSam Leffler 141c175365cSMarcel Moolenaar.if ${MK_ATF} != "no" 142c175365cSMarcel Moolenaar_atf= atf 143c175365cSMarcel Moolenaar.endif 144c175365cSMarcel Moolenaar 145e1fe3dbaSRuslan Ermilov.if ${MK_ATM} != "no" 1469e9dbe04SHartmut Brandt_libngatm= libngatm 1475e1847b4SPoul-Henning Kamp.endif 1485e1847b4SPoul-Henning Kamp 149e1fe3dbaSRuslan Ermilov.if ${MK_BIND} != "no" 150cd3ee173SDag-Erling Smørgrav_bind= bind 151072355e0SPeter Wemm.endif 152072355e0SPeter Wemm 153e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no" 1540986ab12SMaksim Yevmenkin_libbluetooth= libbluetooth 1550986ab12SMaksim Yevmenkin_libsdp= libsdp 15618d948adSMaksim Yevmenkin.endif 15723d1e148SMaksim Yevmenkin 158690f477dSSam Leffler.if ${MK_BSNMP} != "no" 159690f477dSSam Leffler_libbsnmp= libbsnmp 160690f477dSSam Leffler.endif 161690f477dSSam Leffler 162bfc72ed5SEd Schouten.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 1636513cfc8SRoman Divacky_clang= clang 1646513cfc8SRoman Divacky.endif 1656513cfc8SRoman Divacky 166690f477dSSam Leffler.if ${MK_GPIB} != "no" 167690f477dSSam Leffler_libgpib= libgpib 168690f477dSSam Leffler.endif 169690f477dSSam Leffler 1706dc51ecaSRuslan Ermilov.if ${MK_GSSAPI} != "no" 1713fe21f77SDoug Barton_libgssapi= libgssapi 1728f55a568SDoug Rabson_librpcsec_gss= librpcsec_gss 1733fe21f77SDoug Barton.endif 1743fe21f77SDoug Barton 175ad30f8e7SGabor Kovesdan.if ${MK_ICONV} != "no" 176ad30f8e7SGabor Kovesdan_libiconv_modules= libiconv_modules 177ad30f8e7SGabor Kovesdan.endif 178ad30f8e7SGabor Kovesdan 179cea557adSRuslan Ermilov.if ${MK_IPX} != "no" 180cea557adSRuslan Ermilov_libipx= libipx 181cea557adSRuslan Ermilov.endif 182cea557adSRuslan Ermilov 1837b5038d7SDag-Erling Smørgrav.if ${MK_LDNS} != "no" 1847b5038d7SDag-Erling Smørgrav_libldns= libldns 1857b5038d7SDag-Erling Smørgrav.endif 1867b5038d7SDag-Erling Smørgrav 18735e370a2SDag-Erling Smørgrav.if ${MK_LIBCPLUSPLUS} != "no" 18835e370a2SDag-Erling Smørgrav_libcxxrt= libcxxrt 18935e370a2SDag-Erling Smørgrav_libcplusplus= libc++ 19035e370a2SDag-Erling Smørgrav.endif 19135e370a2SDag-Erling Smørgrav 192690f477dSSam Leffler.if ${MK_LIBTHR} != "no" 193690f477dSSam Leffler_libthr= libthr 194690f477dSSam Leffler.endif 195690f477dSSam Leffler 1967f725bcdSGrzegorz Bernacki.if ${MK_NAND} != "no" 1977f725bcdSGrzegorz Bernacki_libnandfs= libnandfs 1987f725bcdSGrzegorz Bernacki.endif 1997f725bcdSGrzegorz Bernacki 200690f477dSSam Leffler.if ${MK_NETGRAPH} != "no" 201690f477dSSam Leffler_libnetgraph= libnetgraph 202690f477dSSam Leffler.endif 203690f477dSSam Leffler 204690f477dSSam Leffler.if ${MK_NIS} != "no" 205690f477dSSam Leffler_libypclnt= libypclnt 206690f477dSSam Leffler.endif 207690f477dSSam Leffler 20825faff34SWarner Losh.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 209*237abf0cSDavide Italiano_libsmb= libsmb 210c9811e98SBruce Evans_libvgl= libvgl 21154bb94d7SRui Paulo_libproc= libproc 212fb05b666SRui Paulo_librtld_db= librtld_db 213abbb0b30SMarcel Moolenaar.endif 214abbb0b30SMarcel Moolenaar 21570d8f36aSPeter Grehan.if ${MACHINE_CPUARCH} == "amd64" 21670d8f36aSPeter Grehan_libvmmapi= libvmmapi 21770d8f36aSPeter Grehan.endif 21870d8f36aSPeter Grehan 21925faff34SWarner Losh.if ${MACHINE_CPUARCH} == "ia64" 220eb0a7e41SMarcel Moolenaar_libefi= libefi 221*237abf0cSDavide Italiano_libsmb= libsmb 222e108ac65SMarcel Moolenaar.endif 223e108ac65SMarcel Moolenaar 22407d39325SOleksandr Tymoshenko.if ${MACHINE_CPUARCH} == "mips" 22507d39325SOleksandr Tymoshenko_libproc= libproc 22607d39325SOleksandr Tymoshenko_librtld_db= librtld_db 22707d39325SOleksandr Tymoshenko.endif 22807d39325SOleksandr Tymoshenko 229c7570492SJustin Hibbits.if ${MACHINE_CPUARCH} == "powerpc" 230c7570492SJustin Hibbits_libproc= libproc 231c7570492SJustin Hibbits_librtld_db= librtld_db 232*237abf0cSDavide Italiano_libsmb= libsmb 233*237abf0cSDavide Italiano.endif 234*237abf0cSDavide Italiano 235*237abf0cSDavide Italiano.if ${MACHINE_CPUARCH} == "sparc64" 236*237abf0cSDavide Italiano_libsmb= libsmb 237c7570492SJustin Hibbits.endif 238c7570492SJustin Hibbits 239690f477dSSam Leffler.if ${MK_OPENSSL} != "no" 240690f477dSSam Leffler_libmp= libmp 241690f477dSSam Leffler.endif 242690f477dSSam Leffler 243690f477dSSam Leffler.if ${MK_PMC} != "no" 244690f477dSSam Leffler_libpmc= libpmc 245690f477dSSam Leffler.endif 246690f477dSSam Leffler 247690f477dSSam Leffler.if ${MK_SENDMAIL} != "no" 248690f477dSSam Leffler_libmilter= libmilter 249690f477dSSam Leffler_libsm= libsm 250690f477dSSam Leffler_libsmdb= libsmdb 251690f477dSSam Leffler_libsmutil= libsmutil 252690f477dSSam Leffler.endif 253690f477dSSam Leffler 254690f477dSSam Leffler.if ${MK_TELNET} != "no" 255690f477dSSam Leffler_libtelnet= libtelnet 256e9043a12SMike Makonnen.endif 257e9043a12SMike Makonnen 258e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no" 259f3e5ff40SBruce Evans_libusbhid= libusbhid 2606df55934SAndrew Thompson_libusb= libusb 261a8ec1b48SMaxim Sobolev.endif 262a8ec1b48SMaxim Sobolev 2637be23620SBrooks Davis.if !defined(LIBRARIES_ONLY) 2647c83e443STim Kientzleafterinstall: 2657be23620SBrooks Davis ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include 2667be23620SBrooks Davis.endif 2677c83e443STim Kientzle 26858f0484fSRodney W. Grimes.include <bsd.subdir.mk> 269