Makefile revision 1.155
1#	$NetBSD: Makefile,v 1.155 2010/12/03 21:38:47 plunky 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+=libarch \
25	libbsdmalloc libbluetooth libbz2 \
26	libcompat libcrypt \
27	libintl libkvm libm \
28	libossaudio libpcap libpci libpmc libposix libprop libpthread \
29	libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
30	librumpclient libterminfo libusbhid libutil libwrap liby libz
31
32.if (${MKMDNS} != "no")
33SUBDIR+=	../external/apache2/mDNSResponder/lib
34.endif
35
36SUBDIR+=	../external/bsd/am-utils/lib
37
38.if (${MKATF} != "no")
39SUBDIR+=	../external/bsd/atf/lib
40.endif
41
42SUBDIR+=	../external/bsd/flex/lib
43SUBDIR+=	../external/bsd/libdwarf/lib
44SUBDIR+=	../external/bsd/libelf/lib
45SUBDIR+=	../external/bsd/libevent/lib
46
47SUBDIR+=	../external/mit/lua/lib
48
49SUBDIR+=	../external/public-domain/xz/lib
50
51SUBDIR+=	../gnu/lib/libmalloc
52
53.if (${MKGCC} != "no")
54SUBDIR+=	../gnu/lib/libobjc4
55.endif
56
57# libcurses needs libtermlib
58SUBDIR+=	.WAIT libcurses
59
60# libform and libmenu need libcurses
61SUBDIR+=	.WAIT libform libmenu 
62
63.if (${MKSKEY} != "no")
64SUBDIR+= libskey
65.endif
66
67# XXX Crypto bits must be done before libtelnet.
68
69.if (${MKCRYPTO} != "no")
70SUBDIR+=	../crypto/external/bsd/openssl/lib
71.endif	# MKCRYPTO != no
72
73.if (${MKKERBEROS} != "no")
74# Heimdal Kerberos 5 libraries
75SUBDIR+= .WAIT libroken libvers libcom_err .WAIT libasn1
76SUBDIR+= .WAIT libhx509
77
78.endif	# MKKERBEROS != no
79
80SUBDIR+=	libtelnet
81
82# IPv6/IPsec
83SUBDIR+=	libipsec
84
85# I18N modules
86SUBDIR+=	i18n_module
87
88
89#
90# Libraries that depend upon any listed previously
91# (and those that depend upon these [and ...])
92#
93#==================== 1st library dependency barrier ====================
94SUBDIR+=	.WAIT
95
96SUBDIR+=	libedit		# depends on libterm
97
98SUBDIR+=	libradius	# depends on libcrypto - only if ${MKCRYPTO}
99
100
101.if (${MKKERBEROS} != "no")
102SUBDIR+=	libkrb5		# depends on libcrypto and more
103.endif
104
105SUBDIR+=	librefuse	# depends on libpuffs
106SUBDIR+=	librumpuser	# depends on libpthread
107
108.if (${MKCRYPTO} != "no")
109# these depend on libcrypto*, libz and libbz2
110SUBDIR+=	../crypto/external/bsd/openssh/lib
111SUBDIR+=	../crypto/external/bsd/netpgp/libmj
112SUBDIR+=	.WAIT
113SUBDIR+=	../crypto/external/bsd/netpgp/lib
114.endif
115
116SUBDIR+=	../external/bsd/bind/lib	# depends on libcrypto
117SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
118SUBDIR+=	../external/bsd/file/lib	# depends on libz
119
120.if (${MKISCSI} != "no")
121SUBDIR+=	../external/bsd/iscsi/lib	# depends on libpthread
122.endif
123
124SUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
125
126.if (${MKLDAP} != "no")
127SUBDIR+=	../external/bsd/openldap/lib
128.endif
129
130.if (${MKBINUTILS} != "no")
131SUBDIR+=	../external/gpl3/binutils/lib	# libbfd depends on libz
132.endif
133
134.if (${MKGCC} != "no" && ${MKCXX} != "no")
135SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
136SUBDIR+=	../gnu/lib/libsupc++4
137.endif
138
139#==================== 2nd library dependency barrier ====================
140SUBDIR+=	.WAIT
141
142.if (${MKKERBEROS} != "no")
143# Heimdal Kerberos 5 libraries depending on libkrb5 and more
144SUBDIR+=	libheimntlm
145SUBDIR+=	.WAIT libgssapi libhdb
146SUBDIR+=	.WAIT libkadm5srv libkadm5clnt libkafs libsl libss
147.endif
148
149SUBDIR+=	librump		# depends on librumpuser
150
151#==================== 3rd library dependency barrier ====================
152SUBDIR+=	.WAIT
153
154.if (${MKPAM} != "no")
155SUBDIR+=	libpam		# depends on libkrb5, libkafs and more
156.endif
157
158.if (${MKCRYPTO} != "no")
159SUBDIR+=	librumpcrypto	# depends on librump
160.endif
161SUBDIR+=	librumpdev	# depends on librump
162SUBDIR+=	librumpnet	# depends on librump
163SUBDIR+=	librumpvfs	# depends on librump
164
165#==================== 4th library dependency barrier ====================
166SUBDIR+=	.WAIT
167SUBDIR+=	libukfs		# depends on librump and librumpvfs
168
169#==================== 5th library dependency barrier ====================
170SUBDIR+=	.WAIT
171SUBDIR+=	libp2k		# depends on libpuffs, librumpvfs and libukfs
172
173.include <bsd.subdir.mk>
174