Makefile revision 1.125
11.125Sgmcgarry#	$NetBSD: Makefile,v 1.125 2008/07/12 12:20:08 gmcgarry 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.117SjoergSUBDIR+=	libarchive	# depends on libbz2 and libz
691.117Sjoerg
701.97SchristosSUBDIR+=	libedit		# depends on libterm
711.97Schristos
721.108StronSUBDIR+=	libmagic	# depends on libz
731.108Stron
741.98SchristosSUBDIR+=	libradius	# depends on libcrypto - only if ${MKCRYPTO}
751.98Schristos
761.106Smrg.if (${MKISCSI} != "no")
771.99SagcSUBDIR+=	libiscsi	# depends on libpthread
781.106Smrg.endif
791.99Sagc
801.89Slukem.if (${MKCRYPTO} != "no")
811.97SchristosSUBDIR+=	libssl		# depends on libcrypto
821.97SchristosSUBDIR+=	libssh		# depends on libcrypto
831.89Slukem.endif
841.97Schristos
851.89Slukem.if (${MKKERBEROS} != "no")
861.97SchristosSUBDIR+=	libkrb5		# depends on libcrypto and more
871.89Slukem.endif
881.97Schristos
891.113Spooka.if (${MKPUFFS} != "no")
901.113SpookaSUBDIR+=	librefuse	# depends on libpuffs
911.113Spooka.endif
921.113Spooka
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.124Slukem
1151.124Slukem#==================== 3rd library dependency barrier ====================
1161.124SlukemSUBDIR+=	.WAIT
1171.124Slukem
1181.94She.if (${MKPAM} != "no")
1191.124SlukemSUBDIR+=	libpam		# depends on libkrb5, libkafs and more
1201.94She.endif
1211.92Slukem
1221.1Scgd.include <bsd.subdir.mk>
123