1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD$ 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_CPUARCH}-elf) 118_csu=csu/${MACHINE_CPUARCH}-elf 119.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 120_csu=csu/${MACHINE_CPUARCH} 121.else 122_csu=csu 123.endif 124 125# NB: keep these sorted by MK_* knobs 126 127.if ${MK_ATM} != "no" 128_libngatm= libngatm 129.endif 130 131.if ${MK_BIND} != "no" 132_bind= bind 133.endif 134 135.if ${MK_BLUETOOTH} != "no" 136_libbluetooth= libbluetooth 137_libsdp= libsdp 138.endif 139 140.if ${MK_BSNMP} != "no" 141_libbsnmp= libbsnmp 142.endif 143 144.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 145_clang= clang 146.endif 147 148.if ${MK_GPIB} != "no" 149_libgpib= libgpib 150.endif 151 152.if ${MK_GSSAPI} != "no" 153_libgssapi= libgssapi 154_librpcsec_gss= librpcsec_gss 155.endif 156 157.if ${MK_IPX} != "no" 158_libipx= libipx 159.endif 160 161.if ${MK_LIBTHR} != "no" 162_libthr= libthr 163.endif 164 165.if ${MK_NETGRAPH} != "no" 166_libnetgraph= libnetgraph 167.endif 168 169.if ${MK_NIS} != "no" 170_libypclnt= libypclnt 171.endif 172 173.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 174.if ${MK_NCP} != "no" 175_libncp= libncp 176.endif 177_libsmb= libsmb 178_libvgl= libvgl 179_libproc= libproc 180_librtld_db= librtld_db 181.endif 182 183.if ${MACHINE_CPUARCH} == "ia64" 184_libefi= libefi 185_libsmb= libsmb 186.endif 187 188.if ${MACHINE_CPUARCH} == "amd64" 189.if ${MK_NCP} != "no" 190_libncp= libncp 191.endif 192.endif 193 194.if ${MACHINE_CPUARCH} == "powerpc" 195_libsmb= libsmb 196.endif 197 198.if ${MACHINE_CPUARCH} == "sparc64" 199_libsmb= libsmb 200.endif 201 202.if ${MK_OPENSSL} != "no" 203_libmp= libmp 204.endif 205 206.if ${MK_PMC} != "no" 207_libpmc= libpmc 208.endif 209 210.if ${MK_PKGTOOLS} != "no" 211_libpkg= libpkg 212.endif 213 214.if ${MK_SENDMAIL} != "no" 215_libmilter= libmilter 216_libsm= libsm 217_libsmdb= libsmdb 218_libsmutil= libsmutil 219.endif 220 221.if ${MK_TELNET} != "no" 222_libtelnet= libtelnet 223.endif 224 225.if ${MK_USB} != "no" 226_libusbhid= libusbhid 227_libusb= libusb 228.endif 229 230.include <bsd.subdir.mk> 231