Makefile revision 156905
1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD: head/lib/Makefile 156905 2006-03-20 14:24:58Z ru $ 3 4.include <bsd.own.mk> 5 6# To satisfy shared library or ELF linkage when only the libraries being 7# built are visible: 8# 9# csu must be built before all shared libaries for ELF. 10# libcom_err must be built before libkrb5 and libpam. 11# libcrypt must be built before libkrb5 and libpam. 12# libkvm must be built before libdevstat. 13# msun must be built before libg++ and libstdc++. 14# libmd must be built before libatm, libopie, libradius, and libtacplus. 15# libncurses must be built before libdialog, libedit and libreadline. 16# libnetgraph must be built before libbsnmp/modules/snmp_netgraph. 17# libopie must be built before libpam. 18# libradius must be built before libpam. 19# librpcsvc must be built before libpam. 20# libsbuf must be built before libcam. 21# libtacplus must be built before libpam. 22# libutil must be built before libpam. 23# libypclnt must be built before libpam. 24# 25# Otherwise, the SUBDIR list should be in alphabetical order. 26 27SUBDIR= ${_csu} libbsm libcom_err libcrypt libkvm msun libmd libncurses \ 28 libnetgraph libradius librpcsvc libsbuf libtacplus libutil \ 29 ${_libypclnt} libalias libarchive ${_libatm} \ 30 libbegemot ${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \ 31 libcalendar libcam libcompat libdevinfo libdevstat libdisk \ 32 libedit libexpat libfetch libform libftpio libgeom ${_libgpib} \ 33 libgssapi ${_libio} libipsec \ 34 ${_libipx} libkiconv libmagic libmemstat libmenu ${_libmilter} ${_libmp} \ 35 ${_libncp} ${_libngatm} libopie libpam libpanel libpcap \ 36 libpmc ${_libpthread} librt ${_libsdp} ${_libsm} ${_libsmb} \ 37 ${_libsmdb} \ 38 ${_libsmutil} libstand libtelnet ${_libthr} ${_libthread_db} libufs \ 39 libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind} 40 41.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 42_csu=csu/${MACHINE_ARCH}-elf 43.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 44_csu=csu/${MACHINE_ARCH} 45.else 46_csu=csu 47.endif 48 49.if ${MK_ATM} != "no" 50_libatm= libatm 51_libngatm= libngatm 52.endif 53 54.if ${MK_BIND} != "no" 55_bind= bind 56.endif 57 58.if ${MK_BLUETOOTH} != "no" 59_libbluetooth= libbluetooth 60_libsdp= libsdp 61.endif 62 63.if ${MK_IPX} != "no" 64_libipx= libipx 65.endif 66 67.if ${MACHINE_ARCH} == "i386" 68.if ${MK_NCP} != "no" 69_libncp= libncp 70.endif 71_libsmb= libsmb 72_libvgl= libvgl 73.endif 74 75.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "ia64" && \ 76 ${MACHINE_ARCH} != "powerpc" && ${MK_LIBC_R} != "no" 77_libc_r= 78.endif 79 80.if ${MACHINE_ARCH} == "alpha" 81_libio= libio 82.endif 83 84.if ${MK_SENDMAIL} != "no" 85_libmilter= libmilter 86_libsm= libsm 87_libsmdb= libsmdb 88_libsmutil= libsmutil 89.endif 90 91.if ${MK_OPENSSL} != "no" 92_libmp= libmp 93.endif 94 95.if ${MACHINE_ARCH} == "amd64" 96.if ${MK_NCP} != "no" 97_libncp= libncp 98.endif 99_libsmb= libsmb 100.endif 101 102.if ${MACHINE_ARCH} == "powerpc" 103_libsmb= libsmb 104.endif 105 106.if ${MK_LIBPTHREAD} != "no" 107_libpthread= libpthread 108.endif 109 110.if ${MK_LIBTHR} != "no" 111_libthr= libthr 112.endif 113 114.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "powerpc" 115_libthread_db= libthread_db 116.endif 117 118.if ${MK_USB} != "no" 119_libusbhid= libusbhid 120.endif 121 122.if ${MK_NIS} != "no" 123_libypclnt= libypclnt 124.endif 125 126.if ${MK_GPIB} != "no" 127_libgpib= libgpib 128.endif 129 130.include <bsd.subdir.mk> 131