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