Makefile revision 1.168 1 # $NetBSD: Makefile,v 1.168 2011/06/21 04:04:13 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 (${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 (${MKSKEY} != "no")
36 SUBDIR+= libskey
37 .endif
38
39 .if (${MKCRYPTO} != "no")
40 SUBDIR+= ../crypto/external/bsd/netpgp/libmj
41 .endif
42
43 .if (${MKMDNS} != "no")
44 SUBDIR+= ../external/apache2/mDNSResponder/lib
45 .endif
46
47 SUBDIR+= ../external/bsd/am-utils/lib
48
49 .if (${MKATF} != "no")
50 SUBDIR+= ../external/bsd/atf/lib
51 .endif
52
53 SUBDIR+= ../external/bsd/flex/lib
54 SUBDIR+= ../external/bsd/libdwarf/lib
55 SUBDIR+= ../external/bsd/libelf/lib
56 SUBDIR+= ../external/bsd/libevent/lib
57 SUBDIR+= ../external/bsd/liblzf/lib
58 SUBDIR+= ../external/bsd/libpcap/lib
59
60 SUBDIR+= ../external/mit/lua/lib
61
62 SUBDIR+= ../external/public-domain/xz/lib
63
64 SUBDIR+= ../gnu/lib/libmalloc
65
66 .if (${MKGCC} != "no")
67 . if ${HAVE_GCC} == 4
68 SUBDIR+= ../gnu/lib/libobjc4
69 . endif
70 .endif
71
72 . if ${HAVE_GCC} >= 45
73 SUBDIR+= ../external/lgpl3/gmp/lib/libgmp
74 SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr
75 SUBDIR+= ../external/lgpl2/mpc/lib/libmpc
76 .endif
77
78 #
79 # Libraries that depend upon any listed previously
80 # (and those that depend upon these [and ...])
81 #
82 #==================== 1st library dependency barrier ====================
83 SUBDIR+= .WAIT
84
85 SUBDIR+= libcurses # depends on libterminfo
86 SUBDIR+= libdm # depends on libprop
87 SUBDIR+= libedit # depends on libterminfo
88 SUBDIR+= libquota # depends on libprop and librpcsvc
89 SUBDIR+= librefuse # depends on libpuffs
90 SUBDIR+= libperfuse # depends on libpuffs
91 SUBDIR+= librumpuser # depends on libpthread
92
93 .if (${MKNPF} != "no")
94 SUBDIR+= libnpf # depends on libprop
95 .endif
96
97 .if (${MKCRYPTO} != "no")
98 SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt
99 .endif
100
101 SUBDIR+= ../external/bsd/file/lib # depends on libz
102
103 .if (${MKISCSI} != "no")
104 SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread
105 .endif
106
107 SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz
108
109 .if (${MKLVM} != "no")
110 SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop
111 .endif
112
113 .if (${MKBINUTILS} != "no")
114 SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz
115 .endif
116
117 .if (${MKGCC} != "no" && ${MKCXX} != "no")
118 . if ${HAVE_GCC} == 4
119 SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm
120 SUBDIR+= ../gnu/lib/libsupc++4
121 . endif
122 .endif
123
124 #==================== 2nd library dependency barrier ====================
125 SUBDIR+= .WAIT
126
127 SUBDIR+= libform # depends on libcurses
128
129 .if (${MKKERBEROS} != "no")
130 SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto
131 # 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 SUBDIR+= librumpdev # depends on librump
156 SUBDIR+= librumpnet # depends on librump
157 SUBDIR+= librumpvfs # depends on librump
158
159 #==================== 4th library dependency barrier ====================
160 SUBDIR+= .WAIT
161
162 SUBDIR+= libukfs # depends on librumpvfs, librump
163
164 #==================== 5th library dependency barrier ====================
165 SUBDIR+= .WAIT
166
167 SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs
168
169 .if (${MKPAM} != "no")
170 SUBDIR+= libpam # depends on libkafs, libkrb5, ...
171 .endif
172
173 #==================== 6th library dependency barrier ====================
174 SUBDIR+= .WAIT
175
176 .if (${MKCRYPTO} != "no")
177 SUBDIR+= ../crypto/external/bsd/libsaslc # depends on gssapi
178 .endif
179
180 .include <bsd.subdir.mk>
181