Makefile revision 1.167
1#	$NetBSD: Makefile,v 1.167 2011/05/09 08:51:18 manu 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 (${MKSKEY} != "no")
36SUBDIR+=	libskey
37.endif
38
39.if (${MKCRYPTO} != "no")
40SUBDIR+=	../crypto/external/bsd/netpgp/libmj
41.endif
42
43.if (${MKMDNS} != "no")
44SUBDIR+=	../external/apache2/mDNSResponder/lib
45.endif
46
47SUBDIR+=	../external/bsd/am-utils/lib
48
49.if (${MKATF} != "no")
50SUBDIR+=	../external/bsd/atf/lib
51.endif
52
53SUBDIR+=	../external/bsd/flex/lib
54SUBDIR+=	../external/bsd/libdwarf/lib
55SUBDIR+=	../external/bsd/libelf/lib
56SUBDIR+=	../external/bsd/libevent/lib
57SUBDIR+=	../external/bsd/liblzf/lib
58SUBDIR+=	../external/bsd/libpcap/lib
59
60SUBDIR+=	../external/mit/lua/lib
61
62SUBDIR+=	../external/public-domain/xz/lib
63
64SUBDIR+=	../gnu/lib/libmalloc
65
66.if (${MKGCC} != "no")
67SUBDIR+=	../gnu/lib/libobjc4
68.endif
69
70#
71# Libraries that depend upon any listed previously
72# (and those that depend upon these [and ...])
73#
74#==================== 1st library dependency barrier ====================
75SUBDIR+=	.WAIT
76
77SUBDIR+=	libcurses	# depends on libterminfo
78SUBDIR+=	libdm		# depends on libprop
79SUBDIR+=	libedit		# depends on libterminfo
80SUBDIR+=	libquota	# depends on libprop and librpcsvc
81SUBDIR+=	librefuse	# depends on libpuffs
82SUBDIR+=	libperfuse	# depends on libpuffs
83SUBDIR+=	librumpuser	# depends on libpthread
84
85.if (${MKNPF} != "no")
86SUBDIR+=	libnpf		# depends on libprop
87.endif
88
89.if (${MKCRYPTO} != "no")
90SUBDIR+=	../crypto/external/bsd/openssl/lib # depends on libcrypt
91.endif
92
93SUBDIR+=	../external/bsd/file/lib	# depends on libz
94
95.if (${MKISCSI} != "no")
96SUBDIR+=	../external/bsd/iscsi/lib	# depends on libpthread
97.endif
98
99SUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
100
101.if (${MKLVM} != "no")
102SUBDIR+=	../external/gpl2/lvm2/lib	# depends on libprop
103.endif
104
105.if (${MKBINUTILS} != "no")
106SUBDIR+=	../external/gpl3/binutils/lib	# libbfd depends on libz
107.endif
108
109.if (${MKGCC} != "no" && ${MKCXX} != "no")
110SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
111SUBDIR+=	../gnu/lib/libsupc++4
112.endif
113
114#==================== 2nd library dependency barrier ====================
115SUBDIR+=	.WAIT
116
117SUBDIR+=	libform		# depends on libcurses
118
119.if (${MKKERBEROS} != "no")
120SUBDIR+=	../crypto/external/bsd/heimdal/lib	# depends on libcrypto
121							# libedit, libterminfo,
122.endif
123
124SUBDIR+=	libmenu		# depends on libcurses
125SUBDIR+=	libradius	# depends on libcrypto if (${MKCRYPTO} != "no")
126SUBDIR+=	librump		# depends on librumpuser
127
128.if (${MKCRYPTO} != "no")
129SUBDIR+=	../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
130SUBDIR+=	../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
131.endif
132
133SUBDIR+=	../external/bsd/bind/lib	# depends on libcrypto
134SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
135
136.if (${MKLDAP} != "no")
137SUBDIR+=	../external/bsd/openldap/lib	# depends on libcrypto, ...
138.endif
139
140SUBDIR+=	librumphijack
141
142#==================== 3rd library dependency barrier ====================
143SUBDIR+=	.WAIT
144
145SUBDIR+=	librumpdev	# depends on librump
146SUBDIR+=	librumpnet	# depends on librump
147SUBDIR+=	librumpvfs	# depends on librump
148
149#==================== 4th library dependency barrier ====================
150SUBDIR+=	.WAIT
151
152SUBDIR+=	libukfs		# depends on librumpvfs, librump
153
154#==================== 5th library dependency barrier ====================
155SUBDIR+=	.WAIT
156
157SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
158
159.if (${MKPAM} != "no")
160SUBDIR+=	libpam		# depends on libkafs, libkrb5, ...
161.endif
162
163#==================== 6th library dependency barrier ====================
164SUBDIR+=	.WAIT
165
166.if (${MKCRYPTO} != "no")
167SUBDIR+=	../crypto/external/bsd/libsaslc		# depends on gssapi
168.endif
169
170.include <bsd.subdir.mk>
171