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