xref: /freebsd/lib/Makefile (revision 897276fdb2c2d483591a6e13b51cd0f944f36fb6)
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.
1414b42810SKris Kennaway# libopie must be built before libpam.
1560da54eeSJohn Polstra# libradius must be built before libpam.
1676ed168aSMark Murray# librpcsvc must be built before libpam.
1797b877c9SDag-Erling Smørgrav# libsbuf must be built before libcam.
1860da54eeSJohn Polstra# libtacplus must be built before libpam.
19c5da4b13SBruce Evans# libutil must be built before libpam.
2097b877c9SDag-Erling Smørgrav# libypclnt must be built before libpam.
21c9811e98SBruce Evans#
22c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order.
23c9811e98SBruce Evans
24c4a5ef6eSThomas MoestlSUBDIR=	${_csu} libcom_err libcrypt libkvm msun libmd \
2597b877c9SDag-Erling Smørgrav	libncurses libradius librpcsvc libsbuf libtacplus libutil libypclnt \
260986ab12SMaksim Yevmenkin	${_compat} libalias ${_libatm} ${_libbind} \
27897276fdSHartmut Brandt	${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \
280bc81187SDavid E. O'Brien	libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \
29cfeccd19SPoul-Henning Kamp	libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \
30c4f02a89SMax Khon	libipx libisc libkiconv libmenu ${_libmilter} ${_libmp} ${_libncp} \
319e9dbe04SHartmut Brandt	libnetgraph ${_libngatm} libopie libpam libpanel libpcap \
329e9dbe04SHartmut Brandt	${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \
339e9dbe04SHartmut Brandt	${_libsmutil} libstand libtelnet ${_libthr} libufs libugidfw \
349e9dbe04SHartmut Brandt	${_libusbhid} ${_libvgl} libwrap libxpg4 liby libz
3558f0484fSRodney W. Grimes
3666422f5bSPeter Wemm.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
3766422f5bSPeter Wemm_csu=csu/${MACHINE_ARCH}-elf
3856a91a6fSDavid E. O'Brien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
39c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH}
4056a91a6fSDavid E. O'Brien.else
4156a91a6fSDavid E. O'Brien_csu=csu
42b09f41a4SJohn Birrell.endif
43b09f41a4SJohn Birrell
44c8cd8ab0SMarcel Moolenaar# libc_r is obsolete on ia64.
45f29db4e7SDavid E. O'Brien.if ${MACHINE_ARCH} != "ia64" && ${MACHINE_ARCH} != "powerpc"
464b1d654eSMarcel Moolenaar.if !defined(NOLIBC_R)
47c9811e98SBruce Evans_libc_r=	libc_r
485f160d14SJohn Birrell.endif
49c8cd8ab0SMarcel Moolenaar.endif
50ff2edf0cSPeter Wemm
515e1847b4SPoul-Henning Kamp.if !defined(NOATM)
525e1847b4SPoul-Henning Kamp_libatm=	libatm
539e9dbe04SHartmut Brandt_libngatm=	libngatm
545e1847b4SPoul-Henning Kamp.endif
555e1847b4SPoul-Henning Kamp
5683b8ab27SPeter Wemm.if !defined(NO_BIND)
57072355e0SPeter Wemm_libbind=	libbind
58072355e0SPeter Wemm.endif
59072355e0SPeter Wemm
606dbfffa3SGregory Neil Shapiro.if !defined(NO_SENDMAIL)
61850dab17SGregory Neil Shapiro_libmilter=	libmilter
62850dab17SGregory Neil Shapiro_libsm=		libsm
636dbfffa3SGregory Neil Shapiro_libsmdb=	libsmdb
646dbfffa3SGregory Neil Shapiro_libsmutil=	libsmutil
656dbfffa3SGregory Neil Shapiro.endif
666dbfffa3SGregory Neil Shapiro
673bc2f9a8SPoul-Henning Kamp.if !defined(NO_USB)
683bc2f9a8SPoul-Henning Kamp_libusbhid=	libusbhid
693bc2f9a8SPoul-Henning Kamp.endif
703bc2f9a8SPoul-Henning Kamp
71c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386"
72d78dcde2SGary Palmer_compat=	compat
730986ab12SMaksim Yevmenkin_libbluetooth=	libbluetooth
74f24bb3a4SBoris Popov_libncp=	libncp
750986ab12SMaksim Yevmenkin_libsdp=	libsdp
7623eb26faSSheldon Hearn_libsmb=	libsmb
77c9811e98SBruce Evans_libvgl=	libvgl
78abbb0b30SMarcel Moolenaar.endif
79abbb0b30SMarcel Moolenaar
8012e25f33SDoug Rabson.if ${MACHINE_ARCH} == "alpha"
8112e25f33SDoug Rabson_libio=		libio
8256a91a6fSDavid E. O'Brien_compat=	compat
8312e25f33SDoug Rabson.endif
8412e25f33SDoug Rabson
8555434686SPeter Wemm.if ${MACHINE_ARCH} == "amd64"
8655434686SPeter Wemm_libncp=	libncp
8755434686SPeter Wemm_libsmb=	libsmb
883d823985SDaniel Eischen.endif
893d823985SDaniel Eischen
903d823985SDaniel Eischen.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "sparc64"
91de1b32cdSDaniel Eischen.if !defined(NOLIBPTHREAD)
92de1b32cdSDaniel Eischen_libpthread=	libpthread
93de1b32cdSDaniel Eischen.endif
9455434686SPeter Wemm.endif
9555434686SPeter Wemm
96e9043a12SMike Makonnen.if ${MACHINE_ARCH} != "amd64" && ${MACHINE_ARCH} != "powerpc"
97e9043a12SMike Makonnen.if !defined(NOLIBTHR)
98e9043a12SMike Makonnen_libthr=	libthr
99e9043a12SMike Makonnen.endif
100e9043a12SMike Makonnen.endif
101e9043a12SMike Makonnen
1020bc81187SDavid E. O'Brien.if ${MACHINE_ARCH} != "powerpc"
1030bc81187SDavid E. O'Brien_libdisk=	libdisk
1040bc81187SDavid E. O'Brien.endif
1050bc81187SDavid E. O'Brien
106ebb9f0efSMark Murray.if !defined(NOCRYPT) && !defined(NO_OPENSSL)
107a8ec1b48SMaxim Sobolev_libmp=		libmp
108a8ec1b48SMaxim Sobolev.endif
109a8ec1b48SMaxim Sobolev
11058f0484fSRodney W. Grimes.include <bsd.subdir.mk>
111