]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
Use a suitable code generation when building libstand for MIPS.
[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         libdwarf \
73         libedit \
74         ${_libefi} \
75         libexpat \
76         libfetch \
77         libgeom \
78         ${_libgpib} \
79         ${_libgssapi} \
80         ${_librpcsec_gss} \
81         libipsec \
82         ${_libipx} \
83         libjail \
84         libkiconv \
85         ${_libldns} \
86         liblzma \
87         libmagic \
88         libmandoc \
89         libmemstat \
90         ${_libmilter} \
91         ${_libmp} \
92         ${_libnandfs} \
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         ${_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         ${_libvmmapi} \
120         libwrap \
121         liby \
122         libyaml \
123         libz \
124         ${_atf} \
125         ${_bind} \
126         ${_clang}
127
128 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
129 _csu=csu/${MACHINE_ARCH}-elf
130 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
131 _csu=csu/${MACHINE_ARCH}
132 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
133 _csu=csu/${MACHINE_CPUARCH}
134 .else
135 _csu=csu
136 .endif
137
138 # NB: keep these sorted by MK_* knobs
139
140 .if ${MK_ATF} != "no"
141 _atf=           atf
142 .endif
143
144 .if ${MK_ATM} != "no"
145 _libngatm=      libngatm
146 .endif
147
148 .if ${MK_BIND} != "no"
149 _bind=          bind
150 .endif
151
152 .if ${MK_BLUETOOTH} != "no"
153 _libbluetooth=  libbluetooth
154 _libsdp=        libsdp
155 .endif
156
157 .if ${MK_BSNMP} != "no"
158 _libbsnmp=      libbsnmp
159 .endif
160
161 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
162 _clang=         clang
163 .endif
164
165 .if ${MK_GPIB} != "no"
166 _libgpib=       libgpib
167 .endif
168
169 .if ${MK_GSSAPI} != "no"
170 _libgssapi=     libgssapi
171 _librpcsec_gss= librpcsec_gss
172 .endif
173
174 .if ${MK_ICONV} != "no"
175 _libiconv_modules=      libiconv_modules
176 .endif
177
178 .if ${MK_IPX} != "no"
179 _libipx=        libipx
180 .endif
181
182 .if ${MK_LDNS} != "no"
183 _libldns=       libldns
184 .endif
185
186 .if ${MK_LIBCPLUSPLUS} != "no"
187 _libcxxrt=      libcxxrt
188 _libcplusplus=  libc++
189 .endif
190
191 .if ${MK_LIBTHR} != "no"
192 _libthr=        libthr
193 .endif
194
195 .if ${MK_NAND} != "no"
196 _libnandfs=     libnandfs
197 .endif
198
199 .if ${MK_NETGRAPH} != "no"
200 _libnetgraph=   libnetgraph
201 .endif
202
203 .if ${MK_NIS} != "no"
204 _libypclnt=     libypclnt
205 .endif
206
207 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
208 _libvgl=        libvgl
209 _libproc=       libproc
210 _librtld_db=    librtld_db
211 .endif
212
213 .if ${MACHINE_CPUARCH} == "amd64"
214 _libvmmapi=     libvmmapi
215 .endif
216
217 .if ${MACHINE_CPUARCH} == "ia64"
218 _libefi=        libefi
219 .endif
220
221 .if ${MACHINE_CPUARCH} == "mips"
222 _libproc=       libproc
223 _librtld_db=    librtld_db
224 .endif
225
226 .if ${MACHINE_CPUARCH} == "powerpc"
227 _libproc=       libproc
228 _librtld_db=    librtld_db
229 .endif
230
231 .if ${MK_OPENSSL} != "no"
232 _libmp=         libmp
233 .endif
234
235 .if ${MK_PMC} != "no"
236 _libpmc=        libpmc
237 .endif
238
239 .if ${MK_SENDMAIL} != "no"
240 _libmilter=     libmilter
241 _libsm=         libsm
242 _libsmdb=       libsmdb
243 _libsmutil=     libsmutil
244 .endif
245
246 .if ${MK_TELNET} != "no"
247 _libtelnet=     libtelnet
248 .endif
249
250 .if ${MK_USB} != "no"
251 _libusbhid=     libusbhid
252 _libusb=        libusb
253 .endif
254
255 afterinstall:
256         ln -fs ../include ${DESTDIR}/usr/lib/include
257
258 .include <bsd.subdir.mk>