Makefile revision 1.161
1#	$NetBSD: Makefile,v 1.161 2011/02/02 02:20:24 rmind Exp $
2#	from: @(#)Makefile	5.25.1.1 (Berkeley) 5/7/91
3
4.include <bsd.own.mk>
5
6SUBDIR=		csu
7
8.if (${MKGCC} != "no")
9.if (${USE_COMPILERCRTSTUFF} == "yes")
10SUBDIR+=	../gnu/lib/crtstuff4
11.endif
12SUBDIR+=	../gnu/lib/libgcc4
13.endif
14
15SUBDIR+=	libc
16SUBDIR+=	.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
24SUBDIR+=	i18n_module
25
26SUBDIR+=	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 (${MKKERBEROS} != "no")
36SUBDIR+=	libcom_err
37SUBDIR+=	libvers
38.endif
39
40.if (${MKSKEY} != "no")
41SUBDIR+=	libskey
42.endif
43
44.if (${MKCRYPTO} != "no")
45SUBDIR+=	../crypto/external/bsd/netpgp/libmj
46.endif
47
48.if (${MKMDNS} != "no")
49SUBDIR+=	../external/apache2/mDNSResponder/lib
50.endif
51
52SUBDIR+=	../external/bsd/am-utils/lib
53
54.if (${MKATF} != "no")
55SUBDIR+=	../external/bsd/atf/lib
56.endif
57
58SUBDIR+=	../external/bsd/flex/lib
59SUBDIR+=	../external/bsd/libdwarf/lib
60SUBDIR+=	../external/bsd/libelf/lib
61SUBDIR+=	../external/bsd/libevent/lib
62SUBDIR+=	../external/bsd/libpcap/lib
63
64SUBDIR+=	../external/mit/lua/lib
65
66SUBDIR+=	../external/public-domain/xz/lib
67
68SUBDIR+=	../gnu/lib/libmalloc
69
70.if (${MKGCC} != "no")
71SUBDIR+=	../gnu/lib/libobjc4
72.endif
73
74#
75# Libraries that depend upon any listed previously
76# (and those that depend upon these [and ...])
77#
78#==================== 1st library dependency barrier ====================
79SUBDIR+=	.WAIT
80
81.if (${MKKERBEROS} != "no")
82SUBDIR+=	libasn1		# depends on libcom_err
83SUBDIR+=	libroken	# depends on libutil, libcrypt
84.endif
85
86SUBDIR+=	libcurses	# depends on libterminfo
87SUBDIR+=	libedit		# depends on libterminfo
88SUBDIR+=	librefuse	# depends on libpuffs
89SUBDIR+=	librumpuser	# depends on libpthread
90
91.if (${MKNPF} != "no")
92SUBDIR+=	libnpf		# depends on libprop
93.endif
94
95.if (${MKCRYPTO} != "no")
96SUBDIR+=	../crypto/external/bsd/openssl/lib # depends on libcrypt
97.endif
98
99SUBDIR+=	../external/bsd/file/lib	# depends on libz
100
101.if (${MKISCSI} != "no")
102SUBDIR+=	../external/bsd/iscsi/lib	# depends on libpthread
103.endif
104
105SUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
106
107.if (${MKBINUTILS} != "no")
108SUBDIR+=	../external/gpl3/binutils/lib	# libbfd depends on libz
109.endif
110
111.if (${MKGCC} != "no" && ${MKCXX} != "no")
112SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
113SUBDIR+=	../gnu/lib/libsupc++4
114.endif
115
116#==================== 2nd library dependency barrier ====================
117SUBDIR+=	.WAIT
118
119SUBDIR+=	libform		# depends on libcurses
120
121.if (${MKKERBEROS} != "no")
122SUBDIR+=	libhx509	# depends on libcrypto, libasn1, libroken
123SUBDIR+=	libsl		# depends on libedit, libterminfo
124SUBDIR+=	libss		# depends on libedit, libterminfo, ...
125.endif
126
127SUBDIR+=	libmenu		# depends on libcurses
128SUBDIR+=	libradius	# depends on libcrypto if (${MKCRYPTO} != "no")
129SUBDIR+=	librump		# depends on librumpuser
130
131.if (${MKCRYPTO} != "no")
132SUBDIR+=	../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
133SUBDIR+=	../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
134.endif
135
136SUBDIR+=	../external/bsd/bind/lib	# depends on libcrypto
137SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
138
139.if (${MKLDAP} != "no")
140SUBDIR+=	../external/bsd/openldap/lib	# depends on libcrypto, ...
141.endif
142
143SUBDIR+=	librumphijack
144
145#==================== 3rd library dependency barrier ====================
146SUBDIR+=	.WAIT
147
148.if (${MKKERBEROS} != "no")
149SUBDIR+=	libkrb5		# depends on libhx509, libcrypto, libasn1, ...
150.endif
151
152SUBDIR+=	librumpdev	# depends on librump
153SUBDIR+=	librumpnet	# depends on librump
154SUBDIR+=	librumpvfs	# depends on librump
155
156#==================== 4th library dependency barrier ====================
157SUBDIR+=	.WAIT
158
159.if (${MKKERBEROS} != "no")
160SUBDIR+=	libhdb		# depends on libkrb5, libasn1, libroken
161SUBDIR+=	libheimntlm	# depends on libkrb5, libasn1, libroken
162SUBDIR+=	libkafs		# depends on libkrb5, libroken
163.endif
164
165SUBDIR+=	libukfs		# depends on librumpvfs, librump
166
167#==================== 5th library dependency barrier ====================
168SUBDIR+=	.WAIT
169
170.if (${MKKERBEROS} != "no")
171SUBDIR+=	libgssapi	# depends on libheimntlm
172SUBDIR+=	libkadm5clnt	# depends on libhdb, libkrb5, libroken
173SUBDIR+=	libkadm5srv	# depends on libhdb, libkrb5, libroken
174.endif
175
176SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
177
178.if (${MKPAM} != "no")
179SUBDIR+=	libpam		# depends on libkafs, libkrb5, ...
180.endif
181
182.include <bsd.subdir.mk>
183