Makefile revision 38454
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $Id: Makefile,v 1.71 1998/08/17 09:32:07 des Exp $ 31573Srgrimes 434689Sbde# To satisfy shared library or ELF linkage when only the libraries being 534689Sbde# built are visible: 634689Sbde# 738752Sbde# libcom_err must be built before libss. 834689Sbde# libcrypt and libmd must be built before libskey. 950899Sbde# libm must be built before libtcl. 1045691Sobrien# libmytinfo must be built before libncurses. 1150899Sbde# libtermcap must be built before libcurses and libedit. 1250899Sbde# 1350731Speter# Otherwise, the SUBDIR list should be in alphabetical order. 1441257Sjdp 1541257SjdpSUBDIR= libcom_err ${_libcrypt} ${_libm} libmytinfo libtermcap \ 1641257Sjdp compat ${_csu} libalias libbind libc ${_libc_r} libcalendar \ 1734689Sbde libcompat libcurses ${_libdisk} libedit libf2c libfetch libftpio \ 1834689Sbde libgnumalloc libipx libkvm libmd libncurses libopie \ 1934689Sbde libpcap libresolv librpcsvc ${_libscsi} libskey libss libstand \ 2050738Smarkm ${_libtcl} ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz 2150899Sbde 2239271Sphk.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${BINFORMAT}) 2350948Speter_csu=csu/${MACHINE_ARCH}-${BINFORMAT} 2450948Speter.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 2550948Speter_csu=csu/${MACHINE_ARCH} 2644746Smarkm.endif 2734689Sbde 2838632Sjb.if !defined(NOLIBC_R) 2938632Sjb_libc_r= libc_r 3034330Sjb.endif 3134689Sbde 321573Srgrimes# Build both libraries. They have different names, so no harm, 331573Srgrimes# and this avoids having stale libscrypt.* 3434330Sjb.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 3534689Sbde_libcrypt= ../secure/lib/libcrypt libcrypt 3617706Sjulian.else 3717706Sjulian_libcrypt= libcrypt 3850738Smarkm.endif 3950738Smarkm 4034738Smarkm.if ${MACHINE_ARCH} == "i386" 4134738Smarkm_libdisk= libdisk 4250738Smarkm_libscsi= libscsi 4311071Sache_libvgl= libvgl 4411071Sache.endif 4534689Sbde 4638477Sgpalmer.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \ 4734689Sbde exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl) 4836026Sjb_libtcl= libtcl 4934689Sbde.endif 5032386Sjb 5134689Sbde.if defined(WANT_CSRG_LIBM) 522119Sjkh_libm= libm 5334689Sbde.else 542119Sjkh_libm= msun 552119Sjkh.endif 5641912Sdfr 5741912Sdfr.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \ 5841912Sdfr defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 5941912Sdfr_libtelnet= libtelnet 6034689Sbde.endif 6134689Sbde 6234689Sbde.include <bsd.subdir.mk> 6334689Sbde