158f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 27f3dea24SPeter Wemm# $FreeBSD$ 3c9811e98SBruce Evans 4c9811e98SBruce Evans# To satisfy shared library or ELF linkage when only the libraries being 5c9811e98SBruce Evans# built are visible: 6c9811e98SBruce Evans# 70f09aefaSBruce Evans# csu must be built before all shared libaries for ELF. 84afa3718SMark Murray# libcom_err must be built before libkrb5 and libpam. 94afa3718SMark Murray# libcrypt must be built before libkrb5 and libpam. 10c4a5ef6eSThomas Moestl# libkvm must be built before libdevstat. 11a04f2acdSJosef Karthauser# msun must be built before libg++ and libstdc++. 12ccdee0d9SMark Murray# libmd must be built before libatm, libopie, libradius, and libtacplus. 1368db2328SPeter Wemm# libncurses must be built before libdialog, libedit and libreadline. 14360b288fSHartmut Brandt# libnetgraph must be built before libbsnmp/modules/snmp_netgraph. 1514b42810SKris Kennaway# libopie must be built before libpam. 1660da54eeSJohn Polstra# libradius must be built before libpam. 1776ed168aSMark Murray# librpcsvc must be built before libpam. 1897b877c9SDag-Erling Smørgrav# libsbuf must be built before libcam. 1960da54eeSJohn Polstra# libtacplus must be built before libpam. 20c5da4b13SBruce Evans# libutil must be built before libpam. 2197b877c9SDag-Erling Smørgrav# libypclnt must be built before libpam. 22c9811e98SBruce Evans# 23c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order. 24c9811e98SBruce Evans 25360b288fSHartmut BrandtSUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd libncurses \ 26b36dfb02SPoul-Henning Kamp libnetgraph libradius librpcsvc libsbuf libtacplus libutil \ 27cd3ee173SDag-Erling Smørgrav ${_libypclnt} libalias libarchive ${_libatm} \ 285f892a7fSTom Rhodes libbegemot ${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \ 29ea7075ebSOlivier Houchard libcalendar libcam libcompat libdevinfo libdevstat libdisk \ 307536a05bSPoul-Henning Kamp libedit libexpat libfetch libform libftpio libgeom ${_libgpib} \ 31c0b9f4feSDoug Rabson libgssapi ${_libio} libipsec \ 321189affaSRobert Watson libipx libkiconv libmagic libmemstat libmenu ${_libmilter} ${_libmp} \ 3334a787bbSMark Murray ${_libncp} ${_libngatm} libopie libpam libpanel libpcap \ 34ca8cf1ecSMarcel Moolenaar libpmc ${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \ 3514d2874cSMarcel Moolenaar ${_libsmutil} libstand libtelnet ${_libthr} ${_libthread_db} libufs \ 362868be0bSTim J. Robbins libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind} 3758f0484fSRodney W. Grimes 3866422f5bSPeter Wemm.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 3966422f5bSPeter Wemm_csu=csu/${MACHINE_ARCH}-elf 4056a91a6fSDavid E. O'Brien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 41c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH} 4256a91a6fSDavid E. O'Brien.else 4356a91a6fSDavid E. O'Brien_csu=csu 44b09f41a4SJohn Birrell.endif 45b09f41a4SJohn Birrell 4607736e20SRuslan Ermilov.if !defined(NO_ATM) 475e1847b4SPoul-Henning Kamp_libatm= libatm 489e9dbe04SHartmut Brandt_libngatm= libngatm 495e1847b4SPoul-Henning Kamp.endif 505e1847b4SPoul-Henning Kamp 5183b8ab27SPeter Wemm.if !defined(NO_BIND) 52cd3ee173SDag-Erling Smørgrav_bind= bind 53072355e0SPeter Wemm.endif 54072355e0SPeter Wemm 5518d948adSMaksim Yevmenkin.if !defined(NO_BLUETOOTH) 560986ab12SMaksim Yevmenkin_libbluetooth= libbluetooth 570986ab12SMaksim Yevmenkin_libsdp= libsdp 5818d948adSMaksim Yevmenkin.endif 5923d1e148SMaksim Yevmenkin 6023d1e148SMaksim Yevmenkin.if ${MACHINE_ARCH} == "i386" 6118d948adSMaksim Yevmenkin_libncp= libncp 6223eb26faSSheldon Hearn_libsmb= libsmb 63c9811e98SBruce Evans_libvgl= libvgl 64abbb0b30SMarcel Moolenaar.endif 65abbb0b30SMarcel Moolenaar 663c23d036SBruce Evans.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "ia64" && \ 67f1f6253fSRuslan Ermilov ${MACHINE_ARCH} != "powerpc" && !defined(NO_LIBC_R) 6838478fabSDavid Xu_libc_r= 69f3e5ff40SBruce Evans.endif 70f3e5ff40SBruce Evans 7112e25f33SDoug Rabson.if ${MACHINE_ARCH} == "alpha" 7212e25f33SDoug Rabson_libio= libio 7312e25f33SDoug Rabson.endif 7412e25f33SDoug Rabson 75f3e5ff40SBruce Evans.if !defined(NO_SENDMAIL) 76f3e5ff40SBruce Evans_libmilter= libmilter 77f3e5ff40SBruce Evans_libsm= libsm 78f3e5ff40SBruce Evans_libsmdb= libsmdb 79f3e5ff40SBruce Evans_libsmutil= libsmutil 80f3e5ff40SBruce Evans.endif 81f3e5ff40SBruce Evans 82a2161735SRuslan Ermilov.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) 83f3e5ff40SBruce Evans_libmp= libmp 84f3e5ff40SBruce Evans.endif 85f3e5ff40SBruce Evans 8655434686SPeter Wemm.if ${MACHINE_ARCH} == "amd64" 8755434686SPeter Wemm_libncp= libncp 8855434686SPeter Wemm_libsmb= libsmb 893d823985SDaniel Eischen.endif 903d823985SDaniel Eischen 9159fa7082SR. Imura.if ${MACHINE_ARCH} == "powerpc" 9259fa7082SR. Imura_libsmb= libsmb 9359fa7082SR. Imura.endif 9459fa7082SR. Imura 95f1f6253fSRuslan Ermilov.if !defined(NO_LIBPTHREAD) 96de1b32cdSDaniel Eischen_libpthread= libpthread 97de1b32cdSDaniel Eischen.endif 9855434686SPeter Wemm 9910148423SDavid Xu.if !defined(NO_LIBTHR) 10010148423SDavid Xu_libthr= libthr 101e9043a12SMike Makonnen.endif 102e9043a12SMike Makonnen 10314d2874cSMarcel Moolenaar.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "powerpc" 10410148423SDavid Xu_libthread_db= libthread_db 10514d2874cSMarcel Moolenaar.endif 10614d2874cSMarcel Moolenaar 107f3e5ff40SBruce Evans.if !defined(NO_USB) 108f3e5ff40SBruce Evans_libusbhid= libusbhid 109a8ec1b48SMaxim Sobolev.endif 110a8ec1b48SMaxim Sobolev 1116c58990dSBjoern A. Zeeb.if !defined(NO_NIS) 112b36dfb02SPoul-Henning Kamp_libypclnt= libypclnt 113b36dfb02SPoul-Henning Kamp.endif 114b36dfb02SPoul-Henning Kamp 1157536a05bSPoul-Henning Kamp.if !defined(NO_GPIB) 1167536a05bSPoul-Henning Kamp_libgpib= libgpib 1177536a05bSPoul-Henning Kamp.endif 1187536a05bSPoul-Henning Kamp 11958f0484fSRodney W. Grimes.include <bsd.subdir.mk> 120