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