Makefile revision 292588
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: stable/10/lib/Makefile 292588 2015-12-22 08:03:23Z delphij $
3
4.include <bsd.own.mk>
5
6# The SUBDIR_ORDERED list is a small set of libraries which are used by many
7# of the other libraries.  These are built first with a .WAIT between them
8# and the main list to avoid needing a SUBDIR_DEPEND line on every library
9# naming just these few items.
10
11SUBDIR_ORDERED=	csu \
12	.WAIT \
13	libc \
14	libc_nonshared \
15	libcompiler_rt \
16	${_libcplusplus} \
17	${_libcxxrt} \
18	libelf \
19	msun
20
21# The main list; please keep these sorted alphabetically.
22
23SUBDIR=	${SUBDIR_ORDERED} \
24	.WAIT \
25	libalias \
26	libarchive \
27	${_libatm} \
28	libauditd \
29	libbegemot \
30	libblocksruntime \
31	${_libbluetooth} \
32	${_libbsnmp} \
33	libbsm \
34	libbz2 \
35	libcalendar \
36	libcam \
37	${_libcom_err} \
38	libcompat \
39	libcrypt \
40	libdevinfo \
41	libdevstat \
42	libdpv \
43	libdwarf \
44	libedit \
45	${_libefi} \
46	libexecinfo \
47	libexpat \
48	libfetch \
49	libfigpar \
50	libgeom \
51	${_libgpib} \
52	${_libgssapi} \
53	${_librpcsec_gss} \
54	${_libiconv_modules} \
55	libipsec \
56	${_libipx} \
57	libjail \
58	libkiconv \
59	libkvm \
60	${_libldns} \
61	liblzma \
62	${_libmagic} \
63	libmandoc \
64	libmemstat \
65	libmd \
66	${_libmilter} \
67	${_libmp} \
68	libmt \
69	${_libnandfs} \
70	libnetbsd \
71	${_libnetgraph} \
72	${_libngatm} \
73	libopie \
74	libpam \
75	libpcap \
76	${_libpmc} \
77	${_libproc} \
78	libprocstat \
79	${_libradius} \
80	librpcsvc \
81	librt \
82	${_librtld_db} \
83	libsbuf \
84	${_libsdp} \
85	${_libsm} \
86	${_libsmb} \
87	${_libsmdb} \
88	${_libsmutil} \
89	libstand \
90	libstdbuf \
91	libstdthreads \
92	libtacplus \
93	${_libtelnet} \
94	${_libthr} \
95	libthread_db \
96	libucl \
97	libufs \
98	libugidfw \
99	libulog \
100	${_libunbound} \
101	${_libusbhid} \
102	${_libusb} \
103	libutil \
104	${_libvgl} \
105	${_libvmmapi} \
106	libwrap \
107	liby \
108	${_libypclnt} \
109	libyaml \
110	libz \
111	ncurses \
112	${_atf} \
113	${_clang} \
114	${_tests}
115
116# Inter-library dependencies.  When the makefile for a library contains LDADD
117# libraries, those libraries should be listed as build order dependencies here.
118
119SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
120SUBDIR_DEPEND_libatm= libmd
121SUBDIR_DEPEND_libauditdm= libbsm
122SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
123SUBDIR_DEPEND_libc++= libcxxrt
124SUBDIR_DEPEND_libc= libcompiler_rt
125SUBDIR_DEPEND_libcam= libsbuf
126SUBDIR_DEPEND_libdevstat= libkvm
127SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
128SUBDIR_DEPEND_libedit= ncurses
129SUBDIR_DEPEND_libg++= msun
130SUBDIR_DEPEND_libgeom= libexpat libsbuf
131SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
132SUBDIR_DEPEND_libmagic= libz
133SUBDIR_DEPEND_libmemstat= libkvm
134SUBDIR_DEPEND_libopie= libmd
135SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 
136SUBDIR_DEPEND_libpjdlog= libutil
137SUBDIR_DEPEND_libprocstat= libkvm libutil
138SUBDIR_DEPEND_libradius= libmd
139SUBDIR_DEPEND_libsmb= libkiconv
140SUBDIR_DEPEND_libstdc++= msun
141SUBDIR_DEPEND_libtacplus= libmd
142SUBDIR_DEPEND_libulog= libmd
143SUBDIR_DEPEND_libunbound= ${_libldns}
144SUBDIR_DEPEND_liblzma= ${_libthr}
145
146# NB: keep these sorted by MK_* knobs
147
148.if ${MK_ATM} != "no"
149_libngatm=	libngatm
150.endif
151
152.if ${MK_BLUETOOTH} != "no"
153_libbluetooth=	libbluetooth
154_libsdp=	libsdp
155.endif
156
157.if ${MK_BSNMP} != "no"
158_libbsnmp=	libbsnmp
159.endif
160
161.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
162_clang=		clang
163.endif
164
165.if ${MK_FILE} != "no"
166_libmagic=	libmagic
167.endif
168
169.if ${MK_GPIB} != "no"
170_libgpib=	libgpib
171.endif
172
173.if ${MK_GSSAPI} != "no"
174_libgssapi=	libgssapi
175_librpcsec_gss=	librpcsec_gss
176.endif
177
178.if ${MK_ICONV} != "no"
179_libiconv_modules=	libiconv_modules
180.endif
181
182.if ${MK_KERBEROS_SUPPORT} != "no"
183_libcom_err= libcom_err
184.endif
185
186.if ${MK_IPX} != "no"
187_libipx=	libipx
188.endif
189
190.if ${MK_LDNS} != "no"
191_libldns=	libldns
192.endif
193
194.if ${MK_LIBCPLUSPLUS} != "no"
195_libcxxrt=	libcxxrt
196_libcplusplus=	libc++
197.endif
198
199.if ${MK_LIBTHR} != "no"
200_libthr=	libthr
201.endif
202
203.if ${MK_NAND} != "no"
204_libnandfs=	libnandfs
205.endif
206
207.if ${MK_NETGRAPH} != "no"
208_libnetgraph=	libnetgraph
209.endif
210
211.if ${MK_NIS} != "no"
212_libypclnt=	libypclnt
213.endif
214
215.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
216_libsmb=	libsmb
217_libvgl=	libvgl
218_libproc=	libproc
219_librtld_db=	librtld_db
220.endif
221
222.if ${MACHINE_CPUARCH} == "amd64"
223.if ${MK_BHYVE} != "no"
224_libvmmapi=	libvmmapi
225.endif
226.endif
227
228.if ${MACHINE_CPUARCH} == "ia64"
229_libefi=	libefi
230_libsmb=	libsmb
231.endif
232
233.if ${MACHINE_CPUARCH} == "mips"
234_libproc=	libproc
235_librtld_db=	librtld_db
236.endif
237
238.if ${MACHINE_CPUARCH} == "powerpc"
239_libproc=	libproc
240_librtld_db=	librtld_db
241_libsmb=	libsmb
242.endif
243
244.if ${MACHINE_CPUARCH} == "sparc64"
245_libsmb=	libsmb
246.endif
247
248.if ${MK_OPENSSL} != "no"
249_libmp=		libmp
250.endif
251
252.if ${MK_PMC} != "no"
253_libpmc=	libpmc
254.endif
255
256.if ${MK_RADIUS_SUPPORT} != "no"
257_libradius=	libradius
258.endif
259
260.if ${MK_SENDMAIL} != "no"
261_libmilter=	libmilter
262_libsm=		libsm
263_libsmdb=	libsmdb
264_libsmutil=	libsmutil
265.endif
266
267.if ${MK_TELNET} != "no"
268_libtelnet=	libtelnet
269.endif
270
271.if ${MK_TESTS} != "no"
272_atf=		atf
273_tests=		tests
274.endif
275
276.if ${MK_UNBOUND} != "no"
277_libunbound=	libunbound
278.endif
279
280.if ${MK_USB} != "no"
281_libusbhid=	libusbhid
282_libusb=	libusb
283.endif
284
285.if !defined(LIBRARIES_ONLY)
286afterinstall:
287	${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
288.endif
289
290.if !make(install)
291SUBDIR_PARALLEL=
292.endif
293
294.include <bsd.subdir.mk>
295