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