Makefile revision 36026
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 236026Sjb# $Id: Makefile,v 1.67 1998/05/03 05:06:13 peter Exp $ 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 \ 1635636Speter compat ${_csu} libalias libbind 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 3234738Smarkm# Build both libraries. They have different names, so no harm, 3334738Smarkm# and this avoids having stale libscrypt.* 3434689Sbde_libcrypt= libcrypt 3534738Smarkm.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 3634738Smarkm_libcrypt+= ../secure/lib/libcrypt 3711071Sache.endif 3811071Sache 3934689Sbde.if ${MACHINE_ARCH} == "i386" 4034689Sbde_libdisk= libdisk 4134689Sbde_libkvm= libkvm 4234689Sbde_libscsi= libscsi 4334689Sbde_libvgl= libvgl 4436026Sjb.endif 4534689Sbde 4634689Sbde.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \ 4734689Sbde exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl) 4834689Sbde_libtcl= libtcl 4914077Sjoerg.endif 509957Smarkm 5132386Sjb.if defined(WANT_CSRG_LIBM) 5234689Sbde_libm= libm 532119Sjkh.else 5434689Sbde_libm= msun 552119Sjkh.endif 562119Sjkh 5734689Sbde.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \ 5834689Sbde defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 5934689Sbde_libtelnet= libtelnet 6034689Sbde.endif 6120845Speter 621573Srgrimes.include <bsd.subdir.mk> 63