Makefile revision 38752
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2#	$Id: Makefile,v 1.74 1998/08/30 01:45:47 jb Exp $
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 and libmd must be built before libskey.
10# libm must be built before libtcl.
11# libmytinfo must be built before libncurses.
12# libtermcap must be built before libcurses and libedit.
13#
14# Otherwise, the SUBDIR list should be in alphabetical order.
15
16SUBDIR=	${_csu} libcom_err ${_libcrypt} ${_libm} libmytinfo libtermcap \
17	${_compat} libalias libbind libc ${_libc_r} libcalendar \
18	libcompat libcurses ${_libdisk} libedit libf2c libfetch libftpio \
19	libgnumalloc libipx libkvm libmd libncurses libopie \
20	libpcap libresolv librpcsvc ${_libscsi} libskey libss libstand \
21	${_libtcl} ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz
22
23.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
24_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
25.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
26_csu=csu/${MACHINE_ARCH}
27.endif
28
29.if !defined(NOLIBC_R)
30_libc_r=	libc_r
31.endif
32
33# Build both libraries. They have different names, so no harm,
34# and this avoids having stale libscrypt.*
35.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
36_libcrypt=	../secure/lib/libcrypt libcrypt
37.else
38_libcrypt=	libcrypt
39.endif
40
41.if ${MACHINE_ARCH} == "i386"
42_compat=	compat
43_libdisk=	libdisk
44_libscsi=	libscsi
45_libvgl=	libvgl
46.endif
47
48.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \
49    exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl)
50_libtcl=	libtcl
51.endif
52
53.if defined(WANT_CSRG_LIBM)
54_libm=		libm
55.else
56_libm=		msun
57.endif
58
59.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
60    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
61_libtelnet=	libtelnet
62.endif
63
64.include <bsd.subdir.mk>
65