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. 114afa3718SMark Murray# libcom_err must be built before libkrb5 and libpam. 124afa3718SMark Murray# libcrypt must be built before libkrb5 and libpam. 13c4a5ef6eSThomas Moestl# libkvm must be built before libdevstat. 14a04f2acdSJosef Karthauser# msun must be built before libg++ and libstdc++. 15ccdee0d9SMark Murray# libmd must be built before libatm, libopie, libradius, and libtacplus. 16af5b5a0fSRong-En Fan# ncurses must be built before libdialog, libedit and libreadline. 17360b288fSHartmut Brandt# libnetgraph must be built before libbsnmp/modules/snmp_netgraph. 1814b42810SKris Kennaway# libopie must be built before libpam. 1960da54eeSJohn Polstra# libradius must be built before libpam. 2076ed168aSMark Murray# librpcsvc must be built before libpam. 2197b877c9SDag-Erling Smørgrav# libsbuf must be built before libcam. 2260da54eeSJohn Polstra# libtacplus must be built before libpam. 23c5da4b13SBruce Evans# libutil must be built before libpam. 2497b877c9SDag-Erling Smørgrav# libypclnt must be built before libpam. 258f55a568SDoug Rabson# libgssapi must be built before librpcsec_gss 26c9811e98SBruce Evans# 27c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order. 28c9811e98SBruce Evans 29d5a857fbSAlexander KabaevSUBDIR= ${_csu} libc libbsm libcom_err libcrypt libelf libkvm msun libmd \ 30690f477dSSam Leffler ncurses ${_libnetgraph} libradius librpcsvc libsbuf \ 31690f477dSSam Leffler libtacplus libutil ${_libypclnt} libalias libarchive ${_libatm} \ 32690f477dSSam Leffler libbegemot ${_libbluetooth} ${_libbsnmp} libbz2 \ 33ea7075ebSOlivier Houchard libcalendar libcam libcompat libdevinfo libdevstat libdisk \ 340cb540ceSJohn Birrell libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \ 358f55a568SDoug Rabson ${_libgssapi} ${_librpcsec_gss} libipsec \ 36af5b5a0fSRong-En Fan ${_libipx} libkiconv libmagic libmemstat ${_libmilter} ${_libmp} \ 37af5b5a0fSRong-En Fan ${_libncp} ${_libngatm} libopie libpam libpcap \ 38690f477dSSam Leffler ${_libpmc} libproc librt ${_libsdp} ${_libsm} ${_libsmb} \ 397ae5a033SDavid Xu ${_libsmdb} \ 40690f477dSSam Leffler ${_libsmutil} libstand ${_libtelnet} ${_libthr} libthread_db libufs \ 416f0e1ffdSAlfred Perlstein libugidfw ${_libusbhid} ${_libusb20} ${_libvgl} libwrap liby libz \ 426f0e1ffdSAlfred Perlstein ${_bind} 4358f0484fSRodney W. Grimes 4466422f5bSPeter Wemm.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 4566422f5bSPeter Wemm_csu=csu/${MACHINE_ARCH}-elf 4656a91a6fSDavid E. O'Brien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 47c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH} 4856a91a6fSDavid E. O'Brien.else 4956a91a6fSDavid E. O'Brien_csu=csu 50b09f41a4SJohn Birrell.endif 51b09f41a4SJohn Birrell 52690f477dSSam Leffler# NB: keep these sorted by MK_* knobs 53690f477dSSam Leffler 54e1fe3dbaSRuslan Ermilov.if ${MK_ATM} != "no" 559e9dbe04SHartmut Brandt_libngatm= libngatm 565e1847b4SPoul-Henning Kamp.endif 575e1847b4SPoul-Henning Kamp 58e1fe3dbaSRuslan Ermilov.if ${MK_BIND} != "no" 59cd3ee173SDag-Erling Smørgrav_bind= bind 60072355e0SPeter Wemm.endif 61072355e0SPeter Wemm 62e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no" 630986ab12SMaksim Yevmenkin_libbluetooth= libbluetooth 640986ab12SMaksim Yevmenkin_libsdp= libsdp 6518d948adSMaksim Yevmenkin.endif 6623d1e148SMaksim Yevmenkin 67690f477dSSam Leffler.if ${MK_BSNMP} != "no" 68690f477dSSam Leffler_libbsnmp= libbsnmp 69690f477dSSam Leffler.endif 70690f477dSSam Leffler 71690f477dSSam Leffler.if ${MK_GPIB} != "no" 72690f477dSSam Leffler_libgpib= libgpib 73690f477dSSam Leffler.endif 74690f477dSSam Leffler 756dc51ecaSRuslan Ermilov.if ${MK_GSSAPI} != "no" 763fe21f77SDoug Barton_libgssapi= libgssapi 778f55a568SDoug Rabson_librpcsec_gss= librpcsec_gss 783fe21f77SDoug Barton.endif 793fe21f77SDoug Barton 80cea557adSRuslan Ermilov.if ${MK_IPX} != "no" 81cea557adSRuslan Ermilov_libipx= libipx 82cea557adSRuslan Ermilov.endif 83cea557adSRuslan Ermilov 84690f477dSSam Leffler.if ${MK_LIBTHR} != "no" 85690f477dSSam Leffler_libthr= libthr 86690f477dSSam Leffler.endif 87690f477dSSam Leffler 88690f477dSSam Leffler.if ${MK_NETGRAPH} != "no" 89690f477dSSam Leffler_libnetgraph= libnetgraph 90690f477dSSam Leffler.endif 91690f477dSSam Leffler 92690f477dSSam Leffler.if ${MK_NIS} != "no" 93690f477dSSam Leffler_libypclnt= libypclnt 94690f477dSSam Leffler.endif 95690f477dSSam Leffler 9623d1e148SMaksim Yevmenkin.if ${MACHINE_ARCH} == "i386" 97cea557adSRuslan Ermilov.if ${MK_NCP} != "no" 9818d948adSMaksim Yevmenkin_libncp= libncp 99cea557adSRuslan Ermilov.endif 10023eb26faSSheldon Hearn_libsmb= libsmb 101c9811e98SBruce Evans_libvgl= libvgl 102abbb0b30SMarcel Moolenaar.endif 103abbb0b30SMarcel Moolenaar 104e108ac65SMarcel Moolenaar.if ${MACHINE_ARCH} == "ia64" 105e108ac65SMarcel Moolenaar_libsmb= libsmb 106e108ac65SMarcel Moolenaar.endif 107e108ac65SMarcel Moolenaar 10855434686SPeter Wemm.if ${MACHINE_ARCH} == "amd64" 109cea557adSRuslan Ermilov.if ${MK_NCP} != "no" 11055434686SPeter Wemm_libncp= libncp 111cea557adSRuslan Ermilov.endif 11255434686SPeter Wemm_libsmb= libsmb 1133d823985SDaniel Eischen.endif 1143d823985SDaniel Eischen 11559fa7082SR. Imura.if ${MACHINE_ARCH} == "powerpc" 11659fa7082SR. Imura_libsmb= libsmb 11759fa7082SR. Imura.endif 11859fa7082SR. Imura 119690f477dSSam Leffler.if ${MK_OPENSSL} != "no" 120690f477dSSam Leffler_libmp= libmp 121690f477dSSam Leffler.endif 122690f477dSSam Leffler 123690f477dSSam Leffler.if ${MK_PMC} != "no" 124690f477dSSam Leffler_libpmc= libpmc 125690f477dSSam Leffler.endif 126690f477dSSam Leffler 127690f477dSSam Leffler.if ${MK_SENDMAIL} != "no" 128690f477dSSam Leffler_libmilter= libmilter 129690f477dSSam Leffler_libsm= libsm 130690f477dSSam Leffler_libsmdb= libsmdb 131690f477dSSam Leffler_libsmutil= libsmutil 132690f477dSSam Leffler.endif 133690f477dSSam Leffler 134690f477dSSam Leffler.if ${MK_TELNET} != "no" 135690f477dSSam Leffler_libtelnet= libtelnet 136e9043a12SMike Makonnen.endif 137e9043a12SMike Makonnen 138e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no" 139f3e5ff40SBruce Evans_libusbhid= libusbhid 1406f0e1ffdSAlfred Perlstein_libusb20= libusb20 141a8ec1b48SMaxim Sobolev.endif 142a8ec1b48SMaxim Sobolev 14358f0484fSRodney W. Grimes.include <bsd.subdir.mk> 144