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
10 . if
(${USE_COMPILERCRTSTUFF} == "yes")
11 SUBDIR
+= ..
/gnu
/lib
/crtstuff4 .WAIT
13 SUBDIR
+= ..
/gnu
/lib
/libgcc4 .WAIT
15 . if
(${USE_COMPILERCRTSTUFF} == "yes")
16 SUBDIR
+= ..
/external
/gpl3
/gcc
/lib
/crtstuff .WAIT
18 SUBDIR
+= ..
/external
/gpl3
/gcc
/lib
/libgcc .WAIT
23 #LSC MINIX libc depends on
24 # - libmthread because of sys/lib/libunwind
27 SUBDIR
+= ..
/minix
/lib
/libsys
28 SUBDIR
+= ..
/minix
/lib
/libmthread
30 .
endif # 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 \
51 ..
/minix
/lib
/libvtreefs
53 .if
(${HAVE_LIBGCC} == "no")
54 SUBDIR
+= ..
/minix
/lib
/libgcc_s_empty
57 .if
(${MKLWIP} == "yes")
58 SUBDIR
+= ..
/minix
/lib
/liblwip \
59 ..
/minix
/lib
/libnetsock
62 .if
(${MACHINE_ARCH} == "i386")
63 SUBDIR
+= ..
/minix
/lib
/libhgfs \
64 ..
/minix
/lib
/libvassert \
65 ..
/minix
/lib
/libvboxfs \
66 ..
/minix
/lib
/libvirtio
69 .if
(${MACHINE_ARCH} == "earm")
70 SUBDIR
+= ..
/minix
/lib
/libclkconf \
71 ..
/minix
/lib
/libgpio \
72 ..
/minix
/lib
/libi2cdriver
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.
93 .if
!defined
(BSD_MK_COMPAT_FILE
)
97 .if
(${MACHINE_CPU} == "arm")
98 LIBC_MACHINE_ARCH?
=${MACHINE_ARCH}
99 .if empty
(LIBC_MACHINE_ARCH
:M
*hf
*)
103 .if
(${MKRUMP} != "no")
104 SUBDIR
+= librumpclient
106 .if
(${MKSKEY} != "no")
110 .if
(${MKMDNS} != "no")
111 SUBDIR
+= ..
/external
/apache2
/mDNSResponder
/lib
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
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"
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"
150 # Libraries that depend upon any listed previously
151 # (and those that depend upon these [and ...])
153 #==================== 1st library dependency barrier ====================
156 .if
(${MKCRYPTO} != "no")
157 SUBDIR
+= ..
/crypto
/external
/bsd
/netpgp
/libmj
158 SUBDIR
+= ..
/crypto
/external
/bsd
/netpgp
/lib
/verify
# depends on libz
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
177 .if
(${MKNPF} != "no")
178 SUBDIR
+= libnpf
# depends on libprop
181 .if
(${MKCRYPTO} != "no")
182 SUBDIR
+= ..
/crypto
/external
/bsd
/openssl
/lib
# depends on libcrypt
185 SUBDIR
+= ..
/external
/bsd
/file
/lib
# depends on libz
187 .if
(${MKISCSI} != "no")
188 SUBDIR
+= ..
/external
/bsd
/iscsi
/lib
# depends on libpthread
191 SUBDIR
+= ..
/external
/bsd
/libarchive
/lib
# depends on libxz
193 .if
(${MKLVM} != "no")
194 SUBDIR
+= ..
/external
/gpl2
/lvm2
/lib
# depends on libprop
197 .if
(${MKBINUTILS} != "no")
198 SUBDIR
+= ..
/external
/gpl3
/binutils
/lib
# libbfd depends on libz
201 .if
(${MKLIBCXX} != "no")
202 SUBDIR
+= ..
/external
/bsd
/libc
++
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
210 SUBDIR
+= ..
/external
/gpl3
/gcc
/lib
/libstdc
++-v3
211 SUBDIR
+= ..
/external
/gpl3
/gcc
/lib
/libsupc
++
215 #==================== 2nd library dependency barrier ====================
218 .if
(${MKNPF} != "no")
219 SUBDIR
+= npf
# depends on libnpf
222 .if
(${MKATF} != "no")
223 SUBDIR
+= ..
/external
/bsd
/atf
/lib
# depends on libstdc++
226 .if
(${MKKYUA} != "no")
227 SUBDIR
+= ..
/external
/bsd
/lutok
/lib
# depends on lua and libstdc++
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
237 .if
(${MKKERBEROS} != "no")
238 SUBDIR
+= ..
/crypto
/external
/bsd
/heimdal
/lib
# depends on libcrypto
239 # libedit, libterminfo,
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, ...
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, ...
254 #==================== 3rd library dependency barrier ====================
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
265 .if
(${MKPAM} != "no")
266 SUBDIR
+= libpam
# depends on heimdal
269 .if
(${MKCRYPTO} != "no")
270 SUBDIR
+= ..
/crypto
/external
/bsd
/libsaslc
# depends on heimdal, openssl
273 .if
${MKSLJIT} != "no"
274 SUBDIR
+= ..
/external
/bsd
/sljit
/lib
279 SUBDIR
+= ..
/external
/bsd
/mdocml
/lib
281 .if
(${MKRUMP} != "no")
282 #==================== 4th library dependency barrier ====================
285 SUBDIR
+= libukfs
# depends on librumpvfs, librump
287 .if
(${MKTPM} != "no")
288 SUBDIR
+= ..
/crypto
/external
/cpl
/trousers
/lib
291 #==================== 5th library dependency barrier ====================
294 SUBDIR
+= libp2k
# depends on libukfs, librumpvfs, libpuffs
296 .if
(${MKTPM} != "no")
297 SUBDIR
+= ..
/crypto
/external
/cpl
/tpm-tools
/lib
# depends on trousers
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
308 # Lua bindings come last, they might depend on anything
311 .
include <bsd.buildinstall.mk
>
312 .
include <bsd.subdir.mk
>