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