Makefile revision 203181
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 203181 2010-01-30 04:24:03Z marcel $
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 \
34	${_libatm} libbegemot ${_libbluetooth} ${_libbsnmp} libbz2 \
35	libcalendar libcam libcompat libdevinfo libdevstat libdisk \
36	libdwarf libedit ${_libefi} libexpat libfetch libftpio libgeom \
37	${_libgpib} ${_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} ${_libsmutil} libstand \
42	${_libtelnet} ${_libthr} libthread_db libufs libugidfw libulog \
43	${_libusbhid} ${_libusb} ${_libvgl} libwrap liby libz \
44	${_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_libefi=	libefi
108_libsmb=	libsmb
109.endif
110
111.if ${MACHINE_ARCH} == "amd64"
112.if ${MK_NCP} != "no"
113_libncp=	libncp
114.endif
115_libsmb=	libsmb
116_libvgl=	libvgl
117.endif
118
119.if ${MACHINE_ARCH} == "powerpc"
120_libsmb=	libsmb
121.endif
122
123.if ${MACHINE_ARCH} == "sparc64"
124_libsmb=	libsmb
125.endif
126
127.if ${MK_OPENSSL} != "no"
128_libmp=		libmp
129.endif
130
131.if ${MK_PMC} != "no"
132_libpmc=	libpmc
133.endif
134
135.if ${MK_SENDMAIL} != "no"
136_libmilter=	libmilter
137_libsm=		libsm
138_libsmdb=	libsmdb
139_libsmutil=	libsmutil
140.endif
141
142.if ${MK_TELNET} != "no"
143_libtelnet=	libtelnet
144.endif
145
146.if ${MK_USB} != "no"
147_libusbhid=	libusbhid
148_libusb=	libusb
149.endif
150
151.include <bsd.subdir.mk>
152