Makefile revision 41123
1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $Id: Makefile,v 1.82 1998/10/13 16:48:43 bde Exp $ 3 4# To satisfy shared library or ELF linkage when only the libraries being 5# built are visible: 6# 7# csu must be built before all shared libaries for ELF. 8# libcom_err must be built before libss. 9# libcrypt must be built before libskey. 10# libm must be built before libf2c, libg++ and libstdc++. 11# libmd must be built before libatm, libopie, libradius, libskey, 12# and libtacplus. 13# libmytinfo must be built before libdialog and libncurses. 14# libncurses must be built before libdialog. 15# libtermcap must be built before libcurses, libedit and libreadline. 16# 17# Otherwise, the SUBDIR list should be in alphabetical order. 18 19SUBDIR= ${_csu} libcom_err ${_libcrypt} ${_libm} libmd libmytinfo \ 20 libncurses libtermcap \ 21 ${_compat} libalias libatm libbind libc ${_libc_r} libcalendar libcam \ 22 libcompat libcurses libdevstat libdisk libedit libf2c libfetch \ 23 libftpio libgnumalloc libipx libkvm libopie \ 24 libpcap libradius libresolv librpcsvc libskey libss libstand \ 25 libtacplus ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz 26 27.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 28_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 29.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 30_csu=csu/${MACHINE_ARCH} 31.endif 32 33.if !defined(NOLIBC_R) 34_libc_r= libc_r 35.endif 36 37# Build both libraries. They have different names, so no harm, 38# and this avoids having stale libscrypt.* 39.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 40_libcrypt= ../secure/lib/libcrypt libcrypt 41.else 42_libcrypt= libcrypt 43.endif 44 45.if ${MACHINE_ARCH} == "i386" 46_compat= compat 47_libvgl= libvgl 48.endif 49 50.if defined(WANT_CSRG_LIBM) 51_libm= libm 52.else 53_libm= msun 54.endif 55 56.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \ 57 defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 58_libtelnet= libtelnet 59.endif 60 61.include <bsd.subdir.mk> 62