xref: /freebsd/lib/Makefile (revision 9886bcdf9326929b650dc843802a25400f597365)
158f0484fSRodney W. Grimes#	@(#)Makefile	8.1 (Berkeley) 6/4/93
27f3dea24SPeter Wemm# $FreeBSD$
3c9811e98SBruce Evans
4c9811e98SBruce Evans# To satisfy shared library or ELF linkage when only the libraries being
5c9811e98SBruce Evans# built are visible:
6c9811e98SBruce Evans#
70f09aefaSBruce Evans# csu must be built before all shared libaries for ELF.
8c5da4b13SBruce Evans# libcom_err must be built before libkrb, libpam and libss.
9c5da4b13SBruce Evans# libcrypt must be built before libkrb, libpam and libskey.
10a04f2acdSJosef Karthauser# msun must be built before libg++ and libstdc++.
11a7c9f05aSBruce Evans# libmd must be built before libatm, libopie, libradius, libskey, and
12a7c9f05aSBruce Evans# libtacplus.
1368db2328SPeter Wemm# libncurses must be built before libdialog, libedit and libreadline.
1414b42810SKris Kennaway# libopie must be built before libpam.
1560da54eeSJohn Polstra# libradius must be built before libpam.
1660da54eeSJohn Polstra# libskey must be built before libpam.
1760da54eeSJohn Polstra# libtacplus must be built before libpam.
18c5da4b13SBruce Evans# libutil must be built before libpam.
19c9811e98SBruce Evans#
20c9811e98SBruce Evans# Otherwise, the SUBDIR list should be in alphabetical order.
21c9811e98SBruce Evans
229886bcdfSPeter WemmSUBDIR=	${_csu} libcom_err libcrypt msun libmd \
235f34a652SBruce Evans	libncurses libradius libskey libtacplus libutil \
24072355e0SPeter Wemm	${_compat} libalias libatm ${_libbind} libc ${_libc_r} libcalendar \
25072355e0SPeter Wemm	libcam libcompat libdevstat libdisk libedit libfetch libform \
26c06992e5SArchie Cobbs	libftpio libgnumalloc ${_libio} libipsec libipx libisc libkvm libmenu \
279a4365d0SYoshinobu Inoue	${_libncp} \
28cd7249ffSRobert Watson	libnetgraph libopie libpam libpanel libpcap \
29cb947c91SGregory Neil Shapiro	libposix1e libresolv librpcsvc libsmdb libsmutil libss \
301976c843SNick Hibma	libstand ${_libtelnet} libusb ${_libvgl} libwrap libxpg4 liby libz
3158f0484fSRodney W. Grimes
328deb7ff0SJohn Birrell.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
338deb7ff0SJohn Birrell_csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
345f160d14SJohn Birrell.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
35c9811e98SBruce Evans_csu=csu/${MACHINE_ARCH}
36b09f41a4SJohn Birrell.endif
37b09f41a4SJohn Birrell
385f160d14SJohn Birrell.if !defined(NOLIBC_R)
39c9811e98SBruce Evans_libc_r=	libc_r
405f160d14SJohn Birrell.endif
41ff2edf0cSPeter Wemm
4283b8ab27SPeter Wemm.if !defined(NO_BIND)
43072355e0SPeter Wemm_libbind=	libbind
44072355e0SPeter Wemm.endif
45072355e0SPeter Wemm
46c9811e98SBruce Evans.if ${MACHINE_ARCH} == "i386"
47d78dcde2SGary Palmer_compat=	compat
48f24bb3a4SBoris Popov_libncp=	libncp
49c9811e98SBruce Evans_libvgl=	libvgl
50d788c4fbSJohn Birrell.endif
51c9811e98SBruce Evans
5212e25f33SDoug Rabson.if ${MACHINE_ARCH} == "alpha"
5312e25f33SDoug Rabson_libio=		libio
5412e25f33SDoug Rabson.endif
5512e25f33SDoug Rabson
56f05d1ad2SMark Murray.if defined(RELEASEDIR) || \
57f05d1ad2SMark Murray    (!exists(${.CURDIR}/../secure) && !exists(${.CURDIR}/../kerberosIV)) || \
58c9811e98SBruce Evans    defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
59c9811e98SBruce Evans_libtelnet=	libtelnet
60c9811e98SBruce Evans.endif
618ff10292SPeter Wemm
6258f0484fSRodney W. Grimes.include <bsd.subdir.mk>
63