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