xref: /netbsd/lib/Makefile (revision 94f29ec6)
1#	$NetBSD: Makefile,v 1.180 2011/11/05 22:40:01 christos 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/tre/lib
62SUBDIR+=	../external/bsd/libdwarf/lib
63SUBDIR+=	../external/bsd/libelf/lib
64SUBDIR+=	../external/bsd/libevent/lib
65SUBDIR+=	../external/bsd/liblzf/lib
66SUBDIR+=	../external/bsd/libpcap/lib
67
68SUBDIR+=	../external/mit/lua/lib
69
70SUBDIR+=	../external/public-domain/sqlite/lib
71SUBDIR+=	../external/public-domain/xz/lib
72
73SUBDIR+=	../gnu/lib/libmalloc
74
75.if (${MKGCC} != "no")
76. if ${HAVE_GCC} == 4
77SUBDIR+=	../gnu/lib/libobjc4
78. else
79SUBDIR+=	../external/gpl3/gcc/lib/libobjc
80SUBDIR+=	../external/gpl3/gcc/lib/libgomp
81. endif
82. if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
83# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
84# specific build area, but we get better parallelism this way.
85SUBDIR+=	../external/lgpl3/gmp/lib/libgmp
86SUBDIR+=	../external/lgpl3/mpfr/lib/libmpfr
87SUBDIR+=	../external/lgpl2/mpc/lib/libmpc
88. endif
89.endif
90
91#
92# Libraries that depend upon any listed previously
93# (and those that depend upon these [and ...])
94#
95#==================== 1st library dependency barrier ====================
96SUBDIR+=	.WAIT
97
98SUBDIR+=	libcurses	# depends on libterminfo
99SUBDIR+=	libdm		# depends on libprop
100SUBDIR+=	libedit		# depends on libterminfo
101SUBDIR+=	libppath	# depends on libprop
102SUBDIR+=	libperfuse	# depends on libpuffs
103SUBDIR+=	libquota	# depends on libprop and librpcsvc
104SUBDIR+=	librefuse	# depends on libpuffs
105SUBDIR+=	librumpuser	# depends on libpthread
106SUBDIR+=	librumphijack	# depends on librumpclient and libpthread
107
108.if (${MKNPF} != "no")
109SUBDIR+=	libnpf		# depends on libprop
110.endif
111
112.if (${MKCRYPTO} != "no")
113SUBDIR+=	../crypto/external/bsd/openssl/lib # depends on libcrypt
114.endif
115
116SUBDIR+=	../external/bsd/file/lib	# depends on libz
117
118.if (${MKISCSI} != "no")
119SUBDIR+=	../external/bsd/iscsi/lib	# depends on libpthread
120.endif
121
122SUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
123
124.if (${MKLVM} != "no")
125SUBDIR+=	../external/gpl2/lvm2/lib	# depends on libprop
126.endif
127
128.if (${MKBINUTILS} != "no")
129SUBDIR+=	../external/gpl3/binutils/lib	# libbfd depends on libz
130.endif
131
132.if (${MKGCC} != "no" && ${MKCXX} != "no")
133. if ${HAVE_GCC} == 4
134SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
135SUBDIR+=	../gnu/lib/libsupc++4
136. else
137SUBDIR+=	../external/gpl3/gcc/lib/libstdc++-v3
138SUBDIR+=	../external/gpl3/gcc/lib/libsupc++
139. endif
140.endif
141
142#==================== 2nd library dependency barrier ====================
143SUBDIR+=	.WAIT
144
145SUBDIR+=	libform		# depends on libcurses
146SUBDIR+=	libmenu		# depends on libcurses
147SUBDIR+=	libradius	# depends on libcrypto if (${MKCRYPTO} != "no")
148SUBDIR+=	librump		# depends on librumpuser
149
150.if (${MKKERBEROS} != "no")
151SUBDIR+=	../crypto/external/bsd/heimdal/lib	# depends on libcrypto
152							# libedit, libterminfo,
153.endif
154
155.if (${MKCRYPTO} != "no")
156SUBDIR+=	../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
157SUBDIR+=	../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
158.endif
159
160SUBDIR+=	../external/bsd/bind/lib	# depends on libcrypto
161SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
162
163.if (${MKLDAP} != "no")
164SUBDIR+=	../external/bsd/openldap/lib	# depends on libcrypto, ...
165.endif
166
167#==================== 3rd library dependency barrier ====================
168SUBDIR+=	.WAIT
169
170SUBDIR+=	librumpdev	# depends on librump
171SUBDIR+=	librumpnet	# depends on librump
172SUBDIR+=	librumpvfs	# depends on librump
173
174.if (${MKPAM} != "no")
175SUBDIR+=	libpam		# depends on heimdal
176.endif
177
178.if (${MKCRYPTO} != "no")
179SUBDIR+=	../crypto/external/bsd/libsaslc	# depends on heimdal, openssl
180.endif
181
182#==================== 4th library dependency barrier ====================
183SUBDIR+=	.WAIT
184
185SUBDIR+=	libukfs		# depends on librumpvfs, librump
186
187#==================== 5th library dependency barrier ====================
188SUBDIR+=	.WAIT
189
190SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
191
192# Lua bindings come last, they might depend on anything
193SUBDIR+=	lua
194
195.include <bsd.subdir.mk>
196