Makefile revision 1.174 1 # $NetBSD: Makefile,v 1.174 2011/08/20 22:16:56 plunky 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 . if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
80 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
81 # specific build area, but we get better parallelism this way.
82 SUBDIR+= ../external/lgpl3/gmp/lib/libgmp
83 SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr
84 SUBDIR+= ../external/lgpl2/mpc/lib/libmpc
85 . endif
86 .endif
87
88 #
89 # Libraries that depend upon any listed previously
90 # (and those that depend upon these [and ...])
91 #
92 #==================== 1st library dependency barrier ====================
93 SUBDIR+= .WAIT
94
95 SUBDIR+= libcurses # depends on libterminfo
96 SUBDIR+= libdm # depends on libprop
97 SUBDIR+= libedit # depends on libterminfo
98 SUBDIR+= libquota # depends on libprop and librpcsvc
99 SUBDIR+= librefuse # depends on libpuffs
100 SUBDIR+= libperfuse # depends on libpuffs
101 SUBDIR+= librumpuser # depends on libpthread
102
103 .if (${MKNPF} != "no")
104 SUBDIR+= libnpf # depends on libprop
105 .endif
106
107 .if (${MKCRYPTO} != "no")
108 SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt
109 .endif
110
111 SUBDIR+= ../external/bsd/file/lib # depends on libz
112
113 .if (${MKISCSI} != "no")
114 SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread
115 .endif
116
117 SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz
118
119 .if (${MKLVM} != "no")
120 SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop
121 .endif
122
123 .if (${MKBINUTILS} != "no")
124 SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz
125 .endif
126
127 .if (${MKGCC} != "no" && ${MKCXX} != "no")
128 . if ${HAVE_GCC} == 4
129 SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm
130 SUBDIR+= ../gnu/lib/libsupc++4
131 . else
132 SUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3
133 SUBDIR+= ../external/gpl3/gcc/lib/libsupc++
134 . endif
135 .endif
136
137 #==================== 2nd library dependency barrier ====================
138 SUBDIR+= .WAIT
139
140 SUBDIR+= libform # depends on libcurses
141
142 .if (${MKKERBEROS} != "no")
143 SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto
144 # libedit, libterminfo,
145 .endif
146
147 SUBDIR+= libmenu # depends on libcurses
148 SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no")
149 SUBDIR+= librump # depends on librumpuser
150
151 .if (${MKCRYPTO} != "no")
152 SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
153 SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ...
154 .endif
155
156 SUBDIR+= ../external/bsd/bind/lib # depends on libcrypto
157 SUBDIR+= ../external/bsd/fetch/lib # depends on libssl
158
159 .if (${MKLDAP} != "no")
160 SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ...
161 .endif
162
163 SUBDIR+= librumphijack
164
165 #==================== 3rd library dependency barrier ====================
166 SUBDIR+= .WAIT
167
168 SUBDIR+= librumpdev # depends on librump
169 SUBDIR+= librumpnet # depends on librump
170 SUBDIR+= librumpvfs # depends on librump
171
172 #==================== 4th library dependency barrier ====================
173 SUBDIR+= .WAIT
174
175 SUBDIR+= libukfs # depends on librumpvfs, librump
176
177 #==================== 5th library dependency barrier ====================
178 SUBDIR+= .WAIT
179
180 SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs
181
182 .if (${MKPAM} != "no")
183 SUBDIR+= libpam # depends on libkafs, libkrb5, ...
184 .endif
185
186 #==================== 6th library dependency barrier ====================
187 SUBDIR+= .WAIT
188
189 .if (${MKCRYPTO} != "no")
190 SUBDIR+= ../crypto/external/bsd/libsaslc # depends on gssapi
191 .endif
192
193 .include <bsd.subdir.mk>
194