158f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 2c9811e98SBruce Evans# $Id$ 3c9811e98SBruce Evans 4c9811e98SBruce Evans# To satisfy shared library or ELF linkage when only the libraries being 5c9811e98SBruce Evans# built are visible: 6c9811e98SBruce Evans# 7c9811e98SBruce Evans# libcom_err must be built before libss. 8c9811e98SBruce Evans# libcrypt and libmd must be built before libskey. 9c9811e98SBruce Evans# libm must be built before libtcl. 10c9811e98SBruce Evans# libmytinfo must be built before libncurses. 11c9811e98SBruce Evans# libtermcap must be built before libcurses and libedit. 12c9811e98SBruce Evans# 13c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order. 14c9811e98SBruce Evans 15c9811e98SBruce EvansSUBDIR= libcom_err ${_libcrypt} ${_libm} libmytinfo libtermcap \ 16c9811e98SBruce Evans compat ${_csu} libalias libc ${_libc_r} libcalendar \ 17c9811e98SBruce Evans libcompat libcurses ${_libdisk} libedit libf2c libftpio \ 18c9811e98SBruce Evans libgnumalloc libipx ${_libkvm} libmd libncurses libopie \ 19c9811e98SBruce Evans libpcap libresolv librpcsvc ${_libscsi} libskey libss \ 20c9811e98SBruce Evans ${_libtcl} ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz 2158f0484fSRodney W. Grimes 225f160d14SJohn Birrell.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${BINFORMAT}) 23c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH}-${BINFORMAT} 245f160d14SJohn Birrell.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 25c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH} 26b09f41a4SJohn Birrell.endif 27b09f41a4SJohn Birrell 285f160d14SJohn Birrell.if !defined(NOLIBC_R) 29c9811e98SBruce Evans_libc_r= libc_r 305f160d14SJohn Birrell.endif 31ff2edf0cSPeter Wemm 32efa3929eSMark Murray# Build both libraries. They have different names, so no harm, 33efa3929eSMark Murray# and this avoids having stale libscrypt.* 34c9811e98SBruce Evans_libcrypt= libcrypt 35efa3929eSMark Murray.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 36efa3929eSMark Murray_libcrypt+= ../secure/lib/libcrypt 37e6af2dc8SAndrey A. Chernov.endif 38e6af2dc8SAndrey A. Chernov 39c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386" 40c9811e98SBruce Evans_libdisk= libdisk 41c9811e98SBruce Evans_libkvm= libkvm 42c9811e98SBruce Evans_libscsi= libscsi 43c9811e98SBruce Evans_libvgl= libvgl 44c9811e98SBruce Evans 45c9811e98SBruce Evans.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \ 46c9811e98SBruce Evans exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl) 47c9811e98SBruce Evans_libtcl= libtcl 48c9811e98SBruce Evans.endif 49eb5bc2e7SJoerg Wunsch.endif 50f06e7c2eSPaul Richards 516a7a98c9SJohn Birrell.if defined(WANT_CSRG_LIBM) 52c9811e98SBruce Evans_libm= libm 53b6059979SJordan K. Hubbard.else 54c9811e98SBruce Evans_libm= msun 55b6059979SJordan K. Hubbard.endif 56b6059979SJordan K. Hubbard 57c9811e98SBruce Evans.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \ 58c9811e98SBruce Evans defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 59c9811e98SBruce Evans_libtelnet= libtelnet 60c9811e98SBruce Evans.endif 618ff10292SPeter Wemm 6258f0484fSRodney W. Grimes.include <bsd.subdir.mk> 63