]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
Add missing va_ends for corresponding va_starts to clean up variable arguments
[FreeBSD/FreeBSD.git] / lib / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/4/93
2 # $FreeBSD$
3
4 .include <src.opts.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
11 SUBDIR_ORDERED= csu \
12         .WAIT \
13         libc \
14         libc_nonshared \
15         libcompiler_rt \
16         ${_libclang_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         libbsdstat \
35         libbsm \
36         libbz2 \
37         libcalendar \
38         libcam \
39         ${_libcapsicum} \
40         ${_libcasper} \
41         ${_libcom_err} \
42         libcompat \
43         libcrypt \
44         libdevctl \
45         libdevinfo \
46         libdevstat \
47         libdpv \
48         libdwarf \
49         libedit \
50         ${_libelftc} \
51         libevent \
52         libexecinfo \
53         libexpat \
54         libfetch \
55         libfigpar \
56         libgeom \
57         ${_libgpio} \
58         ${_libgssapi} \
59         ${_librpcsec_gss} \
60         ${_libiconv_modules} \
61         libipsec \
62         libjail \
63         libkiconv \
64         libkvm \
65         ${_libldns} \
66         liblzma \
67         ${_libmagic} \
68         libmemstat \
69         libmd \
70         ${_libmilter} \
71         ${_libmp} \
72         libmt \
73         ${_libnandfs} \
74         lib80211 \
75         libnetbsd \
76         ${_libnetgraph} \
77         ${_libngatm} \
78         libnv \
79         libopenbsd \
80         libopie \
81         libpam \
82         libpcap \
83         libpjdlog \
84         ${_libpmc} \
85         ${_libproc} \
86         libprocstat \
87         ${_libradius} \
88         librpcsvc \
89         librt \
90         ${_librtld_db} \
91         libsbuf \
92         ${_libsdp} \
93         ${_libsm} \
94         ${_libsmb} \
95         ${_libsmdb} \
96         ${_libsmutil} \
97         libsqlite3 \
98         libstand \
99         libstdbuf \
100         libstdthreads \
101         libtacplus \
102         ${_libtelnet} \
103         ${_libthr} \
104         libthread_db \
105         libucl \
106         libufs \
107         libugidfw \
108         libulog \
109         ${_libunbound} \
110         ${_libusbhid} \
111         ${_libusb} \
112         libutil \
113         ${_libvgl} \
114         ${_libvmmapi} \
115         libwrap \
116         libxo \
117         liby \
118         ${_libypclnt} \
119         libz \
120         ncurses \
121         ${_atf} \
122         ${_clang} \
123         ${_cuse} \
124         ${_tests}
125
126 # Inter-library dependencies.  When the makefile for a library contains LDADD
127 # libraries, those libraries should be listed as build order dependencies here.
128
129 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
130 SUBDIR_DEPEND_libatm= libmd
131 SUBDIR_DEPEND_libauditdm= libbsm
132 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
133 SUBDIR_DEPEND_libc++:= libcxxrt
134 SUBDIR_DEPEND_libc= libcompiler_rt
135 SUBDIR_DEPEND_libcam= libsbuf
136 SUBDIR_DEPEND_libcapsicum= libnv
137 SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog
138 SUBDIR_DEPEND_libdevstat= libkvm
139 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
140 SUBDIR_DEPEND_libedit= ncurses
141 SUBDIR_DEPEND_libgeom= libexpat libsbuf
142 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
143 SUBDIR_DEPEND_libmagic= libz
144 SUBDIR_DEPEND_libmemstat= libkvm
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_libtacplus= libmd
152 SUBDIR_DEPEND_libulog= libmd
153 SUBDIR_DEPEND_libunbound= ${_libldns}
154 SUBDIR_DEPEND_liblzma= ${_libthr}
155
156 # NB: keep these sorted by MK_* knobs
157
158 .if ${MK_ATM} != "no"
159 _libngatm=      libngatm
160 .endif
161
162 .if ${MK_BLUETOOTH} != "no"
163 _libbluetooth=  libbluetooth
164 _libsdp=        libsdp
165 .endif
166
167 .if ${MK_BSNMP} != "no"
168 _libbsnmp=      libbsnmp
169 .endif
170
171 .if ${MK_CASPER} != "no"
172 _libcapsicum=   libcapsicum
173 _libcasper=     libcasper
174 .endif
175
176 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
177 _clang=         clang
178 .endif
179
180 .if ${MK_CUSE} != "no"
181 _cuse=          libcuse
182 .endif
183
184 .if ${MK_TOOLCHAIN} != "no"
185 _libelftc=      libelftc
186 .endif
187
188 .if ${MK_FILE} != "no"
189 _libmagic=      libmagic
190 .endif
191
192 .if ${MK_GPIO} != "no"
193 _libgpio=       libgpio
194 .endif
195
196 .if ${MK_GSSAPI} != "no"
197 _libgssapi=     libgssapi
198 _librpcsec_gss= librpcsec_gss
199 .endif
200
201 .if ${MK_ICONV} != "no"
202 _libiconv_modules=      libiconv_modules
203 .endif
204
205 .if ${MK_KERBEROS_SUPPORT} != "no"
206 _libcom_err= libcom_err
207 .endif
208
209 .if ${MK_LDNS} != "no"
210 _libldns=       libldns
211 .endif
212
213 # The libraries under libclang_rt can only be built by clang, and only make
214 # sense to build when clang is enabled at all.  Furthermore, they can only be
215 # built for certain architectures.
216 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
217     (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
218     (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb") || \
219     (${MACHINE_CPUARCH} == "i386"))
220 _libclang_rt=   libclang_rt
221 .endif
222
223 .if ${MK_LIBCPLUSPLUS} != "no"
224 _libcxxrt=      libcxxrt
225 _libcplusplus=  libc++
226 .endif
227
228 .if ${MK_LIBTHR} != "no"
229 _libthr=        libthr
230 .endif
231
232 .if ${MK_NAND} != "no"
233 _libnandfs=     libnandfs
234 .endif
235
236 .if ${MK_NETGRAPH} != "no"
237 _libnetgraph=   libnetgraph
238 .endif
239
240 .if ${MK_NIS} != "no"
241 _libypclnt=     libypclnt
242 .endif
243
244 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
245 _libsmb=        libsmb
246 _libvgl=        libvgl
247 _libproc=       libproc
248 _librtld_db=    librtld_db
249 .endif
250
251 .if ${MACHINE_CPUARCH} == "amd64"
252 .if ${MK_BHYVE} != "no"
253 _libvmmapi=     libvmmapi
254 .endif
255 .endif
256
257 .if ${MACHINE_CPUARCH} == "mips"
258 _libproc=       libproc
259 _librtld_db=    librtld_db
260 .endif
261
262 .if ${MACHINE_CPUARCH} == "powerpc"
263 _libproc=       libproc
264 _librtld_db=    librtld_db
265 _libsmb=        libsmb
266 .endif
267
268 .if ${MACHINE_CPUARCH} == "sparc64"
269 _libsmb=        libsmb
270 .endif
271
272 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm"
273 _libsmb=        libsmb
274 _libproc=       libproc
275 _librtld_db=    librtld_db
276 .endif
277
278 .if ${MK_OPENSSL} != "no"
279 _libmp=         libmp
280 .endif
281
282 .if ${MK_PMC} != "no"
283 _libpmc=        libpmc
284 .endif
285
286 .if ${MK_RADIUS_SUPPORT} != "no"
287 _libradius=     libradius
288 .endif
289
290 .if ${MK_SENDMAIL} != "no"
291 _libmilter=     libmilter
292 _libsm=         libsm
293 _libsmdb=       libsmdb
294 _libsmutil=     libsmutil
295 .endif
296
297 .if ${MK_TELNET} != "no"
298 _libtelnet=     libtelnet
299 .endif
300
301 .if ${MK_TESTS_SUPPORT} != "no"
302 _atf=           atf
303 .endif
304 .if ${MK_TESTS} != "no"
305 _tests=         tests
306 .endif
307
308 .if ${MK_UNBOUND} != "no"
309 _libunbound=    libunbound
310 .endif
311
312 .if ${MK_USB} != "no"
313 _libusbhid=     libusbhid
314 _libusb=        libusb
315 .endif
316
317 .if !make(install)
318 SUBDIR_PARALLEL=
319 .endif
320
321 .include <bsd.subdir.mk>