xref: /freebsd/lib/Makefile (revision 9a4365d0e0833374e893c519639bde71756aa104)
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.
8c9811e98SBruce Evans# libcom_err must be built before libss.
9fac91f24SBruce Evans# libcrypt must be built before libkrb and libskey.
1009ee9e26SDavid E. O'Brien# libm must be built before libstdc++.
11fac91f24SBruce Evans# libmd must be built before libatm, libcrypt, libopie, libradius, libskey,
12fac91f24SBruce Evans# and libtacplus.
1368db2328SPeter Wemm# libncurses must be built before libdialog, libedit and libreadline.
1460da54eeSJohn Polstra# libradius must be built before libpam.
1560da54eeSJohn Polstra# libskey must be built before libpam.
1660da54eeSJohn Polstra# libtacplus must be built before libpam.
17c9811e98SBruce Evans#
18c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order.
19c9811e98SBruce Evans
207b2d810aSMark MurraySUBDIR=	${_csu} libcom_err ${_libm} libmd ${_libcrypt} \
21fac91f24SBruce Evans	libncurses libradius libskey libtacplus \
22072355e0SPeter Wemm	${_compat} libalias libatm ${_libbind} libc ${_libc_r} libcalendar \
23072355e0SPeter Wemm	libcam libcompat libdevstat libdisk libedit libfetch libform \
249a4365d0SYoshinobu Inoue	libftpio libgnumalloc ${_libio} libipsec libipx libkvm libmenu \
259a4365d0SYoshinobu Inoue	${_libncp} \
264cf49a43SJulian Elischer	libnetgraph libopie libpam libpanel libpcap libresolv librpcsvc libss \
274cf49a43SJulian Elischer	libstand ${_libtelnet} libutil ${_libvgl} libwrap libxpg4 liby libz
2858f0484fSRodney W. Grimes
298deb7ff0SJohn Birrell.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
308deb7ff0SJohn Birrell_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
315f160d14SJohn Birrell.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
32c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH}
33b09f41a4SJohn Birrell.endif
34b09f41a4SJohn Birrell
355f160d14SJohn Birrell.if !defined(NOLIBC_R)
36c9811e98SBruce Evans_libc_r=	libc_r
375f160d14SJohn Birrell.endif
38ff2edf0cSPeter Wemm
3983b8ab27SPeter Wemm.if !defined(NO_BIND)
40072355e0SPeter Wemm_libbind=	libbind
41072355e0SPeter Wemm.endif
42072355e0SPeter Wemm
437b2d810aSMark Murray_libcrypt=	libcrypt
447b2d810aSMark Murray.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
45efa3929eSMark Murray# Build both libraries. They have different names, so no harm,
46efa3929eSMark Murray# and this avoids having stale libscrypt.*
477b2d810aSMark Murray_libcrypt+=	../secure/lib/libcrypt
48e6af2dc8SAndrey A. Chernov.endif
49e6af2dc8SAndrey A. Chernov
50c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386"
51d78dcde2SGary Palmer_compat=	compat
52f24bb3a4SBoris Popov_libncp=	libncp
53c9811e98SBruce Evans_libvgl=	libvgl
54d788c4fbSJohn Birrell.endif
55c9811e98SBruce Evans
566a7a98c9SJohn Birrell.if defined(WANT_CSRG_LIBM)
57c9811e98SBruce Evans_libm=		libm
58b6059979SJordan K. Hubbard.else
59c9811e98SBruce Evans_libm=		msun
60b6059979SJordan K. Hubbard.endif
61b6059979SJordan K. Hubbard
6212e25f33SDoug Rabson.if ${MACHINE_ARCH} == "alpha"
6312e25f33SDoug Rabson_libio=		libio
6412e25f33SDoug Rabson.endif
6512e25f33SDoug Rabson
66f05d1ad2SMark Murray.if defined(RELEASEDIR) || \
67f05d1ad2SMark Murray    (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \
68c9811e98SBruce Evans    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
69c9811e98SBruce Evans_libtelnet=	libtelnet
70c9811e98SBruce Evans.endif
718ff10292SPeter Wemm
7258f0484fSRodney W. Grimes.include <bsd.subdir.mk>
73