Deleted Added
full compact
Makefile (255180) Makefile (255597)
1# @(#)Makefile 8.1 (Berkeley) 6/4/93
1# @(#)Makefile 8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 255180 2013-09-03 15:22:04Z emaste $
2# $FreeBSD: head/lib/Makefile 255597 2013-09-15 14:51:23Z des $
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.
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.
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
32SUBDIR_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"
55SUBDIR_ORDERED+= libcom_err
56.endif
57
58SUBDIR= ${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 libexecinfo \
76 libexpat \
77 libfetch \
78 libgeom \
79 ${_libgpib} \
80 ${_libgssapi} \
81 ${_librpcsec_gss} \
82 ${_libiconv_compat} \
83 libipsec \
84 ${_libipx} \
85 libjail \
86 libkiconv \
87 ${_libldns} \
88 liblzma \
89 libmagic \
90 libmandoc \
91 libmemstat \
92 ${_libmilter} \
93 ${_libmp} \
94 ${_libnandfs} \
95 libnetbsd \
96 ${_libngatm} \
97 libopie \
98 libpam \
99 libpcap \
100 ${_libpmc} \
101 ${_libproc} \
102 libprocstat \
103 librt \
104 ${_librtld_db} \
105 ${_libsdp} \
106 ${_libsm} \
107 ${_libsmb} \
108 ${_libsmdb} \
109 ${_libsmutil} \
110 libstand \
111 libstdbuf \
112 libstdthreads \
113 ${_libtelnet} \
114 ${_libthr} \
115 libthread_db \
116 libufs \
117 libugidfw \
118 libulog \
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
33SUBDIR_ORDERED= ${_csu} \
34 libc \
35 libbsm \
36 libauditd \
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.if ${MK_KERBEROS_SUPPORT} != "no"
56SUBDIR_ORDERED+= libcom_err
57.endif
58
59SUBDIR= ${SUBDIR_ORDERED} \
60 libalias \
61 libarchive \
62 ${_libatm} \
63 libbegemot \
64 libblocksruntime \
65 ${_libbluetooth} \
66 ${_libbsnmp} \
67 libbz2 \
68 libcalendar \
69 libcam \
70 libcompat \
71 libdevinfo \
72 libdevstat \
73 libdwarf \
74 libedit \
75 ${_libefi} \
76 libexecinfo \
77 libexpat \
78 libfetch \
79 libgeom \
80 ${_libgpib} \
81 ${_libgssapi} \
82 ${_librpcsec_gss} \
83 ${_libiconv_compat} \
84 libipsec \
85 ${_libipx} \
86 libjail \
87 libkiconv \
88 ${_libldns} \
89 liblzma \
90 libmagic \
91 libmandoc \
92 libmemstat \
93 ${_libmilter} \
94 ${_libmp} \
95 ${_libnandfs} \
96 libnetbsd \
97 ${_libngatm} \
98 libopie \
99 libpam \
100 libpcap \
101 ${_libpmc} \
102 ${_libproc} \
103 libprocstat \
104 librt \
105 ${_librtld_db} \
106 ${_libsdp} \
107 ${_libsm} \
108 ${_libsmb} \
109 ${_libsmdb} \
110 ${_libsmutil} \
111 libstand \
112 libstdbuf \
113 libstdthreads \
114 ${_libtelnet} \
115 ${_libthr} \
116 libthread_db \
117 libufs \
118 libugidfw \
119 libulog \
120 ${_libunbound} \
119 ${_libusbhid} \
120 ${_libusb} \
121 ${_libvgl} \
122 ${_libvmmapi} \
123 libwrap \
124 liby \
125 libyaml \
126 libz \
127 ${_atf} \
128 ${_bind} \
129 ${_clang}
130
131.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
132_csu=csu/${MACHINE_ARCH}-elf
133.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
134_csu=csu/${MACHINE_ARCH}
135.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
136_csu=csu/${MACHINE_CPUARCH}
137.else
138_csu=csu
139.endif
140
141# NB: keep these sorted by MK_* knobs
142
143.if ${MK_ATF} != "no"
144_atf= atf
145.endif
146
147.if ${MK_ATM} != "no"
148_libngatm= libngatm
149.endif
150
151.if ${MK_BIND} != "no"
152_bind= bind
153.endif
154
155.if ${MK_BLUETOOTH} != "no"
156_libbluetooth= libbluetooth
157_libsdp= libsdp
158.endif
159
160.if ${MK_BSNMP} != "no"
161_libbsnmp= libbsnmp
162.endif
163
164.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
165_clang= clang
166.endif
167
168.if ${MK_GPIB} != "no"
169_libgpib= libgpib
170.endif
171
172.if ${MK_GSSAPI} != "no"
173_libgssapi= libgssapi
174_librpcsec_gss= librpcsec_gss
175.endif
176
177.if ${MK_ICONV} != "no"
178_libiconv_modules= libiconv_modules
179.endif
180
181.if ${MK_IPX} != "no"
182_libipx= libipx
183.endif
184
185.if ${MK_LDNS} != "no"
186_libldns= libldns
187.endif
188
189.if ${MK_LIBCPLUSPLUS} != "no"
190_libcxxrt= libcxxrt
191_libcplusplus= libc++
192.endif
193
194.if ${MK_LIBICONV_COMPAT} != "no"
195_libiconv_compat= libiconv_compat
196.endif
197
198.if ${MK_LIBTHR} != "no"
199_libthr= libthr
200.endif
201
202.if ${MK_NAND} != "no"
203_libnandfs= libnandfs
204.endif
205
206.if ${MK_NETGRAPH} != "no"
207_libnetgraph= libnetgraph
208.endif
209
210.if ${MK_NIS} != "no"
211_libypclnt= libypclnt
212.endif
213
214.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
215_libsmb= libsmb
216_libvgl= libvgl
217_libproc= libproc
218_librtld_db= librtld_db
219.endif
220
221.if ${MACHINE_CPUARCH} == "amd64"
222_libvmmapi= libvmmapi
223.endif
224
225.if ${MACHINE_CPUARCH} == "ia64"
226_libefi= libefi
227_libsmb= libsmb
228.endif
229
230.if ${MACHINE_CPUARCH} == "mips"
231_libproc= libproc
232_librtld_db= librtld_db
233.endif
234
235.if ${MACHINE_CPUARCH} == "powerpc"
236_libproc= libproc
237_librtld_db= librtld_db
238_libsmb= libsmb
239.endif
240
241.if ${MACHINE_CPUARCH} == "sparc64"
242_libsmb= libsmb
243.endif
244
245.if ${MK_OPENSSL} != "no"
246_libmp= libmp
247.endif
248
249.if ${MK_PMC} != "no"
250_libpmc= libpmc
251.endif
252
253.if ${MK_SENDMAIL} != "no"
254_libmilter= libmilter
255_libsm= libsm
256_libsmdb= libsmdb
257_libsmutil= libsmutil
258.endif
259
260.if ${MK_TELNET} != "no"
261_libtelnet= libtelnet
262.endif
263
121 ${_libusbhid} \
122 ${_libusb} \
123 ${_libvgl} \
124 ${_libvmmapi} \
125 libwrap \
126 liby \
127 libyaml \
128 libz \
129 ${_atf} \
130 ${_bind} \
131 ${_clang}
132
133.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
134_csu=csu/${MACHINE_ARCH}-elf
135.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
136_csu=csu/${MACHINE_ARCH}
137.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
138_csu=csu/${MACHINE_CPUARCH}
139.else
140_csu=csu
141.endif
142
143# NB: keep these sorted by MK_* knobs
144
145.if ${MK_ATF} != "no"
146_atf= atf
147.endif
148
149.if ${MK_ATM} != "no"
150_libngatm= libngatm
151.endif
152
153.if ${MK_BIND} != "no"
154_bind= bind
155.endif
156
157.if ${MK_BLUETOOTH} != "no"
158_libbluetooth= libbluetooth
159_libsdp= libsdp
160.endif
161
162.if ${MK_BSNMP} != "no"
163_libbsnmp= libbsnmp
164.endif
165
166.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
167_clang= clang
168.endif
169
170.if ${MK_GPIB} != "no"
171_libgpib= libgpib
172.endif
173
174.if ${MK_GSSAPI} != "no"
175_libgssapi= libgssapi
176_librpcsec_gss= librpcsec_gss
177.endif
178
179.if ${MK_ICONV} != "no"
180_libiconv_modules= libiconv_modules
181.endif
182
183.if ${MK_IPX} != "no"
184_libipx= libipx
185.endif
186
187.if ${MK_LDNS} != "no"
188_libldns= libldns
189.endif
190
191.if ${MK_LIBCPLUSPLUS} != "no"
192_libcxxrt= libcxxrt
193_libcplusplus= libc++
194.endif
195
196.if ${MK_LIBICONV_COMPAT} != "no"
197_libiconv_compat= libiconv_compat
198.endif
199
200.if ${MK_LIBTHR} != "no"
201_libthr= libthr
202.endif
203
204.if ${MK_NAND} != "no"
205_libnandfs= libnandfs
206.endif
207
208.if ${MK_NETGRAPH} != "no"
209_libnetgraph= libnetgraph
210.endif
211
212.if ${MK_NIS} != "no"
213_libypclnt= libypclnt
214.endif
215
216.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
217_libsmb= libsmb
218_libvgl= libvgl
219_libproc= libproc
220_librtld_db= librtld_db
221.endif
222
223.if ${MACHINE_CPUARCH} == "amd64"
224_libvmmapi= libvmmapi
225.endif
226
227.if ${MACHINE_CPUARCH} == "ia64"
228_libefi= libefi
229_libsmb= libsmb
230.endif
231
232.if ${MACHINE_CPUARCH} == "mips"
233_libproc= libproc
234_librtld_db= librtld_db
235.endif
236
237.if ${MACHINE_CPUARCH} == "powerpc"
238_libproc= libproc
239_librtld_db= librtld_db
240_libsmb= libsmb
241.endif
242
243.if ${MACHINE_CPUARCH} == "sparc64"
244_libsmb= libsmb
245.endif
246
247.if ${MK_OPENSSL} != "no"
248_libmp= libmp
249.endif
250
251.if ${MK_PMC} != "no"
252_libpmc= libpmc
253.endif
254
255.if ${MK_SENDMAIL} != "no"
256_libmilter= libmilter
257_libsm= libsm
258_libsmdb= libsmdb
259_libsmutil= libsmutil
260.endif
261
262.if ${MK_TELNET} != "no"
263_libtelnet= libtelnet
264.endif
265
266.if ${MK_UNBOUND} != "no"
267_libunbound= libunbound
268.endif
269
264.if ${MK_USB} != "no"
265_libusbhid= libusbhid
266_libusb= libusb
267.endif
268
269.if !defined(LIBRARIES_ONLY)
270afterinstall:
271 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
272.endif
273
274.include <bsd.subdir.mk>
270.if ${MK_USB} != "no"
271_libusbhid= libusbhid
272_libusb= libusb
273.endif
274
275.if !defined(LIBRARIES_ONLY)
276afterinstall:
277 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
278.endif
279
280.include <bsd.subdir.mk>