Makefile revision 1.128
11.128Spooka#	$NetBSD: Makefile,v 1.128 2008/10/16 09:44:12 pooka Exp $
21.8Smycroft#	from: @(#)Makefile	5.25.1.1 (Berkeley) 5/7/91
31.21Scgd
41.62Sthorpej.include <bsd.own.mk>
51.62Sthorpej
61.125SgmcgarrySUBDIR=	csu libc .WAIT libarch \
71.123Sjmmv	libbsdmalloc libbluetooth libbz2 \
81.105Sgdamore	libcompat libcrypt \
91.121Sjoerg	libcurses libevent libintl libkvm libl libm \
101.121Sjoerg	libossaudio libpcap libpci libpmc libposix libprop libpthread \
111.115Stls	libpthread_dbg libpuffs libresolv librmt librpcsvc librt libsdp \
121.109Spooka	libterm libusbhid libutil libwrap liby libz
131.60Sthorpej
141.125Sgmcgarry.if (${MKATF} != "no")
151.125SgmcgarrySUBDIR+= libatf-c libatf-c++
161.125Sgmcgarry.endif
171.125Sgmcgarry
181.121Sjoerg# libform and libmenu need libcurses
191.121SjoergSUBDIR+=	.WAIT libform libmenu 
201.121Sjoerg
211.76Sthorpej.if (${MKSKEY} != "no")
221.76SthorpejSUBDIR+= libskey
231.76Sthorpej.endif
241.76Sthorpej
251.61Sthorpej# XXX Crypto bits must be done before libtelnet.
261.61Sthorpej
271.62Sthorpej.if (${MKCRYPTO} != "no")
281.86Sitojun# OpenSSL libraries.
291.89SlukemSUBDIR+= libcrypto libdes
301.17Sthorpej
311.64Sitojun.if (${MKCRYPTO_IDEA} != "no")
321.64SitojunSUBDIR+= libcrypto_idea
331.64Sitojun.endif	# MKCRYPTO_IDEA != no
341.78Sitojun
351.78Sitojun.if (${MKCRYPTO_MDC2} != "no")
361.78SitojunSUBDIR+= libcrypto_mdc2
371.78Sitojun.endif	# MKCRYPTO_MDC2 != no
381.64Sitojun
391.64Sitojun.if (${MKCRYPTO_RC5} != "no")
401.64SitojunSUBDIR+= libcrypto_rc5
411.64Sitojun.endif	# MKCRYPTO_RC5 != no
421.64Sitojun
431.62Sthorpej.endif	# MKCRYPTO != no
441.76Sthorpej
451.76Sthorpej.if (${MKKERBEROS} != "no")
461.76Sthorpej# Heimdal Kerberos 5 libraries
471.114SmrgSUBDIR+= .WAIT libroken libvers libcom_err .WAIT libasn1
481.122SmlelstvSUBDIR+= .WAIT libhx509
491.76Sthorpej
501.88Sdyoung.endif	# MKKERBEROS != no
511.54Sthorpej
521.30SmikelSUBDIR+=	libtelnet
531.53Sitojun
541.53Sitojun# IPv6/IPsec
551.53SitojunSUBDIR+=	libipsec
561.70Sitojun
571.75Stshiozak# I18N modules
581.75StshiozakSUBDIR+=	i18n_module
591.1Scgd
601.89Slukem
611.89Slukem#
621.89Slukem# Libraries that depend upon any listed previously
631.93Slukem# (and those that depend upon these [and ...])
641.89Slukem#
651.97Schristos#==================== 1st library dependency barrier ====================
661.97SchristosSUBDIR+=	.WAIT
671.97Schristos
681.97SchristosSUBDIR+=	libedit		# depends on libterm
691.97Schristos
701.108StronSUBDIR+=	libmagic	# depends on libz
711.108Stron
721.98SchristosSUBDIR+=	libradius	# depends on libcrypto - only if ${MKCRYPTO}
731.98Schristos
741.106Smrg.if (${MKISCSI} != "no")
751.99SagcSUBDIR+=	libiscsi	# depends on libpthread
761.106Smrg.endif
771.99Sagc
781.89Slukem.if (${MKCRYPTO} != "no")
791.97SchristosSUBDIR+=	libssl		# depends on libcrypto
801.97SchristosSUBDIR+=	libssh		# depends on libcrypto
811.89Slukem.endif
821.97Schristos
831.89Slukem.if (${MKKERBEROS} != "no")
841.97SchristosSUBDIR+=	libkrb5		# depends on libcrypto and more
851.89Slukem.endif
861.97Schristos
871.113Spooka.if (${MKPUFFS} != "no")
881.113SpookaSUBDIR+=	librefuse	# depends on libpuffs
891.113Spooka.endif
901.113Spooka
911.126SpookaSUBDIR+=	librumpuser	# depends on libpthread
921.126Spooka
931.119Stls# XXX These bind9/ISC libraries should depend on each other but the
941.119Stls# XXX dependency ordering requires considerable investigation.
951.119Stls# XXX Please preserve the order below so we know the order ISC links
961.119Stls# XXX them in in their Makefiles.
971.119StlsSUBDIR+= libbind9 libdns liblwres libisccfg libisccc libisc # dep. libpthread
981.119Stls
991.97Schristos#==================== 2nd library dependency barrier ====================
1001.97SchristosSUBDIR+=	.WAIT
1011.97Schristos
1021.100Schristos.if (${MKKERBEROS} != "no")
1031.100Schristos# Heimdal Kerberos 5 libraries depending on libkrb5 and more
1041.122SmlelstvSUBDIR+=	libheimntlm
1051.122SmlelstvSUBDIR+=	.WAIT libgssapi libhdb
1061.122SmlelstvSUBDIR+=	.WAIT libkadm5srv libkadm5clnt libkafs libsl libss
1071.100Schristos.endif
1081.100Schristos
1091.124Slukem.if (${MKLDAP} != "no")
1101.124Slukem				# depends on libcrypto - only if ${MKCRYPTO}
1111.124SlukemSUBDIR+=	../external/bsd/openldap/lib
1121.124Slukem.endif
1131.124Slukem
1141.126SpookaSUBDIR+=	librump		# depends on librumpuser
1151.124Slukem
1161.124Slukem#==================== 3rd library dependency barrier ====================
1171.124SlukemSUBDIR+=	.WAIT
1181.124Slukem
1191.94She.if (${MKPAM} != "no")
1201.124SlukemSUBDIR+=	libpam		# depends on libkrb5, libkafs and more
1211.94She.endif
1221.92Slukem
1231.128SpookaSUBDIR+=	librumpnet	# depends on librump
1241.126SpookaSUBDIR+=	libukfs		# depends on librump
1251.126Spooka
1261.126Spooka#==================== 4th library dependency barrier ====================
1271.126Spooka.if (${MKPUFFS} != "no")
1281.126SpookaSUBDIR+=	.WAIT
1291.126SpookaSUBDIR+=	libp2k		# depends on libpuffs and libukfs
1301.126Spooka.endif
1311.126Spooka
1321.1Scgd.include <bsd.subdir.mk>
133