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