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. 25c9811e98SBruce Evans# 26c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order. 27c9811e98SBruce Evans 28d5a857fbSAlexander KabaevSUBDIR= ${_csu} libc libbsm libcom_err libcrypt libelf libkvm msun libmd \ 29d5a857fbSAlexander Kabaev ncurses libnetgraph libradius librpcsvc libsbuf libtacplus libutil \ 30cd3ee173SDag-Erling Smørgrav ${_libypclnt} libalias libarchive ${_libatm} \ 31d5a857fbSAlexander Kabaev libbegemot ${_libbluetooth} libbsnmp libbz2 \ 32ea7075ebSOlivier Houchard libcalendar libcam libcompat libdevinfo libdevstat libdisk \ 330cb540ceSJohn Birrell libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \ 343fe21f77SDoug Barton ${_libgssapi} libipsec \ 35af5b5a0fSRong-En Fan ${_libipx} libkiconv libmagic libmemstat ${_libmilter} ${_libmp} \ 36af5b5a0fSRong-En Fan ${_libncp} ${_libngatm} libopie libpam libpcap \ 370cb540ceSJohn Birrell libpmc libproc librt ${_libsdp} ${_libsm} ${_libsmb} \ 387ae5a033SDavid Xu ${_libsmdb} \ 39f0aa4844SOlivier Houchard ${_libsmutil} libstand libtelnet ${_libthr} libthread_db libufs \ 402868be0bSTim J. Robbins libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind} 4158f0484fSRodney W. Grimes 4266422f5bSPeter Wemm.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 4366422f5bSPeter Wemm_csu=csu/${MACHINE_ARCH}-elf 4456a91a6fSDavid E. O'Brien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 45c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH} 4656a91a6fSDavid E. O'Brien.else 4756a91a6fSDavid E. O'Brien_csu=csu 48b09f41a4SJohn Birrell.endif 49b09f41a4SJohn Birrell 50e1fe3dbaSRuslan Ermilov.if ${MK_ATM} != "no" 512b851aebSRobert Watson# Disabled in 7.0 as netatm is not MPSAFE. 522b851aebSRobert Watson#_libatm= libatm 539e9dbe04SHartmut Brandt_libngatm= libngatm 545e1847b4SPoul-Henning Kamp.endif 555e1847b4SPoul-Henning Kamp 56e1fe3dbaSRuslan Ermilov.if ${MK_BIND} != "no" 57cd3ee173SDag-Erling Smørgrav_bind= bind 58072355e0SPeter Wemm.endif 59072355e0SPeter Wemm 60e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no" 610986ab12SMaksim Yevmenkin_libbluetooth= libbluetooth 620986ab12SMaksim Yevmenkin_libsdp= libsdp 6318d948adSMaksim Yevmenkin.endif 6423d1e148SMaksim Yevmenkin 656dc51ecaSRuslan Ermilov.if ${MK_GSSAPI} != "no" 663fe21f77SDoug Barton_libgssapi= libgssapi 673fe21f77SDoug Barton.endif 683fe21f77SDoug Barton 69cea557adSRuslan Ermilov.if ${MK_IPX} != "no" 70cea557adSRuslan Ermilov_libipx= libipx 71cea557adSRuslan Ermilov.endif 72cea557adSRuslan Ermilov 7323d1e148SMaksim Yevmenkin.if ${MACHINE_ARCH} == "i386" 74cea557adSRuslan Ermilov.if ${MK_NCP} != "no" 7518d948adSMaksim Yevmenkin_libncp= libncp 76cea557adSRuslan Ermilov.endif 7723eb26faSSheldon Hearn_libsmb= libsmb 78c9811e98SBruce Evans_libvgl= libvgl 79abbb0b30SMarcel Moolenaar.endif 80abbb0b30SMarcel Moolenaar 81e108ac65SMarcel Moolenaar.if ${MACHINE_ARCH} == "ia64" 82e108ac65SMarcel Moolenaar_libsmb= libsmb 83e108ac65SMarcel Moolenaar.endif 84e108ac65SMarcel Moolenaar 85e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no" 86f3e5ff40SBruce Evans_libmilter= libmilter 87f3e5ff40SBruce Evans_libsm= libsm 88f3e5ff40SBruce Evans_libsmdb= libsmdb 89f3e5ff40SBruce Evans_libsmutil= libsmutil 90f3e5ff40SBruce Evans.endif 91f3e5ff40SBruce Evans 92e1fe3dbaSRuslan Ermilov.if ${MK_OPENSSL} != "no" 93f3e5ff40SBruce Evans_libmp= libmp 94f3e5ff40SBruce Evans.endif 95f3e5ff40SBruce Evans 9655434686SPeter Wemm.if ${MACHINE_ARCH} == "amd64" 97cea557adSRuslan Ermilov.if ${MK_NCP} != "no" 9855434686SPeter Wemm_libncp= libncp 99cea557adSRuslan Ermilov.endif 10055434686SPeter Wemm_libsmb= libsmb 1013d823985SDaniel Eischen.endif 1023d823985SDaniel Eischen 10359fa7082SR. Imura.if ${MACHINE_ARCH} == "powerpc" 10459fa7082SR. Imura_libsmb= libsmb 10559fa7082SR. Imura.endif 10659fa7082SR. Imura 107e1fe3dbaSRuslan Ermilov.if ${MK_LIBTHR} != "no" 10810148423SDavid Xu_libthr= libthr 109e9043a12SMike Makonnen.endif 110e9043a12SMike Makonnen 111e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no" 112f3e5ff40SBruce Evans_libusbhid= libusbhid 113a8ec1b48SMaxim Sobolev.endif 114a8ec1b48SMaxim Sobolev 115e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no" 116b36dfb02SPoul-Henning Kamp_libypclnt= libypclnt 117b36dfb02SPoul-Henning Kamp.endif 118b36dfb02SPoul-Henning Kamp 119e1fe3dbaSRuslan Ermilov.if ${MK_GPIB} != "no" 1207536a05bSPoul-Henning Kamp_libgpib= libgpib 1217536a05bSPoul-Henning Kamp.endif 1227536a05bSPoul-Henning Kamp 12358f0484fSRodney W. Grimes.include <bsd.subdir.mk> 124