Makefile revision 1.122
11.34Sknakahar#	$NetBSD: Makefile,v 1.122 2008/03/22 08:37:26 mlelstv Exp $
21.1Scgd#	from: @(#)Makefile	5.25.1.1 (Berkeley) 5/7/91
31.1Scgd
41.1Scgd.include <bsd.own.mk>
51.32Salnsn
61.20SrpauloSUBDIR=	csu libc .WAIT libarch libatf libbsdmalloc libbluetooth libbz2 \
71.34Sknakahar	libcompat libcrypt \
81.33Sknakahar	libcurses libevent libintl libkvm libl libm \
91.23Sthorpej	libossaudio libpcap libpci libpmc libposix libprop libpthread \
101.15Sitojun	libpthread_dbg libpuffs libresolv librmt librpcsvc librt libsdp \
111.25Sad	libterm libusbhid libutil libwrap liby libz
121.1Scgd
131.29Srmind# libform and libmenu need libcurses
141.26SpookaSUBDIR+=	.WAIT libform libmenu 
151.1Scgd
161.15Sitojun.if (${MKSKEY} != "no")
171.16SitojunSUBDIR+= libskey
18.endif
19
20# XXX Crypto bits must be done before libtelnet.
21
22.if (${MKCRYPTO} != "no")
23# OpenSSL libraries.
24SUBDIR+= libcrypto libdes
25
26.if (${MKCRYPTO_IDEA} != "no")
27SUBDIR+= libcrypto_idea
28.endif	# MKCRYPTO_IDEA != no
29
30.if (${MKCRYPTO_MDC2} != "no")
31SUBDIR+= libcrypto_mdc2
32.endif	# MKCRYPTO_MDC2 != no
33
34.if (${MKCRYPTO_RC5} != "no")
35SUBDIR+= libcrypto_rc5
36.endif	# MKCRYPTO_RC5 != no
37
38.endif	# MKCRYPTO != no
39
40.if (${MKKERBEROS} != "no")
41# Heimdal Kerberos 5 libraries
42SUBDIR+= .WAIT libroken libvers libcom_err .WAIT libasn1
43SUBDIR+= .WAIT libhx509
44
45.endif	# MKKERBEROS != no
46
47SUBDIR+=	libtelnet
48
49# IPv6/IPsec
50SUBDIR+=	libipsec
51
52# I18N modules
53SUBDIR+=	i18n_module
54
55
56#
57# Libraries that depend upon any listed previously
58# (and those that depend upon these [and ...])
59#
60#==================== 1st library dependency barrier ====================
61SUBDIR+=	.WAIT
62
63SUBDIR+=	libarchive	# depends on libbz2 and libz
64
65SUBDIR+=	libedit		# depends on libterm
66
67SUBDIR+=	libmagic	# depends on libz
68
69SUBDIR+=	libradius	# depends on libcrypto - only if ${MKCRYPTO}
70
71.if (${MKISCSI} != "no")
72SUBDIR+=	libiscsi	# depends on libpthread
73.endif
74
75.if (${MKCRYPTO} != "no")
76SUBDIR+=	libssl		# depends on libcrypto
77SUBDIR+=	libssh		# depends on libcrypto
78.endif
79
80.if (${MKKERBEROS} != "no")
81SUBDIR+=	libkrb5		# depends on libcrypto and more
82.endif
83
84.if (${MKPUFFS} != "no")
85SUBDIR+=	librefuse	# depends on libpuffs
86.endif
87
88# XXX These bind9/ISC libraries should depend on each other but the
89# XXX dependency ordering requires considerable investigation.
90# XXX Please preserve the order below so we know the order ISC links
91# XXX them in in their Makefiles.
92SUBDIR+= libbind9 libdns liblwres libisccfg libisccc libisc # dep. libpthread
93
94#==================== 2nd library dependency barrier ====================
95SUBDIR+=	.WAIT
96
97.if (${MKKERBEROS} != "no")
98# Heimdal Kerberos 5 libraries depending on libkrb5 and more
99SUBDIR+=	libheimntlm
100SUBDIR+=	.WAIT libgssapi libhdb
101SUBDIR+=	.WAIT libkadm5srv libkadm5clnt libkafs libsl libss
102.endif
103
104.if (${MKPAM} != "no")
105SUBDIR+=	.WAIT libpam		# depends on libkrb5, libkafs and more
106.endif
107
108.include <bsd.subdir.mk>
109