Makefile revision 121340
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 121340 2003-10-22 15:01:16Z harti $
3
4# To satisfy shared library or ELF linkage when only the libraries being
5# built are visible:
6#
7# csu must be built before all shared libaries for ELF.
8# libcom_err must be built before libkrb5 and libpam.
9# libcrypt must be built before libkrb5 and libpam.
10# libkvm must be built before libdevstat.
11# msun must be built before libg++ and libstdc++.
12# libmd must be built before libatm, libopie, libradius, and libtacplus.
13# libncurses must be built before libdialog, libedit and libreadline.
14# libopie must be built before libpam.
15# libradius must be built before libpam.
16# librpcsvc must be built before libpam.
17# libsbuf must be built before libcam.
18# libtacplus must be built before libpam.
19# libutil must be built before libpam.
20# libypclnt must be built before libpam.
21#
22# Otherwise, the SUBDIR list should be in alphabetical order.
23
24SUBDIR=	${_csu} libcom_err libcrypt libkvm msun libmd \
25	libncurses libradius librpcsvc libsbuf libtacplus libutil libypclnt \
26	${_compat} libalias ${_libatm} ${_libbind} \
27	${_libbluetooth} libbz2 libc ${_libc_r} \
28	libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \
29	libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \
30	libipx libisc libkiconv libmenu ${_libmilter} ${_libmp} ${_libncp} \
31	libnetgraph ${_libngatm} libopie libpam libpanel libpcap \
32	${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \
33	${_libsmutil} libstand libtelnet ${_libthr} libufs libugidfw \
34	${_libusbhid} ${_libvgl} libwrap libxpg4 liby libz
35
36.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
37_csu=csu/${MACHINE_ARCH}-elf
38.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
39_csu=csu/${MACHINE_ARCH}
40.else
41_csu=csu
42.endif
43
44# libc_r is obsolete on ia64.
45.if ${MACHINE_ARCH} != "ia64" && ${MACHINE_ARCH} != "powerpc"
46.if !defined(NOLIBC_R)
47_libc_r=	libc_r
48.endif
49.endif
50
51.if !defined(NOATM)
52_libatm=	libatm
53_libngatm=	libngatm
54.endif
55
56.if !defined(NO_BIND)
57_libbind=	libbind
58.endif
59
60.if !defined(NO_SENDMAIL)
61_libmilter=	libmilter
62_libsm=		libsm
63_libsmdb=	libsmdb
64_libsmutil=	libsmutil
65.endif
66
67.if !defined(NO_USB)
68_libusbhid=	libusbhid
69.endif
70
71.if ${MACHINE_ARCH} == "i386"
72_compat=	compat
73_libbluetooth=	libbluetooth
74_libncp=	libncp
75_libsdp=	libsdp
76_libsmb=	libsmb
77_libvgl=	libvgl
78.endif
79
80.if ${MACHINE_ARCH} == "alpha"
81_libio=		libio
82_compat=	compat
83.endif
84
85.if ${MACHINE_ARCH} == "amd64"
86_libncp=	libncp
87_libsmb=	libsmb
88.endif
89
90.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "sparc64"
91.if !defined(NOLIBPTHREAD)
92_libpthread=	libpthread
93.endif
94.endif
95
96.if ${MACHINE_ARCH} != "amd64" && ${MACHINE_ARCH} != "powerpc"
97.if !defined(NOLIBTHR)
98_libthr=	libthr
99.endif
100.endif
101
102.if ${MACHINE_ARCH} != "powerpc"
103_libdisk=	libdisk
104.endif
105
106.if !defined(NOCRYPT) && !defined(NO_OPENSSL)
107_libmp=		libmp
108.endif
109
110.include <bsd.subdir.mk>
111