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