Makefile revision 292973
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: stable/10/lib/Makefile 292973 2015-12-31 03:28:14Z ngie $
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	libnv \
74	libopie \
75	libpam \
76	libpcap \
77	${_libpmc} \
78	${_libproc} \
79	libprocstat \
80	${_libradius} \
81	librpcsvc \
82	librt \
83	${_librtld_db} \
84	libsbuf \
85	${_libsdp} \
86	${_libsm} \
87	${_libsmb} \
88	${_libsmdb} \
89	${_libsmutil} \
90	libstand \
91	libstdbuf \
92	libstdthreads \
93	libtacplus \
94	${_libtelnet} \
95	${_libthr} \
96	libthread_db \
97	libucl \
98	libufs \
99	libugidfw \
100	libulog \
101	${_libunbound} \
102	${_libusbhid} \
103	${_libusb} \
104	libutil \
105	${_libvgl} \
106	${_libvmmapi} \
107	libwrap \
108	liby \
109	${_libypclnt} \
110	libyaml \
111	libz \
112	ncurses \
113	${_atf} \
114	${_clang} \
115	${_tests}
116
117# Inter-library dependencies.  When the makefile for a library contains LDADD
118# libraries, those libraries should be listed as build order dependencies here.
119
120SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
121SUBDIR_DEPEND_libatm= libmd
122SUBDIR_DEPEND_libauditdm= libbsm
123SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
124SUBDIR_DEPEND_libc++= libcxxrt
125SUBDIR_DEPEND_libc= libcompiler_rt
126SUBDIR_DEPEND_libcam= libsbuf
127SUBDIR_DEPEND_libdevstat= libkvm
128SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
129SUBDIR_DEPEND_libedit= ncurses
130SUBDIR_DEPEND_libg++= msun
131SUBDIR_DEPEND_libgeom= libexpat libsbuf
132SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
133SUBDIR_DEPEND_libmagic= libz
134SUBDIR_DEPEND_libmemstat= libkvm
135SUBDIR_DEPEND_libopie= libmd
136SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 
137SUBDIR_DEPEND_libpjdlog= libutil
138SUBDIR_DEPEND_libprocstat= libkvm libutil
139SUBDIR_DEPEND_libradius= libmd
140SUBDIR_DEPEND_libsmb= libkiconv
141SUBDIR_DEPEND_libstdc++= msun
142SUBDIR_DEPEND_libtacplus= libmd
143SUBDIR_DEPEND_libulog= libmd
144SUBDIR_DEPEND_libunbound= ${_libldns}
145SUBDIR_DEPEND_liblzma= ${_libthr}
146
147# NB: keep these sorted by MK_* knobs
148
149.if ${MK_ATM} != "no"
150_libngatm=	libngatm
151.endif
152
153.if ${MK_BLUETOOTH} != "no"
154_libbluetooth=	libbluetooth
155_libsdp=	libsdp
156.endif
157
158.if ${MK_BSNMP} != "no"
159_libbsnmp=	libbsnmp
160.endif
161
162.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
163_clang=		clang
164.endif
165
166.if ${MK_FILE} != "no"
167_libmagic=	libmagic
168.endif
169
170.if ${MK_GPIB} != "no"
171_libgpib=	libgpib
172.endif
173
174.if ${MK_GSSAPI} != "no"
175_libgssapi=	libgssapi
176_librpcsec_gss=	librpcsec_gss
177.endif
178
179.if ${MK_ICONV} != "no"
180_libiconv_modules=	libiconv_modules
181.endif
182
183.if ${MK_KERBEROS_SUPPORT} != "no"
184_libcom_err= libcom_err
185.endif
186
187.if ${MK_IPX} != "no"
188_libipx=	libipx
189.endif
190
191.if ${MK_LDNS} != "no"
192_libldns=	libldns
193.endif
194
195.if ${MK_LIBCPLUSPLUS} != "no"
196_libcxxrt=	libcxxrt
197_libcplusplus=	libc++
198.endif
199
200.if ${MK_LIBTHR} != "no"
201_libthr=	libthr
202.endif
203
204.if ${MK_NAND} != "no"
205_libnandfs=	libnandfs
206.endif
207
208.if ${MK_NETGRAPH} != "no"
209_libnetgraph=	libnetgraph
210.endif
211
212.if ${MK_NIS} != "no"
213_libypclnt=	libypclnt
214.endif
215
216.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
217_libsmb=	libsmb
218_libvgl=	libvgl
219_libproc=	libproc
220_librtld_db=	librtld_db
221.endif
222
223.if ${MACHINE_CPUARCH} == "amd64"
224.if ${MK_BHYVE} != "no"
225_libvmmapi=	libvmmapi
226.endif
227.endif
228
229.if ${MACHINE_CPUARCH} == "ia64"
230_libefi=	libefi
231_libsmb=	libsmb
232.endif
233
234.if ${MACHINE_CPUARCH} == "mips"
235_libproc=	libproc
236_librtld_db=	librtld_db
237.endif
238
239.if ${MACHINE_CPUARCH} == "powerpc"
240_libproc=	libproc
241_librtld_db=	librtld_db
242_libsmb=	libsmb
243.endif
244
245.if ${MACHINE_CPUARCH} == "sparc64"
246_libsmb=	libsmb
247.endif
248
249.if ${MK_OPENSSL} != "no"
250_libmp=		libmp
251.endif
252
253.if ${MK_PMC} != "no"
254_libpmc=	libpmc
255.endif
256
257.if ${MK_RADIUS_SUPPORT} != "no"
258_libradius=	libradius
259.endif
260
261.if ${MK_SENDMAIL} != "no"
262_libmilter=	libmilter
263_libsm=		libsm
264_libsmdb=	libsmdb
265_libsmutil=	libsmutil
266.endif
267
268.if ${MK_TELNET} != "no"
269_libtelnet=	libtelnet
270.endif
271
272.if ${MK_TESTS} != "no"
273_atf=		atf
274_tests=		tests
275.endif
276
277.if ${MK_UNBOUND} != "no"
278_libunbound=	libunbound
279.endif
280
281.if ${MK_USB} != "no"
282_libusbhid=	libusbhid
283_libusb=	libusb
284.endif
285
286.if !defined(LIBRARIES_ONLY)
287afterinstall:
288	${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
289.endif
290
291.if !make(install)
292SUBDIR_PARALLEL=
293.endif
294
295.include <bsd.subdir.mk>
296