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 \ 27b36dfb02SPoul-Henning Kamp ${_libypclnt} ${_compat} libalias libarchive ${_libatm} ${_libbind} \ 28897276fdSHartmut Brandt ${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \ 29cc5735a3SOlivier Houchard libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \ 30cfeccd19SPoul-Henning Kamp libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \ 31c4f02a89SMax Khon libipx libisc libkiconv libmenu ${_libmilter} ${_libmp} ${_libncp} \ 32360b288fSHartmut Brandt ${_libngatm} libopie libpam libpanel libpcap \ 339e9dbe04SHartmut Brandt ${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \ 349e9dbe04SHartmut Brandt ${_libsmutil} libstand libtelnet ${_libthr} libufs libugidfw \ 359e9dbe04SHartmut Brandt ${_libusbhid} ${_libvgl} libwrap libxpg4 liby libz 3658f0484fSRodney W. Grimes 3766422f5bSPeter Wemm.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 3866422f5bSPeter Wemm_csu=csu/${MACHINE_ARCH}-elf 3956a91a6fSDavid E. O'Brien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 40c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH} 4156a91a6fSDavid E. O'Brien.else 4256a91a6fSDavid E. O'Brien_csu=csu 43b09f41a4SJohn Birrell.endif 44b09f41a4SJohn Birrell 45c8cd8ab0SMarcel Moolenaar# libc_r is obsolete on ia64. 46cc5735a3SOlivier Houchard.if ${MACHINE_ARCH} != "ia64" && ${MACHINE_ARCH} != "powerpc" && \ 47cc5735a3SOlivier Houchard ${MACHINE_ARCH} != "arm" 484b1d654eSMarcel Moolenaar.if !defined(NOLIBC_R) 49c9811e98SBruce Evans_libc_r= libc_r 505f160d14SJohn Birrell.endif 51c8cd8ab0SMarcel Moolenaar.endif 52ff2edf0cSPeter Wemm 535e1847b4SPoul-Henning Kamp.if !defined(NOATM) 545e1847b4SPoul-Henning Kamp_libatm= libatm 559e9dbe04SHartmut Brandt_libngatm= libngatm 565e1847b4SPoul-Henning Kamp.endif 575e1847b4SPoul-Henning Kamp 5883b8ab27SPeter Wemm.if !defined(NO_BIND) 59072355e0SPeter Wemm_libbind= libbind 60072355e0SPeter Wemm.endif 61072355e0SPeter Wemm 626dbfffa3SGregory Neil Shapiro.if !defined(NO_SENDMAIL) 63850dab17SGregory Neil Shapiro_libmilter= libmilter 64850dab17SGregory Neil Shapiro_libsm= libsm 656dbfffa3SGregory Neil Shapiro_libsmdb= libsmdb 666dbfffa3SGregory Neil Shapiro_libsmutil= libsmutil 676dbfffa3SGregory Neil Shapiro.endif 686dbfffa3SGregory Neil Shapiro 693bc2f9a8SPoul-Henning Kamp.if !defined(NO_USB) 703bc2f9a8SPoul-Henning Kamp_libusbhid= libusbhid 713bc2f9a8SPoul-Henning Kamp.endif 723bc2f9a8SPoul-Henning Kamp 73c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386" 7418d948adSMaksim Yevmenkin.if !defined(NO_BLUETOOTH) 750986ab12SMaksim Yevmenkin_libbluetooth= libbluetooth 760986ab12SMaksim Yevmenkin_libsdp= libsdp 7718d948adSMaksim Yevmenkin.endif 7818d948adSMaksim Yevmenkin_compat= compat 7918d948adSMaksim Yevmenkin_libncp= libncp 8023eb26faSSheldon Hearn_libsmb= libsmb 81c9811e98SBruce Evans_libvgl= libvgl 82abbb0b30SMarcel Moolenaar.endif 83abbb0b30SMarcel Moolenaar 8412e25f33SDoug Rabson.if ${MACHINE_ARCH} == "alpha" 8512e25f33SDoug Rabson_libio= libio 8656a91a6fSDavid E. O'Brien_compat= compat 8712e25f33SDoug Rabson.endif 8812e25f33SDoug Rabson 8955434686SPeter Wemm.if ${MACHINE_ARCH} == "amd64" 9055434686SPeter Wemm_libncp= libncp 9155434686SPeter Wemm_libsmb= libsmb 923d823985SDaniel Eischen.endif 933d823985SDaniel Eischen 946b582d54SMarcel Moolenaar.if ${MACHINE_ARCH} != "powerpc" 95de1b32cdSDaniel Eischen.if !defined(NOLIBPTHREAD) 96de1b32cdSDaniel Eischen_libpthread= libpthread 97de1b32cdSDaniel Eischen.endif 9855434686SPeter Wemm.endif 9955434686SPeter Wemm 100cc5735a3SOlivier Houchard.if ${MACHINE_ARCH} != "amd64" && ${MACHINE_ARCH} != "arm" 101e9043a12SMike Makonnen.if !defined(NOLIBTHR) 102e9043a12SMike Makonnen_libthr= libthr 103e9043a12SMike Makonnen.endif 104e9043a12SMike Makonnen.endif 105e9043a12SMike Makonnen 106cc5735a3SOlivier Houchard.if ${MACHINE_ARCH} != "arm" 107cc5735a3SOlivier Houchard_libdisk= libdisk 108cc5735a3SOlivier Houchard.endif 109cc5735a3SOlivier Houchard 110ebb9f0efSMark Murray.if !defined(NOCRYPT) && !defined(NO_OPENSSL) 111a8ec1b48SMaxim Sobolev_libmp= libmp 112a8ec1b48SMaxim Sobolev.endif 113a8ec1b48SMaxim Sobolev 114b36dfb02SPoul-Henning Kamp.if !defined(NO_YP_LIBC) 115b36dfb02SPoul-Henning Kamp_libypclnt= libypclnt 116b36dfb02SPoul-Henning Kamp.endif 117b36dfb02SPoul-Henning Kamp 11858f0484fSRodney W. Grimes.include <bsd.subdir.mk> 119