Makefile revision 34689
134689Sbde#	@(#)Makefile	8.1 (Berkeley) 6/4/93
234330Sjb#	$Id$
31573Srgrimes
434689Sbde# To satisfy shared library or ELF linkage when only the libraries being
534689Sbde# built are visible:
634689Sbde#
734689Sbde# libcom_err must be built before libss.
834689Sbde# libcrypt and libmd must be built before libskey.
934689Sbde# libm must be built before libtcl.
1034689Sbde# libmytinfo must be built before libncurses.
1134689Sbde# libtermcap must be built before libcurses and libedit.
1234689Sbde#
1334689Sbde# Otherwise, the SUBDIR list should be in alphabetical order.
1434689Sbde
1534689SbdeSUBDIR=	libcom_err ${_libcrypt} ${_libm} libmytinfo libtermcap \
1634689Sbde	compat ${_csu} libalias libc ${_libc_r} libcalendar \
1734689Sbde	libcompat libcurses ${_libdisk} libedit libf2c libftpio \
1834689Sbde	libgnumalloc libipx ${_libkvm} libmd libncurses libopie \
1934689Sbde	libpcap libresolv librpcsvc ${_libscsi} libskey libss \
2034689Sbde	${_libtcl} ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz
2134689Sbde
2234330Sjb.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${BINFORMAT})
2334689Sbde_csu=csu/${MACHINE_ARCH}-${BINFORMAT}
2434330Sjb.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
2534689Sbde_csu=csu/${MACHINE_ARCH}
261573Srgrimes.endif
271573Srgrimes
2834330Sjb.if !defined(NOLIBC_R)
2934689Sbde_libc_r=	libc_r
3017706Sjulian.endif
3117706Sjulian
3220318Sphk.if !exists(${.CURDIR}/../secure) || defined(NOSECURE) || defined(NOCRYPT)
3334689Sbde_libcrypt=	libcrypt
3411071Sache.else
3534689Sbde_libcrypt=	../secure/lib/libcrypt
3634689Sbde# Releases need both libraries.
3713620Sjoerg.if defined(RELEASEDIR)
3834689Sbde_libcrypt+=	libcrypt
3911071Sache.endif
4013620Sjoerg.endif
4111071Sache
4234689Sbde.if ${MACHINE_ARCH} == "i386"
4334689Sbde_libdisk=	libdisk
4434689Sbde_libkvm=	libkvm
4534689Sbde_libscsi=	libscsi
4634689Sbde_libvgl=	libvgl
4734689Sbde
4834689Sbde.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \
4934689Sbde    exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl)
5034689Sbde_libtcl=	libtcl
5114077Sjoerg.endif
5234689Sbde.endif
539957Smarkm
5432386Sjb.if defined(WANT_CSRG_LIBM)
5534689Sbde_libm=		libm
562119Sjkh.else
5734689Sbde_libm=		msun
582119Sjkh.endif
592119Sjkh
6034689Sbde.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
6134689Sbde    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
6234689Sbde_libtelnet=	libtelnet
6334689Sbde.endif
6420845Speter
651573Srgrimes.include <bsd.subdir.mk>
66