Makefile revision 41257
134689Sbde#	@(#)Makefile	8.1 (Berkeley) 6/4/93
241257Sjdp#	$Id: Makefile,v 1.84 1998/11/18 02:02:27 jdp Exp $
31573Srgrimes
434689Sbde# To satisfy shared library or ELF linkage when only the libraries being
534689Sbde# built are visible:
634689Sbde#
738752Sbde# csu must be built before all shared libaries for ELF.
834689Sbde# libcom_err must be built before libss.
940306Sbde# libcrypt must be built before libskey.
1040306Sbde# libm must be built before libf2c, libg++ and libstdc++.
1141123Sjdp# libmd must be built before libatm, libopie, libradius, libskey,
1241123Sjdp# and libtacplus.
1340306Sbde# libmytinfo must be built before libdialog and libncurses.
1440306Sbde# libncurses must be built before libdialog.
1541257Sjdp# libradius must be built before libpam.
1641257Sjdp# libskey must be built before libpam.
1741257Sjdp# libtacplus must be built before libpam.
1840306Sbde# libtermcap must be built before libcurses, libedit and libreadline.
1934689Sbde#
2034689Sbde# Otherwise, the SUBDIR list should be in alphabetical order.
2134689Sbde
2240306SbdeSUBDIR=	${_csu} libcom_err ${_libcrypt} ${_libm} libmd libmytinfo \
2341257Sjdp	libncurses libtermcap libradius libskey libtacplus \
2439271Sphk	${_compat} libalias libatm libbind libc ${_libc_r} libcalendar libcam \
2539862Sjkh	libcompat libcurses libdevstat libdisk libedit libf2c libfetch \
2641233Sjdp	libftpio libgnumalloc libipx libkvm libopie libpam \
2741257Sjdp	libpcap libresolv librpcsvc libss libstand \
2841233Sjdp	${_libtelnet} libutil ${_libvgl} libxpg4 liby libz
2934689Sbde
3038632Sjb.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
3138632Sjb_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
3234330Sjb.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
3334689Sbde_csu=csu/${MACHINE_ARCH}
341573Srgrimes.endif
351573Srgrimes
3634330Sjb.if !defined(NOLIBC_R)
3734689Sbde_libc_r=	libc_r
3817706Sjulian.endif
3917706Sjulian
4034738Smarkm# Build both libraries. They have different names, so no harm,
4134738Smarkm# and this avoids having stale libscrypt.*
4236428Speter.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
4336428Speter_libcrypt=	../secure/lib/libcrypt libcrypt
4436428Speter.else
4534689Sbde_libcrypt=	libcrypt
4611071Sache.endif
4711071Sache
4834689Sbde.if ${MACHINE_ARCH} == "i386"
4938477Sgpalmer_compat=	compat
5034689Sbde_libvgl=	libvgl
5136026Sjb.endif
5234689Sbde
5332386Sjb.if defined(WANT_CSRG_LIBM)
5434689Sbde_libm=		libm
552119Sjkh.else
5634689Sbde_libm=		msun
572119Sjkh.endif
582119Sjkh
5934689Sbde.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
6034689Sbde    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
6134689Sbde_libtelnet=	libtelnet
6234689Sbde.endif
6320845Speter
641573Srgrimes.include <bsd.subdir.mk>
65