xref: /freebsd/lib/Makefile (revision d5a857fbbba10bfaa67afeb3a8128ff357bf44f8)
158f0484fSRodney W. Grimes#	@(#)Makefile	8.1 (Berkeley) 6/4/93
27f3dea24SPeter Wemm# $FreeBSD$
3c9811e98SBruce Evans
4e1fe3dbaSRuslan Ermilov.include <bsd.own.mk>
5e1fe3dbaSRuslan Ermilov
6c9811e98SBruce Evans# To satisfy shared library or ELF linkage when only the libraries being
7c9811e98SBruce Evans# built are visible:
8c9811e98SBruce Evans#
90f09aefaSBruce Evans# csu must be built before all shared libaries for ELF.
10d5a857fbSAlexander Kabaev# libc must be built before all other shared libraries
114afa3718SMark Murray# libcom_err must be built before libkrb5 and libpam.
124afa3718SMark Murray# libcrypt must be built before libkrb5 and libpam.
13c4a5ef6eSThomas Moestl# libkvm must be built before libdevstat.
14a04f2acdSJosef Karthauser# msun must be built before libg++ and libstdc++.
15ccdee0d9SMark Murray# libmd must be built before libatm, libopie, libradius, and libtacplus.
16af5b5a0fSRong-En Fan# ncurses must be built before libdialog, libedit and libreadline.
17360b288fSHartmut Brandt# libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
1814b42810SKris Kennaway# libopie must be built before libpam.
1960da54eeSJohn Polstra# libradius must be built before libpam.
2076ed168aSMark Murray# librpcsvc must be built before libpam.
2197b877c9SDag-Erling Smørgrav# libsbuf must be built before libcam.
2260da54eeSJohn Polstra# libtacplus must be built before libpam.
23c5da4b13SBruce Evans# libutil must be built before libpam.
2497b877c9SDag-Erling Smørgrav# libypclnt must be built before libpam.
25c9811e98SBruce Evans#
26c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order.
27c9811e98SBruce Evans
28d5a857fbSAlexander KabaevSUBDIR=	${_csu} libc libbsm libcom_err libcrypt libelf libkvm msun libmd \
29d5a857fbSAlexander Kabaev	ncurses libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
30cd3ee173SDag-Erling Smørgrav	${_libypclnt} libalias libarchive ${_libatm} \
31d5a857fbSAlexander Kabaev	libbegemot ${_libbluetooth} libbsnmp libbz2 \
32ea7075ebSOlivier Houchard	libcalendar libcam libcompat libdevinfo libdevstat libdisk \
33af5b5a0fSRong-En Fan	libedit libexpat libfetch libftpio libgeom ${_libgpib} \
342b46c64cSRuslan Ermilov	libgssapi libipsec \
35af5b5a0fSRong-En Fan	${_libipx} libkiconv libmagic libmemstat ${_libmilter} ${_libmp} \
36af5b5a0fSRong-En Fan	${_libncp} ${_libngatm} libopie libpam libpcap \
377ae5a033SDavid Xu	libpmc ${_libpthread} librt ${_libsdp} ${_libsm} ${_libsmb} \
387ae5a033SDavid Xu	${_libsmdb} \
3914d2874cSMarcel Moolenaar	${_libsmutil} libstand libtelnet ${_libthr} ${_libthread_db} libufs \
402868be0bSTim J. Robbins	libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind}
4158f0484fSRodney W. Grimes
4266422f5bSPeter Wemm.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
4366422f5bSPeter Wemm_csu=csu/${MACHINE_ARCH}-elf
4456a91a6fSDavid E. O'Brien.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
45c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH}
4656a91a6fSDavid E. O'Brien.else
4756a91a6fSDavid E. O'Brien_csu=csu
48b09f41a4SJohn Birrell.endif
49b09f41a4SJohn Birrell
50e1fe3dbaSRuslan Ermilov.if ${MK_ATM} != "no"
515e1847b4SPoul-Henning Kamp_libatm=	libatm
529e9dbe04SHartmut Brandt_libngatm=	libngatm
535e1847b4SPoul-Henning Kamp.endif
545e1847b4SPoul-Henning Kamp
55e1fe3dbaSRuslan Ermilov.if ${MK_BIND} != "no"
56cd3ee173SDag-Erling Smørgrav_bind=		bind
57072355e0SPeter Wemm.endif
58072355e0SPeter Wemm
59e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no"
600986ab12SMaksim Yevmenkin_libbluetooth=	libbluetooth
610986ab12SMaksim Yevmenkin_libsdp=	libsdp
6218d948adSMaksim Yevmenkin.endif
6323d1e148SMaksim Yevmenkin
64cea557adSRuslan Ermilov.if ${MK_IPX} != "no"
65cea557adSRuslan Ermilov_libipx=	libipx
66cea557adSRuslan Ermilov.endif
67cea557adSRuslan Ermilov
6823d1e148SMaksim Yevmenkin.if ${MACHINE_ARCH} == "i386"
69cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
7018d948adSMaksim Yevmenkin_libncp=	libncp
71cea557adSRuslan Ermilov.endif
7223eb26faSSheldon Hearn_libsmb=	libsmb
73c9811e98SBruce Evans_libvgl=	libvgl
74abbb0b30SMarcel Moolenaar.endif
75abbb0b30SMarcel Moolenaar
76e108ac65SMarcel Moolenaar.if ${MACHINE_ARCH} == "ia64"
77e108ac65SMarcel Moolenaar_libsmb=	libsmb
78e108ac65SMarcel Moolenaar.endif
79e108ac65SMarcel Moolenaar
80e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
81f3e5ff40SBruce Evans_libmilter=	libmilter
82f3e5ff40SBruce Evans_libsm=		libsm
83f3e5ff40SBruce Evans_libsmdb=	libsmdb
84f3e5ff40SBruce Evans_libsmutil=	libsmutil
85f3e5ff40SBruce Evans.endif
86f3e5ff40SBruce Evans
87e1fe3dbaSRuslan Ermilov.if ${MK_OPENSSL} != "no"
88f3e5ff40SBruce Evans_libmp=		libmp
89f3e5ff40SBruce Evans.endif
90f3e5ff40SBruce Evans
9155434686SPeter Wemm.if ${MACHINE_ARCH} == "amd64"
92cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
9355434686SPeter Wemm_libncp=	libncp
94cea557adSRuslan Ermilov.endif
9555434686SPeter Wemm_libsmb=	libsmb
963d823985SDaniel Eischen.endif
973d823985SDaniel Eischen
9859fa7082SR. Imura.if ${MACHINE_ARCH} == "powerpc"
9959fa7082SR. Imura_libsmb=	libsmb
10059fa7082SR. Imura.endif
10159fa7082SR. Imura
102e1fe3dbaSRuslan Ermilov.if ${MK_LIBPTHREAD} != "no"
103de1b32cdSDaniel Eischen_libpthread=	libpthread
104de1b32cdSDaniel Eischen.endif
10555434686SPeter Wemm
106e1fe3dbaSRuslan Ermilov.if ${MK_LIBTHR} != "no"
10710148423SDavid Xu_libthr= libthr
108e9043a12SMike Makonnen.endif
109e9043a12SMike Makonnen
110fac8eae5SMarcel Moolenaar.if ${MACHINE_ARCH} != "arm"
11110148423SDavid Xu_libthread_db= libthread_db
11214d2874cSMarcel Moolenaar.endif
11314d2874cSMarcel Moolenaar
114e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
115f3e5ff40SBruce Evans_libusbhid=	libusbhid
116a8ec1b48SMaxim Sobolev.endif
117a8ec1b48SMaxim Sobolev
118e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
119b36dfb02SPoul-Henning Kamp_libypclnt=	libypclnt
120b36dfb02SPoul-Henning Kamp.endif
121b36dfb02SPoul-Henning Kamp
122e1fe3dbaSRuslan Ermilov.if ${MK_GPIB} != "no"
1237536a05bSPoul-Henning Kamp_libgpib=	libgpib
1247536a05bSPoul-Henning Kamp.endif
1257536a05bSPoul-Henning Kamp
12658f0484fSRodney W. Grimes.include <bsd.subdir.mk>
127