]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
ACPI: change arguments to internal acpi_find_dsd()
[FreeBSD/FreeBSD.git] / lib / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/4/93
2 # $FreeBSD$
3
4 .include <src.opts.mk>
5
6 # The SUBDIR_BOOTSTRAP list is a small set of libraries which are used by many
7 # of the other libraries.  These are built first with a .WAIT between them
8 # and the main list to avoid needing a SUBDIR_DEPEND line on every library
9 # naming just these few items.
10
11 SUBDIR_BOOTSTRAP= \
12         csu \
13         .WAIT \
14         libc \
15         libc_nonshared \
16         libcompiler_rt \
17         ${_libclang_rt} \
18         ${_libcplusplus} \
19         ${_libcxxrt} \
20         libelf \
21         libssp \
22         libssp_nonshared \
23         msun
24
25 # The main list; please keep these sorted alphabetically.
26 # The only exception is sqlite3: we place it at the start of the list since it
27 # takes a long time to build and starting it first improves parallelism.
28
29 SUBDIR= ${SUBDIR_BOOTSTRAP} \
30         .WAIT \
31         libsqlite3 \
32         geom \
33         lib9p \
34         libalias \
35         libarchive \
36         libauditd \
37         libbegemot \
38         libblocksruntime \
39         libbsdstat \
40         libbsm \
41         libbz2 \
42         libcalendar \
43         libcam \
44         libcapsicum \
45         libcasper \
46         libcompat \
47         libcrypt \
48         libdevctl \
49         libdevinfo \
50         libdevstat \
51         libdl \
52         libdwarf \
53         libedit \
54         libelftc \
55         libevent1 \
56         libexecinfo \
57         libexpat \
58         libfetch \
59         libfigpar \
60         libgcc_eh \
61         libgcc_s \
62         libgeom \
63         libifconfig \
64         libipsec \
65         libiscsiutil \
66         libjail \
67         libkiconv \
68         libkvm \
69         liblua \
70         liblzma \
71         libmemstat \
72         libmd \
73         libmt \
74         lib80211 \
75         libnetbsd \
76         libnetmap \
77         libnv \
78         libopenbsd \
79         libopie \
80         libpam \
81         libpathconv \
82         libpcap \
83         libpjdlog \
84         libproc \
85         libprocstat \
86         libregex \
87         librpcsvc \
88         librss \
89         librt \
90         librtld_db \
91         libsbuf \
92         libsmb \
93         libstdbuf \
94         libstdthreads \
95         libsysdecode \
96         libtacplus \
97         libthr \
98         libthread_db \
99         libucl \
100         libufs \
101         libugidfw \
102         libulog \
103         libutil \
104         ${_libvgl} \
105         libwrap \
106         libxo \
107         liby \
108         libz \
109         libzstd \
110         ncurses
111
112 # Inter-library dependencies.  When the makefile for a library contains LDADD
113 # libraries, those libraries should be listed as build order dependencies here.
114
115 SUBDIR_DEPEND_geom=     libufs
116 SUBDIR_DEPEND_googletest= libregex
117 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd libzstd
118 SUBDIR_DEPEND_libauditdm= libbsm
119 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
120 SUBDIR_DEPEND_libc++:= libcxxrt
121 # libssp_nonshared doesn't need to be linked into libc on every arch, but it is
122 # small enough to build that this bit of serialization is likely insignificant.
123 SUBDIR_DEPEND_libc= libcompiler_rt libssp_nonshared
124 SUBDIR_DEPEND_libcam= libsbuf
125 SUBDIR_DEPEND_libcasper= libnv
126 SUBDIR_DEPEND_libdevstat= libkvm
127 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
128 SUBDIR_DEPEND_libedit= ncurses
129 SUBDIR_DEPEND_libgeom= libexpat libsbuf
130 SUBDIR_DEPEND_librpcsec_gss= libgssapi
131 SUBDIR_DEPEND_libmagic= libz
132 SUBDIR_DEPEND_libmemstat= libkvm
133 SUBDIR_DEPEND_libopie= libmd
134 SUBDIR_DEPEND_libpam= libcrypt libopie ${_libradius} librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err} 
135 SUBDIR_DEPEND_libpjdlog= libutil
136 SUBDIR_DEPEND_libprocstat= libkvm libutil
137 SUBDIR_DEPEND_libradius= libmd
138 SUBDIR_DEPEND_libsmb= libkiconv
139 SUBDIR_DEPEND_libtacplus= libmd
140 SUBDIR_DEPEND_libulog= libmd
141 SUBDIR_DEPEND_libunbound= ${_libldns}
142 SUBDIR_DEPEND_liblzma= libthr
143 .if ${MK_OFED} != "no"
144 SUBDIR_DEPEND_libpcap= ofed
145 .endif
146
147 .if !defined(COMPAT_32BIT)
148 SUBDIR+=        flua
149 SUBDIR_DEPEND_flua=     libjail
150 .endif
151
152 # NB: keep these sorted by MK_* knobs
153
154 SUBDIR.${MK_ATM}+=      libngatm
155 SUBDIR.${MK_BEARSSL}+=  libbearssl libsecureboot
156 SUBDIR.${MK_BLACKLIST}+=libblacklist
157 SUBDIR.${MK_BLUETOOTH}+=libbluetooth libsdp
158 SUBDIR.${MK_BSNMP}+=    libbsnmp
159
160 .if !defined(COMPAT_32BIT) && !defined(COMPAT_SOFTFP)
161 .if ${MK_CLANG} != "no" || ${MK_LLD} != "no" || \
162     ${MK_LLDB} != "no" || ${MK_LLVM_BINUTILS} != "no"
163 SUBDIR+=        clang
164 .endif
165 .endif
166
167 SUBDIR.${MK_CUSE}+=     libcuse
168 SUBDIR.${MK_CXX}+=      libdevdctl
169 SUBDIR.${MK_TOOLCHAIN}+=libpe
170 SUBDIR.${MK_DIALOG}+=   libdpv
171 SUBDIR.${MK_FILE}+=     libmagic
172 SUBDIR.${MK_GPIO}+=     libgpio
173 SUBDIR.${MK_GSSAPI}+=   libgssapi librpcsec_gss
174 SUBDIR.${MK_ICONV}+=    libiconv_modules
175 SUBDIR.${MK_KERBEROS_SUPPORT}+= libcom_err
176 SUBDIR.${MK_LDNS}+=     libldns
177 SUBDIR.${MK_STATS}+=    libstats
178
179 # The libraries under libclang_rt can only be built by clang and when we enable
180 # C++ support.  Furthermore, they can only be built for certain architectures.
181 .if ${COMPILER_TYPE} == "clang" && ${MK_CXX} != "no" && \
182     (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
183     ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "i386" || \
184     ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "riscv")
185 _libclang_rt=   libclang_rt
186 .endif
187
188 .if ${MK_LIBCPLUSPLUS} != "no"
189 _libcxxrt=      libcxxrt
190 _libcplusplus=  libc++
191 _libcplusplus+= libc++experimental
192 .endif
193
194 SUBDIR.${MK_EFI}+=      libefivar
195 SUBDIR.${MK_GOOGLETEST}+=       googletest
196 SUBDIR.${MK_NETGRAPH}+= libnetgraph
197 SUBDIR.${MK_NIS}+=      libypclnt
198
199 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
200 _libvgl=        libvgl
201 .endif
202
203 .if ${MACHINE_CPUARCH} == "aarch64"
204 SUBDIR.${MK_PMC}+=      libopencsd
205 .endif
206
207 .if ${MACHINE_CPUARCH} == "amd64"
208 SUBDIR.${MK_PMC}+=      libipt
209 SUBDIR.${MK_BHYVE}+=    libvmmapi
210 .endif
211
212 .if ${MACHINE_ARCH} != "powerpc"
213 SUBDIR.${MK_OPENMP}+=   libomp
214 .endif
215 .if !defined(COMPAT_32BIT) && ${MK_USB} != "no"
216 SUBDIR.${MK_OPENSSH}+=  libcbor libfido2
217 .endif
218 SUBDIR.${MK_OPENSSL}+=  libmp
219 SUBDIR.${MK_PF}+=       libpfctl
220 SUBDIR.${MK_PMC}+=      libpmc libpmcstat
221 SUBDIR.${MK_RADIUS_SUPPORT}+=   libradius
222 SUBDIR.${MK_SENDMAIL}+= libmilter libsm libsmdb libsmutil
223 SUBDIR.${MK_TELNET}+=   libtelnet
224 SUBDIR.${MK_TESTS_SUPPORT}+=    atf
225 SUBDIR.${MK_TESTS_SUPPORT}.${MK_CXX}+=  liblutok
226 SUBDIR.${MK_TESTS}+=    tests
227 SUBDIR.${MK_UNBOUND}+=  libunbound
228 SUBDIR.${MK_USB}+=      libusbhid libusb
229 SUBDIR.${MK_OFED}+=     ofed
230 SUBDIR.${MK_VERIEXEC}+= libveriexec
231 SUBDIR.${MK_ZFS}+=      libbe
232
233 .if !make(install)
234 SUBDIR_PARALLEL=
235 .endif
236
237 .include <bsd.subdir.mk>