Makefile revision 241629
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 241629 2012-10-17 11:16:17Z attilio $
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 libauditd.
12# libcom_err must be built before libpam.
13# libcrypt must be built before 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#
30# Except it appears bind needs to be compiled last
31
32SUBDIR_ORDERED=	${_csu} \
33	libc \
34	libbsm \
35	libauditd \
36	libcompiler_rt \
37	libcrypt \
38	libelf \
39	${_libiconv_modules} \
40	libkvm \
41	msun \
42	libmd \
43	ncurses \
44	${_libnetgraph} \
45	libradius \
46	librpcsvc \
47	libsbuf \
48	libtacplus \
49	libutil \
50	${_libypclnt} \
51	${_libcxxrt} \
52	${_libcplusplus}
53
54.if ${MK_KERBEROS_SUPPORT} != "no"
55SUBDIR_ORDERED+=	libcom_err
56.endif
57
58SUBDIR=	${SUBDIR_ORDERED} \
59	libalias \
60	libarchive \
61	${_libatm} \
62	libbegemot \
63	libblocksruntime \
64	${_libbluetooth} \
65	${_libbsnmp} \
66	libbz2 \
67	libcalendar \
68	libcam \
69	libcompat \
70	libdevinfo \
71	libdevstat \
72	libdisk \
73	libdwarf \
74	libedit \
75	${_libefi} \
76	libexpat \
77	libfetch \
78	libgeom \
79	${_libgpib} \
80	${_libgssapi} \
81	${_librpcsec_gss} \
82	libipsec \
83	${_libipx} \
84	libjail \
85	libkiconv \
86	liblzma \
87	libmagic \
88	libmemstat \
89	${_libmilter} \
90	${_libmp} \
91	${_libnandfs} \
92	${_libngatm} \
93	libopie \
94	libpam \
95	libpcap \
96	${_libpmc} \
97	${_libproc} \
98	libprocstat \
99	librt \
100	${_librtld_db} \
101	${_libsdp} \
102	${_libsm} \
103	${_libsmb} \
104	${_libsmdb} \
105	${_libsmutil} \
106	libstand \
107	libstdbuf \
108	libstdthreads \
109	${_libtelnet} \
110	${_libthr} \
111	libthread_db \
112	libufs \
113	libugidfw \
114	libulog \
115	${_libusbhid} \
116	${_libusb} \
117	${_libvgl} \
118	libwrap \
119	liby \
120	libz \
121	${_bind} \
122	${_clang}
123
124.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
125_csu=csu/${MACHINE_ARCH}-elf
126.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
127_csu=csu/${MACHINE_ARCH}
128.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
129_csu=csu/${MACHINE_CPUARCH}
130.else
131_csu=csu
132.endif
133
134# NB: keep these sorted by MK_* knobs
135
136.if ${MK_ATM} != "no"
137_libngatm=	libngatm
138.endif
139
140.if ${MK_BIND} != "no"
141_bind=		bind
142.endif
143
144.if ${MK_BLUETOOTH} != "no"
145_libbluetooth=	libbluetooth
146_libsdp=	libsdp
147.endif
148
149.if ${MK_BSNMP} != "no"
150_libbsnmp=	libbsnmp
151.endif
152
153.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
154_clang=		clang
155.endif
156
157.if ${MK_GPIB} != "no"
158_libgpib=	libgpib
159.endif
160
161.if ${MK_GSSAPI} != "no"
162_libgssapi=	libgssapi
163_librpcsec_gss=	librpcsec_gss
164.endif
165
166.if ${MK_ICONV} != "no"
167_libiconv_modules=	libiconv_modules
168.endif
169
170.if ${MK_IPX} != "no"
171_libipx=	libipx
172.endif
173
174.if ${MK_LIBTHR} != "no"
175_libthr=	libthr
176.endif
177
178.if ${MK_NAND} != "no"
179_libnandfs=	libnandfs
180.endif
181
182.if ${MK_NETGRAPH} != "no"
183_libnetgraph=	libnetgraph
184.endif
185
186.if ${MK_NIS} != "no"
187_libypclnt=	libypclnt
188.endif
189
190.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
191_libsmb=	libsmb
192_libvgl=	libvgl
193_libproc=	libproc
194_librtld_db=	librtld_db
195.endif
196
197.if ${MACHINE_CPUARCH} == "ia64"
198_libefi=	libefi
199_libsmb=	libsmb
200.endif
201
202.if ${MACHINE_CPUARCH} == "mips"
203_libproc=	libproc
204_librtld_db=	librtld_db
205.endif
206
207.if ${MACHINE_CPUARCH} == "powerpc"
208_libsmb=	libsmb
209.endif
210
211.if ${MACHINE_CPUARCH} == "sparc64"
212_libsmb=	libsmb
213.endif
214
215.if ${MK_OPENSSL} != "no"
216_libmp=		libmp
217.endif
218
219.if ${MK_LIBCPLUSPLUS} != "no"
220_libcxxrt=	libcxxrt
221_libcplusplus=	libc++
222.endif
223
224.if ${MK_PMC} != "no"
225_libpmc=	libpmc
226.endif
227
228.if ${MK_SENDMAIL} != "no"
229_libmilter=	libmilter
230_libsm=		libsm
231_libsmdb=	libsmdb
232_libsmutil=	libsmutil
233.endif
234
235.if ${MK_TELNET} != "no"
236_libtelnet=	libtelnet
237.endif
238
239.if ${MK_USB} != "no"
240_libusbhid=	libusbhid
241_libusb=	libusb
242.endif
243
244.include <bsd.subdir.mk>
245