134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD$ 31573Srgrimes 4156813Sru.include <bsd.own.mk> 5156813Sru 634689Sbde# To satisfy shared library or ELF linkage when only the libraries being 734689Sbde# built are visible: 834689Sbde# 938752Sbde# csu must be built before all shared libaries for ELF. 10173017Sru# libc must be built before all other shared libraries. 11186647Srwatson# libbsm must be built before ibauditd. 12204738Simp# libcom_err must be built before libpam. 13204738Simp# libcrypt must be built before libpam. 1481133Stmm# libkvm must be built before libdevstat. 1559897Sjoe# msun must be built before libg++ and libstdc++. 1679471Smarkm# libmd must be built before libatm, libopie, libradius, and libtacplus. 17166131Srafan# ncurses must be built before libdialog, libedit and libreadline. 18122568Sharti# libnetgraph must be built before libbsnmp/modules/snmp_netgraph. 1959353Skris# libopie must be built before libpam. 2041257Sjdp# libradius must be built before libpam. 2182355Smarkm# librpcsvc must be built before libpam. 2294690Sdes# libsbuf must be built before libcam. 2341257Sjdp# libtacplus must be built before libpam. 2456081Sbde# libutil must be built before libpam. 2594690Sdes# libypclnt must be built before libpam. 26181344Sdfr# libgssapi must be built before librpcsec_gss 2734689Sbde# 2834689Sbde# Otherwise, the SUBDIR list should be in alphabetical order. 29204738Simp# 30204738Simp# Except it appears bind needs to be compiled last 3134689Sbde 32205113SimpSUBDIR_ORDERED= ${_csu} \ 33205113Simp libc \ 34205113Simp libbsm \ 35205113Simp libauditd \ 36205113Simp libcom_err \ 37215127Sed libcompiler_rt \ 38205113Simp libcrypt \ 39205113Simp libelf \ 40219019Sgabor ${_libiconv_modules} \ 41205113Simp libkvm \ 42205113Simp msun \ 43205113Simp libmd \ 44205113Simp ncurses \ 45205113Simp ${_libnetgraph} \ 46205113Simp libradius \ 47205113Simp librpcsvc \ 48205113Simp libsbuf \ 49205113Simp libtacplus \ 50205113Simp libutil \ 51235798Stheraven ${_libypclnt} \ 52235798Stheraven ${_libcxxrt} \ 53235798Stheraven ${_libcplusplus} 54205113Simp 55205113SimpSUBDIR= ${SUBDIR_ORDERED} \ 56205113Simp libalias \ 57205113Simp libarchive \ 58205113Simp ${_libatm} \ 59205113Simp libbegemot \ 60215127Sed libblocksruntime \ 61205113Simp ${_libbluetooth} \ 62205113Simp ${_libbsnmp} \ 63205113Simp libbz2 \ 64205113Simp libcalendar \ 65205113Simp libcam \ 66205113Simp libcompat \ 67205113Simp libdevinfo \ 68205113Simp libdevstat \ 69205113Simp libdisk \ 70205113Simp libdwarf \ 71205113Simp libedit \ 72205113Simp ${_libefi} \ 73205113Simp libexpat \ 74205113Simp libfetch \ 75205113Simp libftpio \ 76205113Simp libgeom \ 77205113Simp ${_libgpib} \ 78205113Simp ${_libgssapi} \ 79205113Simp ${_librpcsec_gss} \ 80205113Simp libipsec \ 81205113Simp ${_libipx} \ 82205113Simp libjail \ 83205113Simp libkiconv \ 84207842Smm liblzma \ 85205113Simp libmagic \ 86205113Simp libmemstat \ 87205113Simp ${_libmilter} \ 88205113Simp ${_libmp} \ 89205113Simp ${_libncp} \ 90245461Sbrooks libnetbsd \ 91205113Simp ${_libngatm} \ 92205113Simp libopie \ 93205113Simp libpam \ 94205113Simp libpcap \ 95205113Simp ${_libpmc} \ 96210682Srpaulo ${_libproc} \ 97221807Sstas libprocstat \ 98205113Simp librt \ 99210690Srpaulo ${_librtld_db} \ 100205113Simp ${_libsdp} \ 101205113Simp ${_libsm} \ 102205113Simp ${_libsmb} \ 103205113Simp ${_libsmdb} \ 104205113Simp ${_libsmutil} \ 105205113Simp libstand \ 106235139Sjlh libstdbuf \ 107205113Simp ${_libtelnet} \ 108205113Simp ${_libthr} \ 109205113Simp libthread_db \ 110263032Sbapt libucl \ 111205113Simp libufs \ 112205113Simp libugidfw \ 113205113Simp libulog \ 114205113Simp ${_libusbhid} \ 115205113Simp ${_libusb} \ 116205113Simp ${_libvgl} \ 117205113Simp libwrap \ 118205113Simp liby \ 119205113Simp libz \ 120208964Srdivacky ${_bind} \ 121208964Srdivacky ${_clang} 12234689Sbde 123211759Simp.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 124211759Simp_csu=csu/${MACHINE_ARCH}-elf 125211934Snwhitehorn.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) 126211934Snwhitehorn_csu=csu/${MACHINE_ARCH} 127211725Simp.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile) 128211725Simp_csu=csu/${MACHINE_CPUARCH} 12972309Sobrien.else 13072309Sobrien_csu=csu 1311573Srgrimes.endif 1321573Srgrimes 133183242Ssam# NB: keep these sorted by MK_* knobs 134183242Ssam 135156813Sru.if ${MK_ATM} != "no" 136121340Sharti_libngatm= libngatm 137119508Sphk.endif 138119508Sphk 139156813Sru.if ${MK_BIND} != "no" 140135549Sdes_bind= bind 14153922Speter.endif 14253922Speter 143156813Sru.if ${MK_BLUETOOTH} != "no" 144125123Semax_libbluetooth= libbluetooth 145125123Semax_libsdp= libsdp 146125123Semax.endif 147131768Semax 148183242Ssam.if ${MK_BSNMP} != "no" 149183242Ssam_libbsnmp= libbsnmp 150183242Ssam.endif 151183242Ssam 152209400Sed.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) 153208964Srdivacky_clang= clang 154208964Srdivacky.endif 155208964Srdivacky 156183242Ssam.if ${MK_GPIB} != "no" 157183242Ssam_libgpib= libgpib 158183242Ssam.endif 159183242Ssam 160174548Sru.if ${MK_GSSAPI} != "no" 161174519Sdougb_libgssapi= libgssapi 162181344Sdfr_librpcsec_gss= librpcsec_gss 163174519Sdougb.endif 164174519Sdougb 165219019Sgabor.if ${MK_ICONV} != "no" 166219019Sgabor_libiconv_modules= libiconv_modules 167219019Sgabor.endif 168219019Sgabor 169156905Sru.if ${MK_IPX} != "no" 170156905Sru_libipx= libipx 171156905Sru.endif 172156905Sru 173247544Sdes.if ${MK_LIBCPLUSPLUS} != "no" 174247544Sdes_libcxxrt= libcxxrt 175247544Sdes_libcplusplus= libc++ 176247544Sdes.endif 177247544Sdes 178183242Ssam.if ${MK_LIBTHR} != "no" 179183242Ssam_libthr= libthr 180183242Ssam.endif 181183242Ssam 182183242Ssam.if ${MK_NETGRAPH} != "no" 183183242Ssam_libnetgraph= libnetgraph 184183242Ssam.endif 185183242Ssam 186183242Ssam.if ${MK_NIS} != "no" 187183242Ssam_libypclnt= libypclnt 188183242Ssam.endif 189183242Ssam 190211725Simp.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 191156905Sru.if ${MK_NCP} != "no" 19252228Sbp_libncp= libncp 193156905Sru.endif 19487960Ssheldonh_libsmb= libsmb 19534689Sbde_libvgl= libvgl 196210682Srpaulo_libproc= libproc 197210690Srpaulo_librtld_db= librtld_db 19836026Sjb.endif 19934689Sbde 200211725Simp.if ${MACHINE_CPUARCH} == "ia64" 201203181Smarcel_libefi= libefi 202161524Smarcel_libsmb= libsmb 203161524Smarcel.endif 204161524Smarcel 205211725Simp.if ${MACHINE_CPUARCH} == "amd64" 206211725Simp.if ${MK_NCP} != "no" 207211725Simp_libncp= libncp 208211725Simp.endif 209211725Simp.endif 210211725Simp 211209922Snwhitehorn.if ${MACHINE_CPUARCH} == "powerpc" 212150314Simura_libsmb= libsmb 213150314Simura.endif 214150314Simura 215211725Simp.if ${MACHINE_CPUARCH} == "sparc64" 216202982Syongari_libsmb= libsmb 217202982Syongari.endif 218202982Syongari 219183242Ssam.if ${MK_OPENSSL} != "no" 220183242Ssam_libmp= libmp 221117797Smtm.endif 222117797Smtm 223183242Ssam.if ${MK_PMC} != "no" 224183242Ssam_libpmc= libpmc 225129225Scognet.endif 226129225Scognet 227183242Ssam.if ${MK_SENDMAIL} != "no" 228183242Ssam_libmilter= libmilter 229183242Ssam_libsm= libsm 230183242Ssam_libsmdb= libsmdb 231183242Ssam_libsmutil= libsmutil 232126799Sphk.endif 233126799Sphk 234183242Ssam.if ${MK_TELNET} != "no" 235183242Ssam_libtelnet= libtelnet 236141403Sphk.endif 237141403Sphk 238183242Ssam.if ${MK_USB} != "no" 239183242Ssam_libusbhid= libusbhid 240189589Sthompsa_libusb= libusb 241183242Ssam.endif 242183242Ssam 243264303Sdim.if !make(install) 244264303SdimSUBDIR_PARALLEL= 245264303Sdim.endif 246264303Sdim 2471573Srgrimes.include <bsd.subdir.mk> 248