]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
Update to the r237578 20-June-2012 release import.
[FreeBSD/FreeBSD.git] / lib / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/4/93
2 # $FreeBSD$
3
4 .include <bsd.own.mk>
5
6 # To satisfy shared library or ELF linkage when only the libraries being
7 # built are visible:
8 #
9 # csu must be built before all shared libaries for ELF.
10 # libc must be built before all other shared libraries.
11 # libbsm must be built before libauditd.
12 # libcom_err must be built before libpam.
13 # libcrypt must be built before libpam.
14 # libkvm must be built before libdevstat.
15 # msun must be built before libg++ and libstdc++.
16 # libmd must be built before libatm, libopie, libradius, and libtacplus.
17 # ncurses must be built before libdialog, libedit and libreadline.
18 # libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
19 # libopie must be built before libpam.
20 # libradius must be built before libpam.
21 # librpcsvc must be built before libpam.
22 # libsbuf must be built before libcam.
23 # libtacplus must be built before libpam.
24 # libutil must be built before libpam.
25 # libypclnt must be built before libpam.
26 # libgssapi must be built before librpcsec_gss
27 #
28 # Otherwise, the SUBDIR list should be in alphabetical order.
29 #
30 # Except it appears bind needs to be compiled last
31
32 SUBDIR_ORDERED= ${_csu} \
33         libc \
34         libbsm \
35         libauditd \
36         libcompiler_rt \
37         libcrypt \
38         libelf \
39         ${_libiconv_modules} \
40         libkvm \
41         msun \
42         libmd \
43         ncurses \
44         ${_libnetgraph} \
45         libradius \
46         librpcsvc \
47         libsbuf \
48         libtacplus \
49         libutil \
50         ${_libypclnt} \
51         ${_libcxxrt} \
52         ${_libcplusplus}
53
54 .if ${MK_KERBEROS_SUPPORT} != "no"
55 SUBDIR_ORDERED+=        libcom_err
56 .endif
57
58 SUBDIR= ${SUBDIR_ORDERED} \
59         libalias \
60         libarchive \
61         ${_libatm} \
62         libbegemot \
63         libblocksruntime \
64         ${_libbluetooth} \
65         ${_libbsnmp} \
66         libbz2 \
67         libcalendar \
68         libcam \
69         libcompat \
70         libdevinfo \
71         libdevstat \
72         libdisk \
73         libdwarf \
74         libedit \
75         ${_libefi} \
76         libexpat \
77         libfetch \
78         libgeom \
79         ${_libgpib} \
80         ${_libgssapi} \
81         ${_librpcsec_gss} \
82         libipsec \
83         ${_libipx} \
84         libjail \
85         libkiconv \
86         liblzma \
87         libmagic \
88         libmemstat \
89         ${_libmilter} \
90         ${_libmp} \
91         ${_libnandfs} \
92         ${_libncp} \
93         ${_libngatm} \
94         libopie \
95         libpam \
96         libpcap \
97         ${_libpmc} \
98         ${_libproc} \
99         libprocstat \
100         librt \
101         ${_librtld_db} \
102         ${_libsdp} \
103         ${_libsm} \
104         ${_libsmb} \
105         ${_libsmdb} \
106         ${_libsmutil} \
107         libstand \
108         libstdbuf \
109         libstdthreads \
110         ${_libtelnet} \
111         ${_libthr} \
112         libthread_db \
113         libufs \
114         libugidfw \
115         libulog \
116         ${_libusbhid} \
117         ${_libusb} \
118         ${_libvgl} \
119         libwrap \
120         liby \
121         libz \
122         ${_bind} \
123         ${_clang}
124
125 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
126 _csu=csu/${MACHINE_ARCH}-elf
127 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
128 _csu=csu/${MACHINE_ARCH}
129 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
130 _csu=csu/${MACHINE_CPUARCH}
131 .else
132 _csu=csu
133 .endif
134
135 # NB: keep these sorted by MK_* knobs
136
137 .if ${MK_ATM} != "no"
138 _libngatm=      libngatm
139 .endif
140
141 .if ${MK_BIND} != "no"
142 _bind=          bind
143 .endif
144
145 .if ${MK_BLUETOOTH} != "no"
146 _libbluetooth=  libbluetooth
147 _libsdp=        libsdp
148 .endif
149
150 .if ${MK_BSNMP} != "no"
151 _libbsnmp=      libbsnmp
152 .endif
153
154 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
155 _clang=         clang
156 .endif
157
158 .if ${MK_GPIB} != "no"
159 _libgpib=       libgpib
160 .endif
161
162 .if ${MK_GSSAPI} != "no"
163 _libgssapi=     libgssapi
164 _librpcsec_gss= librpcsec_gss
165 .endif
166
167 .if ${MK_ICONV} != "no"
168 _libiconv_modules=      libiconv_modules
169 .endif
170
171 .if ${MK_IPX} != "no"
172 _libipx=        libipx
173 .endif
174
175 .if ${MK_LIBTHR} != "no"
176 _libthr=        libthr
177 .endif
178
179 .if ${MK_NAND} != "no"
180 _libnandfs=     libnandfs
181 .endif
182
183 .if ${MK_NETGRAPH} != "no"
184 _libnetgraph=   libnetgraph
185 .endif
186
187 .if ${MK_NIS} != "no"
188 _libypclnt=     libypclnt
189 .endif
190
191 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
192 .if ${MK_NCP} != "no"
193 _libncp=        libncp
194 .endif
195 _libsmb=        libsmb
196 _libvgl=        libvgl
197 _libproc=       libproc
198 _librtld_db=    librtld_db
199 .endif
200
201 .if ${MACHINE_CPUARCH} == "ia64"
202 _libefi=        libefi
203 _libsmb=        libsmb
204 .endif
205
206 .if ${MACHINE_CPUARCH} == "mips"
207 _libproc=       libproc
208 _librtld_db=    librtld_db
209 .endif
210
211 .if ${MACHINE_CPUARCH} == "powerpc"
212 _libsmb=        libsmb
213 .endif
214
215 .if ${MACHINE_CPUARCH} == "sparc64"
216 _libsmb=        libsmb
217 .endif
218
219 .if ${MK_OPENSSL} != "no"
220 _libmp=         libmp
221 .endif
222
223 .if ${MK_LIBCPLUSPLUS} != "no"
224 _libcxxrt=      libcxxrt
225 _libcplusplus=  libc++
226 .endif
227
228 .if ${MK_PMC} != "no"
229 _libpmc=        libpmc
230 .endif
231
232 .if ${MK_SENDMAIL} != "no"
233 _libmilter=     libmilter
234 _libsm=         libsm
235 _libsmdb=       libsmdb
236 _libsmutil=     libsmutil
237 .endif
238
239 .if ${MK_TELNET} != "no"
240 _libtelnet=     libtelnet
241 .endif
242
243 .if ${MK_USB} != "no"
244 _libusbhid=     libusbhid
245 _libusb=        libusb
246 .endif
247
248 .include <bsd.subdir.mk>