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