Makefile revision 36428
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 236428Speter# $Id: Makefile,v 1.68 1998/05/13 22:54:03 jb 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.* 3436428Speter.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 3536428Speter_libcrypt= ../secure/lib/libcrypt libcrypt 3636428Speter.else 3734689Sbde_libcrypt= libcrypt 3811071Sache.endif 3911071Sache 4034689Sbde.if ${MACHINE_ARCH} == "i386" 4134689Sbde_libdisk= libdisk 4234689Sbde_libkvm= libkvm 4334689Sbde_libscsi= libscsi 4434689Sbde_libvgl= libvgl 4536026Sjb.endif 4634689Sbde 4734689Sbde.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \ 4834689Sbde exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl) 4934689Sbde_libtcl= libtcl 5014077Sjoerg.endif 519957Smarkm 5232386Sjb.if defined(WANT_CSRG_LIBM) 5334689Sbde_libm= libm 542119Sjkh.else 5534689Sbde_libm= msun 562119Sjkh.endif 572119Sjkh 5834689Sbde.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \ 5934689Sbde defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 6034689Sbde_libtelnet= libtelnet 6134689Sbde.endif 6220845Speter 631573Srgrimes.include <bsd.subdir.mk> 64