Makefile revision 210690
1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD: head/lib/Makefile 210690 2010-07-31 16:12:47Z rpaulo $ 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_ORDERED= ${_csu} \ 33 libc \ 34 libbsm \ 35 libauditd \ 36 libcom_err \ 37 libcrypt \ 38 libelf \ 39 libkvm \ 40 msun \ 41 libmd \ 42 ncurses \ 43 ${_libnetgraph} \ 44 libradius \ 45 librpcsvc \ 46 libsbuf \ 47 libtacplus \ 48 libutil \ 49 ${_libypclnt} 50 51SUBDIR= ${SUBDIR_ORDERED} \ 52 libalias \ 53 libarchive \ 54 ${_libatm} \ 55 libbegemot \ 56 ${_libbluetooth} \ 57 ${_libbsnmp} \ 58 libbz2 \ 59 libcalendar \ 60 libcam \ 61 libcompat \ 62 libdevinfo \ 63 libdevstat \ 64 libdisk \ 65 libdwarf \ 66 libedit \ 67 ${_libefi} \ 68 libexpat \ 69 libfetch \ 70 libftpio \ 71 libgeom \ 72 ${_libgpib} \ 73 ${_libgssapi} \ 74 ${_librpcsec_gss} \ 75 libipsec \ 76 ${_libipx} \ 77 libjail \ 78 libkiconv \ 79 liblzma \ 80 libmagic \ 81 libmemstat \ 82 ${_libmilter} \ 83 ${_libmp} \ 84 ${_libncp} \ 85 ${_libngatm} \ 86 libopie \ 87 libpam \ 88 libpcap \ 89 ${_libpkg} \ 90 ${_libpmc} \ 91 ${_libproc} \ 92 librt \ 93 ${_librtld_db} \ 94 ${_libsdp} \ 95 ${_libsm} \ 96 ${_libsmb} \ 97 ${_libsmdb} \ 98 ${_libsmutil} \ 99 libstand \ 100 ${_libtelnet} \ 101 ${_libthr} \ 102 libthread_db \ 103 libufs \ 104 libugidfw \ 105 libulog \ 106 ${_libusbhid} \ 107 ${_libusb} \ 108 ${_libvgl} \ 109 libwrap \ 110 liby \ 111 libz \ 112 ${_bind} \ 113 ${_clang} 114 115.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 116_csu=csu/${MACHINE_ARCH}-elf 117.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 118_csu=csu/${MACHINE_ARCH} 119.else 120_csu=csu 121.endif 122 123# NB: keep these sorted by MK_* knobs 124 125.if ${MK_ATM} != "no" 126_libngatm= libngatm 127.endif 128 129.if ${MK_BIND} != "no" 130_bind= bind 131.endif 132 133.if ${MK_BLUETOOTH} != "no" 134_libbluetooth= libbluetooth 135_libsdp= libsdp 136.endif 137 138.if ${MK_BSNMP} != "no" 139_libbsnmp= libbsnmp 140.endif 141 142.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 143_clang= clang 144.endif 145 146.if ${MK_GPIB} != "no" 147_libgpib= libgpib 148.endif 149 150.if ${MK_GSSAPI} != "no" 151_libgssapi= libgssapi 152_librpcsec_gss= librpcsec_gss 153.endif 154 155.if ${MK_IPX} != "no" 156_libipx= libipx 157.endif 158 159.if ${MK_LIBTHR} != "no" 160_libthr= libthr 161.endif 162 163.if ${MK_NETGRAPH} != "no" 164_libnetgraph= libnetgraph 165.endif 166 167.if ${MK_NIS} != "no" 168_libypclnt= libypclnt 169.endif 170 171.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" 172.if ${MK_NCP} != "no" 173_libncp= libncp 174.endif 175_libsmb= libsmb 176_libvgl= libvgl 177_libproc= libproc 178_librtld_db= librtld_db 179.endif 180 181.if ${MACHINE_ARCH} == "ia64" 182_libefi= libefi 183_libsmb= libsmb 184.endif 185 186.if ${MACHINE_CPUARCH} == "powerpc" 187_libsmb= libsmb 188.endif 189 190.if ${MACHINE_ARCH} == "sparc64" 191_libsmb= libsmb 192.endif 193 194.if ${MK_OPENSSL} != "no" 195_libmp= libmp 196.endif 197 198.if ${MK_PMC} != "no" 199_libpmc= libpmc 200.endif 201 202.if ${MK_PKGTOOLS} != "no" 203_libpkg= libpkg 204.endif 205 206.if ${MK_SENDMAIL} != "no" 207_libmilter= libmilter 208_libsm= libsm 209_libsmdb= libsmdb 210_libsmutil= libsmutil 211.endif 212 213.if ${MK_TELNET} != "no" 214_libtelnet= libtelnet 215.endif 216 217.if ${MK_USB} != "no" 218_libusbhid= libusbhid 219_libusb= libusb 220.endif 221 222.include <bsd.subdir.mk> 223