Makefile revision 208964
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 208964 2010-06-09 19:57:20Z rdivacky $ 31573Srgrimes 434689Sbde.include <bsd.own.mk> 534689Sbde 634689Sbde# To satisfy shared library or ELF linkage when only the libraries being 738752Sbde# built are visible: 8117675Smarkm# 9117675Smarkm# csu must be built before all shared libaries for ELF. 1081133Stmm# libc must be built before all other shared libraries. 1159897Sjoe# libbsm must be built before ibauditd. 1279471Smarkm# libcom_err must be built before libpam. 1350731Speter# libcrypt must be built before libpam. 14122568Sharti# libkvm must be built before libdevstat. 1559353Skris# msun must be built before libg++ and libstdc++. 1641257Sjdp# libmd must be built before libatm, libopie, libradius, and libtacplus. 1782355Smarkm# ncurses must be built before libdialog, libedit and libreadline. 1894690Sdes# libnetgraph must be built before libbsnmp/modules/snmp_netgraph. 1941257Sjdp# libopie must be built before libpam. 2056081Sbde# libradius must be built before libpam. 2194690Sdes# librpcsvc must be built before libpam. 2234689Sbde# libsbuf must be built before libcam. 2334689Sbde# libtacplus must be built before libpam. 2434689Sbde# libutil must be built before libpam. 25122568Sharti# libypclnt must be built before libpam. 26126799Sphk# libgssapi must be built before librpcsec_gss 27126799Sphk# 28122406Sharti# Otherwise, the SUBDIR list should be in alphabetical order. 29129225Scognet# 30110546Sphk# Except it appears bind needs to be compiled last 31120492Sfjoe 32122568ShartiSUBDIR_ORDERED= ${_csu} \ 33121340Sharti libc \ 34132335Smarcel libbsm \ 35132335Smarcel libauditd \ 3634689Sbde libcom_err \ 37103436Speter libcrypt \ 38103436Speter libelf \ 3972309Sobrien libkvm \ 4034689Sbde msun \ 4172309Sobrien libmd \ 4272309Sobrien ncurses \ 431573Srgrimes ${_libnetgraph} \ 441573Srgrimes libradius \ 45119508Sphk librpcsvc \ 46119508Sphk libsbuf \ 47121340Sharti libtacplus \ 48119508Sphk libutil \ 49119508Sphk ${_libypclnt} 5053927Speter 5153922SpeterSUBDIR= ${SUBDIR_ORDERED} \ 5253922Speter libalias \ 5353922Speter libarchive \ 54125123Semax ${_libatm} \ 55125123Semax libbegemot \ 56125123Semax ${_libbluetooth} \ 57125123Semax ${_libbsnmp} \ 58131768Semax libbz2 \ 59131768Semax libcalendar \ 6038477Sgpalmer libcam \ 6152228Sbp libcompat \ 6287960Ssheldonh libdevinfo \ 6334689Sbde libdevstat \ 6436026Sjb libdisk \ 6534689Sbde libdwarf \ 66129237Sbde libedit \ 67129237Sbde ${_libefi} \ 68129236Sbde libexpat \ 69129236Sbde libfetch \ 70129236Sbde libftpio \ 71129236Sbde libgeom \ 72129236Sbde ${_libgpib} \ 73129236Sbde ${_libgssapi} \ 74129236Sbde ${_librpcsec_gss} \ 7541912Sdfr libipsec \ 7641912Sdfr ${_libipx} \ 7772309Sobrien libjail \ 7841912Sdfr libkiconv \ 7941912Sdfr liblzma \ 80129236Sbde libmagic \ 81129236Sbde libmemstat \ 82129236Sbde ${_libmilter} \ 83129236Sbde ${_libmp} \ 84129236Sbde ${_libncp} \ 85129236Sbde ${_libngatm} \ 86129236Sbde libopie \ 87129236Sbde libpam \ 88129236Sbde libpcap \ 89129236Sbde ${_libpkg} \ 90129236Sbde ${_libpmc} \ 91117950Speter libproc \ 92117950Speter librt \ 93117950Speter ${_libsdp} \ 94118694Sdeischen ${_libsm} \ 95118694Sdeischen ${_libsmb} \ 96129237Sbde ${_libsmdb} \ 97118675Sdeischen ${_libsmutil} \ 98117950Speter libstand \ 99117950Speter ${_libtelnet} \ 100129237Sbde ${_libthr} \ 101129237Sbde libthread_db \ 102117797Smtm libufs \ 103117797Smtm libugidfw \ 104117797Smtm libulog \ 105132335Smarcel ${_libusbhid} \ 106132335Smarcel ${_libusb} \ 107132335Smarcel ${_libvgl} \ 108132335Smarcel libwrap \ 109129236Sbde liby \ 110129236Sbde libz \ 111129225Scognet ${_bind} \ 112129225Scognet ${_clang} 113126799Sphk 114126799Sphk.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 115126799Sphk_csu=csu/${MACHINE_ARCH}-elf 116126799Sphk.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 1171573Srgrimes_csu=csu/${MACHINE_ARCH} 118.else 119_csu=csu 120.endif 121 122# NB: keep these sorted by MK_* knobs 123 124.if ${MK_ATM} != "no" 125_libngatm= libngatm 126.endif 127 128.if ${MK_BIND} != "no" 129_bind= bind 130.endif 131 132.if ${MK_BLUETOOTH} != "no" 133_libbluetooth= libbluetooth 134_libsdp= libsdp 135.endif 136 137.if ${MK_BSNMP} != "no" 138_libbsnmp= libbsnmp 139.endif 140 141.if ${MK_CLANG} != "no" 142_clang= clang 143.endif 144 145.if ${MK_GPIB} != "no" 146_libgpib= libgpib 147.endif 148 149.if ${MK_GSSAPI} != "no" 150_libgssapi= libgssapi 151_librpcsec_gss= librpcsec_gss 152.endif 153 154.if ${MK_IPX} != "no" 155_libipx= libipx 156.endif 157 158.if ${MK_LIBTHR} != "no" 159_libthr= libthr 160.endif 161 162.if ${MK_NETGRAPH} != "no" 163_libnetgraph= libnetgraph 164.endif 165 166.if ${MK_NIS} != "no" 167_libypclnt= libypclnt 168.endif 169 170.if ${MACHINE_ARCH} == "i386" 171.if ${MK_NCP} != "no" 172_libncp= libncp 173.endif 174_libsmb= libsmb 175_libvgl= libvgl 176.endif 177 178.if ${MACHINE_ARCH} == "ia64" 179_libefi= libefi 180_libsmb= libsmb 181.endif 182 183.if ${MACHINE_ARCH} == "amd64" 184.if ${MK_NCP} != "no" 185_libncp= libncp 186.endif 187_libsmb= libsmb 188_libvgl= libvgl 189.endif 190 191.if ${MACHINE_ARCH} == "powerpc" 192_libsmb= libsmb 193.endif 194 195.if ${MACHINE_ARCH} == "sparc64" 196_libsmb= libsmb 197.endif 198 199.if ${MK_OPENSSL} != "no" 200_libmp= libmp 201.endif 202 203.if ${MK_PMC} != "no" 204_libpmc= libpmc 205.endif 206 207.if ${MK_PKGTOOLS} != "no" 208_libpkg= libpkg 209.endif 210 211.if ${MK_SENDMAIL} != "no" 212_libmilter= libmilter 213_libsm= libsm 214_libsmdb= libsmdb 215_libsmutil= libsmutil 216.endif 217 218.if ${MK_TELNET} != "no" 219_libtelnet= libtelnet 220.endif 221 222.if ${MK_USB} != "no" 223_libusbhid= libusbhid 224_libusb= libusb 225.endif 226 227.include <bsd.subdir.mk> 228