Makefile revision 56058
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 56058 2000-01-15 19:47:01Z rwatson $
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 \
23	libcam libcompat libdevstat libdisk libedit libfetch libform \
24	libftpio libgnumalloc ${_libio} libipsec libipx libkvm libmenu \
25	${_libncp} \
26	libnetgraph libopie libpam libpanel libpcap \
27	libposix1e libresolv librpcsvc libss \
28	libstand ${_libtelnet} libutil ${_libvgl} libwrap libxpg4 liby libz \
29
30.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
31_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
32.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
33_csu=csu/${MACHINE_ARCH}
34.endif
35
36.if !defined(NOLIBC_R)
37_libc_r=	libc_r
38.endif
39
40.if !defined(NO_BIND)
41_libbind=	libbind
42.endif
43
44_libcrypt=	libcrypt
45.if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
46# Build both libraries. They have different names, so no harm,
47# and this avoids having stale libscrypt.*
48_libcrypt+=	../secure/lib/libcrypt
49.endif
50
51.if ${MACHINE_ARCH} == "i386"
52_compat=	compat
53_libncp=	libncp
54_libvgl=	libvgl
55.endif
56
57.if defined(WANT_CSRG_LIBM)
58_libm=		libm
59.else
60_libm=		msun
61.endif
62
63.if ${MACHINE_ARCH} == "alpha"
64_libio=		libio
65.endif
66
67.if defined(RELEASEDIR) || \
68    (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \
69    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
70_libtelnet=	libtelnet
71.endif
72
73.include <bsd.subdir.mk>
74