Makefile revision 90796
11573Srgrimes# @(#)Makefile 8.1 (Berkeley) 6/4/93 21573Srgrimes# $FreeBSD: head/lib/Makefile 90796 2002-02-17 22:01:40Z gshapiro $ 31601Srgrimes 41584Srgrimes# To satisfy shared library or ELF linkage when only the libraries being 51584Srgrimes# built are visible: 61573Srgrimes# 71573Srgrimes# csu must be built before all shared libaries for ELF. 81573Srgrimes# libcom_err must be built before libkrb and libpam. 91573Srgrimes# libcrypt must be built before libkrb and libpam. 101573Srgrimes# libkvm must be built before libdevstat. 111614Srgrimes# msun must be built before libg++ and libstdc++. 121614Srgrimes# libmd must be built before libatm, libopie, libradius, and libtacplus. 131573Srgrimes# libncurses must be built before libdialog, libedit and libreadline. 141573Srgrimes# libopie must be built before libpam. 151573Srgrimes# libradius must be built before libpam. 16# librpcsvc must be built before libpam. 17# libtacplus must be built before libpam. 18# libutil must be built before libpam. 19# libsbuf must be built before libcam. 20# 21# Otherwise, the SUBDIR list should be in alphabetical order. 22 23SUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd \ 24 libncurses libradius librpcsvc libtacplus libutil libsbuf \ 25 ${_compat} libalias libatm ${_libbind} libbz2 libc ${_libc_r} \ 26 libcalendar libcam libcompat libdevinfo libdevstat libdisk \ 27 libedit libfetch libform libftpio ${_libgnumalloc} ${_libio} libipsec \ 28 libipx libisc libmenu ${_libmilter} ${_libmp} ${_libncp} \ 29 libnetgraph libopie libpam libpanel libpcap \ 30 ${_libresolv} ${_libsm} ${_libsmb} ${_libsmdb} ${_libsmutil} \ 31 libstand ${_libtelnet} libusb ${_libvgl} libwrap libxpg4 liby libz 32 33.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT}) 34_csu=csu/${MACHINE_ARCH}-${OBJFORMAT} 35.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 36_csu=csu/${MACHINE_ARCH} 37.else 38_csu=csu 39.endif 40 41.if ${MACHINE_ARCH} == "i386" 42_libgnumalloc= libgnumalloc 43_libresolv= libresolv 44.endif 45 46.if !defined(NOLIBC_R) && ${MACHINE_ARCH} != ia64 47_libc_r= libc_r 48.endif 49 50.if !defined(NO_BIND) 51_libbind= libbind 52.endif 53 54.if !defined(NO_SENDMAIL) 55_libmilter= libmilter 56_libsm= libsm 57_libsmdb= libsmdb 58_libsmutil= libsmutil 59.endif 60 61.if ${MACHINE_ARCH} == "i386" 62_compat= compat 63_libncp= libncp 64_libsmb= libsmb 65_libvgl= libvgl 66.endif 67 68.if ${MACHINE_ARCH} == "alpha" 69_libio= libio 70_compat= compat 71.endif 72 73.if defined(RELEASEDIR) || \ 74 (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \ 75 defined(NOCRYPT) || (defined(NOSECURE) && !defined(MAKE_KERBEROS4)) 76_libtelnet= libtelnet 77.endif 78 79.if exists(${.CURDIR}/../crypto) && !defined(NOCRYPT) && !defined(NO_OPENSSL) 80_libmp= libmp 81.endif 82 83.include <bsd.subdir.mk> 84