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