2009-01-26 09:27:33 +03:00
|
|
|
# $NetBSD: Makefile,v 1.133 2009/01/26 06:27:33 mrg 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>
|
|
|
|
|
2008-07-12 16:20:08 +04:00
|
|
|
SUBDIR= csu libc .WAIT libarch \
|
2008-05-01 19:33:33 +04:00
|
|
|
libbsdmalloc libbluetooth libbz2 \
|
2006-06-19 19:44:33 +04:00
|
|
|
libcompat libcrypt \
|
2008-03-12 03:21:29 +03:00
|
|
|
libcurses libevent libintl libkvm libl libm \
|
|
|
|
libossaudio libpcap libpci libpmc libposix libprop libpthread \
|
Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.
This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.
This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.
Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 16:06:17 +04:00
|
|
|
libpthread_dbg libpuffs libresolv librmt librpcsvc librt libsdp \
|
2006-10-23 02:52:21 +04:00
|
|
|
libterm libusbhid libutil libwrap liby libz
|
1996-03-10 08:45:38 +03:00
|
|
|
|
2008-03-12 03:21:29 +03:00
|
|
|
# libform and libmenu need libcurses
|
|
|
|
SUBDIR+= .WAIT libform libmenu
|
|
|
|
|
2009-01-26 09:27:33 +03:00
|
|
|
.if (${MKATF} != "no")
|
|
|
|
SUBDIR+= ../external/bsd/atf/lib/libatf-c ../external/bsd/atf/lib/libatf-c++
|
|
|
|
.endif
|
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
.if (${MKSKEY} != "no")
|
|
|
|
SUBDIR+= libskey
|
|
|
|
.endif
|
|
|
|
|
2000-06-20 10:00:24 +04:00
|
|
|
# XXX Crypto bits must be done before libtelnet.
|
|
|
|
|
2000-06-23 10:01:10 +04:00
|
|
|
.if (${MKCRYPTO} != "no")
|
2003-07-23 09:27:38 +04:00
|
|
|
# OpenSSL libraries.
|
2004-07-30 11:02:53 +04:00
|
|
|
SUBDIR+= libcrypto libdes
|
2000-06-16 20:18:46 +04:00
|
|
|
|
2000-09-30 04:23:28 +04:00
|
|
|
.if (${MKCRYPTO_IDEA} != "no")
|
|
|
|
SUBDIR+= libcrypto_idea
|
|
|
|
.endif # MKCRYPTO_IDEA != no
|
|
|
|
|
2002-09-26 17:29:44 +04:00
|
|
|
.if (${MKCRYPTO_MDC2} != "no")
|
|
|
|
SUBDIR+= libcrypto_mdc2
|
|
|
|
.endif # MKCRYPTO_MDC2 != no
|
|
|
|
|
2000-09-30 04:23:28 +04:00
|
|
|
.if (${MKCRYPTO_RC5} != "no")
|
|
|
|
SUBDIR+= libcrypto_rc5
|
|
|
|
.endif # MKCRYPTO_RC5 != no
|
|
|
|
|
2000-06-23 10:01:10 +04:00
|
|
|
.endif # MKCRYPTO != no
|
1993-03-21 12:45:37 +03:00
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
.if (${MKKERBEROS} != "no")
|
|
|
|
# Heimdal Kerberos 5 libraries
|
2007-03-01 05:54:51 +03:00
|
|
|
SUBDIR+= .WAIT libroken libvers libcom_err .WAIT libasn1
|
2008-03-22 11:36:48 +03:00
|
|
|
SUBDIR+= .WAIT libhx509
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
|
2003-12-11 12:46:26 +03:00
|
|
|
.endif # MKKERBEROS != no
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
|
1999-07-13 02:04:09 +04:00
|
|
|
SUBDIR+= libtelnet
|
|
|
|
|
1999-07-02 00:15:26 +04:00
|
|
|
# IPv6/IPsec
|
|
|
|
SUBDIR+= libipsec
|
|
|
|
|
refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.
HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.
2002-03-18 01:14:05 +03:00
|
|
|
# I18N modules
|
|
|
|
SUBDIR+= i18n_module
|
2001-01-25 12:16:38 +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
|
|
|
|
|
|
|
|
SUBDIR+= libedit # depends on libterm
|
|
|
|
|
2006-10-08 17:43:01 +04:00
|
|
|
SUBDIR+= libmagic # depends on libz
|
|
|
|
|
2005-11-26 19:07:15 +03:00
|
|
|
SUBDIR+= libradius # depends on libcrypto - only if ${MKCRYPTO}
|
|
|
|
|
2006-06-24 09:14:01 +04:00
|
|
|
.if (${MKISCSI} != "no")
|
2006-02-08 21:58:55 +03:00
|
|
|
SUBDIR+= libiscsi # depends on libpthread
|
2006-06-24 09:14:01 +04:00
|
|
|
.endif
|
2006-02-08 21:58:55 +03:00
|
|
|
|
2004-07-30 11:02:53 +04:00
|
|
|
.if (${MKCRYPTO} != "no")
|
2005-06-03 18:28:07 +04:00
|
|
|
SUBDIR+= libssl # depends on libcrypto
|
|
|
|
SUBDIR+= libssh # depends on libcrypto
|
2004-07-30 11:02:53 +04:00
|
|
|
.endif
|
2005-06-03 18:28:07 +04:00
|
|
|
|
2004-07-30 11:02:53 +04:00
|
|
|
.if (${MKKERBEROS} != "no")
|
2005-06-03 18:28:07 +04:00
|
|
|
SUBDIR+= libkrb5 # depends on libcrypto and more
|
2004-07-30 11:02:53 +04:00
|
|
|
.endif
|
2005-06-03 18:28:07 +04:00
|
|
|
|
2007-02-11 21:36:26 +03:00
|
|
|
SUBDIR+= librefuse # depends on libpuffs
|
2008-07-29 17:17:40 +04:00
|
|
|
SUBDIR+= librumpuser # depends on libpthread
|
|
|
|
|
2007-11-05 07:58:52 +03:00
|
|
|
# XXX These bind9/ISC libraries should depend on each other but the
|
|
|
|
# XXX dependency ordering requires considerable investigation.
|
|
|
|
# XXX Please preserve the order below so we know the order ISC links
|
|
|
|
# XXX them in in their Makefiles.
|
|
|
|
SUBDIR+= libbind9 libdns liblwres libisccfg libisccc libisc # dep. libpthread
|
|
|
|
|
2005-06-03 18:28:07 +04:00
|
|
|
#==================== 2nd library dependency barrier ====================
|
|
|
|
SUBDIR+= .WAIT
|
|
|
|
|
2006-03-18 00:43:16 +03:00
|
|
|
.if (${MKKERBEROS} != "no")
|
|
|
|
# Heimdal Kerberos 5 libraries depending on libkrb5 and more
|
2008-03-22 11:36:48 +03:00
|
|
|
SUBDIR+= libheimntlm
|
|
|
|
SUBDIR+= .WAIT libgssapi libhdb
|
|
|
|
SUBDIR+= .WAIT libkadm5srv libkadm5clnt libkafs libsl libss
|
2006-03-18 00:43:16 +03:00
|
|
|
.endif
|
|
|
|
|
2008-05-22 18:16:11 +04:00
|
|
|
.if (${MKLDAP} != "no")
|
|
|
|
# depends on libcrypto - only if ${MKCRYPTO}
|
|
|
|
SUBDIR+= ../external/bsd/openldap/lib
|
|
|
|
.endif
|
|
|
|
|
2008-07-29 17:17:40 +04:00
|
|
|
SUBDIR+= librump # depends on librumpuser
|
2008-05-22 18:16:11 +04:00
|
|
|
|
|
|
|
#==================== 3rd library dependency barrier ====================
|
|
|
|
SUBDIR+= .WAIT
|
|
|
|
|
2005-01-10 03:20:21 +03:00
|
|
|
.if (${MKPAM} != "no")
|
2008-05-22 18:16:11 +04:00
|
|
|
SUBDIR+= libpam # depends on libkrb5, libkafs and more
|
2005-01-10 03:20:21 +03:00
|
|
|
.endif
|
2004-12-29 18:49:42 +03:00
|
|
|
|
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
|
2008-07-29 17:17:40 +04:00
|
|
|
|
|
|
|
#==================== 4th library dependency barrier ====================
|
|
|
|
SUBDIR+= .WAIT
|
2008-11-27 19:14:46 +03:00
|
|
|
SUBDIR+= libukfs # depends on librump and librumpvfs
|
|
|
|
|
|
|
|
#==================== 5th library dependency barrier ====================
|
|
|
|
SUBDIR+= .WAIT
|
|
|
|
SUBDIR+= libp2k # depends on libpuffs, librumpvfs and libukfs
|
2008-07-29 17:17:40 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.subdir.mk>
|