xref: /freebsd/lib/Makefile (revision d2454086398418d6fea222dbfbb8e1a13d1fc4cf)
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.
8c5da4b13SBruce Evans# libcom_err must be built before libkrb, libpam and libss.
9c5da4b13SBruce Evans# libcrypt must be built before libkrb, libpam and libskey.
10a04f2acdSJosef Karthauser# msun must be built before libg++ and libstdc++.
11a7c9f05aSBruce Evans# libmd must be built before libatm, libopie, libradius, libskey, and
12a7c9f05aSBruce Evans# 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.
1660da54eeSJohn Polstra# libskey 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
239886bcdfSPeter WemmSUBDIR=	${_csu} libcom_err libcrypt msun libmd \
243393f8daSKenneth D. Merry	libncurses libradius libskey 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 \
27d2454086SDavid E. O'Brien	libedit libfetch libform libftpio libgnumalloc ${_libio} libipsec \
28d2454086SDavid E. O'Brien	libipx libisc libkvm libmenu ${_libncp} \
29cd7249ffSRobert Watson	libnetgraph libopie libpam libpanel libpcap \
308b28ef95SThomas Moestl	libresolv librpcsvc libsmdb libsmutil libss \
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
415f160d14SJohn Birrell.if !defined(NOLIBC_R)
42c9811e98SBruce Evans_libc_r=	libc_r
435f160d14SJohn Birrell.endif
44ff2edf0cSPeter Wemm
4583b8ab27SPeter Wemm.if !defined(NO_BIND)
46072355e0SPeter Wemm_libbind=	libbind
47072355e0SPeter Wemm.endif
48072355e0SPeter Wemm
49c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386"
50d78dcde2SGary Palmer_compat=	compat
51f24bb3a4SBoris Popov_libncp=	libncp
52c9811e98SBruce Evans_libvgl=	libvgl
53d788c4fbSJohn Birrell.endif
54c9811e98SBruce Evans
5512e25f33SDoug Rabson.if ${MACHINE_ARCH} == "alpha"
5612e25f33SDoug Rabson_libio=		libio
5756a91a6fSDavid E. O'Brien_compat=	compat
5812e25f33SDoug Rabson.endif
5912e25f33SDoug Rabson
60f05d1ad2SMark Murray.if defined(RELEASEDIR) || \
61f05d1ad2SMark Murray    (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \
620dc44b5aSRuslan Ermilov    defined(NOCRYPT) || (defined(NOSECURE) && !defined(MAKE_KERBEROS4))
63c9811e98SBruce Evans_libtelnet=	libtelnet
64c9811e98SBruce Evans.endif
658ff10292SPeter Wemm
6658f0484fSRodney W. Grimes.include <bsd.subdir.mk>
67