custom message type for VM_QUERY_EXIT
[minix3.git] / lib / Makefile
blobce85d66496228dd23009b21f4a431af093d95bb3
1 # $NetBSD: Makefile,v 1.209 2013/11/28 12:08:56 mrg Exp $
2 # from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91
4 .include <bsd.own.mk>
6 SUBDIR= csu .WAIT
8 .if (${MKGCC} != "no")
9 . if ${HAVE_GCC} == 4
10 . if (${USE_COMPILERCRTSTUFF} == "yes")
11 SUBDIR+= ../gnu/lib/crtstuff4 .WAIT
12 . endif
13 SUBDIR+= ../gnu/lib/libgcc4 .WAIT
14 . else
15 . if (${USE_COMPILERCRTSTUFF} == "yes")
16 SUBDIR+= ../external/gpl3/gcc/lib/crtstuff .WAIT
17 . endif
18 SUBDIR+= ../external/gpl3/gcc/lib/libgcc .WAIT
19 . endif
20 .endif
22 #LSC MINIX libc depends on
23 # - libminlib because of minix/malloc-debug.c
24 # - libmthread because of sys/lib/libunwind
25 SUBDIR+= libminlib
26 SUBDIR+= .WAIT
28 SUBDIR+= libsys
29 SUBDIR+= libmthread
30 SUBDIR+= .WAIT
32 SUBDIR+= libc
33 SUBDIR+= .WAIT
35 .if defined(__MINIX)
36 SUBDIR+= libasyn \
37 libaudiodriver \
38 libbdev \
39 libblockdriver \
40 libchardriver \
41 libcompat_minix \
42 libddekit \
43 libdevman \
44 libexec \
45 libfetch \
46 libinputdriver \
47 libminc \
48 libminixfs \
49 libnetdriver \
50 libsffs \
51 libtimers \
52 libusb \
53 libvtreefs
55 .if (${HAVE_LIBGCC} == "no")
56 SUBDIR+= libgcc_s_empty
57 .endif
59 .if (${MKLWIP} == "yes")
60 SUBDIR+= liblwip \
61 libnetsock
62 .endif
64 .if (${MACHINE_ARCH} == "i386")
65 SUBDIR+= libhgfs \
66 libvassert \
67 libvboxfs \
68 libvirtio
69 .endif
71 .if (${MACHINE_ARCH} == "earm")
72 SUBDIR+= libclkconf \
73 libgpio \
74 libi2cdriver
75 .endif
77 .endif # defined(__MINIX)
79 # The SUBDIRs above are included here for completeness but should be built
80 # and installed prior to make(dependall) in this file, as libraries listed
81 # below will depend on versions from DESTDIR only.
84 #SUBDIR+= i18n_module
86 SUBDIR+= \
87 libbz2 \
88 libcrypt \
89 libm \
90 libprop \
91 libpuffs librmt \
92 libterminfo \
93 libutil libz
95 .if !defined(BSD_MK_COMPAT_FILE)
96 #SUBDIR+= libkern
97 .endif
99 .if (${MACHINE_CPU} == "arm")
100 LIBC_MACHINE_ARCH?=${MACHINE_ARCH}
101 .if empty(LIBC_MACHINE_ARCH:M*hf*)
102 SUBDIR+= libc_vfp
103 .endif
104 .endif
105 .if (${MKRUMP} != "no")
106 SUBDIR+= librumpclient
107 .endif
108 .if (${MKSKEY} != "no")
109 SUBDIR+= libskey
110 .endif
112 .if (${MKMDNS} != "no")
113 SUBDIR+= ../external/apache2/mDNSResponder/lib
114 .endif
116 #SUBDIR+= ../external/bsd/am-utils/lib
118 SUBDIR+= ../external/bsd/flex/lib
119 #SUBDIR+= ../external/bsd/tre/lib
120 SUBDIR+= ../external/bsd/libelf/lib
121 #SUBDIR+= ../external/bsd/liblzf/lib
122 #SUBDIR+= ../external/bsd/libpcap/lib
124 #SUBDIR+= ../external/mit/expat/lib
126 SUBDIR+= ../external/public-domain/sqlite/lib
127 SUBDIR+= ../external/public-domain/xz/lib
129 #SUBDIR+= ../gnu/lib/libmalloc
131 .if (${MKGCC} != "no")
132 . if ${HAVE_GCC} == 4
133 #SUBDIR+= ../gnu/lib/libobjc4
134 . else
135 . if !defined(__MINIX) || ${MKLIBSTDCXX} == "yes"
136 SUBDIR+= ../external/gpl3/gcc/lib/libobjc
137 SUBDIR+= ../external/gpl3/gcc/lib/libgomp
138 . endif # !defined(__MINIX) || ${MKLIBSTDCXX} == "yes"
139 . endif
140 . if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
141 . if !defined(__MINIX) || ${MKLIBSTDCXX} == "yes"
142 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
143 # specific build area, but we get better parallelism this way.
144 SUBDIR+= ../external/lgpl3/gmp/lib/libgmp
145 SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr
146 SUBDIR+= ../external/lgpl3/mpc/lib/libmpc
147 . endif # !defined(__MINIX) || ${MKLIBSTDCXX} == "yes"
148 . endif
149 .endif
152 # Libraries that depend upon any listed previously
153 # (and those that depend upon these [and ...])
155 #==================== 1st library dependency barrier ====================
156 SUBDIR+= .WAIT
158 .if (${MKCRYPTO} != "no")
159 SUBDIR+= ../crypto/external/bsd/netpgp/libmj
160 SUBDIR+= ../crypto/external/bsd/netpgp/lib/verify # depends on libz
161 .endif
163 #SUBDIR+= ../external/bsd/libdwarf/lib # depends on libelf
164 SUBDIR+= ../external/mit/lua/lib # depends on libm
165 SUBDIR+= libcurses # depends on libterminfo
166 #SUBDIR+= libdm # depends on libprop
167 SUBDIR+= libedit # depends on libterminfo
168 SUBDIR+= libexecinfo # depends on libelf
169 #SUBDIR+= libppath # depends on libprop
170 #SUBDIR+= libperfuse # depends on libpuffs
171 #SUBDIR+= libquota # depends on libprop and librpcsvc
172 SUBDIR+= librefuse # depends on libpuffs
173 #SUBDIR+= libisns # depends on libpthread
174 .if (${MKRUMP} != "no")
175 SUBDIR+= librumpuser # depends on libpthread
176 SUBDIR+= librumphijack # depends on librumpclient and libpthread
177 .endif
179 .if (${MKNPF} != "no")
180 SUBDIR+= libnpf # depends on libprop
181 .endif
183 .if (${MKCRYPTO} != "no")
184 SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt
185 .endif
187 SUBDIR+= ../external/bsd/file/lib # depends on libz
189 .if (${MKISCSI} != "no")
190 SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread
191 .endif
193 SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz
195 .if (${MKLVM} != "no")
196 SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop
197 .endif
199 .if (${MKBINUTILS} != "no")
200 SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz
201 .endif
203 .if (${MKLIBCXX} != "no")
204 SUBDIR+= ../external/bsd/libc++
205 .endif
207 .if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
208 . if ${HAVE_GCC} == 4
209 SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm
210 SUBDIR+= ../gnu/lib/libsupc++4
211 . else
212 SUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3
213 SUBDIR+= ../external/gpl3/gcc/lib/libsupc++
214 . endif
215 .endif
217 #==================== 2nd library dependency barrier ====================
218 SUBDIR+= .WAIT
220 .if (${MKNPF} != "no")
221 SUBDIR+= npf # depends on libnpf
222 .endif
224 .if (${MKATF} != "no")
225 SUBDIR+= ../external/bsd/atf/lib # depends on libstdc++
226 .endif
228 .if (${MKKYUA} != "no")
229 SUBDIR+= ../external/bsd/lutok/lib # depends on lua and libstdc++
230 .endif
232 SUBDIR+= libform # depends on libcurses
233 SUBDIR+= libmenu # depends on libcurses
234 #SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no")
235 .if (${MKRUMP} != "no")
236 SUBDIR+= librump # depends on librumpuser
237 .endif
239 .if (${MKKERBEROS} != "no")
240 SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto
241 # libedit, libterminfo,
242 .endif
244 .if (${MKCRYPTO} != "no")
245 SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
246 SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ...
247 .endif
249 #SUBDIR+= ../external/bsd/libevent/lib # depends on libcrypto
250 #SUBDIR+= ../external/bsd/fetch/lib # depends on libssl
252 .if (${MKLDAP} != "no")
253 SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ...
254 .endif
256 #==================== 3rd library dependency barrier ====================
257 SUBDIR+= .WAIT
259 #SUBDIR+= ../external/bsd/bind/lib # depends on heimdal, libcrypto
261 .if (${MKRUMP} != "no")
262 SUBDIR+= librumpdev # depends on librump
263 SUBDIR+= librumpnet # depends on librump
264 SUBDIR+= librumpvfs # depends on librump
265 .endif
267 .if (${MKPAM} != "no")
268 SUBDIR+= libpam # depends on heimdal
269 .endif
271 .if (${MKCRYPTO} != "no")
272 SUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl
273 .endif
275 .if ${MKSLJIT} != "no"
276 SUBDIR+= ../external/bsd/sljit/lib
277 SUBDIR+= .WAIT
278 SUBDIR+= libbpfjit
279 .endif
281 SUBDIR+= ../external/bsd/mdocml/lib
283 .if (${MKRUMP} != "no")
284 #==================== 4th library dependency barrier ====================
285 SUBDIR+= .WAIT
287 SUBDIR+= libukfs # depends on librumpvfs, librump
289 .if (${MKTPM} != "no")
290 SUBDIR+= ../crypto/external/cpl/trousers/lib
291 .endif
293 #==================== 5th library dependency barrier ====================
294 SUBDIR+= .WAIT
296 SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs
298 .if (${MKTPM} != "no")
299 SUBDIR+= ../crypto/external/cpl/tpm-tools/lib # depends on trousers
300 .endif
302 .if !defined(BSD_MK_COMPAT_FILE)
303 SUBDIR+= ../sys/rump/dev/lib
304 SUBDIR+= ../sys/rump/fs/lib
305 SUBDIR+= ../sys/rump/kern/lib
306 SUBDIR+= ../sys/rump/net/lib
307 .endif
308 .endif
310 # Lua bindings come last, they might depend on anything
311 SUBDIR+= lua
313 .include <bsd.buildinstall.mk>
314 .include <bsd.subdir.mk>