tools/llvm: Do not build with symbols
[minix3.git] / lib / Makefile
blob65e3ae4ca9d7b860ae5d078fc17eba1b5db87d69
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 .if defined(__MINIX)
23 #LSC MINIX libc depends on
24 # - libmthread because of sys/lib/libunwind
25 SUBDIR+= .WAIT
27 SUBDIR+= ../minix/lib/libsys
28 SUBDIR+= ../minix/lib/libmthread
29 SUBDIR+= .WAIT
30 .endif # defined(__MINIX)
31 SUBDIR+= libc
32 SUBDIR+= .WAIT
34 .if defined(__MINIX)
35 SUBDIR+= ../minix/lib/libasyn \
36 ../minix/lib/libaudiodriver \
37 ../minix/lib/libbdev \
38 ../minix/lib/libblockdriver \
39 ../minix/lib/libchardriver \
40 ../minix/lib/libddekit \
41 ../minix/lib/libdevman \
42 ../minix/lib/libexec \
43 ../minix/lib/libfetch \
44 ../minix/lib/libinputdriver \
45 ../minix/lib/libminc \
46 ../minix/lib/libminixfs \
47 ../minix/lib/libnetdriver \
48 ../minix/lib/libsffs \
49 ../minix/lib/libtimers \
50 ../minix/lib/libusb \
51 ../minix/lib/libvtreefs
53 .if (${HAVE_LIBGCC} == "no")
54 SUBDIR+= ../minix/lib/libgcc_s_empty
55 .endif
57 .if (${MKLWIP} == "yes")
58 SUBDIR+= ../minix/lib/liblwip \
59 ../minix/lib/libnetsock
60 .endif
62 .if (${MACHINE_ARCH} == "i386")
63 SUBDIR+= ../minix/lib/libhgfs \
64 ../minix/lib/libvassert \
65 ../minix/lib/libvboxfs \
66 ../minix/lib/libvirtio
67 .endif
69 .if (${MACHINE_ARCH} == "earm")
70 SUBDIR+= ../minix/lib/libclkconf \
71 ../minix/lib/libgpio \
72 ../minix/lib/libi2cdriver
73 .endif
75 .endif # defined(__MINIX)
77 # The SUBDIRs above are included here for completeness but should be built
78 # and installed prior to make(dependall) in this file, as libraries listed
79 # below will depend on versions from DESTDIR only.
82 #SUBDIR+= i18n_module
84 SUBDIR+= \
85 libbz2 \
86 libcrypt \
87 libm \
88 libprop \
89 libpuffs librmt \
90 libterminfo \
91 libutil libz
93 .if !defined(BSD_MK_COMPAT_FILE)
94 #SUBDIR+= libkern
95 .endif
97 .if (${MACHINE_CPU} == "arm")
98 LIBC_MACHINE_ARCH?=${MACHINE_ARCH}
99 .if empty(LIBC_MACHINE_ARCH:M*hf*)
100 SUBDIR+= libc_vfp
101 .endif
102 .endif
103 .if (${MKRUMP} != "no")
104 SUBDIR+= librumpclient
105 .endif
106 .if (${MKSKEY} != "no")
107 SUBDIR+= libskey
108 .endif
110 .if (${MKMDNS} != "no")
111 SUBDIR+= ../external/apache2/mDNSResponder/lib
112 .endif
114 #SUBDIR+= ../external/bsd/am-utils/lib
116 SUBDIR+= ../external/bsd/flex/lib
117 #SUBDIR+= ../external/bsd/tre/lib
118 SUBDIR+= ../external/bsd/libelf/lib
119 #SUBDIR+= ../external/bsd/liblzf/lib
120 #SUBDIR+= ../external/bsd/libpcap/lib
122 #SUBDIR+= ../external/mit/expat/lib
124 SUBDIR+= ../external/public-domain/sqlite/lib
125 SUBDIR+= ../external/public-domain/xz/lib
127 #SUBDIR+= ../gnu/lib/libmalloc
129 .if (${MKGCC} != "no")
130 . if ${HAVE_GCC} == 4
131 #SUBDIR+= ../gnu/lib/libobjc4
132 . else
133 . if !defined(__MINIX) || ${MKLIBSTDCXX} == "yes"
134 SUBDIR+= ../external/gpl3/gcc/lib/libobjc
135 SUBDIR+= ../external/gpl3/gcc/lib/libgomp
136 . endif # !defined(__MINIX) || ${MKLIBSTDCXX} == "yes"
137 . endif
138 . if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
139 . if !defined(__MINIX) || ${MKLIBSTDCXX} == "yes"
140 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
141 # specific build area, but we get better parallelism this way.
142 SUBDIR+= ../external/lgpl3/gmp/lib/libgmp
143 SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr
144 SUBDIR+= ../external/lgpl3/mpc/lib/libmpc
145 . endif # !defined(__MINIX) || ${MKLIBSTDCXX} == "yes"
146 . endif
147 .endif
150 # Libraries that depend upon any listed previously
151 # (and those that depend upon these [and ...])
153 #==================== 1st library dependency barrier ====================
154 SUBDIR+= .WAIT
156 .if (${MKCRYPTO} != "no")
157 SUBDIR+= ../crypto/external/bsd/netpgp/libmj
158 SUBDIR+= ../crypto/external/bsd/netpgp/lib/verify # depends on libz
159 .endif
161 #SUBDIR+= ../external/bsd/libdwarf/lib # depends on libelf
162 SUBDIR+= ../external/mit/lua/lib # depends on libm
163 SUBDIR+= libcurses # depends on libterminfo
164 #SUBDIR+= libdm # depends on libprop
165 SUBDIR+= libedit # depends on libterminfo
166 SUBDIR+= libexecinfo # depends on libelf
167 #SUBDIR+= libppath # depends on libprop
168 #SUBDIR+= libperfuse # depends on libpuffs
169 #SUBDIR+= libquota # depends on libprop and librpcsvc
170 SUBDIR+= librefuse # depends on libpuffs
171 #SUBDIR+= libisns # depends on libpthread
172 .if (${MKRUMP} != "no")
173 SUBDIR+= librumpuser # depends on libpthread
174 SUBDIR+= librumphijack # depends on librumpclient and libpthread
175 .endif
177 .if (${MKNPF} != "no")
178 SUBDIR+= libnpf # depends on libprop
179 .endif
181 .if (${MKCRYPTO} != "no")
182 SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt
183 .endif
185 SUBDIR+= ../external/bsd/file/lib # depends on libz
187 .if (${MKISCSI} != "no")
188 SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread
189 .endif
191 SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz
193 .if (${MKLVM} != "no")
194 SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop
195 .endif
197 .if (${MKBINUTILS} != "no")
198 SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz
199 .endif
201 .if (${MKLIBCXX} != "no")
202 SUBDIR+= ../external/bsd/libc++
203 .endif
205 .if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
206 . if ${HAVE_GCC} == 4
207 SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm
208 SUBDIR+= ../gnu/lib/libsupc++4
209 . else
210 SUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3
211 SUBDIR+= ../external/gpl3/gcc/lib/libsupc++
212 . endif
213 .endif
215 #==================== 2nd library dependency barrier ====================
216 SUBDIR+= .WAIT
218 .if (${MKNPF} != "no")
219 SUBDIR+= npf # depends on libnpf
220 .endif
222 .if (${MKATF} != "no")
223 SUBDIR+= ../external/bsd/atf/lib # depends on libstdc++
224 .endif
226 .if (${MKKYUA} != "no")
227 SUBDIR+= ../external/bsd/lutok/lib # depends on lua and libstdc++
228 .endif
230 SUBDIR+= libform # depends on libcurses
231 SUBDIR+= libmenu # depends on libcurses
232 #SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no")
233 .if (${MKRUMP} != "no")
234 SUBDIR+= librump # depends on librumpuser
235 .endif
237 .if (${MKKERBEROS} != "no")
238 SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto
239 # libedit, libterminfo,
240 .endif
242 .if (${MKCRYPTO} != "no")
243 SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
244 SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ...
245 .endif
247 #SUBDIR+= ../external/bsd/libevent/lib # depends on libcrypto
248 #SUBDIR+= ../external/bsd/fetch/lib # depends on libssl
250 .if (${MKLDAP} != "no")
251 SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ...
252 .endif
254 #==================== 3rd library dependency barrier ====================
255 SUBDIR+= .WAIT
257 #SUBDIR+= ../external/bsd/bind/lib # depends on heimdal, libcrypto
259 .if (${MKRUMP} != "no")
260 SUBDIR+= librumpdev # depends on librump
261 SUBDIR+= librumpnet # depends on librump
262 SUBDIR+= librumpvfs # depends on librump
263 .endif
265 .if (${MKPAM} != "no")
266 SUBDIR+= libpam # depends on heimdal
267 .endif
269 .if (${MKCRYPTO} != "no")
270 SUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl
271 .endif
273 .if ${MKSLJIT} != "no"
274 SUBDIR+= ../external/bsd/sljit/lib
275 SUBDIR+= .WAIT
276 SUBDIR+= libbpfjit
277 .endif
279 SUBDIR+= ../external/bsd/mdocml/lib
281 .if (${MKRUMP} != "no")
282 #==================== 4th library dependency barrier ====================
283 SUBDIR+= .WAIT
285 SUBDIR+= libukfs # depends on librumpvfs, librump
287 .if (${MKTPM} != "no")
288 SUBDIR+= ../crypto/external/cpl/trousers/lib
289 .endif
291 #==================== 5th library dependency barrier ====================
292 SUBDIR+= .WAIT
294 SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs
296 .if (${MKTPM} != "no")
297 SUBDIR+= ../crypto/external/cpl/tpm-tools/lib # depends on trousers
298 .endif
300 .if !defined(BSD_MK_COMPAT_FILE)
301 SUBDIR+= ../sys/rump/dev/lib
302 SUBDIR+= ../sys/rump/fs/lib
303 SUBDIR+= ../sys/rump/kern/lib
304 SUBDIR+= ../sys/rump/net/lib
305 .endif
306 .endif
308 # Lua bindings come last, they might depend on anything
309 SUBDIR+= lua
311 .include <bsd.buildinstall.mk>
312 .include <bsd.subdir.mk>