158f0484fSRodney W. Grimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 247acf556SBruce Evans# $Id: Makefile,v 1.81 1998/10/01 14:49:57 jkh 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. 947acf556SBruce Evans# libcrypt must be built before libskey. 1047acf556SBruce Evans# libm must be built before libf2c, libg++ and libstdc++. 1147acf556SBruce Evans# libmd must be built before libatm, libopie and libskey. 1247acf556SBruce Evans# libmytinfo must be built before libdialog and libncurses. 1347acf556SBruce Evans# libncurses must be built before libdialog. 1447acf556SBruce Evans# libtermcap must be built before libcurses, libedit and libreadline. 15c9811e98SBruce Evans# 16c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order. 17c9811e98SBruce Evans 1847acf556SBruce EvansSUBDIR= ${_csu} libcom_err ${_libcrypt} ${_libm} libmd libmytinfo \ 1947acf556SBruce Evans libncurses libtermcap \ 203f8c4506SPoul-Henning Kamp ${_compat} libalias libatm libbind libc ${_libc_r} libcalendar libcam \ 21e886e3bdSJordan K. Hubbard libcompat libcurses libdevstat libdisk libedit libf2c libfetch \ 2247acf556SBruce Evans libftpio libgnumalloc libipx libkvm libopie \ 23c3deaba9SJustin T. Gibbs libpcap libresolv librpcsvc libskey libss libstand \ 24ff5fcc93SSatoshi Asami ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz 2558f0484fSRodney W. Grimes 268deb7ff0SJohn Birrell.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 278deb7ff0SJohn Birrell_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 285f160d14SJohn Birrell.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 29c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH} 30b09f41a4SJohn Birrell.endif 31b09f41a4SJohn Birrell 325f160d14SJohn Birrell.if !defined(NOLIBC_R) 33c9811e98SBruce Evans_libc_r= libc_r 345f160d14SJohn Birrell.endif 35ff2edf0cSPeter Wemm 36efa3929eSMark Murray# Build both libraries. They have different names, so no harm, 37efa3929eSMark Murray# and this avoids having stale libscrypt.* 38efa3929eSMark Murray.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 39c932f886SPeter Wemm_libcrypt= ../secure/lib/libcrypt libcrypt 40c932f886SPeter Wemm.else 41c932f886SPeter Wemm_libcrypt= libcrypt 42e6af2dc8SAndrey A. Chernov.endif 43e6af2dc8SAndrey A. Chernov 44c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386" 45d78dcde2SGary Palmer_compat= compat 46c9811e98SBruce Evans_libvgl= libvgl 47d788c4fbSJohn Birrell.endif 48c9811e98SBruce Evans 496a7a98c9SJohn Birrell.if defined(WANT_CSRG_LIBM) 50c9811e98SBruce Evans_libm= libm 51b6059979SJordan K. Hubbard.else 52c9811e98SBruce Evans_libm= msun 53b6059979SJordan K. Hubbard.endif 54b6059979SJordan K. Hubbard 55c9811e98SBruce Evans.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \ 56c9811e98SBruce Evans defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 57c9811e98SBruce Evans_libtelnet= libtelnet 58c9811e98SBruce Evans.endif 598ff10292SPeter Wemm 6058f0484fSRodney W. Grimes.include <bsd.subdir.mk> 61