]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
Move my simple logging API to a separate library. It is now already used
[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 # libldns must be built before libunbound.
16 # msun must be built before libg++ and libstdc++.
17 # libmd must be built before libatm, libopie, libradius, and libtacplus.
18 # ncurses must be built before libdialog, libedit and libreadline.
19 # libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
20 # libopie must be built before libpam.
21 # libradius must be built before libpam.
22 # librpcsvc must be built before libpam.
23 # libsbuf must be built before libcam.
24 # libtacplus must be built before libpam.
25 # libutil must be built before libpam.
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         libc_nonshared \
36         libbsm \
37         libauditd \
38         libutil \
39         libpjdlog \
40         libcompiler_rt \
41         libcrypt \
42         libelf \
43         ${_libiconv_modules} \
44         libkvm \
45         ${_libldns} \
46         msun \
47         libmd \
48         ncurses \
49         ${_libnetgraph} \
50         libradius \
51         librpcsvc \
52         libsbuf \
53         libtacplus \
54         ${_libypclnt} \
55         ${_libcxxrt} \
56         ${_libcplusplus}
57
58 .if ${MK_KERBEROS_SUPPORT} != "no"
59 SUBDIR_ORDERED+=        libcom_err
60 .endif
61
62 SUBDIR= ${SUBDIR_ORDERED} \
63         libalias \
64         libarchive \
65         ${_libatm} \
66         libbegemot \
67         libblocksruntime \
68         ${_libbluetooth} \
69         ${_libbsnmp} \
70         libbz2 \
71         libcalendar \
72         libcam \
73         libcompat \
74         libdevinfo \
75         libdevstat \
76         libdwarf \
77         libedit \
78         ${_libefi} \
79         libexecinfo \
80         libexpat \
81         libfetch \
82         libgeom \
83         ${_libgpib} \
84         ${_libgssapi} \
85         ${_librpcsec_gss} \
86         libipsec \
87         ${_libipx} \
88         libjail \
89         libkiconv \
90         liblzma \
91         libmagic \
92         libmandoc \
93         libmemstat \
94         ${_libmilter} \
95         ${_libmp} \
96         ${_libnandfs} \
97         libnetbsd \
98         ${_libngatm} \
99         libnv \
100         libopie \
101         libpam \
102         libpcap \
103         ${_libpmc} \
104         ${_libproc} \
105         libprocstat \
106         librt \
107         ${_librtld_db} \
108         ${_libsdp} \
109         ${_libsm} \
110         ${_libsmb} \
111         ${_libsmdb} \
112         ${_libsmutil} \
113         libstand \
114         libstdbuf \
115         libstdthreads \
116         ${_libtelnet} \
117         ${_libthr} \
118         libthread_db \
119         libufs \
120         libugidfw \
121         libulog \
122         ${_libunbound} \
123         ${_libusbhid} \
124         ${_libusb} \
125         ${_libvgl} \
126         ${_libvmmapi} \
127         libwrap \
128         liby \
129         libyaml \
130         libz \
131         ${_atf} \
132         ${_clang} \
133         ${_tests}
134
135 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
136 _csu=csu/${MACHINE_ARCH}-elf
137 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
138 _csu=csu/${MACHINE_ARCH}
139 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
140 _csu=csu/${MACHINE_CPUARCH}
141 .else
142 _csu=csu
143 .endif
144
145 # NB: keep these sorted by MK_* knobs
146
147 .if ${MK_ATM} != "no"
148 _libngatm=      libngatm
149 .endif
150
151 .if ${MK_BLUETOOTH} != "no"
152 _libbluetooth=  libbluetooth
153 _libsdp=        libsdp
154 .endif
155
156 .if ${MK_BSNMP} != "no"
157 _libbsnmp=      libbsnmp
158 .endif
159
160 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
161 _clang=         clang
162 .endif
163
164 .if ${MK_GPIB} != "no"
165 _libgpib=       libgpib
166 .endif
167
168 .if ${MK_GSSAPI} != "no"
169 _libgssapi=     libgssapi
170 _librpcsec_gss= librpcsec_gss
171 .endif
172
173 .if ${MK_ICONV} != "no"
174 _libiconv_modules=      libiconv_modules
175 .endif
176
177 .if ${MK_IPX} != "no"
178 _libipx=        libipx
179 .endif
180
181 .if ${MK_LDNS} != "no"
182 _libldns=       libldns
183 .endif
184
185 .if ${MK_LIBCPLUSPLUS} != "no"
186 _libcxxrt=      libcxxrt
187 _libcplusplus=  libc++
188 .endif
189
190 .if ${MK_LIBTHR} != "no"
191 _libthr=        libthr
192 .endif
193
194 .if ${MK_NAND} != "no"
195 _libnandfs=     libnandfs
196 .endif
197
198 .if ${MK_NETGRAPH} != "no"
199 _libnetgraph=   libnetgraph
200 .endif
201
202 .if ${MK_NIS} != "no"
203 _libypclnt=     libypclnt
204 .endif
205
206 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
207 _libsmb=        libsmb
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 _libsmb=        libsmb
220 .endif
221
222 .if ${MACHINE_CPUARCH} == "mips"
223 _libproc=       libproc
224 _librtld_db=    librtld_db
225 .endif
226
227 .if ${MACHINE_CPUARCH} == "powerpc"
228 _libproc=       libproc
229 _librtld_db=    librtld_db
230 _libsmb=        libsmb
231 .endif
232
233 .if ${MACHINE_CPUARCH} == "sparc64"
234 _libsmb=        libsmb
235 .endif
236
237 .if ${MK_OPENSSL} != "no"
238 _libmp=         libmp
239 .endif
240
241 .if ${MK_PMC} != "no"
242 _libpmc=        libpmc
243 .endif
244
245 .if ${MK_SENDMAIL} != "no"
246 _libmilter=     libmilter
247 _libsm=         libsm
248 _libsmdb=       libsmdb
249 _libsmutil=     libsmutil
250 .endif
251
252 .if ${MK_TELNET} != "no"
253 _libtelnet=     libtelnet
254 .endif
255
256 .if ${MK_TESTS} != "no"
257 _atf=           atf
258 _tests=         tests
259 .endif
260
261 .if ${MK_UNBOUND} != "no"
262 _libunbound=    libunbound
263 .endif
264
265 .if ${MK_USB} != "no"
266 _libusbhid=     libusbhid
267 _libusb=        libusb
268 .endif
269
270 .if !defined(LIBRARIES_ONLY)
271 afterinstall:
272         ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
273 .endif
274
275 .include <bsd.subdir.mk>