2007-11-05 02:28:16 +03:00
|
|
|
# $NetBSD: Makefile,v 1.118 2007/11/04 23:28:17 tls 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>
|
|
|
|
|
2007-05-30 05:13:14 +04:00
|
|
|
SUBDIR= csu libc .WAIT libarch libbsdmalloc libbluetooth libbz2 \
|
2006-06-19 19:44:33 +04:00
|
|
|
libcompat libcrypt \
|
2006-10-08 17:43:01 +04:00
|
|
|
libcurses libevent libform libintl libkvm libl libm \
|
2006-04-28 00:41:57 +04:00
|
|
|
libmenu 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
|
|
|
|
2007-11-05 02:28:16 +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
|
|
|
|
|
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
|
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
|
|
|
|
|
2007-07-29 21:06:00 +04:00
|
|
|
SUBDIR+= libarchive # depends on libbz2 and libz
|
|
|
|
|
2005-06-03 18:28:07 +04:00
|
|
|
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
|
|
|
.if (${MKPUFFS} != "no")
|
|
|
|
SUBDIR+= librefuse # depends on libpuffs
|
|
|
|
.endif
|
|
|
|
|
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
|
2006-03-19 18:10:19 +03:00
|
|
|
SUBDIR+= libgssapi libhdb .WAIT libkadm5srv libkadm5clnt libkafs libsl libss
|
2006-03-18 00:43:16 +03:00
|
|
|
.endif
|
|
|
|
|
2005-01-10 03:20:21 +03:00
|
|
|
.if (${MKPAM} != "no")
|
2007-01-06 23:54:37 +03:00
|
|
|
SUBDIR+= .WAIT libpam # depends on libkrb5, libkafs and more
|
2005-01-10 03:20:21 +03:00
|
|
|
.endif
|
2004-12-29 18:49:42 +03:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.subdir.mk>
|