Makefile revision 179308
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 179308 2008-05-25 22:11:40Z rwatson $
3
4.include <bsd.own.mk>
5
6# To satisfy shared library or ELF linkage when only the libraries being
7# built are visible:
8#
9# csu must be built before all shared libaries for ELF.
10# libc must be built before all other shared libraries.
11# libcom_err must be built before libkrb5 and libpam.
12# libcrypt must be built before libkrb5 and libpam.
13# libkvm must be built before libdevstat.
14# msun must be built before libg++ and libstdc++.
15# libmd must be built before libatm, libopie, libradius, and libtacplus.
16# ncurses must be built before libdialog, libedit and libreadline.
17# libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
18# libopie must be built before libpam.
19# libradius must be built before libpam.
20# librpcsvc must be built before libpam.
21# libsbuf must be built before libcam.
22# libtacplus must be built before libpam.
23# libutil must be built before libpam.
24# libypclnt must be built before libpam.
25#
26# Otherwise, the SUBDIR list should be in alphabetical order.
27
28SUBDIR=	${_csu} libc libbsm libcom_err libcrypt libelf libkvm msun libmd \
29	ncurses libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
30	${_libypclnt} libalias libarchive ${_libatm} \
31	libbegemot ${_libbluetooth} libbsnmp libbz2 \
32	libcalendar libcam libcompat libdevinfo libdevstat libdisk \
33	libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \
34	${_libgssapi} libipsec \
35	${_libipx} libkiconv libmagic libmemstat ${_libmilter} ${_libmp} \
36	${_libncp} ${_libngatm} libopie libpam libpcap \
37	libpmc libproc librt ${_libsdp} ${_libsm} ${_libsmb} \
38	${_libsmdb} \
39	${_libsmutil} libstand libtelnet ${_libthr} libthread_db libufs \
40	libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind}
41
42.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
43_csu=csu/${MACHINE_ARCH}-elf
44.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
45_csu=csu/${MACHINE_ARCH}
46.else
47_csu=csu
48.endif
49
50.if ${MK_ATM} != "no"
51_libngatm=	libngatm
52.endif
53
54.if ${MK_BIND} != "no"
55_bind=		bind
56.endif
57
58.if ${MK_BLUETOOTH} != "no"
59_libbluetooth=	libbluetooth
60_libsdp=	libsdp
61.endif
62
63.if ${MK_GSSAPI} != "no"
64_libgssapi=	libgssapi
65.endif
66
67.if ${MK_IPX} != "no"
68_libipx=	libipx
69.endif
70
71.if ${MACHINE_ARCH} == "i386"
72.if ${MK_NCP} != "no"
73_libncp=	libncp
74.endif
75_libsmb=	libsmb
76_libvgl=	libvgl
77.endif
78
79.if ${MACHINE_ARCH} == "ia64"
80_libsmb=	libsmb
81.endif
82
83.if ${MK_SENDMAIL} != "no"
84_libmilter=	libmilter
85_libsm=		libsm
86_libsmdb=	libsmdb
87_libsmutil=	libsmutil
88.endif
89
90.if ${MK_OPENSSL} != "no"
91_libmp=		libmp
92.endif
93
94.if ${MACHINE_ARCH} == "amd64"
95.if ${MK_NCP} != "no"
96_libncp=	libncp
97.endif
98_libsmb=	libsmb
99.endif
100
101.if ${MACHINE_ARCH} == "powerpc"
102_libsmb=	libsmb
103.endif
104
105.if ${MK_LIBTHR} != "no"
106_libthr=	libthr
107.endif
108
109.if ${MK_USB} != "no"
110_libusbhid=	libusbhid
111.endif
112
113.if ${MK_NIS} != "no"
114_libypclnt=	libypclnt
115.endif
116
117.if ${MK_GPIB} != "no"
118_libgpib=	libgpib
119.endif
120
121.include <bsd.subdir.mk>
122