xref: /freebsd/lib/Makefile (revision 163074e1ca759aece79c27751314b103d764dd3e)
158f0484fSRodney W. Grimes#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2163074e1SDag-Erling Smørgrav#	$Id: Makefile,v 1.70 1998/08/15 12:36:42 jb Exp $
3c9811e98SBruce Evans
4c9811e98SBruce Evans# To satisfy shared library or ELF linkage when only the libraries being
5c9811e98SBruce Evans# built are visible:
6c9811e98SBruce Evans#
7c9811e98SBruce Evans# libcom_err must be built before libss.
8c9811e98SBruce Evans# libcrypt and libmd must be built before libskey.
9c9811e98SBruce Evans# libm must be built before libtcl.
10c9811e98SBruce Evans# libmytinfo must be built before libncurses.
11c9811e98SBruce Evans# libtermcap must be built before libcurses and libedit.
12c9811e98SBruce Evans#
13c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order.
14c9811e98SBruce Evans
15c9811e98SBruce EvansSUBDIR=	libcom_err ${_libcrypt} ${_libm} libmytinfo libtermcap \
168e3465edSPeter Wemm	compat ${_csu} libalias libbind libc ${_libc_r} libcalendar \
17163074e1SDag-Erling Smørgrav	libcompat libcurses ${_libdisk} libedit libf2c libfetch libftpio \
1818381dacSJohn Birrell	libgnumalloc libipx libkvm libmd libncurses libopie \
19c9811e98SBruce Evans	libpcap libresolv librpcsvc ${_libscsi} libskey libss \
20c9811e98SBruce Evans	${_libtcl} ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz
2158f0484fSRodney W. Grimes
225f160d14SJohn Birrell.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${BINFORMAT})
23c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH}-${BINFORMAT}
245f160d14SJohn Birrell.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
25c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH}
26b09f41a4SJohn Birrell.endif
27b09f41a4SJohn Birrell
285f160d14SJohn Birrell.if !defined(NOLIBC_R)
29c9811e98SBruce Evans_libc_r=	libc_r
305f160d14SJohn Birrell.endif
31ff2edf0cSPeter Wemm
32efa3929eSMark Murray# Build both libraries. They have different names, so no harm,
33efa3929eSMark Murray# and this avoids having stale libscrypt.*
34efa3929eSMark Murray.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
35c932f886SPeter Wemm_libcrypt=	../secure/lib/libcrypt libcrypt
36c932f886SPeter Wemm.else
37c932f886SPeter Wemm_libcrypt=	libcrypt
38e6af2dc8SAndrey A. Chernov.endif
39e6af2dc8SAndrey A. Chernov
40c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386"
41c9811e98SBruce Evans_libdisk=	libdisk
42c9811e98SBruce Evans_libscsi=	libscsi
43c9811e98SBruce Evans_libvgl=	libvgl
44d788c4fbSJohn Birrell.endif
45c9811e98SBruce Evans
46c9811e98SBruce Evans.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \
47c9811e98SBruce Evans    exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl)
48c9811e98SBruce Evans_libtcl=	libtcl
49c9811e98SBruce Evans.endif
50f06e7c2eSPaul Richards
516a7a98c9SJohn Birrell.if defined(WANT_CSRG_LIBM)
52c9811e98SBruce Evans_libm=		libm
53b6059979SJordan K. Hubbard.else
54c9811e98SBruce Evans_libm=		msun
55b6059979SJordan K. Hubbard.endif
56b6059979SJordan K. Hubbard
57c9811e98SBruce Evans.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
58c9811e98SBruce Evans    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
59c9811e98SBruce Evans_libtelnet=	libtelnet
60c9811e98SBruce Evans.endif
618ff10292SPeter Wemm
6258f0484fSRodney W. Grimes.include <bsd.subdir.mk>
63