Makefile revision 39862
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 239862Sjkh# $Id: Makefile,v 1.80 1998/09/17 03:55:29 gibbs Exp $ 31573Srgrimes 434689Sbde# To satisfy shared library or ELF linkage when only the libraries being 534689Sbde# built are visible: 634689Sbde# 738752Sbde# csu must be built before all shared libaries for ELF. 834689Sbde# libcom_err must be built before libss. 934689Sbde# libcrypt and libmd must be built before libskey. 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 1538910SbdeSUBDIR= ${_csu} libcom_err ${_libcrypt} libmytinfo libtermcap \ 1639271Sphk ${_compat} libalias libatm libbind libc ${_libc_r} libcalendar libcam \ 1739862Sjkh libcompat libcurses libdevstat libdisk libedit libf2c libfetch \ 1839251Sgibbs libftpio libgnumalloc libipx libkvm ${_libm} libmd libncurses libopie \ 1939402Sgibbs libpcap libresolv librpcsvc libskey libss libstand \ 2038857Sasami ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz 2134689Sbde 2238632Sjb.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 2338632Sjb_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 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" 4138477Sgpalmer_compat= compat 4234689Sbde_libvgl= libvgl 4336026Sjb.endif 4434689Sbde 4532386Sjb.if defined(WANT_CSRG_LIBM) 4634689Sbde_libm= libm 472119Sjkh.else 4834689Sbde_libm= msun 492119Sjkh.endif 502119Sjkh 5134689Sbde.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \ 5234689Sbde defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 5334689Sbde_libtelnet= libtelnet 5434689Sbde.endif 5520845Speter 561573Srgrimes.include <bsd.subdir.mk> 57