Makefile revision 52228
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 52228 1999-10-14 06:40:46Z bp $
3
4# To satisfy shared library or ELF linkage when only the libraries being
5# built are visible:
6#
7# csu must be built before all shared libaries for ELF.
8# libcom_err must be built before libss.
9# libcrypt must be built before libkrb and libskey.
10# libm must be built before libstdc++.
11# libmd must be built before libatm, libcrypt, libopie, libradius, libskey,
12# and libtacplus.
13# libncurses must be built before libdialog, libedit and libreadline.
14# libradius must be built before libpam.
15# libskey must be built before libpam.
16# libtacplus must be built before libpam.
17#
18# Otherwise, the SUBDIR list should be in alphabetical order.
19
20SUBDIR=	${_csu} libcom_err ${_libm} libmd ${_libcrypt} \
21	libncurses libradius libskey libtacplus \
22	${_compat} libalias libatm libbind libc ${_libc_r} libcalendar libcam \
23	libcompat libdevstat libdisk libedit libfetch libform \
24	libftpio libgnumalloc ${_libio} libipx libkvm libmenu ${_libncp} \
25	libopie libpam libpanel libpcap libresolv librpcsvc libss libstand \
26	${_libtelnet} libutil ${_libvgl} libwrap libxpg4 liby libz
27
28.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
29_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
30.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
31_csu=csu/${MACHINE_ARCH}
32.endif
33
34.if !defined(NOLIBC_R)
35_libc_r=	libc_r
36.endif
37
38_libcrypt=	libcrypt
39.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
40# Build both libraries. They have different names, so no harm,
41# and this avoids having stale libscrypt.*
42_libcrypt+=	../secure/lib/libcrypt
43.endif
44
45.if ${MACHINE_ARCH} == "i386"
46_compat=	compat
47_libncp=	libncp
48_libvgl=	libvgl
49.endif
50
51.if defined(WANT_CSRG_LIBM)
52_libm=		libm
53.else
54_libm=		msun
55.endif
56
57.if ${MACHINE_ARCH} == "alpha"
58_libio=		libio
59.endif
60
61.if defined(RELEASEDIR) || \
62    (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \
63    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
64_libtelnet=	libtelnet
65.endif
66
67.include <bsd.subdir.mk>
68