]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
Fix several memory and lock leaks on the out of memory condition.
[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         ${_libncp} \
92         ${_libngatm} \
93         libopie \
94         libpam \
95         libpcap \
96         ${_libpmc} \
97         ${_libproc} \
98         libprocstat \
99         librt \
100         ${_librtld_db} \
101         ${_libsdp} \
102         ${_libsm} \
103         ${_libsmb} \
104         ${_libsmdb} \
105         ${_libsmutil} \
106         libstand \
107         libstdthreads \
108         ${_libtelnet} \
109         ${_libthr} \
110         libthread_db \
111         libufs \
112         libugidfw \
113         libulog \
114         ${_libusbhid} \
115         ${_libusb} \
116         ${_libvgl} \
117         libwrap \
118         liby \
119         libz \
120         ${_bind} \
121         ${_clang}
122
123 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
124 _csu=csu/${MACHINE_ARCH}-elf
125 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
126 _csu=csu/${MACHINE_ARCH}
127 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
128 _csu=csu/${MACHINE_CPUARCH}
129 .else
130 _csu=csu
131 .endif
132
133 # NB: keep these sorted by MK_* knobs
134
135 .if ${MK_ATM} != "no"
136 _libngatm=      libngatm
137 .endif
138
139 .if ${MK_BIND} != "no"
140 _bind=          bind
141 .endif
142
143 .if ${MK_BLUETOOTH} != "no"
144 _libbluetooth=  libbluetooth
145 _libsdp=        libsdp
146 .endif
147
148 .if ${MK_BSNMP} != "no"
149 _libbsnmp=      libbsnmp
150 .endif
151
152 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
153 _clang=         clang
154 .endif
155
156 .if ${MK_GPIB} != "no"
157 _libgpib=       libgpib
158 .endif
159
160 .if ${MK_GSSAPI} != "no"
161 _libgssapi=     libgssapi
162 _librpcsec_gss= librpcsec_gss
163 .endif
164
165 .if ${MK_ICONV} != "no"
166 _libiconv_modules=      libiconv_modules
167 .endif
168
169 .if ${MK_IPX} != "no"
170 _libipx=        libipx
171 .endif
172
173 .if ${MK_LIBTHR} != "no"
174 _libthr=        libthr
175 .endif
176
177 .if ${MK_NETGRAPH} != "no"
178 _libnetgraph=   libnetgraph
179 .endif
180
181 .if ${MK_NIS} != "no"
182 _libypclnt=     libypclnt
183 .endif
184
185 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
186 .if ${MK_NCP} != "no"
187 _libncp=        libncp
188 .endif
189 _libsmb=        libsmb
190 _libvgl=        libvgl
191 _libproc=       libproc
192 _librtld_db=    librtld_db
193 .endif
194
195 .if ${MACHINE_CPUARCH} == "ia64"
196 _libefi=        libefi
197 _libsmb=        libsmb
198 .endif
199
200 .if ${MACHINE_CPUARCH} == "mips"
201 _libproc=       libproc
202 _librtld_db=    librtld_db
203 .endif
204
205 .if ${MACHINE_CPUARCH} == "powerpc"
206 _libsmb=        libsmb
207 .endif
208
209 .if ${MACHINE_CPUARCH} == "sparc64"
210 _libsmb=        libsmb
211 .endif
212
213 .if ${MK_OPENSSL} != "no"
214 _libmp=         libmp
215 .endif
216
217 .if ${MK_LIBCPLUSPLUS} != "no"
218 _libcxxrt=      libcxxrt
219 _libcplusplus=  libc++
220 .endif
221
222 .if ${MK_PMC} != "no"
223 _libpmc=        libpmc
224 .endif
225
226 .if ${MK_SENDMAIL} != "no"
227 _libmilter=     libmilter
228 _libsm=         libsm
229 _libsmdb=       libsmdb
230 _libsmutil=     libsmutil
231 .endif
232
233 .if ${MK_TELNET} != "no"
234 _libtelnet=     libtelnet
235 .endif
236
237 .if ${MK_USB} != "no"
238 _libusbhid=     libusbhid
239 _libusb=        libusb
240 .endif
241
242 .include <bsd.subdir.mk>