Makefile revision 162846
1275970Scy#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2275970Scy# $FreeBSD: head/lib/Makefile 162846 2006-09-30 11:32:46Z ru $
3275970Scy
4275970Scy.include <bsd.own.mk>
5275970Scy
6275970Scy# To satisfy shared library or ELF linkage when only the libraries being
7275970Scy# built are visible:
8275970Scy#
9275970Scy# csu must be built before all shared libaries for ELF.
10275970Scy# libcom_err must be built before libkrb5 and libpam.
11275970Scy# libcrypt must be built before libkrb5 and libpam.
12275970Scy# libkvm must be built before libdevstat.
13275970Scy# msun must be built before libg++ and libstdc++.
14275970Scy# libmd must be built before libatm, libopie, libradius, and libtacplus.
15275970Scy# libncurses must be built before libdialog, libedit and libreadline.
16275970Scy# libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
17275970Scy# libopie must be built before libpam.
18275970Scy# libradius must be built before libpam.
19275970Scy# librpcsvc must be built before libpam.
20275970Scy# libsbuf must be built before libcam.
21275970Scy# libtacplus must be built before libpam.
22275970Scy# libutil must be built before libpam.
23275970Scy# libypclnt must be built before libpam.
24275970Scy#
25275970Scy# Otherwise, the SUBDIR list should be in alphabetical order.
26275970Scy
27275970ScySUBDIR=	${_csu} libbsm libcom_err libcrypt libkvm msun libmd libncurses \
28275970Scy	libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
29275970Scy	${_libypclnt} libalias libarchive ${_libatm} \
30275970Scy	libbegemot ${_libbluetooth} libbsnmp libbz2 libc \
31275970Scy	libcalendar libcam libcompat libdevinfo libdevstat libdisk \
32275970Scy	libedit libexpat libfetch libform libftpio libgeom ${_libgpib} \
33275970Scy	libgssapi libipsec \
34275970Scy	${_libipx} libkiconv libmagic libmemstat libmenu ${_libmilter} ${_libmp} \
35275970Scy	${_libncp} ${_libngatm} libopie libpam libpanel libpcap \
36275970Scy	libpmc ${_libpthread} librt ${_libsdp} ${_libsm} ${_libsmb} \
37275970Scy	${_libsmdb} \
38275970Scy	${_libsmutil} libstand libtelnet ${_libthr} ${_libthread_db} libufs \
39275970Scy	libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind}
40275970Scy
41275970Scy.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
42275970Scy_csu=csu/${MACHINE_ARCH}-elf
43275970Scy.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
44275970Scy_csu=csu/${MACHINE_ARCH}
45275970Scy.else
46275970Scy_csu=csu
47275970Scy.endif
48275970Scy
49275970Scy.if ${MK_ATM} != "no"
50275970Scy_libatm=	libatm
51275970Scy_libngatm=	libngatm
52275970Scy.endif
53275970Scy
54275970Scy.if ${MK_BIND} != "no"
55275970Scy_bind=		bind
56275970Scy.endif
57275970Scy
58275970Scy.if ${MK_BLUETOOTH} != "no"
59275970Scy_libbluetooth=	libbluetooth
60275970Scy_libsdp=	libsdp
61275970Scy.endif
62275970Scy
63275970Scy.if ${MK_IPX} != "no"
64275970Scy_libipx=	libipx
65275970Scy.endif
66275970Scy
67275970Scy.if ${MACHINE_ARCH} == "i386"
68275970Scy.if ${MK_NCP} != "no"
69275970Scy_libncp=	libncp
70275970Scy.endif
71275970Scy_libsmb=	libsmb
72275970Scy_libvgl=	libvgl
73275970Scy.endif
74275970Scy
75275970Scy.if ${MACHINE_ARCH} == "ia64"
76275970Scy_libsmb=	libsmb
77275970Scy.endif
78275970Scy
79275970Scy.if ${MK_SENDMAIL} != "no"
80275970Scy_libmilter=	libmilter
81275970Scy_libsm=		libsm
82275970Scy_libsmdb=	libsmdb
83275970Scy_libsmutil=	libsmutil
84275970Scy.endif
85275970Scy
86275970Scy.if ${MK_OPENSSL} != "no"
87275970Scy_libmp=		libmp
88275970Scy.endif
89275970Scy
90275970Scy.if ${MACHINE_ARCH} == "amd64"
91275970Scy.if ${MK_NCP} != "no"
92275970Scy_libncp=	libncp
93275970Scy.endif
94275970Scy_libsmb=	libsmb
95275970Scy.endif
96275970Scy
97275970Scy.if ${MACHINE_ARCH} == "powerpc"
98275970Scy_libsmb=	libsmb
99275970Scy.endif
100275970Scy
101275970Scy.if ${MK_LIBPTHREAD} != "no"
102275970Scy_libpthread=	libpthread
103275970Scy.endif
104275970Scy
105275970Scy.if ${MK_LIBTHR} != "no"
106275970Scy_libthr= libthr
107275970Scy.endif
108275970Scy
109275970Scy.if ${MACHINE_ARCH} != "arm"
110275970Scy_libthread_db= libthread_db
111275970Scy.endif
112275970Scy
113275970Scy.if ${MK_USB} != "no"
114275970Scy_libusbhid=	libusbhid
115275970Scy.endif
116275970Scy
117275970Scy.if ${MK_NIS} != "no"
118275970Scy_libypclnt=	libypclnt
119275970Scy.endif
120275970Scy
121275970Scy.if ${MK_GPIB} != "no"
122275970Scy_libgpib=	libgpib
123275970Scy.endif
124275970Scy
125275970Scy.include <bsd.subdir.mk>
126275970Scy