]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
Fix code-typo; introduced by r267511
[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         libdwarf \
46         libedit \
47         ${_libevent} \
48         libexecinfo \
49         libexpat \
50         libfetch \
51         libfigpar \
52         libgeom \
53         ${_libgpib} \
54         ${_libgssapi} \
55         ${_librpcsec_gss} \
56         ${_libiconv_modules} \
57         libipsec \
58         libjail \
59         libkiconv \
60         libkvm \
61         ${_libldns} \
62         liblzma \
63         libmagic \
64         libmandoc \
65         libmemstat \
66         libmd \
67         ${_libmilter} \
68         ${_libmp} \
69         ${_libnandfs} \
70         libnetbsd \
71         ${_libnetgraph} \
72         ${_libngatm} \
73         libnv \
74         libohash \
75         libopie \
76         libpam \
77         libpcap \
78         libpjdlog \
79         ${_libpmc} \
80         ${_libproc} \
81         libprocstat \
82         libradius \
83         librpcsvc \
84         librt \
85         ${_librtld_db} \
86         libsbuf \
87         ${_libsdp} \
88         ${_libsm} \
89         ${_libsmb} \
90         ${_libsmdb} \
91         ${_libsmutil} \
92         libstand \
93         libstdbuf \
94         libstdthreads \
95         libtacplus \
96         ${_libtelnet} \
97         ${_libthr} \
98         libthread_db \
99         libucl \
100         libufs \
101         libugidfw \
102         libulog \
103         ${_libunbound} \
104         ${_libusbhid} \
105         ${_libusb} \
106         libutil \
107         ${_libvgl} \
108         ${_libvmmapi} \
109         libwrap \
110         libxo \
111         liby \
112         ${_libypclnt} \
113         libz \
114         ncurses \
115         ${_atf} \
116         ${_clang} \
117         ${_cuse} \
118         ${_tests}
119
120 # Inter-library dependencies.  When the makefile for a library contains LDADD
121 # libraries, those libraries should be listed as build order dependencies here.
122
123 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
124 SUBDIR_DEPEND_libatm= libmd
125 SUBDIR_DEPEND_libauditdm= libbsm
126 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
127 SUBDIR_DEPEND_libc++= libcxxrt
128 SUBDIR_DEPEND_libc= libcompiler_rt
129 SUBDIR_DEPEND_libcam= libsbuf
130 SUBDIR_DEPEND_libcapsicum= libnv
131 SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog
132 SUBDIR_DEPEND_libdevstat= libkvm
133 SUBDIR_DEPEND_libdialog= ncurses
134 SUBDIR_DEPEND_libedit= ncurses
135 SUBDIR_DEPEND_libg++= msun
136 SUBDIR_DEPEND_libgeom= libexpat libsbuf
137 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
138 SUBDIR_DEPEND_libmagic= libz
139 SUBDIR_DEPEND_libmemstat= libkvm
140 SUBDIR_DEPEND_libopie= libmd
141 SUBDIR_DEPEND_libpam= libcrypt libopie libradius librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 
142 SUBDIR_DEPEND_libpjdlog= libutil
143 SUBDIR_DEPEND_libprocstat= libkvm libutil
144 SUBDIR_DEPEND_libradius= libmd
145 SUBDIR_DEPEND_libreadline= ncurses
146 SUBDIR_DEPEND_libsmb= libkiconv
147 SUBDIR_DEPEND_libstdc++= msun
148 SUBDIR_DEPEND_libtacplus= libmd
149 SUBDIR_DEPEND_libulog= libmd
150 SUBDIR_DEPEND_libunbound= ${_libldns}
151
152 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
153 _csu=csu/${MACHINE_ARCH}-elf
154 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
155 _csu=csu/${MACHINE_ARCH}
156 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
157 _csu=csu/${MACHINE_CPUARCH}
158 .else
159 _csu=csu
160 .endif
161
162 # NB: keep these sorted by MK_* knobs
163
164 .if ${MK_ATM} != "no"
165 _libngatm=      libngatm
166 .endif
167
168 .if ${MK_BLUETOOTH} != "no"
169 _libbluetooth=  libbluetooth
170 _libsdp=        libsdp
171 .endif
172
173 .if ${MK_BSNMP} != "no"
174 _libbsnmp=      libbsnmp
175 .endif
176
177 .if ${MK_CASPER} != "no"
178 _libcapsicum=   libcapsicum
179 _libcasper=     libcasper
180 .endif
181
182 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
183 _clang=         clang
184 .endif
185
186 .if ${MK_CUSE} != "no"
187 _cuse=          libcuse
188 .endif
189
190 .if ${MK_GPIB} != "no"
191 _libgpib=       libgpib
192 .endif
193
194 .if ${MK_GSSAPI} != "no"
195 _libgssapi=     libgssapi
196 _librpcsec_gss= librpcsec_gss
197 .endif
198
199 .if ${MK_ICONV} != "no"
200 _libiconv_modules=      libiconv_modules
201 .endif
202
203 .if ${MK_KERBEROS_SUPPORT} != "no"
204 _libcom_err= libcom_err
205 .endif
206
207 .if ${MK_LDNS} != "no"
208 _libldns=       libldns
209 .endif
210
211 .if ${MK_LIBCPLUSPLUS} != "no"
212 _libcxxrt=      libcxxrt
213 _libcplusplus=  libc++
214 .endif
215
216 .if ${MK_LIBTHR} != "no"
217 _libthr=        libthr
218 .endif
219
220 .if ${MK_NAND} != "no"
221 _libnandfs=     libnandfs
222 .endif
223
224 .if ${MK_NETGRAPH} != "no"
225 _libnetgraph=   libnetgraph
226 .endif
227
228 .if ${MK_NIS} != "no"
229 _libypclnt=     libypclnt
230 .endif
231
232 .if ${MK_PF} != "no"
233 _libevent=      libevent
234 .endif
235
236 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
237 _libsmb=        libsmb
238 _libvgl=        libvgl
239 _libproc=       libproc
240 _librtld_db=    librtld_db
241 .endif
242
243 .if ${MACHINE_CPUARCH} == "amd64"
244 _libvmmapi=     libvmmapi
245 .endif
246
247 .if ${MACHINE_CPUARCH} == "mips"
248 _libproc=       libproc
249 _librtld_db=    librtld_db
250 .endif
251
252 .if ${MACHINE_CPUARCH} == "powerpc"
253 _libproc=       libproc
254 _librtld_db=    librtld_db
255 _libsmb=        libsmb
256 .endif
257
258 .if ${MACHINE_CPUARCH} == "sparc64"
259 _libsmb=        libsmb
260 .endif
261
262 .if ${MK_OPENSSL} != "no"
263 _libmp=         libmp
264 .endif
265
266 .if ${MK_PMC} != "no"
267 _libpmc=        libpmc
268 .endif
269
270 .if ${MK_SENDMAIL} != "no"
271 _libmilter=     libmilter
272 _libsm=         libsm
273 _libsmdb=       libsmdb
274 _libsmutil=     libsmutil
275 .endif
276
277 .if ${MK_TELNET} != "no"
278 _libtelnet=     libtelnet
279 .endif
280
281 .if ${MK_TESTS_SUPPORT} != "no"
282 _atf=           atf
283 .endif
284 .if ${MK_TESTS} != "no"
285 _tests=         tests
286 .endif
287
288 .if ${MK_UNBOUND} != "no"
289 _libunbound=    libunbound
290 .endif
291
292 .if ${MK_USB} != "no"
293 _libusbhid=     libusbhid
294 _libusb=        libusb
295 .endif
296
297 .if !defined(LIBRARIES_ONLY)
298 afterinstall:
299         ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
300 .endif
301
302 .if !make(install)
303 SUBDIR_PARALLEL=
304 .endif
305
306 .include <bsd.subdir.mk>