1 # @(#)Makefile 8.1 (Berkeley) 6/4/93
2 # $Id: Makefile,v 1.74 1998/08/30 01:45:47 jb Exp $
4 # To satisfy shared library or ELF linkage when only the libraries being
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.
14 # Otherwise, the SUBDIR list should be in alphabetical order.
16 SUBDIR= ${_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
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}
29 .if !defined(NOLIBC_R)
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
41 .if ${MACHINE_ARCH} == "i386"
48 .if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \
49 exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl)
53 .if defined(WANT_CSRG_LIBM)
59 .if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
60 defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
64 .include <bsd.subdir.mk>