]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
Update to ELF Tool Chain r3223
[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         libnetbsd \
75         ${_libnetgraph} \
76         ${_libngatm} \
77         libnv \
78         libohash \
79         libopie \
80         libpam \
81         libpcap \
82         libpjdlog \
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         libsqlite3 \
97         libstand \
98         libstdbuf \
99         libstdthreads \
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         libxo \
116         liby \
117         ${_libypclnt} \
118         libz \
119         ncurses \
120         ${_atf} \
121         ${_clang} \
122         ${_cuse} \
123         ${_tests}
124
125 # Inter-library dependencies.  When the makefile for a library contains LDADD
126 # libraries, those libraries should be listed as build order dependencies here.
127
128 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
129 SUBDIR_DEPEND_libatm= libmd
130 SUBDIR_DEPEND_libauditdm= libbsm
131 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
132 SUBDIR_DEPEND_libc++= libcxxrt
133 SUBDIR_DEPEND_libc= libcompiler_rt
134 SUBDIR_DEPEND_libcam= libsbuf
135 SUBDIR_DEPEND_libcapsicum= libnv
136 SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog
137 SUBDIR_DEPEND_libdevstat= libkvm
138 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
139 SUBDIR_DEPEND_libedit= ncurses
140 SUBDIR_DEPEND_libg++= msun
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_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_CASPER} != "no"
173 _libcapsicum=   libcapsicum
174 _libcasper=     libcasper
175 .endif
176
177 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
178 _clang=         clang
179 .endif
180
181 .if ${MK_CUSE} != "no"
182 _cuse=          libcuse
183 .endif
184
185 .if ${MK_ELFTOOLCHAIN_TOOLS} != "no"
186 _libelftc=      libelftc
187 .endif
188
189 .if ${MK_FILE} != "no"
190 _libmagic=      libmagic
191 .endif
192
193 .if ${MK_GPIO} != "no"
194 _libgpio=       libgpio
195 .endif
196
197 .if ${MK_GSSAPI} != "no"
198 _libgssapi=     libgssapi
199 _librpcsec_gss= librpcsec_gss
200 .endif
201
202 .if ${MK_ICONV} != "no"
203 _libiconv_modules=      libiconv_modules
204 .endif
205
206 .if ${MK_KERBEROS_SUPPORT} != "no"
207 _libcom_err= libcom_err
208 .endif
209
210 .if ${MK_LDNS} != "no"
211 _libldns=       libldns
212 .endif
213
214 # The libraries under libclang_rt can only be built by clang, and only make
215 # sense to build when clang is enabled at all.  Furthermore, they can only be
216 # built for certain architectures.
217 .if ${MK_CLANG} != "no" && ${COMPILER_TYPE} == "clang" && \
218     (${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" || \
219     (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb"))
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 ${MK_PF} != "no"
245 _libevent=      libevent
246 .endif
247
248 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
249 _libsmb=        libsmb
250 _libvgl=        libvgl
251 _libproc=       libproc
252 _librtld_db=    librtld_db
253 .endif
254
255 .if ${MACHINE_CPUARCH} == "amd64"
256 .if ${MK_BHYVE} != "no"
257 _libvmmapi=     libvmmapi
258 .endif
259 .endif
260
261 .if ${MACHINE_CPUARCH} == "mips"
262 _libproc=       libproc
263 _librtld_db=    librtld_db
264 .endif
265
266 .if ${MACHINE_CPUARCH} == "powerpc"
267 _libproc=       libproc
268 _librtld_db=    librtld_db
269 _libsmb=        libsmb
270 .endif
271
272 .if ${MACHINE_CPUARCH} == "sparc64"
273 _libsmb=        libsmb
274 .endif
275
276 .if ${MACHINE_CPUARCH} == "arm"
277 _libsmb=        libsmb
278 _libproc=       libproc
279 _librtld_db=    librtld_db
280 .endif
281
282 .if ${MK_OPENSSL} != "no"
283 _libmp=         libmp
284 .endif
285
286 .if ${MK_PMC} != "no"
287 _libpmc=        libpmc
288 .endif
289
290 .if ${MK_RADIUS_SUPPORT} != "no"
291 _libradius=     libradius
292 .endif
293
294 .if ${MK_SENDMAIL} != "no"
295 _libmilter=     libmilter
296 _libsm=         libsm
297 _libsmdb=       libsmdb
298 _libsmutil=     libsmutil
299 .endif
300
301 .if ${MK_TELNET} != "no"
302 _libtelnet=     libtelnet
303 .endif
304
305 .if ${MK_TESTS_SUPPORT} != "no"
306 _atf=           atf
307 .endif
308 .if ${MK_TESTS} != "no"
309 _tests=         tests
310 .endif
311
312 .if ${MK_UNBOUND} != "no"
313 _libunbound=    libunbound
314 .endif
315
316 .if ${MK_USB} != "no"
317 _libusbhid=     libusbhid
318 _libusb=        libusb
319 .endif
320
321 .if !defined(LIBRARIES_ONLY)
322 afterinstall:
323         ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
324 .endif
325
326 .if !make(install)
327 SUBDIR_PARALLEL=
328 .endif
329
330 .include <bsd.subdir.mk>