Makefile revision 1.172 1 # $NetBSD: Makefile,v 1.172 2011/07/07 07:37:17 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/libdwarf/lib
62 SUBDIR+= ../external/bsd/libelf/lib
63 SUBDIR+= ../external/bsd/libevent/lib
64 SUBDIR+= ../external/bsd/liblzf/lib
65 SUBDIR+= ../external/bsd/libpcap/lib
66
67 SUBDIR+= ../external/mit/lua/lib
68
69 SUBDIR+= ../external/public-domain/xz/lib
70
71 SUBDIR+= ../gnu/lib/libmalloc
72
73 .if (${MKGCC} != "no")
74 . if ${HAVE_GCC} == 4
75 SUBDIR+= ../gnu/lib/libobjc4
76 . else
77 SUBDIR+= ../external/gpl3/gcc/lib/libobjc
78 . endif
79 .endif
80
81 .if ${HAVE_GCC} >= 45
82 SUBDIR+= ../external/lgpl3/gmp/lib/libgmp
83 .endif
84
85 #
86 # Libraries that depend upon any listed previously
87 # (and those that depend upon these [and ...])
88 #
89 #==================== 1st library dependency barrier ====================
90 SUBDIR+= .WAIT
91
92 SUBDIR+= libcurses # depends on libterminfo
93 SUBDIR+= libdm # depends on libprop
94 SUBDIR+= libedit # depends on libterminfo
95 SUBDIR+= libquota # depends on libprop and librpcsvc
96 SUBDIR+= librefuse # depends on libpuffs
97 SUBDIR+= libperfuse # depends on libpuffs
98 SUBDIR+= librumpuser # depends on libpthread
99
100 .if (${MKNPF} != "no")
101 SUBDIR+= libnpf # depends on libprop
102 .endif
103
104 .if (${MKCRYPTO} != "no")
105 SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt
106 .endif
107
108 SUBDIR+= ../external/bsd/file/lib # depends on libz
109
110 .if (${MKISCSI} != "no")
111 SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread
112 .endif
113
114 SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz
115
116 .if (${MKLVM} != "no")
117 SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop
118 .endif
119
120 .if (${MKBINUTILS} != "no")
121 SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz
122 .endif
123
124 .if (${MKGCC} != "no" && ${MKCXX} != "no")
125 . if ${HAVE_GCC} == 4
126 SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm
127 SUBDIR+= ../gnu/lib/libsupc++4
128 . else
129 SUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3
130 SUBDIR+= ../external/gpl3/gcc/lib/libsupc++
131 . endif
132 .endif
133
134 .if ${HAVE_GCC} >= 45
135 SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr
136 .endif
137
138 #==================== 2nd library dependency barrier ====================
139 SUBDIR+= .WAIT
140
141 SUBDIR+= libform # depends on libcurses
142
143 .if (${MKKERBEROS} != "no")
144 SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto
145 # libedit, libterminfo,
146 .endif
147
148 SUBDIR+= libmenu # depends on libcurses
149 SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no")
150 SUBDIR+= librump # depends on librumpuser
151
152 .if (${MKCRYPTO} != "no")
153 SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
154 SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ...
155 .endif
156
157 SUBDIR+= ../external/bsd/bind/lib # depends on libcrypto
158 SUBDIR+= ../external/bsd/fetch/lib # depends on libssl
159
160 .if (${MKLDAP} != "no")
161 SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ...
162 .endif
163
164 SUBDIR+= librumphijack
165
166 .if ${HAVE_GCC} >= 45
167 SUBDIR+= ../external/lgpl2/mpc/lib/libmpc
168 .endif
169
170 #==================== 3rd library dependency barrier ====================
171 SUBDIR+= .WAIT
172
173 SUBDIR+= librumpdev # depends on librump
174 SUBDIR+= librumpnet # depends on librump
175 SUBDIR+= librumpvfs # depends on librump
176
177 #==================== 4th library dependency barrier ====================
178 SUBDIR+= .WAIT
179
180 SUBDIR+= libukfs # depends on librumpvfs, librump
181
182 #==================== 5th library dependency barrier ====================
183 SUBDIR+= .WAIT
184
185 SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs
186
187 .if (${MKPAM} != "no")
188 SUBDIR+= libpam # depends on libkafs, libkrb5, ...
189 .endif
190
191 #==================== 6th library dependency barrier ====================
192 SUBDIR+= .WAIT
193
194 .if (${MKCRYPTO} != "no")
195 SUBDIR+= ../crypto/external/bsd/libsaslc # depends on gssapi
196 .endif
197
198 .include <bsd.subdir.mk>
199