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