Makefile revision 50633
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 50633 1999-08-30 08:15:02Z peter $
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 libss.
9# libcrypt must be built before libskey.
10# libm must be built before libstdc++.
11# libmd must be built before libatm, libopie, libradius, libskey,
12# and libtacplus.
13# libncurses must be built before libdialog.
14# libradius must be built before libpam.
15# libskey must be built before libpam.
16# libtacplus must be built before libpam.
17# libtermcap must be built before libcurses, libedit and libreadline.
18#
19# Otherwise, the SUBDIR list should be in alphabetical order.
20
21SUBDIR=	${_csu} libcom_err ${_libcrypt} ${_libm} libmd \
22	libradius libskey libtacplus \
23	${_compat} libalias libatm libbind libc ${_libc_r} libcalendar libcam \
24	libcompat libdevstat libdisk libncurses libedit libfetch \
25	libftpio libgnumalloc ${_libio} libipx libkvm libopie libpam \
26	libpcap libresolv librpcsvc libss libstand \
27	${_libtelnet} libutil ${_libvgl} libwrap libxpg4 liby libz
28
29#SUBDIR+=libmenu libpanel libform
30
31.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
32_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
33.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
34_csu=csu/${MACHINE_ARCH}
35.endif
36
37.if !defined(NOLIBC_R)
38_libc_r=	libc_r
39.endif
40
41# Build both libraries. They have different names, so no harm,
42# and this avoids having stale libscrypt.*
43.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
44_libcrypt=	../secure/lib/libcrypt libcrypt
45.else
46_libcrypt=	libcrypt
47.endif
48
49.if ${MACHINE_ARCH} == "i386"
50_compat=	compat
51_libvgl=	libvgl
52.endif
53
54.if defined(WANT_CSRG_LIBM)
55_libm=		libm
56.else
57_libm=		msun
58.endif
59
60.if ${MACHINE_ARCH} == "alpha"
61_libio=		libio
62.endif
63
64.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
65    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
66_libtelnet=	libtelnet
67.endif
68
69.include <bsd.subdir.mk>
70