xref: /freebsd/lib/Makefile (revision c9811e98d61de10ee1aea996340f8830b613cecd)
158f0484fSRodney W. Grimes#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2c9811e98SBruce Evans#	$Id$
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 \
16c9811e98SBruce Evans	compat ${_csu} libalias libc ${_libc_r} libcalendar \
17c9811e98SBruce Evans	libcompat libcurses ${_libdisk} libedit libf2c libftpio \
18c9811e98SBruce Evans	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
32d4c468e3SPoul-Henning Kamp.if !exists(${.CURDIR}/../secure) || defined(NOSECURE) || defined(NOCRYPT)
33c9811e98SBruce Evans_libcrypt=	libcrypt
34e6af2dc8SAndrey A. Chernov.else
35c9811e98SBruce Evans_libcrypt=	../secure/lib/libcrypt
36c9811e98SBruce Evans# Releases need both libraries.
377c2f56ccSJoerg Wunsch.if defined(RELEASEDIR)
38c9811e98SBruce Evans_libcrypt+=	libcrypt
397c2f56ccSJoerg Wunsch.endif
40e6af2dc8SAndrey A. Chernov.endif
41e6af2dc8SAndrey A. Chernov
42c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386"
43c9811e98SBruce Evans_libdisk=	libdisk
44c9811e98SBruce Evans_libkvm=	libkvm
45c9811e98SBruce Evans_libscsi=	libscsi
46c9811e98SBruce Evans_libvgl=	libvgl
47c9811e98SBruce Evans
48c9811e98SBruce Evans.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \
49c9811e98SBruce Evans    exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl)
50c9811e98SBruce Evans_libtcl=	libtcl
51c9811e98SBruce Evans.endif
52eb5bc2e7SJoerg Wunsch.endif
53f06e7c2eSPaul Richards
546a7a98c9SJohn Birrell.if defined(WANT_CSRG_LIBM)
55c9811e98SBruce Evans_libm=		libm
56b6059979SJordan K. Hubbard.else
57c9811e98SBruce Evans_libm=		msun
58b6059979SJordan K. Hubbard.endif
59b6059979SJordan K. Hubbard
60c9811e98SBruce Evans.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
61c9811e98SBruce Evans    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
62c9811e98SBruce Evans_libtelnet=	libtelnet
63c9811e98SBruce Evans.endif
648ff10292SPeter Wemm
6558f0484fSRodney W. Grimes.include <bsd.subdir.mk>
66