Makefile revision 38632
1180394Sgnn#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2180394Sgnn#	$Id: Makefile,v 1.73 1998/08/22 14:31:39 gpalmer Exp $
3180394Sgnn
4180394Sgnn# To satisfy shared library or ELF linkage when only the libraries being
5180394Sgnn# built are visible:
6180394Sgnn#
7180394Sgnn# libcom_err must be built before libss.
8180394Sgnn# libcrypt and libmd must be built before libskey.
9180394Sgnn# libm must be built before libtcl.
10180394Sgnn# libmytinfo must be built before libncurses.
11180394Sgnn# libtermcap must be built before libcurses and libedit.
12180394Sgnn#
13180394Sgnn# Otherwise, the SUBDIR list should be in alphabetical order.
14180394Sgnn
15180394SgnnSUBDIR=	libcom_err ${_libcrypt} ${_libm} libmytinfo libtermcap \
16180394Sgnn	${_compat} ${_csu} libalias libbind libc ${_libc_r} libcalendar \
17180394Sgnn	libcompat libcurses ${_libdisk} libedit libf2c libfetch libftpio \
18180394Sgnn	libgnumalloc libipx libkvm libmd libncurses libopie \
19180394Sgnn	libpcap libresolv librpcsvc ${_libscsi} libskey libss libstand \
20180394Sgnn	${_libtcl} ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz
21180394Sgnn
22180394Sgnn.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
23180394Sgnn_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
24180394Sgnn.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
25180394Sgnn_csu=csu/${MACHINE_ARCH}
26180394Sgnn.endif
27180394Sgnn
28180394Sgnn.if !defined(NOLIBC_R)
29180394Sgnn_libc_r=	libc_r
30180394Sgnn.endif
31180394Sgnn
32180394Sgnn# Build both libraries. They have different names, so no harm,
33180394Sgnn# and this avoids having stale libscrypt.*
34180394Sgnn.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
35180394Sgnn_libcrypt=	../secure/lib/libcrypt libcrypt
36180394Sgnn.else
37180394Sgnn_libcrypt=	libcrypt
38180394Sgnn.endif
39180394Sgnn
40180394Sgnn.if ${MACHINE_ARCH} == "i386"
41180394Sgnn_compat=	compat
42180394Sgnn_libdisk=	libdisk
43180394Sgnn_libscsi=	libscsi
44180394Sgnn_libvgl=	libvgl
45180394Sgnn.endif
46180394Sgnn
47180394Sgnn.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \
48180394Sgnn    exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl)
49180394Sgnn_libtcl=	libtcl
50180394Sgnn.endif
51180394Sgnn
52180394Sgnn.if defined(WANT_CSRG_LIBM)
53180394Sgnn_libm=		libm
54180394Sgnn.else
55180394Sgnn_libm=		msun
56180394Sgnn.endif
57180394Sgnn
58180394Sgnn.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
59180394Sgnn    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
60180394Sgnn_libtelnet=	libtelnet
61180394Sgnn.endif
62180394Sgnn
63180394Sgnn.include <bsd.subdir.mk>
64180394Sgnn