Makefile revision 204738
1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD: head/lib/Makefile 204738 2010-03-04 22:01:11Z imp $ 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# libc must be built before all other shared libraries. 11# libbsm must be built before ibauditd. 12# libcom_err must be built before libpam. 13# libcrypt must be built before libpam. 14# libkvm must be built before libdevstat. 15# msun must be built before libg++ and libstdc++. 16# libmd must be built before libatm, libopie, libradius, and libtacplus. 17# ncurses must be built before libdialog, libedit and libreadline. 18# libnetgraph must be built before libbsnmp/modules/snmp_netgraph. 19# libopie must be built before libpam. 20# libradius must be built before libpam. 21# librpcsvc must be built before libpam. 22# libsbuf must be built before libcam. 23# libtacplus must be built before libpam. 24# libutil must be built before libpam. 25# libypclnt must be built before libpam. 26# libgssapi must be built before librpcsec_gss 27# 28# Otherwise, the SUBDIR list should be in alphabetical order. 29# 30# Except it appears bind needs to be compiled last 31 32SUBDIR= ${_csu} libc libbsm libauditd libcom_err libcrypt libelf libkvm \ 33 msun libmd ncurses ${_libnetgraph} libradius librpcsvc libsbuf \ 34 libtacplus libutil ${_libypclnt} 35SUBDIR+=libalias libarchive ${_libatm} libbegemot ${_libbluetooth} \ 36 ${_libbsnmp} libbz2 libcalendar libcam libcompat libdevinfo \ 37 libdevstat libdisk libdwarf libedit ${_libefi} libexpat libfetch \ 38 libftpio libgeom ${_libgpib} ${_libgssapi} ${_librpcsec_gss} libipsec \ 39 ${_libipx} libjail libkiconv libmagic libmemstat ${_libmilter} \ 40 ${_libmp} ${_libncp} ${_libngatm} libopie libpam libpcap \ 41 ${_libpmc} libproc librt ${_libsdp} ${_libsm} ${_libsmb} \ 42 ${_libsmdb} ${_libsmutil} libstand \ 43 ${_libtelnet} ${_libthr} libthread_db libufs libugidfw libulog \ 44 ${_libusbhid} ${_libusb} ${_libvgl} libwrap liby libz \ 45 ${_bind} 46 47.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 48_csu=csu/${MACHINE_ARCH}-elf 49.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 50_csu=csu/${MACHINE_ARCH} 51.else 52_csu=csu 53.endif 54 55# NB: keep these sorted by MK_* knobs 56 57.if ${MK_ATM} != "no" 58_libngatm= libngatm 59.endif 60 61.if ${MK_BIND} != "no" 62_bind= bind 63.endif 64 65.if ${MK_BLUETOOTH} != "no" 66_libbluetooth= libbluetooth 67_libsdp= libsdp 68.endif 69 70.if ${MK_BSNMP} != "no" 71_libbsnmp= libbsnmp 72.endif 73 74.if ${MK_GPIB} != "no" 75_libgpib= libgpib 76.endif 77 78.if ${MK_GSSAPI} != "no" 79_libgssapi= libgssapi 80_librpcsec_gss= librpcsec_gss 81.endif 82 83.if ${MK_IPX} != "no" 84_libipx= libipx 85.endif 86 87.if ${MK_LIBTHR} != "no" 88_libthr= libthr 89.endif 90 91.if ${MK_NETGRAPH} != "no" 92_libnetgraph= libnetgraph 93.endif 94 95.if ${MK_NIS} != "no" 96_libypclnt= libypclnt 97.endif 98 99.if ${MACHINE_ARCH} == "i386" 100.if ${MK_NCP} != "no" 101_libncp= libncp 102.endif 103_libsmb= libsmb 104_libvgl= libvgl 105.endif 106 107.if ${MACHINE_ARCH} == "ia64" 108_libefi= libefi 109_libsmb= libsmb 110.endif 111 112.if ${MACHINE_ARCH} == "amd64" 113.if ${MK_NCP} != "no" 114_libncp= libncp 115.endif 116_libsmb= libsmb 117_libvgl= libvgl 118.endif 119 120.if ${MACHINE_ARCH} == "powerpc" 121_libsmb= libsmb 122.endif 123 124.if ${MACHINE_ARCH} == "sparc64" 125_libsmb= libsmb 126.endif 127 128.if ${MK_OPENSSL} != "no" 129_libmp= libmp 130.endif 131 132.if ${MK_PMC} != "no" 133_libpmc= libpmc 134.endif 135 136.if ${MK_SENDMAIL} != "no" 137_libmilter= libmilter 138_libsm= libsm 139_libsmdb= libsmdb 140_libsmutil= libsmutil 141.endif 142 143.if ${MK_TELNET} != "no" 144_libtelnet= libtelnet 145.endif 146 147.if ${MK_USB} != "no" 148_libusbhid= libusbhid 149_libusb= libusb 150.endif 151 152.include <bsd.subdir.mk> 153