Makefile revision 126032
134689Sbde# @(#)Makefile 8.1 (Berkeley) 6/4/93 250476Speter# $FreeBSD: head/lib/Makefile 126032 2004-02-20 03:42:34Z marcel $ 31573Srgrimes 434689Sbde# To satisfy shared library or ELF linkage when only the libraries being 534689Sbde# built are visible: 634689Sbde# 738752Sbde# csu must be built before all shared libaries for ELF. 8117675Smarkm# libcom_err must be built before libkrb5 and libpam. 9117675Smarkm# libcrypt must be built before libkrb5 and libpam. 1081133Stmm# libkvm must be built before libdevstat. 1159897Sjoe# msun must be built before libg++ and libstdc++. 1279471Smarkm# libmd must be built before libatm, libopie, libradius, and libtacplus. 1350731Speter# libncurses must be built before libdialog, libedit and libreadline. 14122568Sharti# libnetgraph must be built before libbsnmp/modules/snmp_netgraph. 1559353Skris# libopie must be built before libpam. 1641257Sjdp# libradius must be built before libpam. 1782355Smarkm# librpcsvc must be built before libpam. 1894690Sdes# libsbuf must be built before libcam. 1941257Sjdp# libtacplus must be built before libpam. 2056081Sbde# libutil must be built before libpam. 2194690Sdes# libypclnt must be built before libpam. 2234689Sbde# 2334689Sbde# Otherwise, the SUBDIR list should be in alphabetical order. 2434689Sbde 25122568ShartiSUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd libncurses \ 26122568Sharti libnetgraph libradius librpcsvc libsbuf libtacplus libutil libypclnt \ 27125737Skientzle ${_compat} libalias libarchive ${_libatm} ${_libbind} \ 28122406Sharti ${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \ 29111204Sobrien libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \ 30110546Sphk libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \ 31120492Sfjoe libipx libisc libkiconv libmenu ${_libmilter} ${_libmp} ${_libncp} \ 32122568Sharti ${_libngatm} libopie libpam libpanel libpcap \ 33121340Sharti ${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \ 34121340Sharti ${_libsmutil} libstand libtelnet ${_libthr} libufs libugidfw \ 35121340Sharti ${_libusbhid} ${_libvgl} libwrap libxpg4 liby libz 3634689Sbde 37103436Speter.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) 38103436Speter_csu=csu/${MACHINE_ARCH}-elf 3972309Sobrien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile) 4034689Sbde_csu=csu/${MACHINE_ARCH} 4172309Sobrien.else 4272309Sobrien_csu=csu 431573Srgrimes.endif 441573Srgrimes 45116906Smarcel# libc_r is obsolete on ia64. 46119002Sobrien.if ${MACHINE_ARCH} != "ia64" && ${MACHINE_ARCH} != "powerpc" 47108753Smarcel.if !defined(NOLIBC_R) 4834689Sbde_libc_r= libc_r 4917706Sjulian.endif 50116906Smarcel.endif 5117706Sjulian 52119508Sphk.if !defined(NOATM) 53119508Sphk_libatm= libatm 54121340Sharti_libngatm= libngatm 55119508Sphk.endif 56119508Sphk 5753927Speter.if !defined(NO_BIND) 5853922Speter_libbind= libbind 5953922Speter.endif 6053922Speter 6186252Sgshapiro.if !defined(NO_SENDMAIL) 6290796Sgshapiro_libmilter= libmilter 6390796Sgshapiro_libsm= libsm 6486252Sgshapiro_libsmdb= libsmdb 6586252Sgshapiro_libsmutil= libsmutil 6686252Sgshapiro.endif 6786252Sgshapiro 68119553Sphk.if !defined(NO_USB) 69119553Sphk_libusbhid= libusbhid 70119553Sphk.endif 71119553Sphk 7234689Sbde.if ${MACHINE_ARCH} == "i386" 73125123Semax.if !defined(NO_BLUETOOTH) 74125123Semax_libbluetooth= libbluetooth 75125123Semax_libsdp= libsdp 76125123Semax.endif 7738477Sgpalmer_compat= compat 7852228Sbp_libncp= libncp 7987960Ssheldonh_libsmb= libsmb 8034689Sbde_libvgl= libvgl 8136026Sjb.endif 8234689Sbde 8341912Sdfr.if ${MACHINE_ARCH} == "alpha" 8441912Sdfr_libio= libio 8572309Sobrien_compat= compat 8641912Sdfr.endif 8741912Sdfr 88117950Speter.if ${MACHINE_ARCH} == "amd64" 89117950Speter_libncp= libncp 90117950Speter_libsmb= libsmb 91118694Sdeischen.endif 92118694Sdeischen 93126032Smarcel.if ${MACHINE_ARCH} != "powerpc" 94118675Sdeischen.if !defined(NOLIBPTHREAD) 95118675Sdeischen_libpthread= libpthread 96117950Speter.endif 97118675Sdeischen.endif 98117950Speter 99117797Smtm.if ${MACHINE_ARCH} != "amd64" && ${MACHINE_ARCH} != "powerpc" 100117797Smtm.if !defined(NOLIBTHR) 101117797Smtm_libthr= libthr 102117797Smtm.endif 103117797Smtm.endif 104117797Smtm 105111204Sobrien.if ${MACHINE_ARCH} != "powerpc" 106114279Sru_libdisk= libdisk 107111204Sobrien.endif 108111204Sobrien 109117978Smarkm.if !defined(NOCRYPT) && !defined(NO_OPENSSL) 11081054Ssobomax_libmp= libmp 11181054Ssobomax.endif 11281054Ssobomax 1131573Srgrimes.include <bsd.subdir.mk> 114