]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - lib/Makefile
MFC r274116:
[FreeBSD/stable/9.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 ibauditd.
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         libcom_err \
37         libcompiler_rt \
38         libcrypt \
39         libelf \
40         ${_libiconv_modules} \
41         libkvm \
42         msun \
43         libmd \
44         ncurses \
45         ${_libnetgraph} \
46         libradius \
47         librpcsvc \
48         libsbuf \
49         libtacplus \
50         libutil \
51         ${_libypclnt} \
52         ${_libcxxrt} \
53         ${_libcplusplus}
54
55 SUBDIR= ${SUBDIR_ORDERED} \
56         libalias \
57         libarchive \
58         ${_libatm} \
59         libbegemot \
60         libblocksruntime \
61         ${_libbluetooth} \
62         ${_libbsnmp} \
63         libbz2 \
64         libcalendar \
65         libcam \
66         libcompat \
67         libdevinfo \
68         libdevstat \
69         libdisk \
70         libdwarf \
71         libedit \
72         ${_libefi} \
73         libexpat \
74         libfetch \
75         libfigpar \
76         libftpio \
77         libgeom \
78         ${_libgpib} \
79         ${_libgssapi} \
80         ${_librpcsec_gss} \
81         libipsec \
82         ${_libipx} \
83         libjail \
84         libkiconv \
85         liblzma \
86         libmagic \
87         libmemstat \
88         ${_libmilter} \
89         ${_libmp} \
90         ${_libncp} \
91         libnetbsd \
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         libstdbuf \
108         ${_libtelnet} \
109         ${_libthr} \
110         libthread_db \
111         libucl \
112         libufs \
113         libugidfw \
114         libulog \
115         ${_libusbhid} \
116         ${_libusb} \
117         ${_libvgl} \
118         libwrap \
119         liby \
120         libz \
121         ${_bind} \
122         ${_clang}
123
124 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
125 _csu=csu/${MACHINE_ARCH}-elf
126 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
127 _csu=csu/${MACHINE_ARCH}
128 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
129 _csu=csu/${MACHINE_CPUARCH}
130 .else
131 _csu=csu
132 .endif
133
134 # NB: keep these sorted by MK_* knobs
135
136 .if ${MK_ATM} != "no"
137 _libngatm=      libngatm
138 .endif
139
140 .if ${MK_BIND} != "no"
141 _bind=          bind
142 .endif
143
144 .if ${MK_BLUETOOTH} != "no"
145 _libbluetooth=  libbluetooth
146 _libsdp=        libsdp
147 .endif
148
149 .if ${MK_BSNMP} != "no"
150 _libbsnmp=      libbsnmp
151 .endif
152
153 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
154 _clang=         clang
155 .endif
156
157 .if ${MK_GPIB} != "no"
158 _libgpib=       libgpib
159 .endif
160
161 .if ${MK_GSSAPI} != "no"
162 _libgssapi=     libgssapi
163 _librpcsec_gss= librpcsec_gss
164 .endif
165
166 .if ${MK_ICONV} != "no"
167 _libiconv_modules=      libiconv_modules
168 .endif
169
170 .if ${MK_IPX} != "no"
171 _libipx=        libipx
172 .endif
173
174 .if ${MK_LIBCPLUSPLUS} != "no"
175 _libcxxrt=      libcxxrt
176 _libcplusplus=  libc++
177 .endif
178
179 .if ${MK_LIBTHR} != "no"
180 _libthr=        libthr
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} == "amd64"
207 .if ${MK_NCP} != "no"
208 _libncp=        libncp
209 .endif
210 .endif
211
212 .if ${MACHINE_CPUARCH} == "powerpc"
213 _libsmb=        libsmb
214 .endif
215
216 .if ${MACHINE_CPUARCH} == "sparc64"
217 _libsmb=        libsmb
218 .endif
219
220 .if ${MK_OPENSSL} != "no"
221 _libmp=         libmp
222 .endif
223
224 .if ${MK_PMC} != "no"
225 _libpmc=        libpmc
226 .endif
227
228 .if ${MK_SENDMAIL} != "no"
229 _libmilter=     libmilter
230 _libsm=         libsm
231 _libsmdb=       libsmdb
232 _libsmutil=     libsmutil
233 .endif
234
235 .if ${MK_TELNET} != "no"
236 _libtelnet=     libtelnet
237 .endif
238
239 .if ${MK_USB} != "no"
240 _libusbhid=     libusbhid
241 _libusb=        libusb
242 .endif
243
244 .if !make(install)
245 SUBDIR_PARALLEL=
246 .endif
247
248 .include <bsd.subdir.mk>