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. 10d5a857fbSAlexander Kabaev# 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 \ 33af5b5a0fSRong-En Fan libedit libexpat libfetch libftpio libgeom ${_libgpib} \ 342b46c64cSRuslan Ermilov libgssapi libipsec \ 35af5b5a0fSRong-En Fan ${_libipx} libkiconv libmagic libmemstat ${_libmilter} ${_libmp} \ 36af5b5a0fSRong-En Fan ${_libncp} ${_libngatm} libopie libpam libpcap \ 377ae5a033SDavid Xu libpmc ${_libpthread} librt ${_libsdp} ${_libsm} ${_libsmb} \ 387ae5a033SDavid Xu ${_libsmdb} \ 3914d2874cSMarcel Moolenaar ${_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 65cea557adSRuslan Ermilov.if ${MK_IPX} != "no" 66cea557adSRuslan Ermilov_libipx= libipx 67cea557adSRuslan Ermilov.endif 68cea557adSRuslan Ermilov 6923d1e148SMaksim Yevmenkin.if ${MACHINE_ARCH} == "i386" 70cea557adSRuslan Ermilov.if ${MK_NCP} != "no" 7118d948adSMaksim Yevmenkin_libncp= libncp 72cea557adSRuslan Ermilov.endif 7323eb26faSSheldon Hearn_libsmb= libsmb 74c9811e98SBruce Evans_libvgl= libvgl 75abbb0b30SMarcel Moolenaar.endif 76abbb0b30SMarcel Moolenaar 77e108ac65SMarcel Moolenaar.if ${MACHINE_ARCH} == "ia64" 78e108ac65SMarcel Moolenaar_libsmb= libsmb 79e108ac65SMarcel Moolenaar.endif 80e108ac65SMarcel Moolenaar 81e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no" 82f3e5ff40SBruce Evans_libmilter= libmilter 83f3e5ff40SBruce Evans_libsm= libsm 84f3e5ff40SBruce Evans_libsmdb= libsmdb 85f3e5ff40SBruce Evans_libsmutil= libsmutil 86f3e5ff40SBruce Evans.endif 87f3e5ff40SBruce Evans 88e1fe3dbaSRuslan Ermilov.if ${MK_OPENSSL} != "no" 89f3e5ff40SBruce Evans_libmp= libmp 90f3e5ff40SBruce Evans.endif 91f3e5ff40SBruce Evans 9255434686SPeter Wemm.if ${MACHINE_ARCH} == "amd64" 93cea557adSRuslan Ermilov.if ${MK_NCP} != "no" 9455434686SPeter Wemm_libncp= libncp 95cea557adSRuslan Ermilov.endif 9655434686SPeter Wemm_libsmb= libsmb 973d823985SDaniel Eischen.endif 983d823985SDaniel Eischen 9959fa7082SR. Imura.if ${MACHINE_ARCH} == "powerpc" 10059fa7082SR. Imura_libsmb= libsmb 10159fa7082SR. Imura.endif 10259fa7082SR. Imura 103e1fe3dbaSRuslan Ermilov.if ${MK_LIBPTHREAD} != "no" 104de1b32cdSDaniel Eischen_libpthread= libpthread 105de1b32cdSDaniel Eischen.endif 10655434686SPeter Wemm 107e1fe3dbaSRuslan Ermilov.if ${MK_LIBTHR} != "no" 10810148423SDavid Xu_libthr= libthr 109e9043a12SMike Makonnen.endif 110e9043a12SMike Makonnen 111fac8eae5SMarcel Moolenaar.if ${MACHINE_ARCH} != "arm" 11210148423SDavid Xu_libthread_db= libthread_db 11314d2874cSMarcel Moolenaar.endif 11414d2874cSMarcel Moolenaar 115e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no" 116f3e5ff40SBruce Evans_libusbhid= libusbhid 117a8ec1b48SMaxim Sobolev.endif 118a8ec1b48SMaxim Sobolev 119e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no" 120b36dfb02SPoul-Henning Kamp_libypclnt= libypclnt 121b36dfb02SPoul-Henning Kamp.endif 122b36dfb02SPoul-Henning Kamp 123e1fe3dbaSRuslan Ermilov.if ${MK_GPIB} != "no" 1247536a05bSPoul-Henning Kamp_libgpib= libgpib 1257536a05bSPoul-Henning Kamp.endif 1267536a05bSPoul-Henning Kamp 12758f0484fSRodney W. Grimes.include <bsd.subdir.mk> 128