Makefile revision 1.155
11.155Splunky#	$NetBSD: Makefile,v 1.155 2010/12/03 21:38:47 plunky Exp $
21.8Smycroft#	from: @(#)Makefile	5.25.1.1 (Berkeley) 5/7/91
31.21Scgd
41.62Sthorpej.include <bsd.own.mk>
51.62Sthorpej
61.155SplunkySUBDIR=		csu
71.155Splunky
81.155Splunky.if (${MKGCC} != "no")
91.155Splunky.if (${USE_COMPILERCRTSTUFF} == "yes")
101.155SplunkySUBDIR+=	../gnu/lib/crtstuff4
111.155Splunky.endif
121.155SplunkySUBDIR+=	../gnu/lib/libgcc4
131.155Splunky.endif
141.155Splunky
151.155SplunkySUBDIR+=	libc
161.155SplunkySUBDIR+=	.WAIT
171.155Splunky
181.155Splunky#
191.155Splunky# The SUBDIRs above are included here for completeness but should be built
201.155Splunky# and installed prior to make(dependall) in this file, as libraries listed
211.155Splunky# below will depend on versions from DESTDIR only.
221.155Splunky#
231.155Splunky
241.155SplunkySUBDIR+=libarch \
251.123Sjmmv	libbsdmalloc libbluetooth libbz2 \
261.105Sgdamore	libcompat libcrypt \
271.149Sroy	libintl libkvm libm \
281.121Sjoerg	libossaudio libpcap libpci libpmc libposix libprop libpthread \
291.137Splunky	libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
301.153Spooka	librumpclient libterminfo libusbhid libutil libwrap liby libz
311.60Sthorpej
321.155Splunky.if (${MKMDNS} != "no")
331.155SplunkySUBDIR+=	../external/apache2/mDNSResponder/lib
341.155Splunky.endif
351.155Splunky
361.155SplunkySUBDIR+=	../external/bsd/am-utils/lib
371.155Splunky
381.155Splunky.if (${MKATF} != "no")
391.155SplunkySUBDIR+=	../external/bsd/atf/lib
401.155Splunky.endif
411.155Splunky
421.155SplunkySUBDIR+=	../external/bsd/flex/lib
431.155SplunkySUBDIR+=	../external/bsd/libdwarf/lib
441.155SplunkySUBDIR+=	../external/bsd/libelf/lib
451.155SplunkySUBDIR+=	../external/bsd/libevent/lib
461.155Splunky
471.155SplunkySUBDIR+=	../external/mit/lua/lib
481.155Splunky
491.155SplunkySUBDIR+=	../external/public-domain/xz/lib
501.155Splunky
511.155SplunkySUBDIR+=	../gnu/lib/libmalloc
521.155Splunky
531.155Splunky.if (${MKGCC} != "no")
541.155SplunkySUBDIR+=	../gnu/lib/libobjc4
551.155Splunky.endif
561.144Schristos
571.149Sroy# libcurses needs libtermlib
581.149SroySUBDIR+=	.WAIT libcurses
591.149Sroy
601.121Sjoerg# libform and libmenu need libcurses
611.121SjoergSUBDIR+=	.WAIT libform libmenu 
621.121Sjoerg
631.76Sthorpej.if (${MKSKEY} != "no")
641.76SthorpejSUBDIR+= libskey
651.76Sthorpej.endif
661.76Sthorpej
671.61Sthorpej# XXX Crypto bits must be done before libtelnet.
681.61Sthorpej
691.62Sthorpej.if (${MKCRYPTO} != "no")
701.141SchristosSUBDIR+=	../crypto/external/bsd/openssl/lib
711.62Sthorpej.endif	# MKCRYPTO != no
721.76Sthorpej
731.76Sthorpej.if (${MKKERBEROS} != "no")
741.76Sthorpej# Heimdal Kerberos 5 libraries
751.114SmrgSUBDIR+= .WAIT libroken libvers libcom_err .WAIT libasn1
761.122SmlelstvSUBDIR+= .WAIT libhx509
771.76Sthorpej
781.88Sdyoung.endif	# MKKERBEROS != no
791.54Sthorpej
801.30SmikelSUBDIR+=	libtelnet
811.53Sitojun
821.53Sitojun# IPv6/IPsec
831.53SitojunSUBDIR+=	libipsec
841.70Sitojun
851.75Stshiozak# I18N modules
861.75StshiozakSUBDIR+=	i18n_module
871.1Scgd
881.89Slukem
891.89Slukem#
901.89Slukem# Libraries that depend upon any listed previously
911.93Slukem# (and those that depend upon these [and ...])
921.89Slukem#
931.97Schristos#==================== 1st library dependency barrier ====================
941.97SchristosSUBDIR+=	.WAIT
951.97Schristos
961.97SchristosSUBDIR+=	libedit		# depends on libterm
971.97Schristos
981.98SchristosSUBDIR+=	libradius	# depends on libcrypto - only if ${MKCRYPTO}
991.98Schristos
1001.97Schristos
1011.89Slukem.if (${MKKERBEROS} != "no")
1021.97SchristosSUBDIR+=	libkrb5		# depends on libcrypto and more
1031.89Slukem.endif
1041.97Schristos
1051.113SpookaSUBDIR+=	librefuse	# depends on libpuffs
1061.126SpookaSUBDIR+=	librumpuser	# depends on libpthread
1071.126Spooka
1081.148Smrg.if (${MKCRYPTO} != "no")
1091.139Smrg# these depend on libcrypto*, libz and libbz2
1101.139SmrgSUBDIR+=	../crypto/external/bsd/openssh/lib
1111.150SchristosSUBDIR+=	../crypto/external/bsd/netpgp/libmj
1121.151SagcSUBDIR+=	.WAIT
1131.139SmrgSUBDIR+=	../crypto/external/bsd/netpgp/lib
1141.148Smrg.endif
1151.139Smrg
1161.155SplunkySUBDIR+=	../external/bsd/bind/lib	# depends on libcrypto
1171.155SplunkySUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
1181.155SplunkySUBDIR+=	../external/bsd/file/lib	# depends on libz
1191.155Splunky
1201.155Splunky.if (${MKISCSI} != "no")
1211.155SplunkySUBDIR+=	../external/bsd/iscsi/lib	# depends on libpthread
1221.155Splunky.endif
1231.155Splunky
1241.155SplunkySUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
1251.155Splunky
1261.154Schristos.if (${MKLDAP} != "no")
1271.154SchristosSUBDIR+=	../external/bsd/openldap/lib
1281.154Schristos.endif
1291.154Schristos
1301.155Splunky.if (${MKBINUTILS} != "no")
1311.155SplunkySUBDIR+=	../external/gpl3/binutils/lib	# libbfd depends on libz
1321.155Splunky.endif
1331.155Splunky
1341.155Splunky.if (${MKGCC} != "no" && ${MKCXX} != "no")
1351.155SplunkySUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
1361.155SplunkySUBDIR+=	../gnu/lib/libsupc++4
1371.155Splunky.endif
1381.155Splunky
1391.97Schristos#==================== 2nd library dependency barrier ====================
1401.97SchristosSUBDIR+=	.WAIT
1411.97Schristos
1421.100Schristos.if (${MKKERBEROS} != "no")
1431.100Schristos# Heimdal Kerberos 5 libraries depending on libkrb5 and more
1441.122SmlelstvSUBDIR+=	libheimntlm
1451.122SmlelstvSUBDIR+=	.WAIT libgssapi libhdb
1461.122SmlelstvSUBDIR+=	.WAIT libkadm5srv libkadm5clnt libkafs libsl libss
1471.100Schristos.endif
1481.100Schristos
1491.126SpookaSUBDIR+=	librump		# depends on librumpuser
1501.124Slukem
1511.124Slukem#==================== 3rd library dependency barrier ====================
1521.124SlukemSUBDIR+=	.WAIT
1531.124Slukem
1541.94She.if (${MKPAM} != "no")
1551.124SlukemSUBDIR+=	libpam		# depends on libkrb5, libkafs and more
1561.94She.endif
1571.92Slukem
1581.148Smrg.if (${MKCRYPTO} != "no")
1591.142SpookaSUBDIR+=	librumpcrypto	# depends on librump
1601.148Smrg.endif
1611.143SpookaSUBDIR+=	librumpdev	# depends on librump
1621.128SpookaSUBDIR+=	librumpnet	# depends on librump
1631.130SpookaSUBDIR+=	librumpvfs	# depends on librump
1641.126Spooka
1651.126Spooka#==================== 4th library dependency barrier ====================
1661.126SpookaSUBDIR+=	.WAIT
1671.131SpookaSUBDIR+=	libukfs		# depends on librump and librumpvfs
1681.131Spooka
1691.131Spooka#==================== 5th library dependency barrier ====================
1701.131SpookaSUBDIR+=	.WAIT
1711.131SpookaSUBDIR+=	libp2k		# depends on libpuffs, librumpvfs and libukfs
1721.126Spooka
1731.1Scgd.include <bsd.subdir.mk>
174