1 # @(#)Makefile 8.1 (Berkeley) 6/4/93
2 # $Id: Makefile,v 1.68 1998/05/13 22:54:03 jb Exp $
4 # To satisfy shared library or ELF linkage when only the libraries being
7 # libcom_err must be built before libss.
8 # libcrypt and libmd must be built before libskey.
9 # libm must be built before libtcl.
10 # libmytinfo must be built before libncurses.
11 # libtermcap must be built before libcurses and libedit.
13 # Otherwise, the SUBDIR list should be in alphabetical order.
15 SUBDIR= libcom_err ${_libcrypt} ${_libm} libmytinfo libtermcap \
16 compat ${_csu} libalias libbind libc ${_libc_r} libcalendar \
17 libcompat libcurses ${_libdisk} libedit libf2c libftpio \
18 libgnumalloc libipx ${_libkvm} libmd libncurses libopie \
19 libpcap libresolv librpcsvc ${_libscsi} libskey libss \
20 ${_libtcl} ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz
22 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${BINFORMAT})
23 _csu=csu/${MACHINE_ARCH}-${BINFORMAT}
24 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
25 _csu=csu/${MACHINE_ARCH}
28 .if !defined(NOLIBC_R)
32 # Build both libraries. They have different names, so no harm,
33 # and this avoids having stale libscrypt.*
34 .if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
35 _libcrypt= ../secure/lib/libcrypt libcrypt
40 .if ${MACHINE_ARCH} == "i386"
47 .if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \
48 exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl)
52 .if defined(WANT_CSRG_LIBM)
58 .if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
59 defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
63 .include <bsd.subdir.mk>