2015-09-17 05:00:33 +03:00
|
|
|
# $NetBSD: Makefile,v 1.227 2015/09/17 02:00:33 christos Exp $
|
1993-08-01 09:37:30 +04:00
|
|
|
# from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2000-06-23 10:01:10 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2012-08-17 20:22:27 +04:00
|
|
|
SUBDIR= csu .WAIT
|
2010-12-04 00:38:46 +03:00
|
|
|
|
|
|
|
.if (${MKGCC} != "no")
|
2014-02-26 13:54:32 +04:00
|
|
|
SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgcc .WAIT
|
2010-12-04 00:38:46 +03:00
|
|
|
.endif
|
|
|
|
|
|
|
|
SUBDIR+= libc
|
|
|
|
SUBDIR+= .WAIT
|
|
|
|
|
|
|
|
#
|
|
|
|
# The SUBDIRs above are included here for completeness but should be built
|
|
|
|
# and installed prior to make(dependall) in this file, as libraries listed
|
|
|
|
# below will depend on versions from DESTDIR only.
|
|
|
|
#
|
|
|
|
|
2010-12-12 15:09:51 +03:00
|
|
|
SUBDIR+= i18n_module
|
1996-03-10 08:45:38 +03:00
|
|
|
|
2010-12-12 15:09:51 +03:00
|
|
|
SUBDIR+= libarch \
|
|
|
|
libbluetooth libbsdmalloc libbz2 \
|
2012-05-27 06:19:50 +04:00
|
|
|
libcompat libcrypt \
|
2013-09-12 03:04:09 +04:00
|
|
|
libintl libipsec libkvm libm \
|
2010-12-12 15:09:51 +03:00
|
|
|
libossaudio libpci libpmc libposix libprop libpthread \
|
|
|
|
libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
|
2012-08-08 18:01:16 +04:00
|
|
|
libtelnet libterminfo \
|
2010-12-12 15:09:51 +03:00
|
|
|
libusbhid libutil libwrap liby libz
|
|
|
|
|
2013-08-21 07:18:05 +04:00
|
|
|
.if !defined(BSD_MK_COMPAT_FILE)
|
|
|
|
SUBDIR+= libkern
|
|
|
|
.endif
|
|
|
|
|
2015-07-08 04:08:24 +03:00
|
|
|
.if (${MACHINE_CPU} == "arm" || ${MACHINE_CPU} == "aarch64")
|
2013-04-27 12:43:19 +04:00
|
|
|
LIBC_MACHINE_ARCH?=${MACHINE_ARCH}
|
|
|
|
.if empty(LIBC_MACHINE_ARCH:M*hf*)
|
2013-01-28 22:57:09 +04:00
|
|
|
SUBDIR+= libc_vfp
|
|
|
|
.endif
|
2013-04-27 12:43:19 +04:00
|
|
|
.endif
|
2012-08-08 18:01:16 +04:00
|
|
|
.if (${MKRUMP} != "no")
|
|
|
|
SUBDIR+= librumpclient
|
|
|
|
.endif
|
2010-12-12 15:09:51 +03:00
|
|
|
.if (${MKSKEY} != "no")
|
|
|
|
SUBDIR+= libskey
|
|
|
|
.endif
|
|
|
|
|
2010-12-04 00:38:46 +03:00
|
|
|
.if (${MKMDNS} != "no")
|
|
|
|
SUBDIR+= ../external/apache2/mDNSResponder/lib
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SUBDIR+= ../external/bsd/am-utils/lib
|
2015-01-25 18:47:19 +03:00
|
|
|
SUBDIR+= ../external/bsd/blacklist/lib
|
2010-12-04 00:38:46 +03:00
|
|
|
|
|
|
|
SUBDIR+= ../external/bsd/flex/lib
|
2011-11-06 02:40:01 +04:00
|
|
|
SUBDIR+= ../external/bsd/tre/lib
|
2014-03-09 21:09:20 +04:00
|
|
|
SUBDIR+= ../external/bsd/elftoolchain/lib/libelf
|
2011-02-10 23:57:22 +03:00
|
|
|
SUBDIR+= ../external/bsd/liblzf/lib
|
2010-12-12 15:09:51 +03:00
|
|
|
SUBDIR+= ../external/bsd/libpcap/lib
|
2010-12-04 00:38:46 +03:00
|
|
|
|
2014-05-09 12:36:09 +04:00
|
|
|
.if ${MKSLJIT} != "no"
|
|
|
|
SUBDIR+= ../external/bsd/sljit/lib
|
|
|
|
SUBDIR+= libbpfjit
|
|
|
|
.endif
|
|
|
|
|
2015-06-23 19:33:21 +03:00
|
|
|
.if ${MKDTRACE} != "no"
|
|
|
|
SUBDIR+= ../external/cddl/osnet/lib/libdtrace
|
|
|
|
.endif
|
|
|
|
|
2015-06-22 09:03:20 +03:00
|
|
|
.if (${MKZFS} != "no")
|
|
|
|
SUBDIR+= ../external/cddl/osnet/lib/libavl
|
|
|
|
SUBDIR+= ../external/cddl/osnet/lib/libnvpair
|
|
|
|
SUBDIR+= ../external/cddl/osnet/lib/libumem
|
|
|
|
SUBDIR+= ../external/cddl/osnet/lib/libuutil
|
|
|
|
.endif
|
|
|
|
|
2012-03-01 00:07:51 +04:00
|
|
|
SUBDIR+= ../external/mit/expat/lib
|
2010-12-04 00:38:46 +03:00
|
|
|
|
2011-10-14 02:08:16 +04:00
|
|
|
SUBDIR+= ../external/public-domain/sqlite/lib
|
2010-12-04 00:38:46 +03:00
|
|
|
|
|
|
|
SUBDIR+= ../gnu/lib/libmalloc
|
|
|
|
|
|
|
|
.if (${MKGCC} != "no")
|
2014-02-26 13:54:32 +04:00
|
|
|
SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc
|
|
|
|
SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp
|
2015-06-22 03:06:38 +03:00
|
|
|
SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libmudflap
|
|
|
|
SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libmudflapth
|
2011-07-21 07:13:30 +04:00
|
|
|
# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
|
|
|
|
# specific build area, but we get better parallelism this way.
|
2014-06-13 05:17:45 +04:00
|
|
|
# We don't build compat versions of these.
|
|
|
|
. if !defined(MLIBDIR)
|
2011-07-07 11:37:17 +04:00
|
|
|
SUBDIR+= ../external/lgpl3/gmp/lib/libgmp
|
2011-08-21 02:16:56 +04:00
|
|
|
SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr
|
2013-11-28 16:08:56 +04:00
|
|
|
SUBDIR+= ../external/lgpl3/mpc/lib/libmpc
|
2011-08-21 02:16:56 +04:00
|
|
|
. endif
|
2010-12-04 00:38:46 +03:00
|
|
|
.endif
|
2009-10-26 04:18:46 +03:00
|
|
|
|
2004-07-30 11:02:53 +04:00
|
|
|
#
|
|
|
|
# Libraries that depend upon any listed previously
|
2005-01-03 09:00:12 +03:00
|
|
|
# (and those that depend upon these [and ...])
|
2004-07-30 11:02:53 +04:00
|
|
|
#
|
2005-06-03 18:28:07 +04:00
|
|
|
#==================== 1st library dependency barrier ====================
|
|
|
|
SUBDIR+= .WAIT
|
|
|
|
|
2015-09-17 05:00:33 +03:00
|
|
|
.if ${MKDTRACE} != "no" || ${MKCTF} != "no"
|
|
|
|
SUBDIR+= ../external/cddl/osnet/lib/libctf
|
|
|
|
.endif
|
|
|
|
|
2015-04-18 01:17:23 +03:00
|
|
|
SUBDIR+= ../external/public-domain/xz/lib # depends on libpthread
|
|
|
|
|
2013-10-04 00:02:58 +04:00
|
|
|
.if (${MKCRYPTO} != "no")
|
|
|
|
SUBDIR+= ../crypto/external/bsd/netpgp/libmj
|
|
|
|
SUBDIR+= ../crypto/external/bsd/netpgp/lib/verify # depends on libz
|
|
|
|
.endif
|
|
|
|
|
2014-03-09 21:09:20 +04:00
|
|
|
SUBDIR+= ../external/bsd/elftoolchain/lib/libdwarf # depends on libelf
|
2013-10-04 00:02:58 +04:00
|
|
|
SUBDIR+= ../external/mit/lua/lib # depends on libm
|
2010-12-12 15:09:51 +03:00
|
|
|
SUBDIR+= libcurses # depends on libterminfo
|
2011-02-08 06:20:13 +03:00
|
|
|
SUBDIR+= libdm # depends on libprop
|
2010-12-12 15:09:51 +03:00
|
|
|
SUBDIR+= libedit # depends on libterminfo
|
2012-05-27 06:19:50 +04:00
|
|
|
SUBDIR+= libexecinfo # depends on libelf
|
2011-08-27 01:22:07 +04:00
|
|
|
SUBDIR+= libppath # depends on libprop
|
2011-08-21 02:23:47 +04:00
|
|
|
SUBDIR+= libperfuse # depends on libpuffs
|
2011-03-24 20:05:39 +03:00
|
|
|
SUBDIR+= libquota # depends on libprop and librpcsvc
|
2007-02-11 21:36:26 +03:00
|
|
|
SUBDIR+= librefuse # depends on libpuffs
|
2013-09-12 03:04:09 +04:00
|
|
|
SUBDIR+= libisns # depends on libpthread
|
2012-08-08 18:01:16 +04:00
|
|
|
.if (${MKRUMP} != "no")
|
2008-07-29 17:17:40 +04:00
|
|
|
SUBDIR+= librumpuser # depends on libpthread
|
2011-08-21 02:23:47 +04:00
|
|
|
SUBDIR+= librumphijack # depends on librumpclient and libpthread
|
2012-08-08 18:01:16 +04:00
|
|
|
.endif
|
2008-07-29 17:17:40 +04:00
|
|
|
|
2011-02-02 05:20:24 +03:00
|
|
|
.if (${MKNPF} != "no")
|
|
|
|
SUBDIR+= libnpf # depends on libprop
|
|
|
|
.endif
|
|
|
|
|
2009-12-30 02:01:09 +03:00
|
|
|
.if (${MKCRYPTO} != "no")
|
2010-12-12 15:09:51 +03:00
|
|
|
SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt
|
2009-12-30 02:01:09 +03:00
|
|
|
.endif
|
2009-06-09 09:20:15 +04:00
|
|
|
|
2010-12-04 00:38:46 +03:00
|
|
|
SUBDIR+= ../external/bsd/file/lib # depends on libz
|
|
|
|
|
|
|
|
.if (${MKISCSI} != "no")
|
|
|
|
SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread
|
|
|
|
.endif
|
|
|
|
|
2015-06-22 09:03:20 +03:00
|
|
|
.if (${MKZFS} != "no")
|
|
|
|
SUBDIR+= ../external/cddl/osnet/lib/libzfs
|
|
|
|
SUBDIR+= ../external/cddl/osnet/lib/libzpool
|
|
|
|
.endif
|
|
|
|
|
2011-02-10 23:57:22 +03:00
|
|
|
.if (${MKLVM} != "no")
|
|
|
|
SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop
|
|
|
|
.endif
|
|
|
|
|
2010-12-04 00:38:46 +03:00
|
|
|
.if (${MKBINUTILS} != "no")
|
|
|
|
SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 03:02:17 +04:00
|
|
|
.if (${MKLIBCXX} != "no")
|
|
|
|
SUBDIR+= ../external/bsd/libc++
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 08:05:37 +04:00
|
|
|
.if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
|
2014-02-26 13:54:32 +04:00
|
|
|
SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3
|
|
|
|
SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++
|
2010-12-04 00:38:46 +03:00
|
|
|
.endif
|
2015-05-12 22:43:50 +03:00
|
|
|
|
|
|
|
#==================== 2nd library dependency barrier ====================
|
|
|
|
SUBDIR+= .WAIT
|
|
|
|
|
2014-10-25 16:54:28 +04:00
|
|
|
SANITIZER_DIR=../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libasan
|
|
|
|
.if exists(${SANITIZER_DIR})
|
|
|
|
SUBDIR+= ${SANITIZER_DIR}
|
2014-10-23 19:29:06 +04:00
|
|
|
.endif
|
2010-12-04 00:38:46 +03:00
|
|
|
|
2015-04-18 01:17:23 +03:00
|
|
|
SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz
|
|
|
|
|
2013-10-04 00:02:58 +04:00
|
|
|
.if (${MKNPF} != "no")
|
|
|
|
SUBDIR+= npf # depends on libnpf
|
|
|
|
.endif
|
|
|
|
|
2012-07-12 23:11:06 +04:00
|
|
|
.if (${MKATF} != "no")
|
2012-07-13 00:14:44 +04:00
|
|
|
SUBDIR+= ../external/bsd/atf/lib # depends on libstdc++
|
2012-07-12 23:11:06 +04:00
|
|
|
.endif
|
|
|
|
|
2013-02-17 01:40:05 +04:00
|
|
|
.if (${MKKYUA} != "no")
|
|
|
|
SUBDIR+= ../external/bsd/lutok/lib # depends on lua and libstdc++
|
|
|
|
.endif
|
|
|
|
|
2010-12-12 15:09:51 +03:00
|
|
|
SUBDIR+= libform # depends on libcurses
|
2011-08-21 02:23:47 +04:00
|
|
|
SUBDIR+= libmenu # depends on libcurses
|
|
|
|
SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no")
|
2012-08-08 18:01:16 +04:00
|
|
|
.if (${MKRUMP} != "no")
|
2011-08-21 02:23:47 +04:00
|
|
|
SUBDIR+= librump # depends on librumpuser
|
2012-08-08 18:01:16 +04:00
|
|
|
.endif
|
2010-12-12 15:09:51 +03:00
|
|
|
|
2006-03-18 00:43:16 +03:00
|
|
|
.if (${MKKERBEROS} != "no")
|
2011-04-15 22:05:42 +04:00
|
|
|
SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto
|
|
|
|
# libedit, libterminfo,
|
2006-03-18 00:43:16 +03:00
|
|
|
.endif
|
|
|
|
|
2010-12-12 15:09:51 +03:00
|
|
|
.if (${MKCRYPTO} != "no")
|
|
|
|
SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
|
|
|
|
SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ...
|
|
|
|
.endif
|
|
|
|
|
2013-04-11 23:06:04 +04:00
|
|
|
SUBDIR+= ../external/bsd/libevent/lib # depends on libcrypto
|
2010-12-12 15:09:51 +03:00
|
|
|
SUBDIR+= ../external/bsd/fetch/lib # depends on libssl
|
|
|
|
|
|
|
|
.if (${MKLDAP} != "no")
|
|
|
|
SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ...
|
|
|
|
.endif
|
|
|
|
|
2008-05-22 18:16:11 +04:00
|
|
|
#==================== 3rd library dependency barrier ====================
|
|
|
|
SUBDIR+= .WAIT
|
|
|
|
|
2013-07-30 01:02:58 +04:00
|
|
|
SUBDIR+= ../external/bsd/bind/lib # depends on heimdal, libcrypto
|
|
|
|
|
2012-08-08 18:01:16 +04:00
|
|
|
.if (${MKRUMP} != "no")
|
2009-09-03 19:35:58 +04:00
|
|
|
SUBDIR+= librumpdev # depends on librump
|
2008-10-16 13:44:12 +04:00
|
|
|
SUBDIR+= librumpnet # depends on librump
|
2008-11-19 17:10:48 +03:00
|
|
|
SUBDIR+= librumpvfs # depends on librump
|
2012-08-08 18:01:16 +04:00
|
|
|
.endif
|
2008-07-29 17:17:40 +04:00
|
|
|
|
2011-08-21 02:23:47 +04:00
|
|
|
.if (${MKPAM} != "no")
|
|
|
|
SUBDIR+= libpam # depends on heimdal
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (${MKCRYPTO} != "no")
|
|
|
|
SUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl
|
|
|
|
.endif
|
|
|
|
|
2012-02-07 23:13:24 +04:00
|
|
|
SUBDIR+= ../external/bsd/mdocml/lib
|
|
|
|
|
2012-08-08 18:01:16 +04:00
|
|
|
.if (${MKRUMP} != "no")
|
2008-07-29 17:17:40 +04:00
|
|
|
#==================== 4th library dependency barrier ====================
|
|
|
|
SUBDIR+= .WAIT
|
2010-12-12 15:09:51 +03:00
|
|
|
|
|
|
|
SUBDIR+= libukfs # depends on librumpvfs, librump
|
2008-11-27 19:14:46 +03:00
|
|
|
|
2012-11-04 20:28:11 +04:00
|
|
|
.if (${MKTPM} != "no")
|
|
|
|
SUBDIR+= ../crypto/external/cpl/trousers/lib
|
|
|
|
.endif
|
|
|
|
|
2008-11-27 19:14:46 +03:00
|
|
|
#==================== 5th library dependency barrier ====================
|
|
|
|
SUBDIR+= .WAIT
|
2010-12-12 15:09:51 +03:00
|
|
|
|
|
|
|
SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs
|
2012-08-17 20:22:27 +04:00
|
|
|
|
2012-11-04 23:48:08 +04:00
|
|
|
.if (${MKTPM} != "no")
|
|
|
|
SUBDIR+= ../crypto/external/cpl/tpm-tools/lib # depends on trousers
|
|
|
|
.endif
|
|
|
|
|
2012-08-17 20:22:27 +04:00
|
|
|
.if !defined(BSD_MK_COMPAT_FILE)
|
|
|
|
SUBDIR+= ../sys/rump/dev/lib
|
|
|
|
SUBDIR+= ../sys/rump/fs/lib
|
|
|
|
SUBDIR+= ../sys/rump/kern/lib
|
|
|
|
SUBDIR+= ../sys/rump/net/lib
|
|
|
|
.endif
|
2012-08-08 18:01:16 +04:00
|
|
|
.endif
|
2010-12-12 15:09:51 +03:00
|
|
|
|
2011-10-08 01:33:56 +04:00
|
|
|
# Lua bindings come last, they might depend on anything
|
|
|
|
SUBDIR+= lua
|
|
|
|
|
2013-12-26 18:15:29 +04:00
|
|
|
# Needed by rump and rescue which are outside the smbfs tree
|
|
|
|
SUBDIR+= ../external/bsd/smbfs/lib
|
|
|
|
|
2012-11-16 03:51:53 +04:00
|
|
|
.include <bsd.buildinstall.mk>
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.subdir.mk>
|