Makefile revision 1.132
1#	$NetBSD: Makefile,v 1.132 2009/01/19 07:08:27 jmmv Exp $
2#	from: @(#)Makefile	5.25.1.1 (Berkeley) 5/7/91
3
4.include <bsd.own.mk>
5
6SUBDIR=	csu libc .WAIT libarch \
7	libbsdmalloc libbluetooth libbz2 \
8	libcompat libcrypt \
9	libcurses libevent libintl libkvm libl libm \
10	libossaudio libpcap libpci libpmc libposix libprop libpthread \
11	libpthread_dbg libpuffs libresolv librmt librpcsvc librt libsdp \
12	libterm libusbhid libutil libwrap liby libz
13
14# libform and libmenu need libcurses
15SUBDIR+=	.WAIT libform libmenu 
16
17.if (${MKSKEY} != "no")
18SUBDIR+= libskey
19.endif
20
21# XXX Crypto bits must be done before libtelnet.
22
23.if (${MKCRYPTO} != "no")
24# OpenSSL libraries.
25SUBDIR+= libcrypto libdes
26
27.if (${MKCRYPTO_IDEA} != "no")
28SUBDIR+= libcrypto_idea
29.endif	# MKCRYPTO_IDEA != no
30
31.if (${MKCRYPTO_MDC2} != "no")
32SUBDIR+= libcrypto_mdc2
33.endif	# MKCRYPTO_MDC2 != no
34
35.if (${MKCRYPTO_RC5} != "no")
36SUBDIR+= libcrypto_rc5
37.endif	# MKCRYPTO_RC5 != no
38
39.endif	# MKCRYPTO != no
40
41.if (${MKKERBEROS} != "no")
42# Heimdal Kerberos 5 libraries
43SUBDIR+= .WAIT libroken libvers libcom_err .WAIT libasn1
44SUBDIR+= .WAIT libhx509
45
46.endif	# MKKERBEROS != no
47
48SUBDIR+=	libtelnet
49
50# IPv6/IPsec
51SUBDIR+=	libipsec
52
53# I18N modules
54SUBDIR+=	i18n_module
55
56
57#
58# Libraries that depend upon any listed previously
59# (and those that depend upon these [and ...])
60#
61#==================== 1st library dependency barrier ====================
62SUBDIR+=	.WAIT
63
64SUBDIR+=	libedit		# depends on libterm
65
66SUBDIR+=	libmagic	# depends on libz
67
68SUBDIR+=	libradius	# depends on libcrypto - only if ${MKCRYPTO}
69
70.if (${MKISCSI} != "no")
71SUBDIR+=	libiscsi	# depends on libpthread
72.endif
73
74.if (${MKCRYPTO} != "no")
75SUBDIR+=	libssl		# depends on libcrypto
76SUBDIR+=	libssh		# depends on libcrypto
77.endif
78
79.if (${MKKERBEROS} != "no")
80SUBDIR+=	libkrb5		# depends on libcrypto and more
81.endif
82
83SUBDIR+=	librefuse	# depends on libpuffs
84SUBDIR+=	librumpuser	# depends on libpthread
85
86# XXX These bind9/ISC libraries should depend on each other but the
87# XXX dependency ordering requires considerable investigation.
88# XXX Please preserve the order below so we know the order ISC links
89# XXX them in in their Makefiles.
90SUBDIR+= libbind9 libdns liblwres libisccfg libisccc libisc # dep. libpthread
91
92#==================== 2nd library dependency barrier ====================
93SUBDIR+=	.WAIT
94
95.if (${MKKERBEROS} != "no")
96# Heimdal Kerberos 5 libraries depending on libkrb5 and more
97SUBDIR+=	libheimntlm
98SUBDIR+=	.WAIT libgssapi libhdb
99SUBDIR+=	.WAIT libkadm5srv libkadm5clnt libkafs libsl libss
100.endif
101
102.if (${MKLDAP} != "no")
103				# depends on libcrypto - only if ${MKCRYPTO}
104SUBDIR+=	../external/bsd/openldap/lib
105.endif
106
107SUBDIR+=	librump		# depends on librumpuser
108
109#==================== 3rd library dependency barrier ====================
110SUBDIR+=	.WAIT
111
112.if (${MKPAM} != "no")
113SUBDIR+=	libpam		# depends on libkrb5, libkafs and more
114.endif
115
116SUBDIR+=	librumpnet	# depends on librump
117SUBDIR+=	librumpvfs	# depends on librump
118
119#==================== 4th library dependency barrier ====================
120SUBDIR+=	.WAIT
121SUBDIR+=	libukfs		# depends on librump and librumpvfs
122
123#==================== 5th library dependency barrier ====================
124SUBDIR+=	.WAIT
125SUBDIR+=	libp2k		# depends on libpuffs, librumpvfs and libukfs
126
127.include <bsd.subdir.mk>
128