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
22 #LSC MINIX libc depends on
23 # - libminlib because of minix/malloc-debug.c
24 # - libmthread because of sys/lib/libunwind
55 .if
(${HAVE_LIBGCC} == "no")
56 SUBDIR
+= libgcc_s_empty
59 .if
(${MKLWIP} == "yes")
64 .if
(${MACHINE_ARCH} == "i386")
71 .if
(${MACHINE_ARCH} == "earm")
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.
95 .if
!defined
(BSD_MK_COMPAT_FILE
)
99 .if
(${MACHINE_CPU} == "arm")
100 LIBC_MACHINE_ARCH?
=${MACHINE_ARCH}
101 .if empty
(LIBC_MACHINE_ARCH
:M
*hf
*)
105 .if
(${MKRUMP} != "no")
106 SUBDIR
+= librumpclient
108 .if
(${MKSKEY} != "no")
112 .if
(${MKMDNS} != "no")
113 SUBDIR
+= ..
/external
/apache2
/mDNSResponder
/lib
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
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"
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"
152 # Libraries that depend upon any listed previously
153 # (and those that depend upon these [and ...])
155 #==================== 1st library dependency barrier ====================
158 .if
(${MKCRYPTO} != "no")
159 SUBDIR
+= ..
/crypto
/external
/bsd
/netpgp
/libmj
160 SUBDIR
+= ..
/crypto
/external
/bsd
/netpgp
/lib
/verify
# depends on libz
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
179 .if
(${MKNPF} != "no")
180 SUBDIR
+= libnpf
# depends on libprop
183 .if
(${MKCRYPTO} != "no")
184 SUBDIR
+= ..
/crypto
/external
/bsd
/openssl
/lib
# depends on libcrypt
187 SUBDIR
+= ..
/external
/bsd
/file
/lib
# depends on libz
189 .if
(${MKISCSI} != "no")
190 SUBDIR
+= ..
/external
/bsd
/iscsi
/lib
# depends on libpthread
193 SUBDIR
+= ..
/external
/bsd
/libarchive
/lib
# depends on libxz
195 .if
(${MKLVM} != "no")
196 SUBDIR
+= ..
/external
/gpl2
/lvm2
/lib
# depends on libprop
199 .if
(${MKBINUTILS} != "no")
200 SUBDIR
+= ..
/external
/gpl3
/binutils
/lib
# libbfd depends on libz
203 .if
(${MKLIBCXX} != "no")
204 SUBDIR
+= ..
/external
/bsd
/libc
++
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
212 SUBDIR
+= ..
/external
/gpl3
/gcc
/lib
/libstdc
++-v3
213 SUBDIR
+= ..
/external
/gpl3
/gcc
/lib
/libsupc
++
217 #==================== 2nd library dependency barrier ====================
220 .if
(${MKNPF} != "no")
221 SUBDIR
+= npf
# depends on libnpf
224 .if
(${MKATF} != "no")
225 SUBDIR
+= ..
/external
/bsd
/atf
/lib
# depends on libstdc++
228 .if
(${MKKYUA} != "no")
229 SUBDIR
+= ..
/external
/bsd
/lutok
/lib
# depends on lua and libstdc++
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
239 .if
(${MKKERBEROS} != "no")
240 SUBDIR
+= ..
/crypto
/external
/bsd
/heimdal
/lib
# depends on libcrypto
241 # libedit, libterminfo,
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, ...
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, ...
256 #==================== 3rd library dependency barrier ====================
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
267 .if
(${MKPAM} != "no")
268 SUBDIR
+= libpam
# depends on heimdal
271 .if
(${MKCRYPTO} != "no")
272 SUBDIR
+= ..
/crypto
/external
/bsd
/libsaslc
# depends on heimdal, openssl
275 .if
${MKSLJIT} != "no"
276 SUBDIR
+= ..
/external
/bsd
/sljit
/lib
281 SUBDIR
+= ..
/external
/bsd
/mdocml
/lib
283 .if
(${MKRUMP} != "no")
284 #==================== 4th library dependency barrier ====================
287 SUBDIR
+= libukfs
# depends on librumpvfs, librump
289 .if
(${MKTPM} != "no")
290 SUBDIR
+= ..
/crypto
/external
/cpl
/trousers
/lib
293 #==================== 5th library dependency barrier ====================
296 SUBDIR
+= libp2k
# depends on libukfs, librumpvfs, libpuffs
298 .if
(${MKTPM} != "no")
299 SUBDIR
+= ..
/crypto
/external
/cpl
/tpm-tools
/lib
# depends on trousers
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
310 # Lua bindings come last, they might depend on anything
313 .
include <bsd.buildinstall.mk
>
314 .
include <bsd.subdir.mk
>