xref: /netbsd-src/lib/Makefile (revision 96230fab84e26a6435963032070e916a951a8b2e)
1#	$NetBSD: Makefile,v 1.128 2008/10/16 09:44:12 pooka 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.if (${MKATF} != "no")
15SUBDIR+= libatf-c libatf-c++
16.endif
17
18# libform and libmenu need libcurses
19SUBDIR+=	.WAIT libform libmenu
20
21.if (${MKSKEY} != "no")
22SUBDIR+= libskey
23.endif
24
25# XXX Crypto bits must be done before libtelnet.
26
27.if (${MKCRYPTO} != "no")
28# OpenSSL libraries.
29SUBDIR+= libcrypto libdes
30
31.if (${MKCRYPTO_IDEA} != "no")
32SUBDIR+= libcrypto_idea
33.endif	# MKCRYPTO_IDEA != no
34
35.if (${MKCRYPTO_MDC2} != "no")
36SUBDIR+= libcrypto_mdc2
37.endif	# MKCRYPTO_MDC2 != no
38
39.if (${MKCRYPTO_RC5} != "no")
40SUBDIR+= libcrypto_rc5
41.endif	# MKCRYPTO_RC5 != no
42
43.endif	# MKCRYPTO != no
44
45.if (${MKKERBEROS} != "no")
46# Heimdal Kerberos 5 libraries
47SUBDIR+= .WAIT libroken libvers libcom_err .WAIT libasn1
48SUBDIR+= .WAIT libhx509
49
50.endif	# MKKERBEROS != no
51
52SUBDIR+=	libtelnet
53
54# IPv6/IPsec
55SUBDIR+=	libipsec
56
57# I18N modules
58SUBDIR+=	i18n_module
59
60
61#
62# Libraries that depend upon any listed previously
63# (and those that depend upon these [and ...])
64#
65#==================== 1st library dependency barrier ====================
66SUBDIR+=	.WAIT
67
68SUBDIR+=	libedit		# depends on libterm
69
70SUBDIR+=	libmagic	# depends on libz
71
72SUBDIR+=	libradius	# depends on libcrypto - only if ${MKCRYPTO}
73
74.if (${MKISCSI} != "no")
75SUBDIR+=	libiscsi	# depends on libpthread
76.endif
77
78.if (${MKCRYPTO} != "no")
79SUBDIR+=	libssl		# depends on libcrypto
80SUBDIR+=	libssh		# depends on libcrypto
81.endif
82
83.if (${MKKERBEROS} != "no")
84SUBDIR+=	libkrb5		# depends on libcrypto and more
85.endif
86
87.if (${MKPUFFS} != "no")
88SUBDIR+=	librefuse	# depends on libpuffs
89.endif
90
91SUBDIR+=	librumpuser	# depends on libpthread
92
93# XXX These bind9/ISC libraries should depend on each other but the
94# XXX dependency ordering requires considerable investigation.
95# XXX Please preserve the order below so we know the order ISC links
96# XXX them in in their Makefiles.
97SUBDIR+= libbind9 libdns liblwres libisccfg libisccc libisc # dep. libpthread
98
99#==================== 2nd library dependency barrier ====================
100SUBDIR+=	.WAIT
101
102.if (${MKKERBEROS} != "no")
103# Heimdal Kerberos 5 libraries depending on libkrb5 and more
104SUBDIR+=	libheimntlm
105SUBDIR+=	.WAIT libgssapi libhdb
106SUBDIR+=	.WAIT libkadm5srv libkadm5clnt libkafs libsl libss
107.endif
108
109.if (${MKLDAP} != "no")
110				# depends on libcrypto - only if ${MKCRYPTO}
111SUBDIR+=	../external/bsd/openldap/lib
112.endif
113
114SUBDIR+=	librump		# depends on librumpuser
115
116#==================== 3rd library dependency barrier ====================
117SUBDIR+=	.WAIT
118
119.if (${MKPAM} != "no")
120SUBDIR+=	libpam		# depends on libkrb5, libkafs and more
121.endif
122
123SUBDIR+=	librumpnet	# depends on librump
124SUBDIR+=	libukfs		# depends on librump
125
126#==================== 4th library dependency barrier ====================
127.if (${MKPUFFS} != "no")
128SUBDIR+=	.WAIT
129SUBDIR+=	libp2k		# depends on libpuffs and libukfs
130.endif
131
132.include <bsd.subdir.mk>
133