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