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