Makefile revision 211725
1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD: head/lib/Makefile 211725 2010-08-23 22:24: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_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_CPUARCH}-elf) 116_csu=csu/${MACHINE_CPUARCH}-elf 117.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 118_csu=csu/${MACHINE_CPUARCH} 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_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "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_CPUARCH} == "ia64" 182_libefi= libefi 183_libsmb= libsmb 184.endif 185 186.if ${MACHINE_CPUARCH} == "amd64" 187.if ${MK_NCP} != "no" 188_libncp= libncp 189.endif 190.endif 191 192.if ${MACHINE_CPUARCH} == "powerpc" 193_libsmb= libsmb 194.endif 195 196.if ${MACHINE_CPUARCH} == "sparc64" 197_libsmb= libsmb 198.endif 199 200.if ${MK_OPENSSL} != "no" 201_libmp= libmp 202.endif 203 204.if ${MK_PMC} != "no" 205_libpmc= libpmc 206.endif 207 208.if ${MK_PKGTOOLS} != "no" 209_libpkg= libpkg 210.endif 211 212.if ${MK_SENDMAIL} != "no" 213_libmilter= libmilter 214_libsm= libsm 215_libsmdb= libsmdb 216_libsmutil= libsmutil 217.endif 218 219.if ${MK_TELNET} != "no" 220_libtelnet= libtelnet 221.endif 222 223.if ${MK_USB} != "no" 224_libusbhid= libusbhid 225_libusb= libusb 226.endif 227 228.include <bsd.subdir.mk> 229