Makefile revision 41912
11573Srgrimes#	@(#)Makefile	8.1 (Berkeley) 6/4/93
21573Srgrimes#	$Id: Makefile,v 1.86 1998/11/29 02:47:52 bde Exp $
31573Srgrimes
41573Srgrimes# To satisfy shared library or ELF linkage when only the libraries being
52275Spaul# built are visible:
61573Srgrimes#
72275Spaul# csu must be built before all shared libaries for ELF.
81614Srgrimes# libcom_err must be built before libss.
92275Spaul# libcrypt must be built before libskey.
101573Srgrimes# libm must be built before libf2c, libg++ and libstdc++.
111573Srgrimes# libmd must be built before libatm, libopie, libradius, libskey,
122275Spaul# and libtacplus.
135773Swollman# libmytinfo must be built before libdialog and libncurses.
149896Sjkh# libncurses must be built before libdialog.
156249Sbde# libradius must be built before libpam.
166249Sbde# libskey must be built before libpam.
172275Spaul# libtacplus must be built before libpam.
187208Sphk# libtermcap must be built before libcurses, libedit and libreadline.
192119Sjkh#
202119Sjkh# Otherwise, the SUBDIR list should be in alphabetical order.
212119Sjkh
222119SjkhSUBDIR=	${_csu} libcom_err ${_libcrypt} ${_libm} libmd libmytinfo \
232119Sjkh	libncurses libradius libskey libtacplus libtermcap \
241573Srgrimes	${_compat} libalias libatm libbind libc ${_libc_r} libcalendar libcam \
25	libcompat libcurses libdevstat libdisk libedit libf2c libfetch \
26	libftpio libgnumalloc ${_libio} libipx libkvm libopie libpam \
27	libpcap libresolv librpcsvc libss libstand \
28	${_libtelnet} libutil ${_libvgl} libxpg4 liby libz
29
30.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
31_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
32.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
33_csu=csu/${MACHINE_ARCH}
34.endif
35
36.if !defined(NOLIBC_R)
37_libc_r=	libc_r
38.endif
39
40# Build both libraries. They have different names, so no harm,
41# and this avoids having stale libscrypt.*
42.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
43_libcrypt=	../secure/lib/libcrypt libcrypt
44.else
45_libcrypt=	libcrypt
46.endif
47
48.if ${MACHINE_ARCH} == "i386"
49_compat=	compat
50_libvgl=	libvgl
51.endif
52
53.if defined(WANT_CSRG_LIBM)
54_libm=		libm
55.else
56_libm=		msun
57.endif
58
59.if ${MACHINE_ARCH} == "alpha"
60_libio=		libio
61.endif
62
63.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
64    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
65_libtelnet=	libtelnet
66.endif
67
68.include <bsd.subdir.mk>
69