Makefile revision 126799
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 126799 2004-03-10 08:58:06Z phk $
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 libkrb5 and libpam.
9# libcrypt must be built before libkrb5 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# libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
15# libopie must be built before libpam.
16# libradius must be built before libpam.
17# librpcsvc must be built before libpam.
18# libsbuf must be built before libcam.
19# libtacplus must be built before libpam.
20# libutil must be built before libpam.
21# libypclnt must be built before libpam.
22#
23# Otherwise, the SUBDIR list should be in alphabetical order.
24
25SUBDIR=	${_csu} libcom_err libcrypt libkvm msun libmd libncurses \
26	libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
27	${_libypclnt} ${_compat} libalias libarchive ${_libatm} ${_libbind} \
28	${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \
29	libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \
30	libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \
31	libipx libisc libkiconv libmenu ${_libmilter} ${_libmp} ${_libncp} \
32	${_libngatm} libopie libpam libpanel libpcap \
33	${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \
34	${_libsmutil} libstand libtelnet ${_libthr} libufs libugidfw \
35	${_libusbhid} ${_libvgl} libwrap libxpg4 liby libz
36
37.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
38_csu=csu/${MACHINE_ARCH}-elf
39.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
40_csu=csu/${MACHINE_ARCH}
41.else
42_csu=csu
43.endif
44
45# libc_r is obsolete on ia64.
46.if ${MACHINE_ARCH} != "ia64" && ${MACHINE_ARCH} != "powerpc"
47.if !defined(NOLIBC_R)
48_libc_r=	libc_r
49.endif
50.endif
51
52.if !defined(NOATM)
53_libatm=	libatm
54_libngatm=	libngatm
55.endif
56
57.if !defined(NO_BIND)
58_libbind=	libbind
59.endif
60
61.if !defined(NO_SENDMAIL)
62_libmilter=	libmilter
63_libsm=		libsm
64_libsmdb=	libsmdb
65_libsmutil=	libsmutil
66.endif
67
68.if !defined(NO_USB)
69_libusbhid=	libusbhid
70.endif
71
72.if ${MACHINE_ARCH} == "i386"
73.if !defined(NO_BLUETOOTH)
74_libbluetooth=	libbluetooth
75_libsdp=	libsdp
76.endif
77_compat=	compat
78_libncp=	libncp
79_libsmb=	libsmb
80_libvgl=	libvgl
81.endif
82
83.if ${MACHINE_ARCH} == "alpha"
84_libio=		libio
85_compat=	compat
86.endif
87
88.if ${MACHINE_ARCH} == "amd64"
89_libncp=	libncp
90_libsmb=	libsmb
91.endif
92
93.if ${MACHINE_ARCH} != "powerpc"
94.if !defined(NOLIBPTHREAD)
95_libpthread=	libpthread
96.endif
97.endif
98
99.if ${MACHINE_ARCH} != "amd64"
100.if !defined(NOLIBTHR)
101_libthr=	libthr
102.endif
103.endif
104
105.if ${MACHINE_ARCH} != "powerpc"
106_libdisk=	libdisk
107.endif
108
109.if !defined(NOCRYPT) && !defined(NO_OPENSSL)
110_libmp=		libmp
111.endif
112
113.if !defined(NO_YP_LIBC)
114_libypclnt=	libypclnt
115.endif
116
117.include <bsd.subdir.mk>
118