1994-05-27 05:00:24 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/4/93
|
1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1998-03-19 16:56:58 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1998-03-19 16:56:58 +00:00
|
|
|
# To satisfy shared library or ELF linkage when only the libraries being
|
|
|
|
# built are visible:
|
|
|
|
#
|
1998-09-02 15:02:18 +00:00
|
|
|
# csu must be built before all shared libaries for ELF.
|
2007-10-26 11:07:25 +00:00
|
|
|
# libc must be built before all other shared libraries.
|
Merge OpenBSM alpha 4 from OpenBSM vendor branch to head, both
contrib/openbsm (svn merge) and src/sys/{bsm,security/audit} (manual
merge). Add libauditd build parts and add to auditd's linkage;
force libbsm to build before libauditd.
OpenBSM history for imported revisions below for reference.
MFC after: 1 month
Sponsored by: Apple Inc.
Obtained from: TrustedBSD Project
OpenBSM 1.1 alpha 4
- With the addition of BSM error number mapping, we also need to map the
local error number passed to audit_submit(3) to a BSM error number,
rather than have the caller perform that conversion.
- Reallocate user audit events to avoid collisions with Solaris; adopt a
more formal allocation scheme, and add some events allocated in Solaris
that will be of immediate use on other platforms.
- Add an event for Calife.
- Add au_strerror(3), which allows generating strings for BSM errors
directly, rather than requiring applications to map to the local error
space, which might not be able to entirely represent the BSM error
number space.
- Major auditd rewrite for launchd(8) support. Add libauditd library
that is shared between launchd and auditd.
- Add AUDIT_TRIGGER_INITIALIZE trigger (sent via 'audit -i') for
(re)starting auditing under launchd(8) on Mac OS X.
- Add 'current' symlink to active audit trail.
- Add crash recovery of previous audit trail file when detected on audit
startup that it has not been properly terminated.
- Add the event AUE_audit_recovery to indicated when an audit trail file
has been recovered from not being properly terminated. This event is
stored in the new audit trail file and includes the path of recovered
audit trail file.
- Mac OS X and FreeBSD dependent code in auditd.c is separated into
auditd_darwin.c and auditd_fbsd.c files.
- Add an event for the posix_spawn(2) and fsgetpath(2) Mac OS X system
calls.
- For Mac OS X, we use ASL(3) instead of syslog(3) for logging.
- Add support for NOTICE level logging.
OpenBSM 1.1 alpha 3
- Add two new functions, au_bsm_to_errno() and au_errno_to_bsm(), to map
between BSM error numbers (largely the Solaris definitions) and local
errno(2) values for 32-bit and 64-bit return tokens. This is required
as operating systems don't agree on some of the values of more recent
error numbers.
- Fix a bug how au_to_exec_args(3) and au_to_exec_env(3) calculates the
total size for the token. This buge.
- Deprecated Darwin constants, such as TRAILER_PAD_MAGIC, removed.
2008-12-31 11:12:24 +00:00
|
|
|
# libbsm must be built before ibauditd.
|
2010-03-04 22:01:11 +00:00
|
|
|
# libcom_err must be built before libpam.
|
|
|
|
# libcrypt must be built before libpam.
|
2001-08-04 18:25:48 +00:00
|
|
|
# libkvm must be built before libdevstat.
|
2000-05-02 14:16:19 +00:00
|
|
|
# msun must be built before libg++ and libstdc++.
|
2001-07-09 17:52:34 +00:00
|
|
|
# libmd must be built before libatm, libopie, libradius, and libtacplus.
|
2007-01-20 07:48:10 +00:00
|
|
|
# ncurses must be built before libdialog, libedit and libreadline.
|
2003-11-12 17:09:13 +00:00
|
|
|
# libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
|
2000-04-18 06:13:06 +00:00
|
|
|
# libopie must be built before libpam.
|
1998-11-20 02:03:45 +00:00
|
|
|
# libradius must be built before libpam.
|
2001-08-26 17:49:51 +00:00
|
|
|
# librpcsvc must be built before libpam.
|
2002-04-14 22:27:12 +00:00
|
|
|
# libsbuf must be built before libcam.
|
1998-11-20 02:03:45 +00:00
|
|
|
# libtacplus must be built before libpam.
|
2000-01-16 04:43:11 +00:00
|
|
|
# libutil must be built before libpam.
|
2002-04-14 22:27:12 +00:00
|
|
|
# libypclnt must be built before libpam.
|
2008-08-06 14:02:05 +00:00
|
|
|
# libgssapi must be built before librpcsec_gss
|
1998-03-19 16:56:58 +00:00
|
|
|
#
|
|
|
|
# Otherwise, the SUBDIR list should be in alphabetical order.
|
2010-03-04 22:01:11 +00:00
|
|
|
#
|
|
|
|
# Except it appears bind needs to be compiled last
|
1998-03-19 16:56:58 +00:00
|
|
|
|
2010-03-13 03:06:48 +00:00
|
|
|
SUBDIR_ORDERED= ${_csu} \
|
|
|
|
libc \
|
|
|
|
libbsm \
|
|
|
|
libauditd \
|
|
|
|
libcom_err \
|
2010-11-11 15:48:27 +00:00
|
|
|
libcompiler_rt \
|
2010-03-13 03:06:48 +00:00
|
|
|
libcrypt \
|
|
|
|
libelf \
|
Add the BSD-licensed Citrus iconv to the base system with default off
setting. It can be built by setting the WITH_ICONV knob. While this
knob is unset, the library part, the binaries, the header file and
the metadata files will not be built or installed so it makes no impact
on the system if left turned off.
This work is based on the iconv implementation in NetBSD but a great
number of improvements and feature additions have been included:
- Some utilities have been added. There is a conversion table generator,
which can compare conversion tables to reference data generated by
GNU libiconv. This helps ensuring conversion compatibility.
- UTF-16 surrogate support and some endianness issues have been fixed.
- The rather chaotic Makefiles to build metadata have been refactored
and cleaned up, now it is easy to read and it is also easier to add
support for new encodings.
- A bunch of new encodings and encoding aliases have been added.
- Support for 1->2, 1->3 and 1->4 mappings, which is needed for
transliterating with flying accents as GNU does, like "u.
- Lots of warnings have been fixed, the major part of the code is
now WARNS=6 clean.
- New section 1 and section 5 manual pages have been added.
- Some GNU-specific calls have been implemented:
iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into()
- Support for GNU's //IGNORE suffix has been added.
- The "-" argument for stdin is now recognized in iconv(1) as per POSIX.
- The Big5 conversion module has been fixed.
- The iconv.h header files is supposed to be compatible with the
GNU version, i.e. sources should build with base iconv.h and
GNU libiconv. It also includes a macro magic to deal with the
char ** and const char ** incompatibility.
- GNU compatibility: "" or "char" means the current local
encoding in use
- Various cleanups and style(9) fixes.
Approved by: delphij (mentor)
Obtained from: The NetBSD Project
Sponsored by: Google Summer of Code 2009
2011-02-25 00:04:39 +00:00
|
|
|
${_libiconv_modules} \
|
2010-03-13 03:06:48 +00:00
|
|
|
libkvm \
|
|
|
|
msun \
|
|
|
|
libmd \
|
|
|
|
ncurses \
|
|
|
|
${_libnetgraph} \
|
|
|
|
libradius \
|
|
|
|
librpcsvc \
|
|
|
|
libsbuf \
|
|
|
|
libtacplus \
|
|
|
|
libutil \
|
|
|
|
${_libypclnt}
|
|
|
|
|
|
|
|
SUBDIR= ${SUBDIR_ORDERED} \
|
|
|
|
libalias \
|
|
|
|
libarchive \
|
|
|
|
${_libatm} \
|
|
|
|
libbegemot \
|
2010-11-11 15:48:27 +00:00
|
|
|
libblocksruntime \
|
2010-03-13 03:06:48 +00:00
|
|
|
${_libbluetooth} \
|
|
|
|
${_libbsnmp} \
|
|
|
|
libbz2 \
|
|
|
|
libcalendar \
|
|
|
|
libcam \
|
|
|
|
libcompat \
|
|
|
|
libdevinfo \
|
|
|
|
libdevstat \
|
|
|
|
libdisk \
|
|
|
|
libdwarf \
|
|
|
|
libedit \
|
|
|
|
${_libefi} \
|
|
|
|
libexpat \
|
|
|
|
libfetch \
|
|
|
|
libftpio \
|
|
|
|
libgeom \
|
|
|
|
${_libgpib} \
|
|
|
|
${_libgssapi} \
|
|
|
|
${_librpcsec_gss} \
|
|
|
|
libipsec \
|
|
|
|
${_libipx} \
|
|
|
|
libjail \
|
|
|
|
libkiconv \
|
2010-05-10 06:59:50 +00:00
|
|
|
liblzma \
|
2010-03-13 03:06:48 +00:00
|
|
|
libmagic \
|
|
|
|
libmemstat \
|
|
|
|
${_libmilter} \
|
|
|
|
${_libmp} \
|
|
|
|
${_libncp} \
|
|
|
|
${_libngatm} \
|
|
|
|
libopie \
|
|
|
|
libpam \
|
|
|
|
libpcap \
|
|
|
|
${_libpmc} \
|
2010-07-31 14:52:29 +00:00
|
|
|
${_libproc} \
|
2011-05-12 10:11:39 +00:00
|
|
|
libprocstat \
|
2010-03-13 03:06:48 +00:00
|
|
|
librt \
|
2010-07-31 16:12:47 +00:00
|
|
|
${_librtld_db} \
|
2010-03-13 03:06:48 +00:00
|
|
|
${_libsdp} \
|
|
|
|
${_libsm} \
|
|
|
|
${_libsmb} \
|
|
|
|
${_libsmdb} \
|
|
|
|
${_libsmutil} \
|
|
|
|
libstand \
|
|
|
|
${_libtelnet} \
|
|
|
|
${_libthr} \
|
|
|
|
libthread_db \
|
|
|
|
libufs \
|
|
|
|
libugidfw \
|
|
|
|
libulog \
|
|
|
|
${_libusbhid} \
|
|
|
|
${_libusb} \
|
|
|
|
${_libvgl} \
|
2011-05-13 04:54:01 +00:00
|
|
|
${_libvmmapi} \
|
2010-03-13 03:06:48 +00:00
|
|
|
libwrap \
|
|
|
|
liby \
|
|
|
|
libz \
|
2010-06-09 19:57:20 +00:00
|
|
|
${_bind} \
|
|
|
|
${_clang}
|
1994-05-27 05:00:24 +00:00
|
|
|
|
2010-08-24 16:35:26 +00:00
|
|
|
.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
|
|
|
|
_csu=csu/${MACHINE_ARCH}-elf
|
2010-08-28 15:03:11 +00:00
|
|
|
.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
|
|
|
|
_csu=csu/${MACHINE_ARCH}
|
2010-08-23 22:24:11 +00:00
|
|
|
.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
|
|
|
|
_csu=csu/${MACHINE_CPUARCH}
|
2001-02-10 07:07:09 +00:00
|
|
|
.else
|
|
|
|
_csu=csu
|
1998-01-09 19:46:30 +00:00
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
# NB: keep these sorted by MK_* knobs
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_ATM} != "no"
|
2003-10-22 15:01:16 +00:00
|
|
|
_libngatm= libngatm
|
2003-08-27 20:00:48 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BIND} != "no"
|
2004-09-21 19:01:48 +00:00
|
|
|
_bind= bind
|
1999-11-30 04:22:25 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BLUETOOTH} != "no"
|
2003-10-12 22:04:24 +00:00
|
|
|
_libbluetooth= libbluetooth
|
|
|
|
_libsdp= libsdp
|
2004-01-28 00:42:51 +00:00
|
|
|
.endif
|
2004-07-07 22:48:30 +00:00
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_BSNMP} != "no"
|
|
|
|
_libbsnmp= libbsnmp
|
|
|
|
.endif
|
|
|
|
|
2010-06-21 19:44:29 +00:00
|
|
|
.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
|
2010-06-09 19:57:20 +00:00
|
|
|
_clang= clang
|
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_GPIB} != "no"
|
|
|
|
_libgpib= libgpib
|
|
|
|
.endif
|
|
|
|
|
2007-12-12 16:39:32 +00:00
|
|
|
.if ${MK_GSSAPI} != "no"
|
2007-12-10 19:09:24 +00:00
|
|
|
_libgssapi= libgssapi
|
2008-08-06 14:02:05 +00:00
|
|
|
_librpcsec_gss= librpcsec_gss
|
2007-12-10 19:09:24 +00:00
|
|
|
.endif
|
|
|
|
|
Add the BSD-licensed Citrus iconv to the base system with default off
setting. It can be built by setting the WITH_ICONV knob. While this
knob is unset, the library part, the binaries, the header file and
the metadata files will not be built or installed so it makes no impact
on the system if left turned off.
This work is based on the iconv implementation in NetBSD but a great
number of improvements and feature additions have been included:
- Some utilities have been added. There is a conversion table generator,
which can compare conversion tables to reference data generated by
GNU libiconv. This helps ensuring conversion compatibility.
- UTF-16 surrogate support and some endianness issues have been fixed.
- The rather chaotic Makefiles to build metadata have been refactored
and cleaned up, now it is easy to read and it is also easier to add
support for new encodings.
- A bunch of new encodings and encoding aliases have been added.
- Support for 1->2, 1->3 and 1->4 mappings, which is needed for
transliterating with flying accents as GNU does, like "u.
- Lots of warnings have been fixed, the major part of the code is
now WARNS=6 clean.
- New section 1 and section 5 manual pages have been added.
- Some GNU-specific calls have been implemented:
iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into()
- Support for GNU's //IGNORE suffix has been added.
- The "-" argument for stdin is now recognized in iconv(1) as per POSIX.
- The Big5 conversion module has been fixed.
- The iconv.h header files is supposed to be compatible with the
GNU version, i.e. sources should build with base iconv.h and
GNU libiconv. It also includes a macro magic to deal with the
char ** and const char ** incompatibility.
- GNU compatibility: "" or "char" means the current local
encoding in use
- Various cleanups and style(9) fixes.
Approved by: delphij (mentor)
Obtained from: The NetBSD Project
Sponsored by: Google Summer of Code 2009
2011-02-25 00:04:39 +00:00
|
|
|
.if ${MK_ICONV} != "no"
|
|
|
|
_libiconv_modules= libiconv_modules
|
|
|
|
.endif
|
|
|
|
|
2006-03-20 14:24:58 +00:00
|
|
|
.if ${MK_IPX} != "no"
|
|
|
|
_libipx= libipx
|
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_LIBTHR} != "no"
|
|
|
|
_libthr= libthr
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_NETGRAPH} != "no"
|
|
|
|
_libnetgraph= libnetgraph
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_NIS} != "no"
|
|
|
|
_libypclnt= libypclnt
|
|
|
|
.endif
|
|
|
|
|
2010-08-23 22:24:11 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
|
2006-03-20 14:24:58 +00:00
|
|
|
.if ${MK_NCP} != "no"
|
2004-01-28 00:42:51 +00:00
|
|
|
_libncp= libncp
|
2006-03-20 14:24:58 +00:00
|
|
|
.endif
|
2001-12-14 23:11:45 +00:00
|
|
|
_libsmb= libsmb
|
1998-03-19 16:56:58 +00:00
|
|
|
_libvgl= libvgl
|
2010-07-31 14:52:29 +00:00
|
|
|
_libproc= libproc
|
2010-07-31 16:12:47 +00:00
|
|
|
_librtld_db= librtld_db
|
2003-06-01 00:32:21 +00:00
|
|
|
.endif
|
|
|
|
|
2010-08-23 22:24:11 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "ia64"
|
2010-01-30 04:24:03 +00:00
|
|
|
_libefi= libefi
|
2006-08-22 03:22:17 +00:00
|
|
|
_libsmb= libsmb
|
|
|
|
.endif
|
|
|
|
|
2010-08-23 22:24:11 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
|
|
.if ${MK_NCP} != "no"
|
|
|
|
_libncp= libncp
|
|
|
|
.endif
|
2011-05-13 04:54:01 +00:00
|
|
|
_libvmmapi= libvmmapi
|
2010-08-23 22:24:11 +00:00
|
|
|
.endif
|
|
|
|
|
2010-07-12 00:56:35 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "powerpc"
|
2005-09-19 08:13:43 +00:00
|
|
|
_libsmb= libsmb
|
|
|
|
.endif
|
|
|
|
|
2010-08-23 22:24:11 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "sparc64"
|
2010-01-25 18:52:47 +00:00
|
|
|
_libsmb= libsmb
|
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
|
|
_libmp= libmp
|
2007-10-09 13:42:34 +00:00
|
|
|
.endif
|
2003-07-20 01:34:40 +00:00
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_PMC} != "no"
|
|
|
|
_libpmc= libpmc
|
2001-08-02 15:47:03 +00:00
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
|
|
|
_libmilter= libmilter
|
|
|
|
_libsm= libsm
|
|
|
|
_libsmdb= libsmdb
|
|
|
|
_libsmutil= libsmutil
|
2004-03-10 08:58:06 +00:00
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_TELNET} != "no"
|
|
|
|
_libtelnet= libtelnet
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_USB} != "no"
|
|
|
|
_libusbhid= libusbhid
|
2009-03-09 17:38:14 +00:00
|
|
|
_libusb= libusb
|
2005-02-06 16:45:57 +00:00
|
|
|
.endif
|
|
|
|
|
1994-05-27 05:00:24 +00:00
|
|
|
.include <bsd.subdir.mk>
|