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. 117a0a89d2SRobert Watson# libbsm must be built before ibauditd. 124afa3718SMark Murray# libcom_err must be built before libkrb5 and libpam. 134afa3718SMark Murray# libcrypt must be built before libkrb5 and 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. 29c9811e98SBruce Evans 307a0a89d2SRobert WatsonSUBDIR= ${_csu} libc libbsm libauditd libcom_err libcrypt libelf libkvm msun \ 317a0a89d2SRobert Watson libmd \ 32690f477dSSam Leffler ncurses ${_libnetgraph} libradius librpcsvc libsbuf \ 33690f477dSSam Leffler libtacplus libutil ${_libypclnt} libalias libarchive ${_libatm} \ 34690f477dSSam Leffler libbegemot ${_libbluetooth} ${_libbsnmp} libbz2 \ 35ea7075ebSOlivier Houchard libcalendar libcam libcompat libdevinfo libdevstat libdisk \ 360cb540ceSJohn Birrell libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \ 378f55a568SDoug Rabson ${_libgssapi} ${_librpcsec_gss} libipsec \ 38de6f3704SJamie Gritton ${_libipx} libjail libkiconv libmagic libmemstat ${_libmilter} \ 39de6f3704SJamie Gritton ${_libmp} ${_libncp} ${_libngatm} libopie libpam libpcap \ 40690f477dSSam Leffler ${_libpmc} libproc librt ${_libsdp} ${_libsm} ${_libsmb} \ 417ae5a033SDavid Xu ${_libsmdb} \ 42690f477dSSam Leffler ${_libsmutil} libstand ${_libtelnet} ${_libthr} libthread_db libufs \ 436df55934SAndrew Thompson libugidfw ${_libusbhid} ${_libusb} ${_libvgl} libwrap liby libz \ 446f0e1ffdSAlfred Perlstein ${_bind} 4558f0484fSRodney W. Grimes 4666422f5bSPeter Wemm.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 4766422f5bSPeter Wemm_csu=csu/${MACHINE_ARCH}-elf 4856a91a6fSDavid E. O'Brien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 49c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH} 5056a91a6fSDavid E. O'Brien.else 5156a91a6fSDavid E. O'Brien_csu=csu 52b09f41a4SJohn Birrell.endif 53b09f41a4SJohn Birrell 54690f477dSSam Leffler# NB: keep these sorted by MK_* knobs 55690f477dSSam Leffler 56e1fe3dbaSRuslan Ermilov.if ${MK_ATM} != "no" 579e9dbe04SHartmut Brandt_libngatm= libngatm 585e1847b4SPoul-Henning Kamp.endif 595e1847b4SPoul-Henning Kamp 60e1fe3dbaSRuslan Ermilov.if ${MK_BIND} != "no" 61cd3ee173SDag-Erling Smørgrav_bind= bind 62072355e0SPeter Wemm.endif 63072355e0SPeter Wemm 64e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no" 650986ab12SMaksim Yevmenkin_libbluetooth= libbluetooth 660986ab12SMaksim Yevmenkin_libsdp= libsdp 6718d948adSMaksim Yevmenkin.endif 6823d1e148SMaksim Yevmenkin 69690f477dSSam Leffler.if ${MK_BSNMP} != "no" 70690f477dSSam Leffler_libbsnmp= libbsnmp 71690f477dSSam Leffler.endif 72690f477dSSam Leffler 73690f477dSSam Leffler.if ${MK_GPIB} != "no" 74690f477dSSam Leffler_libgpib= libgpib 75690f477dSSam Leffler.endif 76690f477dSSam Leffler 776dc51ecaSRuslan Ermilov.if ${MK_GSSAPI} != "no" 783fe21f77SDoug Barton_libgssapi= libgssapi 798f55a568SDoug Rabson_librpcsec_gss= librpcsec_gss 803fe21f77SDoug Barton.endif 813fe21f77SDoug Barton 82cea557adSRuslan Ermilov.if ${MK_IPX} != "no" 83cea557adSRuslan Ermilov_libipx= libipx 84cea557adSRuslan Ermilov.endif 85cea557adSRuslan Ermilov 86690f477dSSam Leffler.if ${MK_LIBTHR} != "no" 87690f477dSSam Leffler_libthr= libthr 88690f477dSSam Leffler.endif 89690f477dSSam Leffler 90690f477dSSam Leffler.if ${MK_NETGRAPH} != "no" 91690f477dSSam Leffler_libnetgraph= libnetgraph 92690f477dSSam Leffler.endif 93690f477dSSam Leffler 94690f477dSSam Leffler.if ${MK_NIS} != "no" 95690f477dSSam Leffler_libypclnt= libypclnt 96690f477dSSam Leffler.endif 97690f477dSSam Leffler 9823d1e148SMaksim Yevmenkin.if ${MACHINE_ARCH} == "i386" 99cea557adSRuslan Ermilov.if ${MK_NCP} != "no" 10018d948adSMaksim Yevmenkin_libncp= libncp 101cea557adSRuslan Ermilov.endif 10223eb26faSSheldon Hearn_libsmb= libsmb 103c9811e98SBruce Evans_libvgl= libvgl 104abbb0b30SMarcel Moolenaar.endif 105abbb0b30SMarcel Moolenaar 106e108ac65SMarcel Moolenaar.if ${MACHINE_ARCH} == "ia64" 107e108ac65SMarcel Moolenaar_libsmb= libsmb 108e108ac65SMarcel Moolenaar.endif 109e108ac65SMarcel Moolenaar 11055434686SPeter Wemm.if ${MACHINE_ARCH} == "amd64" 111cea557adSRuslan Ermilov.if ${MK_NCP} != "no" 11255434686SPeter Wemm_libncp= libncp 113cea557adSRuslan Ermilov.endif 11455434686SPeter Wemm_libsmb= libsmb 1153d823985SDaniel Eischen.endif 1163d823985SDaniel Eischen 11759fa7082SR. Imura.if ${MACHINE_ARCH} == "powerpc" 11859fa7082SR. Imura_libsmb= libsmb 11959fa7082SR. Imura.endif 12059fa7082SR. Imura 121690f477dSSam Leffler.if ${MK_OPENSSL} != "no" 122690f477dSSam Leffler_libmp= libmp 123690f477dSSam Leffler.endif 124690f477dSSam Leffler 125690f477dSSam Leffler.if ${MK_PMC} != "no" 126690f477dSSam Leffler_libpmc= libpmc 127690f477dSSam Leffler.endif 128690f477dSSam Leffler 129690f477dSSam Leffler.if ${MK_SENDMAIL} != "no" 130690f477dSSam Leffler_libmilter= libmilter 131690f477dSSam Leffler_libsm= libsm 132690f477dSSam Leffler_libsmdb= libsmdb 133690f477dSSam Leffler_libsmutil= libsmutil 134690f477dSSam Leffler.endif 135690f477dSSam Leffler 136690f477dSSam Leffler.if ${MK_TELNET} != "no" 137690f477dSSam Leffler_libtelnet= libtelnet 138e9043a12SMike Makonnen.endif 139e9043a12SMike Makonnen 140e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no" 141f3e5ff40SBruce Evans_libusbhid= libusbhid 1426df55934SAndrew Thompson_libusb= libusb 143a8ec1b48SMaxim Sobolev.endif 144a8ec1b48SMaxim Sobolev 14558f0484fSRodney W. Grimes.include <bsd.subdir.mk> 146