Makefile revision 56081
1219019Sgabor# @(#)Makefile 8.1 (Berkeley) 6/4/93 2219019Sgabor# $FreeBSD: head/lib/Makefile 56081 2000-01-16 04:43:11Z bde $ 3219019Sgabor 4219019Sgabor# To satisfy shared library or ELF linkage when only the libraries being 5219019Sgabor# built are visible: 6219019Sgabor# 7219019Sgabor# csu must be built before all shared libaries for ELF. 8219019Sgabor# libcom_err must be built before libkrb, libpam and libss. 9219019Sgabor# libcrypt must be built before libkrb, libpam and libskey. 10219019Sgabor# libm must be built before libg++ and libstdc++. 11219019Sgabor# libmd must be built before libatm, libcrypt, libopie, libradius, libskey, 12219019Sgabor# and libtacplus. 13219019Sgabor# libncurses must be built before libdialog, libedit and libreadline. 14219019Sgabor# libradius must be built before libpam. 15219019Sgabor# libskey must be built before libpam. 16219019Sgabor# libtacplus must be built before libpam. 17219019Sgabor# libutil must be built before libpam. 18219019Sgabor# 19219019Sgabor# Otherwise, the SUBDIR list should be in alphabetical order. 20219019Sgabor 21219019SgaborSUBDIR= ${_csu} libcom_err ${_libm} libmd ${_libcrypt} \ 22219019Sgabor libncurses libradius libskey libtacplus \ 23219019Sgabor ${_compat} libalias libatm ${_libbind} libc ${_libc_r} libcalendar \ 24219019Sgabor libcam libcompat libdevstat libdisk libedit libfetch libform \ 25219019Sgabor libftpio libgnumalloc ${_libio} libipsec libipx libkvm libmenu \ 26219019Sgabor ${_libncp} \ 27219019Sgabor libnetgraph libopie libpam libpanel libpcap \ 28219019Sgabor libposix1e libresolv librpcsvc libss \ 29219019Sgabor libstand ${_libtelnet} libutil ${_libvgl} libwrap libxpg4 liby libz 30219019Sgabor 31219019Sgabor.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 32219019Sgabor_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 33219019Sgabor.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 34219019Sgabor_csu=csu/${MACHINE_ARCH} 35219019Sgabor.endif 36219019Sgabor 37219019Sgabor.if !defined(NOLIBC_R) 38219019Sgabor_libc_r= libc_r 39219019Sgabor.endif 40 41.if !defined(NO_BIND) 42_libbind= libbind 43.endif 44 45_libcrypt= libcrypt 46.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT) 47# Build both libraries. They have different names, so no harm, 48# and this avoids having stale libscrypt.* 49_libcrypt+= ../secure/lib/libcrypt 50.endif 51 52.if ${MACHINE_ARCH} == "i386" 53_compat= compat 54_libncp= libncp 55_libvgl= libvgl 56.endif 57 58.if defined(WANT_CSRG_LIBM) 59_libm= libm 60.else 61_libm= msun 62.endif 63 64.if ${MACHINE_ARCH} == "alpha" 65_libio= libio 66.endif 67 68.if defined(RELEASEDIR) || \ 69 (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \ 70 defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 71_libtelnet= libtelnet 72.endif 73 74.include <bsd.subdir.mk> 75