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