xref: /freebsd/lib/Makefile (revision b5c8548311ca91f14a5b562832e769e26161df12)
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.
84870a3d3SKris Kennaway# libcom_err must be built before libkrb and libpam.
9ccdee0d9SMark Murray# libcrypt must be built before libkrb 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.
1760da54eeSJohn Polstra# libtacplus must be built before libpam.
18c5da4b13SBruce Evans# libutil must be built before libpam.
193393f8daSKenneth D. Merry# libsbuf must be built before libcam.
20c9811e98SBruce Evans#
21c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order.
22c9811e98SBruce Evans
23c4a5ef6eSThomas MoestlSUBDIR=	${_csu} libcom_err libcrypt libkvm msun libmd \
2476ed168aSMark Murray	libncurses libradius librpcsvc libtacplus libutil libsbuf \
25d2454086SDavid E. O'Brien	${_compat} libalias libatm ${_libbind} libbz2 libc ${_libc_r} \
26d2454086SDavid E. O'Brien	libcalendar libcam libcompat libdevinfo libdevstat libdisk \
27b5c85483SPeter Wemm	libedit libfetch libform libftpio ${_libgnumalloc} ${_libio} libipsec \
28c4a5ef6eSThomas Moestl	libipx libisc libmenu ${_libmp} ${_libncp} \
29cd7249ffSRobert Watson	libnetgraph libopie libpam libpanel libpcap \
30b5c85483SPeter Wemm	${_libresolv} libsmdb libsmutil \
311976c843SNick Hibma	libstand ${_libtelnet} libusb ${_libvgl} libwrap libxpg4 liby libz
3258f0484fSRodney W. Grimes
338deb7ff0SJohn Birrell.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
348deb7ff0SJohn Birrell_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
3556a91a6fSDavid E. O'Brien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
36c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH}
3756a91a6fSDavid E. O'Brien.else
3856a91a6fSDavid E. O'Brien_csu=csu
39b09f41a4SJohn Birrell.endif
40b09f41a4SJohn Birrell
41b5c85483SPeter Wemm.if ${MACHINE_ARCH} == "i386"
42b5c85483SPeter Wemm_libgnumalloc=	libgnumalloc
43b5c85483SPeter Wemm_libresolv=	libresolv
44b5c85483SPeter Wemm.endif
45b5c85483SPeter Wemm
46b5c85483SPeter Wemm.if !defined(NOLIBC_R) && ${MACHINE_ARCH} != ia64
47c9811e98SBruce Evans_libc_r=	libc_r
485f160d14SJohn Birrell.endif
49ff2edf0cSPeter Wemm
5083b8ab27SPeter Wemm.if !defined(NO_BIND)
51072355e0SPeter Wemm_libbind=	libbind
52072355e0SPeter Wemm.endif
53072355e0SPeter Wemm
54c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386"
55d78dcde2SGary Palmer_compat=	compat
56f24bb3a4SBoris Popov_libncp=	libncp
57c9811e98SBruce Evans_libvgl=	libvgl
58d788c4fbSJohn Birrell.endif
59c9811e98SBruce Evans
6012e25f33SDoug Rabson.if ${MACHINE_ARCH} == "alpha"
6112e25f33SDoug Rabson_libio=		libio
6256a91a6fSDavid E. O'Brien_compat=	compat
6312e25f33SDoug Rabson.endif
6412e25f33SDoug Rabson
65f05d1ad2SMark Murray.if defined(RELEASEDIR) || \
66f05d1ad2SMark Murray    (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \
670dc44b5aSRuslan Ermilov    defined(NOCRYPT) || (defined(NOSECURE) && !defined(MAKE_KERBEROS4))
68c9811e98SBruce Evans_libtelnet=	libtelnet
69c9811e98SBruce Evans.endif
708ff10292SPeter Wemm
71a8ec1b48SMaxim Sobolev.if exists(${.CURDIR}/../crypto) && !defined(NOCRYPT) && !defined(NO_OPENSSL)
72a8ec1b48SMaxim Sobolev_libmp=		libmp
73a8ec1b48SMaxim Sobolev.endif
74a8ec1b48SMaxim Sobolev
7558f0484fSRodney W. Grimes.include <bsd.subdir.mk>
76