Makefile revision 81133
1219019Sgabor#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2219019Sgabor# $FreeBSD: head/lib/Makefile 81133 2001-08-04 18:25:48Z tmm $
3219019Sgabor
4219019Sgabor# To satisfy shared library or ELF linkage when only the libraries being
5219019Sgabor# built are visible:
6219019Sgabor#
7219019Sgabor# csu must be built before all shared libaries for ELF.
8219019Sgabor# libcom_err must be built before libkrb, libpam and libss.
9222354Sgabor# libcrypt must be built before libkrb and libpam.
10222354Sgabor# libkvm must be built before libdevstat.
11222354Sgabor# msun must be built before libg++ and libstdc++.
12222354Sgabor# libmd must be built before libatm, libopie, libradius, and libtacplus.
13222354Sgabor# libncurses must be built before libdialog, libedit and libreadline.
14222354Sgabor# libopie must be built before libpam.
15222354Sgabor# libradius must be built before libpam.
16222354Sgabor# libtacplus must be built before libpam.
17222354Sgabor# libutil must be built before libpam.
18222354Sgabor# libsbuf must be built before libcam.
19222354Sgabor#
20252458Speter# Otherwise, the SUBDIR list should be in alphabetical order.
21252458Speter
22252458SpeterSUBDIR=	${_csu} libcom_err libcrypt libkvm msun libmd \
23252458Speter	libncurses libradius libtacplus libutil libsbuf \
24252458Speter	${_compat} libalias libatm ${_libbind} libbz2 libc ${_libc_r} \
25252458Speter	libcalendar libcam libcompat libdevinfo libdevstat libdisk \
26252458Speter	libedit libfetch libform libftpio libgnumalloc ${_libio} libipsec \
27252458Speter	libipx libisc libmenu ${_libmp} ${_libncp} \
28252458Speter	libnetgraph libopie libpam libpanel libpcap \
29252458Speter	libresolv librpcsvc libsmdb libsmutil libss \
30222354Sgabor	libstand ${_libtelnet} libusb ${_libvgl} libwrap libxpg4 liby libz
31219019Sgabor
32219019Sgabor.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
33219019Sgabor_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
34219019Sgabor.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
35219019Sgabor_csu=csu/${MACHINE_ARCH}
36219019Sgabor.else
37219019Sgabor_csu=csu
38219019Sgabor.endif
39219019Sgabor
40219019Sgabor.if !defined(NOLIBC_R)
41219019Sgabor_libc_r=	libc_r
42219019Sgabor.endif
43219019Sgabor
44219019Sgabor.if !defined(NO_BIND)
45219019Sgabor_libbind=	libbind
46219019Sgabor.endif
47219019Sgabor
48219019Sgabor.if ${MACHINE_ARCH} == "i386"
49219019Sgabor_compat=	compat
50219019Sgabor_libncp=	libncp
51219019Sgabor_libvgl=	libvgl
52219019Sgabor.endif
53219019Sgabor
54219019Sgabor.if ${MACHINE_ARCH} == "alpha"
55219019Sgabor_libio=		libio
56219019Sgabor_compat=	compat
57219019Sgabor.endif
58219019Sgabor
59219019Sgabor.if defined(RELEASEDIR) || \
60219019Sgabor    (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \
61219019Sgabor    defined(NOCRYPT) || (defined(NOSECURE) && !defined(MAKE_KERBEROS4))
62219019Sgabor_libtelnet=	libtelnet
63219019Sgabor.endif
64219019Sgabor
65219019Sgabor.if exists(${.CURDIR}/../crypto) && !defined(NOCRYPT) && !defined(NO_OPENSSL)
66219019Sgabor_libmp=		libmp
67219019Sgabor.endif
68219019Sgabor
69219019Sgabor.include <bsd.subdir.mk>
70219019Sgabor