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