]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
MFV r275696: file 5.21.
[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         ${_libcplusplus} \
17         ${_libcxxrt} \
18         libelf \
19         msun
20
21 # The main list; please keep these sorted alphabetically.
22
23 SUBDIR= ${SUBDIR_ORDERED} \
24         .WAIT \
25         libalias \
26         libarchive \
27         ${_libatm} \
28         libauditd \
29         libbegemot \
30         libblocksruntime \
31         ${_libbluetooth} \
32         ${_libbsnmp} \
33         libbsdstat \
34         libbsm \
35         libbz2 \
36         libcalendar \
37         libcam \
38         ${_libcapsicum} \
39         ${_libcasper} \
40         ${_libcom_err} \
41         libcompat \
42         libcrypt \
43         libdevinfo \
44         libdevstat \
45         libdpv \
46         libdwarf \
47         libedit \
48         ${_libelftc} \
49         ${_libevent} \
50         libexecinfo \
51         libexpat \
52         libfetch \
53         libfigpar \
54         libgeom \
55         ${_libgpib} \
56         libgpio \
57         ${_libgssapi} \
58         ${_librpcsec_gss} \
59         ${_libiconv_modules} \
60         libipsec \
61         libjail \
62         libkiconv \
63         libkvm \
64         ${_libldns} \
65         liblzma \
66         libmagic \
67         libmandoc \
68         libmemstat \
69         libmd \
70         ${_libmilter} \
71         ${_libmp} \
72         ${_libnandfs} \
73         libnetbsd \
74         ${_libnetgraph} \
75         ${_libngatm} \
76         libnv \
77         libohash \
78         libopie \
79         libpam \
80         libpcap \
81         libpjdlog \
82         ${_libpmc} \
83         ${_libproc} \
84         libprocstat \
85         libradius \
86         librpcsvc \
87         librt \
88         ${_librtld_db} \
89         libsbuf \
90         ${_libsdp} \
91         ${_libsm} \
92         ${_libsmb} \
93         ${_libsmdb} \
94         ${_libsmutil} \
95         libsqlite3 \
96         libstand \
97         libstdbuf \
98         libstdthreads \
99         libtacplus \
100         ${_libtelnet} \
101         ${_libthr} \
102         libthread_db \
103         libucl \
104         libufs \
105         libugidfw \
106         libulog \
107         ${_libunbound} \
108         ${_libusbhid} \
109         ${_libusb} \
110         libutil \
111         ${_libvgl} \
112         ${_libvmmapi} \
113         libwrap \
114         libxo \
115         liby \
116         ${_libypclnt} \
117         libz \
118         ncurses \
119         ${_atf} \
120         ${_clang} \
121         ${_cuse} \
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_libcapsicum= libnv
135 SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog
136 SUBDIR_DEPEND_libdevstat= libkvm
137 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
138 SUBDIR_DEPEND_libedit= ncurses
139 SUBDIR_DEPEND_libg++= msun
140 SUBDIR_DEPEND_libgeom= libexpat libsbuf
141 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
142 SUBDIR_DEPEND_libmagic= libz
143 SUBDIR_DEPEND_libmemstat= libkvm
144 SUBDIR_DEPEND_libopie= libmd
145 SUBDIR_DEPEND_libpam= libcrypt libopie libradius librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 
146 SUBDIR_DEPEND_libpjdlog= libutil
147 SUBDIR_DEPEND_libprocstat= libkvm libutil
148 SUBDIR_DEPEND_libradius= libmd
149 SUBDIR_DEPEND_libreadline= ncurses
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
156 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
157 _csu=csu/${MACHINE_ARCH}-elf
158 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
159 _csu=csu/${MACHINE_ARCH}
160 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
161 _csu=csu/${MACHINE_CPUARCH}
162 .else
163 _csu=csu
164 .endif
165
166 # NB: keep these sorted by MK_* knobs
167
168 .if ${MK_ATM} != "no"
169 _libngatm=      libngatm
170 .endif
171
172 .if ${MK_BLUETOOTH} != "no"
173 _libbluetooth=  libbluetooth
174 _libsdp=        libsdp
175 .endif
176
177 .if ${MK_BSNMP} != "no"
178 _libbsnmp=      libbsnmp
179 .endif
180
181 .if ${MK_CASPER} != "no"
182 _libcapsicum=   libcapsicum
183 _libcasper=     libcasper
184 .endif
185
186 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
187 _clang=         clang
188 .endif
189
190 .if ${MK_CUSE} != "no"
191 _cuse=          libcuse
192 .endif
193
194 .if ${MK_ELFTOOLCHAIN_TOOLS} != "no"
195 _libelftc=      libelftc
196 .endif
197
198 .if ${MK_GPIB} != "no"
199 _libgpib=       libgpib
200 .endif
201
202 .if ${MK_GSSAPI} != "no"
203 _libgssapi=     libgssapi
204 _librpcsec_gss= librpcsec_gss
205 .endif
206
207 .if ${MK_ICONV} != "no"
208 _libiconv_modules=      libiconv_modules
209 .endif
210
211 .if ${MK_KERBEROS_SUPPORT} != "no"
212 _libcom_err= libcom_err
213 .endif
214
215 .if ${MK_LDNS} != "no"
216 _libldns=       libldns
217 .endif
218
219 .if ${MK_LIBCPLUSPLUS} != "no"
220 _libcxxrt=      libcxxrt
221 _libcplusplus=  libc++
222 .endif
223
224 .if ${MK_LIBTHR} != "no"
225 _libthr=        libthr
226 .endif
227
228 .if ${MK_NAND} != "no"
229 _libnandfs=     libnandfs
230 .endif
231
232 .if ${MK_NETGRAPH} != "no"
233 _libnetgraph=   libnetgraph
234 .endif
235
236 .if ${MK_NIS} != "no"
237 _libypclnt=     libypclnt
238 .endif
239
240 .if ${MK_PF} != "no"
241 _libevent=      libevent
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 _libvmmapi=     libvmmapi
253 .endif
254
255 .if ${MACHINE_CPUARCH} == "mips"
256 _libproc=       libproc
257 _librtld_db=    librtld_db
258 .endif
259
260 .if ${MACHINE_CPUARCH} == "powerpc"
261 _libproc=       libproc
262 _librtld_db=    librtld_db
263 _libsmb=        libsmb
264 .endif
265
266 .if ${MACHINE_CPUARCH} == "sparc64"
267 _libsmb=        libsmb
268 .endif
269
270 .if ${MK_OPENSSL} != "no"
271 _libmp=         libmp
272 .endif
273
274 .if ${MK_PMC} != "no"
275 _libpmc=        libpmc
276 .endif
277
278 .if ${MK_SENDMAIL} != "no"
279 _libmilter=     libmilter
280 _libsm=         libsm
281 _libsmdb=       libsmdb
282 _libsmutil=     libsmutil
283 .endif
284
285 .if ${MK_TELNET} != "no"
286 _libtelnet=     libtelnet
287 .endif
288
289 .if ${MK_TESTS_SUPPORT} != "no"
290 _atf=           atf
291 .endif
292 .if ${MK_TESTS} != "no"
293 _tests=         tests
294 .endif
295
296 .if ${MK_UNBOUND} != "no"
297 _libunbound=    libunbound
298 .endif
299
300 .if ${MK_USB} != "no"
301 _libusbhid=     libusbhid
302 _libusb=        libusb
303 .endif
304
305 .if !defined(LIBRARIES_ONLY)
306 afterinstall:
307         ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
308 .endif
309
310 .if !make(install)
311 SUBDIR_PARALLEL=
312 .endif
313
314 .include <bsd.subdir.mk>