xref: /netbsd/lib/Makefile (revision 9f915455)
1#	$NetBSD: Makefile,v 1.172 2011/07/07 07:37:17 matt Exp $
2#	from: @(#)Makefile	5.25.1.1 (Berkeley) 5/7/91
3
4.include <bsd.own.mk>
5
6SUBDIR=		csu
7
8.if (${MKGCC} != "no")
9. if ${HAVE_GCC} == 4
10.  if (${USE_COMPILERCRTSTUFF} == "yes")
11SUBDIR+=	../gnu/lib/crtstuff4
12.  endif
13SUBDIR+=	../gnu/lib/libgcc4
14. else
15.  if (${USE_COMPILERCRTSTUFF} == "yes")
16SUBDIR+=	../external/gpl3/gcc/lib/crtstuff
17.  endif
18SUBDIR+=	../external/gpl3/gcc/lib/libgcc
19. endif
20.endif
21
22SUBDIR+=	libc
23SUBDIR+=	.WAIT
24
25#
26# The SUBDIRs above are included here for completeness but should be built
27# and installed prior to make(dependall) in this file, as libraries listed
28# below will depend on versions from DESTDIR only.
29#
30
31SUBDIR+=	i18n_module
32
33SUBDIR+=	libarch \
34		libbluetooth libbsdmalloc libbz2 \
35		libcompat libcrypt \
36		libintl libipsec libisns libkvm libm \
37		libossaudio libpci libpmc libposix libprop libpthread \
38		libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
39		librumpclient libtelnet libterminfo \
40		libusbhid libutil libwrap liby libz
41
42.if (${MKSKEY} != "no")
43SUBDIR+=	libskey
44.endif
45
46.if (${MKCRYPTO} != "no")
47SUBDIR+=	../crypto/external/bsd/netpgp/libmj
48.endif
49
50.if (${MKMDNS} != "no")
51SUBDIR+=	../external/apache2/mDNSResponder/lib
52.endif
53
54SUBDIR+=	../external/bsd/am-utils/lib
55
56.if (${MKATF} != "no")
57SUBDIR+=	../external/bsd/atf/lib
58.endif
59
60SUBDIR+=	../external/bsd/flex/lib
61SUBDIR+=	../external/bsd/libdwarf/lib
62SUBDIR+=	../external/bsd/libelf/lib
63SUBDIR+=	../external/bsd/libevent/lib
64SUBDIR+=	../external/bsd/liblzf/lib
65SUBDIR+=	../external/bsd/libpcap/lib
66
67SUBDIR+=	../external/mit/lua/lib
68
69SUBDIR+=	../external/public-domain/xz/lib
70
71SUBDIR+=	../gnu/lib/libmalloc
72
73.if (${MKGCC} != "no")
74. if ${HAVE_GCC} == 4
75SUBDIR+=	../gnu/lib/libobjc4
76. else
77SUBDIR+=	../external/gpl3/gcc/lib/libobjc
78. endif
79.endif
80
81.if ${HAVE_GCC} >= 45
82SUBDIR+=	../external/lgpl3/gmp/lib/libgmp
83.endif
84
85#
86# Libraries that depend upon any listed previously
87# (and those that depend upon these [and ...])
88#
89#==================== 1st library dependency barrier ====================
90SUBDIR+=	.WAIT
91
92SUBDIR+=	libcurses	# depends on libterminfo
93SUBDIR+=	libdm		# depends on libprop
94SUBDIR+=	libedit		# depends on libterminfo
95SUBDIR+=	libquota	# depends on libprop and librpcsvc
96SUBDIR+=	librefuse	# depends on libpuffs
97SUBDIR+=	libperfuse	# depends on libpuffs
98SUBDIR+=	librumpuser	# depends on libpthread
99
100.if (${MKNPF} != "no")
101SUBDIR+=	libnpf		# depends on libprop
102.endif
103
104.if (${MKCRYPTO} != "no")
105SUBDIR+=	../crypto/external/bsd/openssl/lib # depends on libcrypt
106.endif
107
108SUBDIR+=	../external/bsd/file/lib	# depends on libz
109
110.if (${MKISCSI} != "no")
111SUBDIR+=	../external/bsd/iscsi/lib	# depends on libpthread
112.endif
113
114SUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
115
116.if (${MKLVM} != "no")
117SUBDIR+=	../external/gpl2/lvm2/lib	# depends on libprop
118.endif
119
120.if (${MKBINUTILS} != "no")
121SUBDIR+=	../external/gpl3/binutils/lib	# libbfd depends on libz
122.endif
123
124.if (${MKGCC} != "no" && ${MKCXX} != "no")
125. if ${HAVE_GCC} == 4
126SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
127SUBDIR+=	../gnu/lib/libsupc++4
128. else
129SUBDIR+=	../external/gpl3/gcc/lib/libstdc++-v3
130SUBDIR+=	../external/gpl3/gcc/lib/libsupc++
131. endif
132.endif
133
134.if ${HAVE_GCC} >= 45
135SUBDIR+=	../external/lgpl3/mpfr/lib/libmpfr
136.endif
137
138#==================== 2nd library dependency barrier ====================
139SUBDIR+=	.WAIT
140
141SUBDIR+=	libform		# depends on libcurses
142
143.if (${MKKERBEROS} != "no")
144SUBDIR+=	../crypto/external/bsd/heimdal/lib	# depends on libcrypto
145							# libedit, libterminfo,
146.endif
147
148SUBDIR+=	libmenu		# depends on libcurses
149SUBDIR+=	libradius	# depends on libcrypto if (${MKCRYPTO} != "no")
150SUBDIR+=	librump		# depends on librumpuser
151
152.if (${MKCRYPTO} != "no")
153SUBDIR+=	../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
154SUBDIR+=	../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
155.endif
156
157SUBDIR+=	../external/bsd/bind/lib	# depends on libcrypto
158SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
159
160.if (${MKLDAP} != "no")
161SUBDIR+=	../external/bsd/openldap/lib	# depends on libcrypto, ...
162.endif
163
164SUBDIR+=	librumphijack
165
166.if ${HAVE_GCC} >= 45
167SUBDIR+=	../external/lgpl2/mpc/lib/libmpc
168.endif
169
170#==================== 3rd library dependency barrier ====================
171SUBDIR+=	.WAIT
172
173SUBDIR+=	librumpdev	# depends on librump
174SUBDIR+=	librumpnet	# depends on librump
175SUBDIR+=	librumpvfs	# depends on librump
176
177#==================== 4th library dependency barrier ====================
178SUBDIR+=	.WAIT
179
180SUBDIR+=	libukfs		# depends on librumpvfs, librump
181
182#==================== 5th library dependency barrier ====================
183SUBDIR+=	.WAIT
184
185SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
186
187.if (${MKPAM} != "no")
188SUBDIR+=	libpam		# depends on libkafs, libkrb5, ...
189.endif
190
191#==================== 6th library dependency barrier ====================
192SUBDIR+=	.WAIT
193
194.if (${MKCRYPTO} != "no")
195SUBDIR+=	../crypto/external/bsd/libsaslc		# depends on gssapi
196.endif
197
198.include <bsd.subdir.mk>
199