1 |
# @(#)Makefile 8.1 (Berkeley) 6/4/93 |
2 |
# $FreeBSD: src/lib/Makefile,v 1.205.2.1 2005/07/28 13:47:18 rwatson Exp $ |
3 |
# $MidnightBSD$ |
4 |
|
5 |
.include <bsd.own.mk> |
6 |
|
7 |
# To satisfy shared library or ELF linkage when only the libraries being |
8 |
# built are visible: |
9 |
# |
10 |
# csu must be built before all shared libaries for ELF. |
11 |
# libc must be built before all other shared libraries. |
12 |
# libbsm must be built before ibauditd. |
13 |
# libcom_err must be built before libpam. |
14 |
# libcrypt must be built before libpam. |
15 |
# libkvm must be built before libdevstat. |
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 |
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 |
${_libypclnt} \ |
53 |
${_libcxxrt} \ |
54 |
${_libcplusplus} |
55 |
|
56 |
SUBDIR= ${SUBDIR_ORDERED} \ |
57 |
libalias \ |
58 |
libarchive \ |
59 |
${_libatm} \ |
60 |
libbegemot \ |
61 |
libblocksruntime \ |
62 |
${_libbluetooth} \ |
63 |
${_libbsnmp} \ |
64 |
libbz2 \ |
65 |
libcalendar \ |
66 |
libcam \ |
67 |
libcompat \ |
68 |
libdevinfo \ |
69 |
libdevstat \ |
70 |
libdisk \ |
71 |
libdwarf \ |
72 |
libedit \ |
73 |
${_libefi} \ |
74 |
libexecinfo \ |
75 |
libexpat \ |
76 |
libfetch \ |
77 |
libftpio \ |
78 |
libgeom \ |
79 |
${_libgpib} \ |
80 |
${_libgssapi} \ |
81 |
${_librpcsec_gss} \ |
82 |
libipsec \ |
83 |
${_libipx} \ |
84 |
libjail \ |
85 |
libjansson \ |
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 |
libufs \ |
114 |
libugidfw \ |
115 |
libulog \ |
116 |
${_libusbhid} \ |
117 |
${_libusb} \ |
118 |
${_libvgl} \ |
119 |
libwrap \ |
120 |
liby \ |
121 |
libz \ |
122 |
libsqlite3 \ |
123 |
libmport \ |
124 |
libmsearch \ |
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_ATM} != "no" |
141 |
_libngatm= libngatm |
142 |
.endif |
143 |
|
144 |
.if ${MK_BIND} != "no" |
145 |
_bind= bind |
146 |
.endif |
147 |
|
148 |
.if ${MK_BLUETOOTH} != "no" |
149 |
_libbluetooth= libbluetooth |
150 |
_libsdp= libsdp |
151 |
.endif |
152 |
|
153 |
.if ${MK_BSNMP} != "no" |
154 |
_libbsnmp= libbsnmp |
155 |
.endif |
156 |
|
157 |
.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT) |
158 |
_clang= clang |
159 |
.endif |
160 |
|
161 |
.if ${MK_GPIB} != "no" |
162 |
_libgpib= libgpib |
163 |
.endif |
164 |
|
165 |
.if ${MK_GSSAPI} != "no" |
166 |
_libgssapi= libgssapi |
167 |
_librpcsec_gss= librpcsec_gss |
168 |
.endif |
169 |
|
170 |
.if ${MK_ICONV} != "no" |
171 |
_libiconv_modules= libiconv_modules |
172 |
.endif |
173 |
|
174 |
.if ${MK_IPX} != "no" |
175 |
_libipx= libipx |
176 |
.endif |
177 |
|
178 |
.if ${MK_LIBCPLUSPLUS} != "no" |
179 |
_libcxxrt= libcxxrt |
180 |
_libcplusplus= libc++ |
181 |
.endif |
182 |
|
183 |
.if ${MK_LIBTHR} != "no" |
184 |
_libthr= libthr |
185 |
.endif |
186 |
|
187 |
.if ${MK_NETGRAPH} != "no" |
188 |
_libnetgraph= libnetgraph |
189 |
.endif |
190 |
|
191 |
.if ${MK_NIS} != "no" |
192 |
_libypclnt= libypclnt |
193 |
.endif |
194 |
|
195 |
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" |
196 |
.if ${MK_NCP} != "no" |
197 |
_libncp= libncp |
198 |
.endif |
199 |
_libsmb= libsmb |
200 |
_libvgl= libvgl |
201 |
_libproc= libproc |
202 |
_librtld_db= librtld_db |
203 |
.endif |
204 |
|
205 |
.if ${MK_OPENSSL} != "no" |
206 |
_libmp= libmp |
207 |
.endif |
208 |
|
209 |
.if ${MK_PMC} != "no" |
210 |
_libpmc= libpmc |
211 |
.endif |
212 |
|
213 |
.if ${MK_SENDMAIL} != "no" |
214 |
_libmilter= libmilter |
215 |
_libsm= libsm |
216 |
_libsmdb= libsmdb |
217 |
_libsmutil= libsmutil |
218 |
.endif |
219 |
|
220 |
.if ${MK_TELNET} != "no" |
221 |
_libtelnet= libtelnet |
222 |
.endif |
223 |
|
224 |
.if ${MK_USB} != "no" |
225 |
_libusbhid= libusbhid |
226 |
_libusb= libusb |
227 |
.endif |
228 |
|
229 |
.include <bsd.subdir.mk> |