Makefile revision 38331
11573Srgrimes#	@(#)Makefile	8.1 (Berkeley) 6/4/93
21573Srgrimes#	$Id: Makefile,v 1.69 1998/05/27 18:42:36 peter Exp $
31573Srgrimes
42275Spaul# To satisfy shared library or ELF linkage when only the libraries being
51573Srgrimes# built are visible:
62275Spaul#
71614Srgrimes# libcom_err must be built before libss.
82275Spaul# libcrypt and libmd must be built before libskey.
91573Srgrimes# libm must be built before libtcl.
101573Srgrimes# libmytinfo must be built before libncurses.
1112242Smarkm# libtermcap must be built before libcurses and libedit.
1226029Sbrian#
1322385Spst# Otherwise, the SUBDIR list should be in alphabetical order.
1422385Spst
1528587SsosSUBDIR=	libcom_err ${_libcrypt} ${_libm} libmytinfo libtermcap \
1617655Speter	compat ${_csu} libalias libbind libc ${_libc_r} libcalendar \
1725399Sjb	libcompat libcurses ${_libdisk} libedit libf2c libftpio \
1817706Sjulian	libgnumalloc libipx libkvm libmd libncurses libopie \
1917706Sjulian	libpcap libresolv librpcsvc ${_libscsi} libskey libss \
2017706Sjulian	${_libtcl} ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz
2124833Speter
2224833Speter.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${BINFORMAT})
2324833Speter_csu=csu/${MACHINE_ARCH}-${BINFORMAT}
2424833Speter.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
2524833Speter_csu=csu/${MACHINE_ARCH}
2620318Sphk.endif
2711071Sache
2811071Sache.if !defined(NOLIBC_R)
2911071Sache_libc_r=	libc_r
3013620Sjoerg.endif
3113620Sjoerg
3213620Sjoerg# Build both libraries. They have different names, so no harm,
3311071Sache# and this avoids having stale libscrypt.*
3413620Sjoerg.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
3511071Sache_libcrypt=	../secure/lib/libcrypt libcrypt
3621426Sache.else
379957Smarkm_libcrypt=	libcrypt
3811067Sache.endif
3914077Sjoerg
4014077Sjoerg.if ${MACHINE_ARCH} == "i386"
4114077Sjoerg_libdisk=	libdisk
4214077Sjoerg_libscsi=	libscsi
4319367Smarkm_libvgl=	libvgl
449957Smarkm.endif
459957Smarkm
467208Sphk.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \
472119Sjkh    exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl)
482119Sjkh_libtcl=	libtcl
492119Sjkh.endif
502119Sjkh
512119Sjkh.if defined(WANT_CSRG_LIBM)
5220845Speter_libm=		libm
5320845Speter.else
541573Srgrimes_libm=		msun
55.endif
56
57.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
58    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
59_libtelnet=	libtelnet
60.endif
61
62.include <bsd.subdir.mk>
63