Makefile revision 114296
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 114296 2003-04-30 15:33:50Z obrien $
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 libkrb and libpam.
9# libcrypt must be built before libkrb and libpam.
10# libkvm must be built before libdevstat.
11# msun must be built before libg++ and libstdc++.
12# libmd must be built before libatm, libopie, libradius, and libtacplus.
13# libncurses must be built before libdialog, libedit and libreadline.
14# libopie must be built before libpam.
15# libradius must be built before libpam.
16# librpcsvc must be built before libpam.
17# libsbuf must be built before libcam.
18# libtacplus must be built before libpam.
19# libutil must be built before libpam.
20# libypclnt must be built before libpam.
21#
22# Otherwise, the SUBDIR list should be in alphabetical order.
23
24SUBDIR=	${_csu} libcom_err libcrypt libkvm msun libmd \
25	libncurses libradius librpcsvc libsbuf libtacplus libutil libypclnt \
26	${_compat} libalias libatm ${_libbind} libbz2 libc ${_libc_r} \
27	libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \
28	libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \
29	libipx libisc libmenu ${_libmilter} ${_libmp} ${_libncp} \
30	libnetgraph libopie libpam libpanel libpcap ${_libpthread} \
31	${_libsm} ${_libsmb} ${_libsmdb} ${_libsmutil} \
32	libstand ${_libtelnet} libufs libugidfw libusbhid ${_libvgl} \
33	libwrap libxpg4 liby libz
34
35.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
36_csu=csu/${MACHINE_ARCH}-elf
37.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
38_csu=csu/${MACHINE_ARCH}
39.else
40_csu=csu
41.endif
42
43.if ${MACHINE_ARCH} != "amd64"
44.if !defined(NOLIBC_R)
45_libc_r=	libc_r
46.endif
47.endif
48
49.if !defined(NO_BIND)
50_libbind=	libbind
51.endif
52
53.if !defined(NO_SENDMAIL)
54_libmilter=	libmilter
55_libsm=		libsm
56_libsmdb=	libsmdb
57_libsmutil=	libsmutil
58.endif
59
60.if ${MACHINE_ARCH} == "i386"
61_compat=	compat
62_libncp=	libncp
63_libsmb=	libsmb
64_libvgl=	libvgl
65.if !defined(NOLIBPTHREAD)
66_libpthread=	libpthread
67.endif
68.endif
69
70.if ${MACHINE_ARCH} == "alpha"
71_libio=		libio
72_compat=	compat
73.endif
74
75.if ${MACHINE_ARCH} != "powerpc"
76_libdisk=	libdisk
77.endif
78
79.if defined(RELEASEDIR) || \
80    (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberos5)) || \
81    defined(NOCRYPT) || \
82    (defined(NOSECURE) && !defined(MAKE_KERBEROS5))
83_libtelnet=	libtelnet
84.endif
85
86.if exists(${.CURDIR}/../crypto) && !defined(NOCRYPT) && !defined(NO_OPENSSL) \
87    && !defined(NOSECURE)
88_libmp=		libmp
89.endif
90
91.include <bsd.subdir.mk>
92