Makefile revision 1.165 1 # $NetBSD: Makefile,v 1.165 2011/03/24 17:05:43 bouyer 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 (${USE_COMPILERCRTSTUFF} == "yes")
10 SUBDIR+= ../gnu/lib/crtstuff4
11 .endif
12 SUBDIR+= ../gnu/lib/libgcc4
13 .endif
14
15 SUBDIR+= libc
16 SUBDIR+= .WAIT
17
18 #
19 # The SUBDIRs above are included here for completeness but should be built
20 # and installed prior to make(dependall) in this file, as libraries listed
21 # below will depend on versions from DESTDIR only.
22 #
23
24 SUBDIR+= i18n_module
25
26 SUBDIR+= libarch \
27 libbluetooth libbsdmalloc libbz2 \
28 libcompat libcrypt \
29 libintl libipsec libisns libkvm libm \
30 libossaudio libpci libpmc libposix libprop libpthread \
31 libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
32 librumpclient libtelnet libterminfo \
33 libusbhid libutil libwrap liby libz
34
35 .if (${MKKERBEROS} != "no")
36 SUBDIR+= libcom_err
37 SUBDIR+= libvers
38 .endif
39
40 .if (${MKSKEY} != "no")
41 SUBDIR+= libskey
42 .endif
43
44 .if (${MKCRYPTO} != "no")
45 SUBDIR+= ../crypto/external/bsd/netpgp/libmj
46 .endif
47
48 .if (${MKMDNS} != "no")
49 SUBDIR+= ../external/apache2/mDNSResponder/lib
50 .endif
51
52 SUBDIR+= ../external/bsd/am-utils/lib
53
54 .if (${MKATF} != "no")
55 SUBDIR+= ../external/bsd/atf/lib
56 .endif
57
58 SUBDIR+= ../external/bsd/flex/lib
59 SUBDIR+= ../external/bsd/libdwarf/lib
60 SUBDIR+= ../external/bsd/libelf/lib
61 SUBDIR+= ../external/bsd/libevent/lib
62 SUBDIR+= ../external/bsd/liblzf/lib
63 SUBDIR+= ../external/bsd/libpcap/lib
64
65 SUBDIR+= ../external/mit/lua/lib
66
67 SUBDIR+= ../external/public-domain/xz/lib
68
69 SUBDIR+= ../gnu/lib/libmalloc
70
71 .if (${MKGCC} != "no")
72 SUBDIR+= ../gnu/lib/libobjc4
73 .endif
74
75 #
76 # Libraries that depend upon any listed previously
77 # (and those that depend upon these [and ...])
78 #
79 #==================== 1st library dependency barrier ====================
80 SUBDIR+= .WAIT
81
82 .if (${MKKERBEROS} != "no")
83 SUBDIR+= libasn1 # depends on libcom_err
84 SUBDIR+= libroken # depends on libutil, libcrypt
85 .endif
86
87 SUBDIR+= libcurses # depends on libterminfo
88 SUBDIR+= libdm # depends on libprop
89 SUBDIR+= libedit # depends on libterminfo
90 SUBDIR+= libquota # depends on libprop and librpcsvc
91 SUBDIR+= librefuse # depends on libpuffs
92 SUBDIR+= librumpuser # depends on libpthread
93
94 .if (${MKNPF} != "no")
95 SUBDIR+= libnpf # depends on libprop
96 .endif
97
98 .if (${MKCRYPTO} != "no")
99 SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt
100 .endif
101
102 SUBDIR+= ../external/bsd/file/lib # depends on libz
103
104 .if (${MKISCSI} != "no")
105 SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread
106 .endif
107
108 SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz
109
110 .if (${MKLVM} != "no")
111 SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop
112 .endif
113
114 .if (${MKBINUTILS} != "no")
115 SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz
116 .endif
117
118 .if (${MKGCC} != "no" && ${MKCXX} != "no")
119 SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm
120 SUBDIR+= ../gnu/lib/libsupc++4
121 .endif
122
123 #==================== 2nd library dependency barrier ====================
124 SUBDIR+= .WAIT
125
126 SUBDIR+= libform # depends on libcurses
127
128 .if (${MKKERBEROS} != "no")
129 SUBDIR+= libhx509 # depends on libcrypto, libasn1, libroken
130 SUBDIR+= libsl # depends on libedit, libterminfo
131 SUBDIR+= libss # depends on libedit, libterminfo, ...
132 .endif
133
134 SUBDIR+= libmenu # depends on libcurses
135 SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no")
136 SUBDIR+= librump # depends on librumpuser
137
138 .if (${MKCRYPTO} != "no")
139 SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
140 SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ...
141 .endif
142
143 SUBDIR+= ../external/bsd/bind/lib # depends on libcrypto
144 SUBDIR+= ../external/bsd/fetch/lib # depends on libssl
145
146 .if (${MKLDAP} != "no")
147 SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ...
148 .endif
149
150 SUBDIR+= librumphijack
151
152 #==================== 3rd library dependency barrier ====================
153 SUBDIR+= .WAIT
154
155 .if (${MKKERBEROS} != "no")
156 SUBDIR+= libkrb5 # depends on libhx509, libcrypto, libasn1, ...
157 .endif
158
159 SUBDIR+= librumpdev # depends on librump
160 SUBDIR+= librumpnet # depends on librump
161 SUBDIR+= librumpvfs # depends on librump
162
163 #==================== 4th library dependency barrier ====================
164 SUBDIR+= .WAIT
165
166 .if (${MKKERBEROS} != "no")
167 SUBDIR+= libhdb # depends on libkrb5, libasn1, libroken
168 SUBDIR+= libheimntlm # depends on libkrb5, libasn1, libroken
169 SUBDIR+= libkafs # depends on libkrb5, libroken
170 .endif
171
172 SUBDIR+= libukfs # depends on librumpvfs, librump
173
174 #==================== 5th library dependency barrier ====================
175 SUBDIR+= .WAIT
176
177 .if (${MKKERBEROS} != "no")
178 SUBDIR+= libgssapi # depends on libheimntlm
179 SUBDIR+= libkadm5clnt # depends on libhdb, libkrb5, libroken
180 SUBDIR+= libkadm5srv # depends on libhdb, libkrb5, libroken
181 .endif
182
183 SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs
184
185 .if (${MKPAM} != "no")
186 SUBDIR+= libpam # depends on libkafs, libkrb5, ...
187 .endif
188
189 #==================== 6th library dependency barrier ====================
190 SUBDIR+= .WAIT
191
192 .if (${MKCRYPTO} != "no")
193 SUBDIR+= ../crypto/external/bsd/libsaslc # depends on gssapi
194 .endif
195
196 .include <bsd.subdir.mk>
197