Makefile revision 1.214 1 1.214 plunky # $NetBSD: Makefile,v 1.214 2014/05/09 08:36:09 plunky Exp $
2 1.8 mycroft # from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91
3 1.21 cgd
4 1.62 thorpej .include <bsd.own.mk>
5 1.62 thorpej
6 1.188 joerg SUBDIR= csu .WAIT
7 1.155 plunky
8 1.155 plunky .if (${MKGCC} != "no")
9 1.169 mrg . if ${HAVE_GCC} == 4
10 1.188 joerg SUBDIR+= ../gnu/lib/libgcc4 .WAIT
11 1.169 mrg . else
12 1.211 mrg SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgcc .WAIT
13 1.169 mrg . endif
14 1.155 plunky .endif
15 1.155 plunky
16 1.155 plunky SUBDIR+= libc
17 1.155 plunky SUBDIR+= .WAIT
18 1.155 plunky
19 1.155 plunky #
20 1.155 plunky # The SUBDIRs above are included here for completeness but should be built
21 1.155 plunky # and installed prior to make(dependall) in this file, as libraries listed
22 1.155 plunky # below will depend on versions from DESTDIR only.
23 1.155 plunky #
24 1.155 plunky
25 1.158 plunky SUBDIR+= i18n_module
26 1.158 plunky
27 1.158 plunky SUBDIR+= libarch \
28 1.158 plunky libbluetooth libbsdmalloc libbz2 \
29 1.184 matt libcompat libcrypt \
30 1.207 joerg libintl libipsec libkvm libm \
31 1.158 plunky libossaudio libpci libpmc libposix libprop libpthread \
32 1.158 plunky libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
33 1.187 christos libtelnet libterminfo \
34 1.158 plunky libusbhid libutil libwrap liby libz
35 1.158 plunky
36 1.206 matt .if !defined(BSD_MK_COMPAT_FILE)
37 1.206 matt SUBDIR+= libkern
38 1.206 matt .endif
39 1.206 matt
40 1.201 matt .if (${MACHINE_CPU} == "arm")
41 1.201 matt LIBC_MACHINE_ARCH?=${MACHINE_ARCH}
42 1.201 matt .if empty(LIBC_MACHINE_ARCH:M*hf*)
43 1.197 matt SUBDIR+= libc_vfp
44 1.197 matt .endif
45 1.201 matt .endif
46 1.187 christos .if (${MKRUMP} != "no")
47 1.187 christos SUBDIR+= librumpclient
48 1.187 christos .endif
49 1.158 plunky .if (${MKSKEY} != "no")
50 1.158 plunky SUBDIR+= libskey
51 1.158 plunky .endif
52 1.60 thorpej
53 1.155 plunky .if (${MKMDNS} != "no")
54 1.155 plunky SUBDIR+= ../external/apache2/mDNSResponder/lib
55 1.155 plunky .endif
56 1.155 plunky
57 1.155 plunky SUBDIR+= ../external/bsd/am-utils/lib
58 1.155 plunky
59 1.155 plunky SUBDIR+= ../external/bsd/flex/lib
60 1.180 christos SUBDIR+= ../external/bsd/tre/lib
61 1.212 christos SUBDIR+= ../external/bsd/elftoolchain/lib/libelf
62 1.163 matt SUBDIR+= ../external/bsd/liblzf/lib
63 1.158 plunky SUBDIR+= ../external/bsd/libpcap/lib
64 1.155 plunky
65 1.214 plunky .if ${MKSLJIT} != "no"
66 1.214 plunky SUBDIR+= ../external/bsd/sljit/lib
67 1.214 plunky SUBDIR+= libbpfjit
68 1.214 plunky .endif
69 1.214 plunky
70 1.182 tron SUBDIR+= ../external/mit/expat/lib
71 1.155 plunky
72 1.179 joerg SUBDIR+= ../external/public-domain/sqlite/lib
73 1.155 plunky SUBDIR+= ../external/public-domain/xz/lib
74 1.155 plunky
75 1.155 plunky SUBDIR+= ../gnu/lib/libmalloc
76 1.155 plunky
77 1.155 plunky .if (${MKGCC} != "no")
78 1.168 mrg . if ${HAVE_GCC} == 4
79 1.155 plunky SUBDIR+= ../gnu/lib/libobjc4
80 1.170 mrg . else
81 1.211 mrg SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc
82 1.211 mrg SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp
83 1.168 mrg . endif
84 1.174 plunky . if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
85 1.173 mrg # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
86 1.173 mrg # specific build area, but we get better parallelism this way.
87 1.172 matt SUBDIR+= ../external/lgpl3/gmp/lib/libgmp
88 1.174 plunky SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr
89 1.209 mrg SUBDIR+= ../external/lgpl3/mpc/lib/libmpc
90 1.174 plunky . endif
91 1.155 plunky .endif
92 1.144 christos
93 1.89 lukem #
94 1.89 lukem # Libraries that depend upon any listed previously
95 1.93 lukem # (and those that depend upon these [and ...])
96 1.89 lukem #
97 1.97 christos #==================== 1st library dependency barrier ====================
98 1.97 christos SUBDIR+= .WAIT
99 1.97 christos
100 1.208 mrg .if (${MKCRYPTO} != "no")
101 1.208 mrg SUBDIR+= ../crypto/external/bsd/netpgp/libmj
102 1.208 mrg SUBDIR+= ../crypto/external/bsd/netpgp/lib/verify # depends on libz
103 1.208 mrg .endif
104 1.208 mrg
105 1.212 christos SUBDIR+= ../external/bsd/elftoolchain/lib/libdwarf # depends on libelf
106 1.208 mrg SUBDIR+= ../external/mit/lua/lib # depends on libm
107 1.158 plunky SUBDIR+= libcurses # depends on libterminfo
108 1.162 haad SUBDIR+= libdm # depends on libprop
109 1.158 plunky SUBDIR+= libedit # depends on libterminfo
110 1.184 matt SUBDIR+= libexecinfo # depends on libelf
111 1.176 dyoung SUBDIR+= libppath # depends on libprop
112 1.175 plunky SUBDIR+= libperfuse # depends on libpuffs
113 1.165 bouyer SUBDIR+= libquota # depends on libprop and librpcsvc
114 1.113 pooka SUBDIR+= librefuse # depends on libpuffs
115 1.207 joerg SUBDIR+= libisns # depends on libpthread
116 1.187 christos .if (${MKRUMP} != "no")
117 1.126 pooka SUBDIR+= librumpuser # depends on libpthread
118 1.175 plunky SUBDIR+= librumphijack # depends on librumpclient and libpthread
119 1.187 christos .endif
120 1.126 pooka
121 1.161 rmind .if (${MKNPF} != "no")
122 1.161 rmind SUBDIR+= libnpf # depends on libprop
123 1.161 rmind .endif
124 1.161 rmind
125 1.148 mrg .if (${MKCRYPTO} != "no")
126 1.158 plunky SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt
127 1.148 mrg .endif
128 1.139 mrg
129 1.155 plunky SUBDIR+= ../external/bsd/file/lib # depends on libz
130 1.155 plunky
131 1.155 plunky .if (${MKISCSI} != "no")
132 1.155 plunky SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread
133 1.155 plunky .endif
134 1.155 plunky
135 1.155 plunky SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz
136 1.155 plunky
137 1.163 matt .if (${MKLVM} != "no")
138 1.163 matt SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop
139 1.163 matt .endif
140 1.163 matt
141 1.155 plunky .if (${MKBINUTILS} != "no")
142 1.155 plunky SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz
143 1.155 plunky .endif
144 1.155 plunky
145 1.202 joerg .if (${MKLIBCXX} != "no")
146 1.202 joerg SUBDIR+= ../external/bsd/libc++
147 1.202 joerg .endif
148 1.202 joerg
149 1.203 joerg .if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
150 1.168 mrg . if ${HAVE_GCC} == 4
151 1.155 plunky SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm
152 1.155 plunky SUBDIR+= ../gnu/lib/libsupc++4
153 1.170 mrg . else
154 1.211 mrg SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3
155 1.211 mrg SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++
156 1.168 mrg . endif
157 1.155 plunky .endif
158 1.155 plunky
159 1.97 christos #==================== 2nd library dependency barrier ====================
160 1.97 christos SUBDIR+= .WAIT
161 1.97 christos
162 1.208 mrg .if (${MKNPF} != "no")
163 1.208 mrg SUBDIR+= npf # depends on libnpf
164 1.208 mrg .endif
165 1.208 mrg
166 1.185 christos .if (${MKATF} != "no")
167 1.186 christos SUBDIR+= ../external/bsd/atf/lib # depends on libstdc++
168 1.185 christos .endif
169 1.185 christos
170 1.198 jmmv .if (${MKKYUA} != "no")
171 1.198 jmmv SUBDIR+= ../external/bsd/lutok/lib # depends on lua and libstdc++
172 1.198 jmmv .endif
173 1.198 jmmv
174 1.158 plunky SUBDIR+= libform # depends on libcurses
175 1.175 plunky SUBDIR+= libmenu # depends on libcurses
176 1.175 plunky SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no")
177 1.187 christos .if (${MKRUMP} != "no")
178 1.175 plunky SUBDIR+= librump # depends on librumpuser
179 1.187 christos .endif
180 1.158 plunky
181 1.100 christos .if (${MKKERBEROS} != "no")
182 1.166 elric SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto
183 1.166 elric # libedit, libterminfo,
184 1.100 christos .endif
185 1.100 christos
186 1.158 plunky .if (${MKCRYPTO} != "no")
187 1.158 plunky SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
188 1.158 plunky SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ...
189 1.158 plunky .endif
190 1.158 plunky
191 1.199 christos SUBDIR+= ../external/bsd/libevent/lib # depends on libcrypto
192 1.158 plunky SUBDIR+= ../external/bsd/fetch/lib # depends on libssl
193 1.158 plunky
194 1.158 plunky .if (${MKLDAP} != "no")
195 1.158 plunky SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ...
196 1.158 plunky .endif
197 1.158 plunky
198 1.124 lukem #==================== 3rd library dependency barrier ====================
199 1.124 lukem SUBDIR+= .WAIT
200 1.124 lukem
201 1.204 joerg SUBDIR+= ../external/bsd/bind/lib # depends on heimdal, libcrypto
202 1.204 joerg
203 1.187 christos .if (${MKRUMP} != "no")
204 1.143 pooka SUBDIR+= librumpdev # depends on librump
205 1.128 pooka SUBDIR+= librumpnet # depends on librump
206 1.130 pooka SUBDIR+= librumpvfs # depends on librump
207 1.187 christos .endif
208 1.126 pooka
209 1.175 plunky .if (${MKPAM} != "no")
210 1.175 plunky SUBDIR+= libpam # depends on heimdal
211 1.175 plunky .endif
212 1.175 plunky
213 1.175 plunky .if (${MKCRYPTO} != "no")
214 1.175 plunky SUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl
215 1.175 plunky .endif
216 1.175 plunky
217 1.181 joerg SUBDIR+= ../external/bsd/mdocml/lib
218 1.181 joerg
219 1.187 christos .if (${MKRUMP} != "no")
220 1.126 pooka #==================== 4th library dependency barrier ====================
221 1.126 pooka SUBDIR+= .WAIT
222 1.158 plunky
223 1.158 plunky SUBDIR+= libukfs # depends on librumpvfs, librump
224 1.131 pooka
225 1.190 christos .if (${MKTPM} != "no")
226 1.190 christos SUBDIR+= ../crypto/external/cpl/trousers/lib
227 1.190 christos .endif
228 1.190 christos
229 1.131 pooka #==================== 5th library dependency barrier ====================
230 1.131 pooka SUBDIR+= .WAIT
231 1.158 plunky
232 1.158 plunky SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs
233 1.188 joerg
234 1.192 christos .if (${MKTPM} != "no")
235 1.192 christos SUBDIR+= ../crypto/external/cpl/tpm-tools/lib # depends on trousers
236 1.192 christos .endif
237 1.192 christos
238 1.188 joerg .if !defined(BSD_MK_COMPAT_FILE)
239 1.188 joerg SUBDIR+= ../sys/rump/dev/lib
240 1.188 joerg SUBDIR+= ../sys/rump/fs/lib
241 1.188 joerg SUBDIR+= ../sys/rump/kern/lib
242 1.188 joerg SUBDIR+= ../sys/rump/net/lib
243 1.188 joerg .endif
244 1.187 christos .endif
245 1.158 plunky
246 1.178 mbalmer # Lua bindings come last, they might depend on anything
247 1.178 mbalmer SUBDIR+= lua
248 1.178 mbalmer
249 1.210 christos # Needed by rump and rescue which are outside the smbfs tree
250 1.210 christos SUBDIR+= ../external/bsd/smbfs/lib
251 1.210 christos
252 1.195 joerg .include <bsd.buildinstall.mk>
253 1.1 cgd .include <bsd.subdir.mk>
254