Makefile revision 55505
1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD: head/lib/Makefile 55505 2000-01-06 12:40:54Z shin $ 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 libkrb and libskey. 10# libm must be built before libstdc++. 11# libmd must be built before libatm, libcrypt, libopie, libradius, libskey, 12# and libtacplus. 13# libncurses must be built before libdialog, libedit and libreadline. 14# libradius must be built before libpam. 15# libskey must be built before libpam. 16# libtacplus must be built before libpam. 17# 18# Otherwise, the SUBDIR list should be in alphabetical order. 19 20SUBDIR= ${_csu} libcom_err ${_libm} libmd ${_libcrypt} \ 21 libncurses libradius libskey libtacplus \ 22 ${_compat} libalias libatm ${_libbind} libc ${_libc_r} libcalendar \ 23 libcam libcompat libdevstat libdisk libedit libfetch libform \ 24 libftpio libgnumalloc ${_libio} libipsec libipx libkvm libmenu \ 25 ${_libncp} \ 26 libnetgraph libopie libpam libpanel libpcap libresolv librpcsvc libss \ 27 libstand ${_libtelnet} libutil ${_libvgl} libwrap libxpg4 liby libz 28 29.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 30_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 31.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 32_csu=csu/${MACHINE_ARCH} 33.endif 34 35.if !defined(NOLIBC_R) 36_libc_r= libc_r 37.endif 38 39.if !defined(NO_BIND) 40_libbind= libbind 41.endif 42 43_libcrypt= libcrypt 44.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 45# Build both libraries. They have different names, so no harm, 46# and this avoids having stale libscrypt.* 47_libcrypt+= ../secure/lib/libcrypt 48.endif 49 50.if ${MACHINE_ARCH} == "i386" 51_compat= compat 52_libncp= libncp 53_libvgl= libvgl 54.endif 55 56.if defined(WANT_CSRG_LIBM) 57_libm= libm 58.else 59_libm= msun 60.endif 61 62.if ${MACHINE_ARCH} == "alpha" 63_libio= libio 64.endif 65 66.if defined(RELEASEDIR) || \ 67 (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \ 68 defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 69_libtelnet= libtelnet 70.endif 71 72.include <bsd.subdir.mk> 73