Makefile revision 56058
14887Schin# @(#)Makefile 8.1 (Berkeley) 6/4/93 24887Schin# $FreeBSD: head/lib/Makefile 56058 2000-01-15 19:47:01Z rwatson $ 34887Schin 44887Schin# To satisfy shared library or ELF linkage when only the libraries being 54887Schin# built are visible: 64887Schin# 74887Schin# csu must be built before all shared libaries for ELF. 84887Schin# libcom_err must be built before libss. 94887Schin# libcrypt must be built before libkrb and libskey. 108462SApril.Chin@Sun.COM# libm must be built before libstdc++. 118462SApril.Chin@Sun.COM# libmd must be built before libatm, libcrypt, libopie, libradius, libskey, 124887Schin# and libtacplus. 134887Schin# libncurses must be built before libdialog, libedit and libreadline. 144887Schin# libradius must be built before libpam. 154887Schin# libskey must be built before libpam. 164887Schin# libtacplus must be built before libpam. 174887Schin# 184887Schin# Otherwise, the SUBDIR list should be in alphabetical order. 194887Schin 204887SchinSUBDIR= ${_csu} libcom_err ${_libm} libmd ${_libcrypt} \ 214887Schin libncurses libradius libskey libtacplus \ 224887Schin ${_compat} libalias libatm ${_libbind} libc ${_libc_r} libcalendar \ 234887Schin libcam libcompat libdevstat libdisk libedit libfetch libform \ 244887Schin libftpio libgnumalloc ${_libio} libipsec libipx libkvm libmenu \ 254887Schin ${_libncp} \ 264887Schin libnetgraph libopie libpam libpanel libpcap \ 274887Schin libposix1e libresolv librpcsvc libss \ 284887Schin libstand ${_libtelnet} libutil ${_libvgl} libwrap libxpg4 liby libz \ 294887Schin 304887Schin.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 314887Schin_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 324887Schin.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 334887Schin_csu=csu/${MACHINE_ARCH} 344887Schin.endif 354887Schin 364887Schin.if !defined(NOLIBC_R) 374887Schin_libc_r= libc_r 384887Schin.endif 394887Schin 404887Schin.if !defined(NO_BIND) 414887Schin_libbind= libbind 424887Schin.endif 434887Schin 444887Schin_libcrypt= libcrypt 454887Schin.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 464887Schin# Build both libraries. They have different names, so no harm, 474887Schin# and this avoids having stale libscrypt.* 484887Schin_libcrypt+= ../secure/lib/libcrypt 494887Schin.endif 50 51.if ${MACHINE_ARCH} == "i386" 52_compat= compat 53_libncp= libncp 54_libvgl= libvgl 55.endif 56 57.if defined(WANT_CSRG_LIBM) 58_libm= libm 59.else 60_libm= msun 61.endif 62 63.if ${MACHINE_ARCH} == "alpha" 64_libio= libio 65.endif 66 67.if defined(RELEASEDIR) || \ 68 (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \ 69 defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 70_libtelnet= libtelnet 71.endif 72 73.include <bsd.subdir.mk> 74