xref: /freebsd/lib/Makefile (revision 8deb7ff0b0393b45f5e77e90c23f2ba28402e179)
158f0484fSRodney W. Grimes#	@(#)Makefile	8.1 (Berkeley) 6/4/93
28deb7ff0SJohn Birrell#	$Id: Makefile,v 1.73 1998/08/22 14:31:39 gpalmer 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 \
16d78dcde2SGary Palmer	${_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 \
19a8d0d4d6SMike Smith	libpcap libresolv librpcsvc ${_libscsi} libskey libss libstand \
20c9811e98SBruce Evans	${_libtcl} ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz
2158f0484fSRodney W. Grimes
228deb7ff0SJohn Birrell.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
238deb7ff0SJohn Birrell_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
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"
41d78dcde2SGary Palmer_compat=	compat
42c9811e98SBruce Evans_libdisk=	libdisk
43c9811e98SBruce Evans_libscsi=	libscsi
44c9811e98SBruce Evans_libvgl=	libvgl
45d788c4fbSJohn Birrell.endif
46c9811e98SBruce Evans
47c9811e98SBruce Evans.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \
48c9811e98SBruce Evans    exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl)
49c9811e98SBruce Evans_libtcl=	libtcl
50c9811e98SBruce Evans.endif
51f06e7c2eSPaul Richards
526a7a98c9SJohn Birrell.if defined(WANT_CSRG_LIBM)
53c9811e98SBruce Evans_libm=		libm
54b6059979SJordan K. Hubbard.else
55c9811e98SBruce Evans_libm=		msun
56b6059979SJordan K. Hubbard.endif
57b6059979SJordan K. Hubbard
58c9811e98SBruce Evans.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
59c9811e98SBruce Evans    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
60c9811e98SBruce Evans_libtelnet=	libtelnet
61c9811e98SBruce Evans.endif
628ff10292SPeter Wemm
6358f0484fSRodney W. Grimes.include <bsd.subdir.mk>
64