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 libmagic \ 80 libmemstat \ 81 ${_libmilter} \ 82 ${_libmp} \ 83 ${_libncp} \ 84 ${_libngatm} \ 85 libopie \ 86 libpam \ 87 libpcap \ 88 ${_libpkg} \ 89 ${_libpmc} \ 90 libproc \ 91 librt \ 92 ${_libsdp} \ 93 ${_libsm} \ 94 ${_libsmb} \ 95 ${_libsmdb} \ 96 ${_libsmutil} \ 97 libstand \ 98 ${_libtelnet} \ 99 ${_libthr} \ 100 libthread_db \ 101 libufs \ 102 libugidfw \ 103 libulog \ 104 ${_libusbhid} \ 105 ${_libusb} \ 106 ${_libvgl} \ 107 libwrap \ 108 liby \ 109 libz \ 110 ${_bind} 111 112.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 113_csu=csu/${MACHINE_ARCH}-elf 114.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 115_csu=csu/${MACHINE_ARCH} 116.else 117_csu=csu 118.endif 119 120# NB: keep these sorted by MK_* knobs 121 122.if ${MK_ATM} != "no" 123_libngatm= libngatm 124.endif 125 126.if ${MK_BIND} != "no" 127_bind= bind 128.endif 129 130.if ${MK_BLUETOOTH} != "no" 131_libbluetooth= libbluetooth 132_libsdp= libsdp 133.endif 134 135.if ${MK_BSNMP} != "no" 136_libbsnmp= libbsnmp 137.endif 138 139.if ${MK_GPIB} != "no" 140_libgpib= libgpib 141.endif 142 143.if ${MK_GSSAPI} != "no" 144_libgssapi= libgssapi 145_librpcsec_gss= librpcsec_gss 146.endif 147 148.if ${MK_IPX} != "no" 149_libipx= libipx 150.endif 151 152.if ${MK_LIBTHR} != "no" 153_libthr= libthr 154.endif 155 156.if ${MK_NETGRAPH} != "no" 157_libnetgraph= libnetgraph 158.endif 159 160.if ${MK_NIS} != "no" 161_libypclnt= libypclnt 162.endif 163 164.if ${MACHINE_ARCH} == "i386" 165.if ${MK_NCP} != "no" 166_libncp= libncp 167.endif 168_libsmb= libsmb 169_libvgl= libvgl 170.endif 171 172.if ${MACHINE_ARCH} == "ia64" 173_libefi= libefi 174_libsmb= libsmb 175.endif 176 177.if ${MACHINE_ARCH} == "amd64" 178.if ${MK_NCP} != "no" 179_libncp= libncp 180.endif 181_libsmb= libsmb 182_libvgl= libvgl 183.endif 184 185.if ${MACHINE_ARCH} == "powerpc" 186_libsmb= libsmb 187.endif 188 189.if ${MACHINE_ARCH} == "sparc64" 190_libsmb= libsmb 191.endif 192 193.if ${MK_OPENSSL} != "no" 194_libmp= libmp 195.endif 196 197.if ${MK_PMC} != "no" 198_libpmc= libpmc 199.endif 200 201.if ${MK_PKGTOOLS} != "no" 202_libpkg= libpkg 203.endif 204 205.if ${MK_SENDMAIL} != "no" 206_libmilter= libmilter 207_libsm= libsm 208_libsmdb= libsmdb 209_libsmutil= libsmutil 210.endif 211 212.if ${MK_TELNET} != "no" 213_libtelnet= libtelnet 214.endif 215 216.if ${MK_USB} != "no" 217_libusbhid= libusbhid 218_libusb= libusb 219.endif 220 221.include <bsd.subdir.mk> 222