Makefile revision 1.181.2.1.2.1 1 # $NetBSD: Makefile,v 1.181.2.1.2.1 2012/11/20 23:24:55 matt Exp $
2 # from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91
3
4 .include <bsd.own.mk>
5
6 SUBDIR= csu
7
8 .if (${MKGCC} != "no")
9 . if ${HAVE_GCC} == 4
10 . if (${USE_COMPILERCRTSTUFF} == "yes")
11 SUBDIR+= ../gnu/lib/crtstuff4
12 . endif
13 SUBDIR+= ../gnu/lib/libgcc4
14 . else
15 . if (${USE_COMPILERCRTSTUFF} == "yes")
16 SUBDIR+= ../external/gpl3/gcc/lib/crtstuff
17 . endif
18 SUBDIR+= ../external/gpl3/gcc/lib/libgcc
19 . endif
20 .endif
21
22 SUBDIR+= libc
23 SUBDIR+= .WAIT
24
25 #
26 # The SUBDIRs above are included here for completeness but should be built
27 # and installed prior to make(dependall) in this file, as libraries listed
28 # below will depend on versions from DESTDIR only.
29 #
30
31 SUBDIR+= i18n_module
32
33 SUBDIR+= libarch \
34 libbluetooth libbsdmalloc libbz2 \
35 libcompat libcrypt \
36 libintl libipsec libisns libkvm libm \
37 libossaudio libpci libpmc libposix libprop libpthread \
38 libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
39 librumpclient libtelnet libterminfo \
40 libusbhid libutil libwrap liby libz
41
42 .if (${MKSKEY} != "no")
43 SUBDIR+= libskey
44 .endif
45
46 .if (${MKCRYPTO} != "no")
47 SUBDIR+= ../crypto/external/bsd/netpgp/libmj
48 .endif
49
50 .if (${MKMDNS} != "no")
51 SUBDIR+= ../external/apache2/mDNSResponder/lib
52 .endif
53
54 SUBDIR+= ../external/bsd/am-utils/lib
55
56 .if (${MKATF} != "no")
57 SUBDIR+= ../external/bsd/atf/lib
58 .endif
59
60 SUBDIR+= ../external/bsd/flex/lib
61 SUBDIR+= ../external/bsd/tre/lib
62 SUBDIR+= ../external/bsd/libdwarf/lib
63 SUBDIR+= ../external/bsd/libelf/lib
64 SUBDIR+= ../external/bsd/libevent/lib
65 SUBDIR+= ../external/bsd/liblzf/lib
66 SUBDIR+= ../external/bsd/libpcap/lib
67
68 SUBDIR+= ../external/mit/lua/lib
69 SUBDIR+= ../external/mit/expat/lib
70
71 SUBDIR+= ../external/public-domain/sqlite/lib
72 SUBDIR+= ../external/public-domain/xz/lib
73
74 SUBDIR+= ../gnu/lib/libmalloc
75
76 .if (${MKGCC} != "no")
77 . if ${HAVE_GCC} == 4
78 SUBDIR+= ../gnu/lib/libobjc4
79 . else
80 SUBDIR+= ../external/gpl3/gcc/lib/libobjc
81 SUBDIR+= ../external/gpl3/gcc/lib/libgomp
82 . endif
83 . if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
84 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
85 # specific build area, but we get better parallelism this way.
86 SUBDIR+= ../external/lgpl3/gmp/lib/libgmp
87 SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr
88 SUBDIR+= ../external/lgpl2/mpc/lib/libmpc
89 . endif
90 .endif
91
92 #
93 # Libraries that depend upon any listed previously
94 # (and those that depend upon these [and ...])
95 #
96 #==================== 1st library dependency barrier ====================
97 SUBDIR+= .WAIT
98
99 SUBDIR+= libcurses # depends on libterminfo
100 SUBDIR+= libdm # depends on libprop
101 SUBDIR+= libedit # depends on libterminfo
102 SUBDIR+= libppath # depends on libprop
103 SUBDIR+= libperfuse # depends on libpuffs
104 SUBDIR+= libquota # depends on libprop and librpcsvc
105 SUBDIR+= librefuse # depends on libpuffs
106 SUBDIR+= librumpuser # depends on libpthread
107 SUBDIR+= librumphijack # depends on librumpclient and libpthread
108
109 .if (${MKNPF} != "no")
110 SUBDIR+= libnpf # depends on libprop
111 .endif
112
113 .if (${MKCRYPTO} != "no")
114 SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt
115 .endif
116
117 SUBDIR+= ../external/bsd/file/lib # depends on libz
118
119 .if (${MKISCSI} != "no")
120 SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread
121 .endif
122
123 SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz
124
125 .if (${MKLVM} != "no")
126 SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop
127 .endif
128
129 .if (${MKBINUTILS} != "no")
130 . if (${HAVE_BINUTILS} == "219")
131 SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz
132 . else
133 SUBDIR+= ../gnu/lib/libopcodes # libbfd depends on libz
134 SUBDIR+= ../gnu/lib/libbfd # libbfd depends on libz
135 SUBDIR+= ../gnu/lib/libiberty # libbfd depends on libz
136 . endif
137 .endif
138
139 .if (${MKGCC} != "no" && ${MKCXX} != "no")
140 . if ${HAVE_GCC} == 4
141 SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm
142 SUBDIR+= ../gnu/lib/libsupc++4
143 . else
144 SUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3
145 SUBDIR+= ../external/gpl3/gcc/lib/libsupc++
146 . endif
147 .endif
148
149 #==================== 2nd library dependency barrier ====================
150 SUBDIR+= .WAIT
151
152 SUBDIR+= libform # depends on libcurses
153 SUBDIR+= libmenu # depends on libcurses
154 SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no")
155 SUBDIR+= librump # depends on librumpuser
156
157 .if (${MKKERBEROS} != "no")
158 SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto
159 # libedit, libterminfo,
160 .endif
161
162 .if (${MKCRYPTO} != "no")
163 SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
164 SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ...
165 .endif
166
167 SUBDIR+= ../external/bsd/bind/lib # depends on libcrypto
168 SUBDIR+= ../external/bsd/fetch/lib # depends on libssl
169
170 .if (${MKLDAP} != "no")
171 SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ...
172 .endif
173
174 #==================== 3rd library dependency barrier ====================
175 SUBDIR+= .WAIT
176
177 SUBDIR+= librumpdev # depends on librump
178 SUBDIR+= librumpnet # depends on librump
179 SUBDIR+= librumpvfs # depends on librump
180
181 .if (${MKPAM} != "no")
182 SUBDIR+= libpam # depends on heimdal
183 .endif
184
185 .if (${MKCRYPTO} != "no")
186 SUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl
187 .endif
188
189 SUBDIR+= ../external/bsd/mdocml/lib
190
191 #==================== 4th library dependency barrier ====================
192 SUBDIR+= .WAIT
193
194 SUBDIR+= libukfs # depends on librumpvfs, librump
195
196 #==================== 5th library dependency barrier ====================
197 SUBDIR+= .WAIT
198
199 SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs
200
201 # Lua bindings come last, they might depend on anything
202 SUBDIR+= lua
203
204 .include <bsd.subdir.mk>
205