158f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 2ff5fcc93SSatoshi Asami# $Id: Makefile,v 1.75 1998/09/02 15:02:18 bde Exp $ 3c9811e98SBruce Evans 4c9811e98SBruce Evans# To satisfy shared library or ELF linkage when only the libraries being 5c9811e98SBruce Evans# built are visible: 6c9811e98SBruce Evans# 70f09aefaSBruce Evans# csu must be built before all shared libaries for ELF. 8c9811e98SBruce Evans# libcom_err must be built before libss. 9c9811e98SBruce Evans# libcrypt and libmd must be built before libskey. 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 150f09aefaSBruce EvansSUBDIR= ${_csu} libcom_err ${_libcrypt} ${_libm} libmytinfo libtermcap \ 160f09aefaSBruce Evans ${_compat} libalias libbind libc ${_libc_r} libcalendar \ 17163074e1SDag-Erling Smørgrav libcompat libcurses ${_libdisk} libedit libf2c libfetch libftpio \ 1818381dacSJohn Birrell libgnumalloc libipx libkvm libmd libncurses libopie \ 19a8d0d4d6SMike Smith libpcap libresolv librpcsvc ${_libscsi} libskey libss libstand \ 20ff5fcc93SSatoshi Asami ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz 2158f0484fSRodney W. Grimes 228deb7ff0SJohn Birrell.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 238deb7ff0SJohn Birrell_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 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.* 34efa3929eSMark Murray.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 35c932f886SPeter Wemm_libcrypt= ../secure/lib/libcrypt libcrypt 36c932f886SPeter Wemm.else 37c932f886SPeter Wemm_libcrypt= libcrypt 38e6af2dc8SAndrey A. Chernov.endif 39e6af2dc8SAndrey A. Chernov 40c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386" 41d78dcde2SGary Palmer_compat= compat 42c9811e98SBruce Evans_libdisk= libdisk 43c9811e98SBruce Evans_libscsi= libscsi 44c9811e98SBruce Evans_libvgl= libvgl 45d788c4fbSJohn Birrell.endif 46c9811e98SBruce Evans 476a7a98c9SJohn Birrell.if defined(WANT_CSRG_LIBM) 48c9811e98SBruce Evans_libm= libm 49b6059979SJordan K. Hubbard.else 50c9811e98SBruce Evans_libm= msun 51b6059979SJordan K. Hubbard.endif 52b6059979SJordan K. Hubbard 53c9811e98SBruce Evans.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \ 54c9811e98SBruce Evans defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 55c9811e98SBruce Evans_libtelnet= libtelnet 56c9811e98SBruce Evans.endif 578ff10292SPeter Wemm 5858f0484fSRodney W. Grimes.include <bsd.subdir.mk> 59