Makefile revision 200062
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 200062 2009-12-03 15:48:24Z ed $
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# libbsm must be built before ibauditd.
12# libcom_err must be built before libkrb5 and libpam.
13# libcrypt must be built before libkrb5 and libpam.
14# libkvm must be built before libdevstat.
15# msun must be built before libg++ and libstdc++.
16# libmd must be built before libatm, libopie, libradius, and libtacplus.
17# ncurses must be built before libdialog, libedit and libreadline.
18# libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
19# libopie must be built before libpam.
20# libradius must be built before libpam.
21# librpcsvc must be built before libpam.
22# libsbuf must be built before libcam.
23# libtacplus must be built before libpam.
24# libutil must be built before libpam.
25# libypclnt must be built before libpam.
26# libgssapi must be built before librpcsec_gss
27#
28# Otherwise, the SUBDIR list should be in alphabetical order.
29
30SUBDIR=	${_csu} libc libbsm libauditd libcom_err libcrypt libelf libkvm msun \
31	libmd \
32	ncurses ${_libnetgraph} libradius librpcsvc libsbuf \
33	libtacplus libutil ${_libypclnt} libalias libarchive ${_libatm} \
34	libbegemot ${_libbluetooth} ${_libbsnmp} libbz2 \
35	libcalendar libcam libcompat libdevinfo libdevstat libdisk \
36	libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \
37	${_libgssapi} ${_librpcsec_gss} libipsec \
38	${_libipx} libjail libkiconv libmagic libmemstat ${_libmilter} \
39	${_libmp} ${_libncp} ${_libngatm} libopie libpam libpcap \
40	${_libpmc} libproc librt ${_libsdp} ${_libsm} ${_libsmb} \
41	${_libsmdb} \
42	${_libsmutil} libstand ${_libtelnet} ${_libthr} libthread_db libufs \
43	libugidfw libulog ${_libusbhid} ${_libusb} ${_libvgl} libwrap \
44	liby libz ${_bind}
45
46.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
47_csu=csu/${MACHINE_ARCH}-elf
48.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
49_csu=csu/${MACHINE_ARCH}
50.else
51_csu=csu
52.endif
53
54# NB: keep these sorted by MK_* knobs
55
56.if ${MK_ATM} != "no"
57_libngatm=	libngatm
58.endif
59
60.if ${MK_BIND} != "no"
61_bind=		bind
62.endif
63
64.if ${MK_BLUETOOTH} != "no"
65_libbluetooth=	libbluetooth
66_libsdp=	libsdp
67.endif
68
69.if ${MK_BSNMP} != "no"
70_libbsnmp=	libbsnmp
71.endif
72
73.if ${MK_GPIB} != "no"
74_libgpib=	libgpib
75.endif
76
77.if ${MK_GSSAPI} != "no"
78_libgssapi=	libgssapi
79_librpcsec_gss=	librpcsec_gss
80.endif
81
82.if ${MK_IPX} != "no"
83_libipx=	libipx
84.endif
85
86.if ${MK_LIBTHR} != "no"
87_libthr=	libthr
88.endif
89
90.if ${MK_NETGRAPH} != "no"
91_libnetgraph=	libnetgraph
92.endif
93
94.if ${MK_NIS} != "no"
95_libypclnt=	libypclnt
96.endif
97
98.if ${MACHINE_ARCH} == "i386"
99.if ${MK_NCP} != "no"
100_libncp=	libncp
101.endif
102_libsmb=	libsmb
103_libvgl=	libvgl
104.endif
105
106.if ${MACHINE_ARCH} == "ia64"
107_libsmb=	libsmb
108.endif
109
110.if ${MACHINE_ARCH} == "amd64"
111.if ${MK_NCP} != "no"
112_libncp=	libncp
113.endif
114_libsmb=	libsmb
115_libvgl=	libvgl
116.endif
117
118.if ${MACHINE_ARCH} == "powerpc"
119_libsmb=	libsmb
120.endif
121
122.if ${MK_OPENSSL} != "no"
123_libmp=		libmp
124.endif
125
126.if ${MK_PMC} != "no"
127_libpmc=	libpmc
128.endif
129
130.if ${MK_SENDMAIL} != "no"
131_libmilter=	libmilter
132_libsm=		libsm
133_libsmdb=	libsmdb
134_libsmutil=	libsmutil
135.endif
136
137.if ${MK_TELNET} != "no"
138_libtelnet=	libtelnet
139.endif
140
141.if ${MK_USB} != "no"
142_libusbhid=	libusbhid
143_libusb=	libusb
144.endif
145
146.include <bsd.subdir.mk>
147