]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - lib/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.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         libftpio \
76         libgeom \
77         ${_libgpib} \
78         ${_libgssapi} \
79         ${_librpcsec_gss} \
80         libipsec \
81         ${_libipx} \
82         libjail \
83         libkiconv \
84         liblzma \
85         libmagic \
86         libmemstat \
87         ${_libmilter} \
88         ${_libmp} \
89         ${_libncp} \
90         libnetbsd \
91         ${_libngatm} \
92         libopie \
93         libpam \
94         libpcap \
95         ${_libpmc} \
96         ${_libproc} \
97         libprocstat \
98         librt \
99         ${_librtld_db} \
100         ${_libsdp} \
101         ${_libsm} \
102         ${_libsmb} \
103         ${_libsmdb} \
104         ${_libsmutil} \
105         libstand \
106         libstdbuf \
107         ${_libtelnet} \
108         ${_libthr} \
109         libthread_db \
110         libufs \
111         libugidfw \
112         libulog \
113         ${_libusbhid} \
114         ${_libusb} \
115         ${_libvgl} \
116         libwrap \
117         liby \
118         libz \
119         ${_bind} \
120         ${_clang}
121
122 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
123 _csu=csu/${MACHINE_ARCH}-elf
124 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
125 _csu=csu/${MACHINE_ARCH}
126 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
127 _csu=csu/${MACHINE_CPUARCH}
128 .else
129 _csu=csu
130 .endif
131
132 # NB: keep these sorted by MK_* knobs
133
134 .if ${MK_ATM} != "no"
135 _libngatm=      libngatm
136 .endif
137
138 .if ${MK_BIND} != "no"
139 _bind=          bind
140 .endif
141
142 .if ${MK_BLUETOOTH} != "no"
143 _libbluetooth=  libbluetooth
144 _libsdp=        libsdp
145 .endif
146
147 .if ${MK_BSNMP} != "no"
148 _libbsnmp=      libbsnmp
149 .endif
150
151 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
152 _clang=         clang
153 .endif
154
155 .if ${MK_GPIB} != "no"
156 _libgpib=       libgpib
157 .endif
158
159 .if ${MK_GSSAPI} != "no"
160 _libgssapi=     libgssapi
161 _librpcsec_gss= librpcsec_gss
162 .endif
163
164 .if ${MK_ICONV} != "no"
165 _libiconv_modules=      libiconv_modules
166 .endif
167
168 .if ${MK_IPX} != "no"
169 _libipx=        libipx
170 .endif
171
172 .if ${MK_LIBCPLUSPLUS} != "no"
173 _libcxxrt=      libcxxrt
174 _libcplusplus=  libc++
175 .endif
176
177 .if ${MK_LIBTHR} != "no"
178 _libthr=        libthr
179 .endif
180
181 .if ${MK_NETGRAPH} != "no"
182 _libnetgraph=   libnetgraph
183 .endif
184
185 .if ${MK_NIS} != "no"
186 _libypclnt=     libypclnt
187 .endif
188
189 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
190 .if ${MK_NCP} != "no"
191 _libncp=        libncp
192 .endif
193 _libsmb=        libsmb
194 _libvgl=        libvgl
195 _libproc=       libproc
196 _librtld_db=    librtld_db
197 .endif
198
199 .if ${MACHINE_CPUARCH} == "ia64"
200 _libefi=        libefi
201 _libsmb=        libsmb
202 .endif
203
204 .if ${MACHINE_CPUARCH} == "amd64"
205 .if ${MK_NCP} != "no"
206 _libncp=        libncp
207 .endif
208 .endif
209
210 .if ${MACHINE_CPUARCH} == "powerpc"
211 _libsmb=        libsmb
212 .endif
213
214 .if ${MACHINE_CPUARCH} == "sparc64"
215 _libsmb=        libsmb
216 .endif
217
218 .if ${MK_OPENSSL} != "no"
219 _libmp=         libmp
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>