History log of /netbsd-current/share/mk/bsd.hostprog.mk
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.84 27-Mar-2021 simonb

Make columns nicely aligned.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.83 04-Apr-2020 christos

Add libgnuctf


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.82 28-Oct-2019 maxv

Add nvmmctl, with two commands for now.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127
# 1.81 21-Jan-2019 christos

branches: 1.81.2;
Most of the mv operations are to move temporary files to their final place.
Some use -f, others don't. This can lead to spurious build failures when
the user performing the build changes. Centralize, and always use -f.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.80 04-May-2018 christos

branches: 1.80.2;
include bsd.hostinit.mk instead of bsd.init.mk


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.79 25-Nov-2017 jmcneill

branches: 1.79.2;
Add LIBREFUSE define for DPADD


# 1.78 10-Oct-2017 christos

add the rump resolver library.


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.77 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.76 01-Jan-2016 christos

branches: 1.76.2; 1.76.4;
Add the pthread libraries, documented already in bsd.README; sort


# 1.75 22-Nov-2015 kamil

Add new predefined value for DPADD: LIBPANEL


# 1.74 01-Dec-2014 erh

PR toolchain/9618: add ".d" to MKDEP_SUFFIXES so the depend files are rebuilt
if any of their dependencies (i.e. the files they refer to) are changed.
This allows changes to transitive included headers to be handled properly.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base tls-maxphys-base
# 1.73 10-Apr-2014 plunky

the value of HOST_MKDEP previously depended on USETOOLS;
make it do so again, and centralise the USETOOLS=no case
into bsd.host.mk


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.72 29-Oct-2013 joerg

branches: 1.72.2;
Unbreak src/tools usage of C++.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.71 14-Jun-2013 tsutsui

Invoke tools/binstall/mkmanifest for Cygwin via ${HOST_SH}.
Fixes builds using source sets that drop executable bits.


# 1.70 11-Apr-2013 christos

add new libevent2 libraries.


Revision tags: agc-symver-base
# 1.69 17-Feb-2013 christos

Add a hook to create a manifest file if needed under cygwin


# 1.68 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 yamt-pagecache-base5 yamt-pagecache-base4
# 1.67 29-Feb-2012 tron

branches: 1.67.2;
Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.66 13-Oct-2011 joerg

branches: 1.66.2; 1.66.4;
Hook up SQLite into the build


# 1.65 07-Oct-2011 mrg

obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.


# 1.64 10-Sep-2011 apb

Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.


# 1.63 05-Jun-2011 christos

add libgcc_pic dependency.


Revision tags: cherry-xenmp-base
# 1.62 24-Mar-2011 bouyer

branches: 1.62.2;
Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase
# 1.61 20-Feb-2011 jmmv

Define LIBATF_C and LIBATF_CXX to point to their corresponding .a files and
use these to properly set DPADD for test programs.


Revision tags: bouyer-quota2-base matt-mips64-premerge-20101231
# 1.60 25-Dec-2010 joerg

branches: 1.60.2;
If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor. This avoids leaking the source
path into the final binaries.


# 1.59 22-Nov-2010 pooka

add LIBRUMPCLIENT


# 1.58 02-Nov-2010 joerg

Add LIBLZMA.


# 1.57 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.56 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.55 10-Apr-2009 apb

Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links. They have no effect except when using a
metalog, in which case the information is added to the metalog. In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg. This should fix PR 24457 and PR 41155.


# 1.54 19-Nov-2008 pooka

branches: 1.54.2;
Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


Revision tags: netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base
# 1.53 02-Oct-2008 joerg

branches: 1.53.2; 1.53.4;
Hook up libfetch and pkg_install update.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.52 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base
# 1.51 26-Apr-2008 christos

branches: 1.51.2;
make all shared libraries depend on libc.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base pc532-eol-2008 matt-armv6-nbase matt-armv6-prevmlocking wrstuden-fixsa-base-1 netbsd-4-0-RELEASE cube-autoconf-base netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-armv6-base matt-mips64-base hpcarm-cleanup-base wrstuden-fixsa-base netbsd-4-base
# 1.50 09-Nov-2006 christos

branches: 1.50.16; 1.50.18;
Add ssp glue.


# 1.49 22-Oct-2006 pooka

libpuffs


# 1.48 09-Oct-2006 mrg

- clean up some comments to reality.
- retire LIBDCK, LIBG2C and (long broken) USE_LIBSTDCXX
- in bsd.hostprog.mk's LIBSTDCPP -> LIBSTDCC
- add LIBSUPCXX
- don't default USE_LIBSTDCXX or USE_GCC4 since they are
not used in the tree any where
- same with USE_XF86_4; retire it
- remove _SUPCXX handling in bsd.prog.mk

inspired by PR#26714.


Revision tags: abandoned-netbsd-4-base
# 1.47 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.46 20-Mar-2006 christos

remove KRB4 libraries (Jukka Salmi)


# 1.45 02-Sep-2005 jwise

Add proper support for using bsd.hostprog.mk to build c++-based host
programs -- doesn't affect current host tools build (groff is built the
Makefile.gnuhost way).

Provides {.cc,.cpp,.cxx,.C}.lo rule, associated variables, and HOSTPROG_CXX
support (mirroring PROG_CXX in bsd.prog.mk).

Tested with from-scratch `build.sh tools' and full system build.


Revision tags: netbsd-3-base
# 1.44 20-Jun-2004 jmc

branches: 1.44.2;
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944


# 1.43 10-Jun-2004 lukem

Be consistent in handling YHEADER, similar to Christos' fix in bsd.lib.mk 1.253


# 1.42 21-May-2004 ross

If you add a library, you need to define its DPADD symbol here.

Add LIBMAGIC.


Revision tags: netbsd-2-0-base
# 1.41 29-Jan-2004 lukem

branches: 1.41.2;
Cosmetically tweak how .PHONY is used by (generally) providing it as a source,
instead of using it as a target with all the rules as its sources.


# 1.40 27-Jan-2004 lukem

Replace
:M-[IDU]*
with
:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*
so that arguments with whitespace after them work correctly.
Resolves [toolchain/18248] from Andrew White at Motorola.

Be consisent in this syntax; previously we'd sometimes we'd just have :M-[ID]*
which would ignore -Ufoo ...

(This needs :C///W support in make(1) that Simon Gerraty added for me :)


# 1.39 02-Jan-2004 lukem

Consistently test all variables that support a "yes"/"no" value with
${VAR} == "no"
or
${VAR} != "no"
(instead of against "yes"). Variables affected:
TOOLCHAIN_MISSING
HAVE_GCC3
USE_TOOLS_TOOLCHAIN
NEED_OWN_INSTALL_TARGET
USE_SHLIBDIR

Improve the documentation.


# 1.38 26-Dec-2003 christos

Add libstdc++


# 1.37 16-Nov-2003 lukem

simplify with _MKTARGET_LINK


# 1.36 11-Nov-2003 dsl

Set MKDEP_SUFFIXES to get additional targets in .depend instead of using
sed in .afterdepend. I don't think .afterdepend is used anywhere any more.


# 1.35 21-Oct-2003 lukem

Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.


# 1.34 19-Oct-2003 lukem

Provide _MKMSG{BUILD,CREATE,COMPILE,FORMAT,INSTALL,LINK,LEX,YACC} to display
${_MKMSG} " ... {$.TARGET}" and use appropriately.

Provide _MKMSGLINK.m to provide "link" message by itself (without ${.TARGET})

Replace _MKSHCMD with _MKSHECHO


# 1.33 18-Oct-2003 lukem

Implement MAKEVERBOSE to control how "verbose" the standard make(1) rules are.
Supported values:
0 Minimal output ("quiet")
1 Describe what is occurring
2 Describe what is occurring and echo the actual command ("verbose")
This is the default, and is equivalent to the previous behaviour.


# 1.32 01-Aug-2003 lukem

Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".


# 1.31 28-Jul-2003 lukem

be consistent when adding *.y and *.l to DPSRCS


# 1.30 18-Jul-2003 lukem

whitespace cleanup


# 1.29 16-Jul-2003 itojun

stop installing install libtelnet. build under lib/libtelnet and reference
it from usr.bin/telnet and libexec/telnetd.
(reason for separate build: compiler flags)


# 1.28 12-Jun-2003 provos

add LIBEVENT


# 1.27 11-Jun-2003 msaitoh

catch signal 1,2,3,13 and 15 to clean /tmp/_dependXXX


# 1.26 14-May-2003 dbj

remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets. Commits fix from PR toolchain/21495


Revision tags: fvdl_fs64_base
# 1.25 17-Sep-2002 thorpej

* Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
two variables:

TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
an external toolchain (e.g. /usr/local/gnu). This enables the cross-build
framework even for TOOLCHAIN_MISSING platforms.

If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
unconditionally set to "no", since the bits are not there to build.

If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
since the external toolchain's compiler is not in-sync with the
in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
that file can use it.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.24 29-Mar-2002 tv

COPTS is for target objects, not host objects.


# 1.23 03-Jan-2002 tv

Add more tolerant script-based implementation of mkdep for host tool
compiles. Based loosely on mkdep.old.compiler (so CSRG license copied),
but now uses just one rewrite (awk) process per cpp invocation and
determines the proper way to run cpp and awk via a "configure" script.

Use HOST_MKDEP in bsd.hostlib/hostprog.mk (defaulting to the old override
value of MKDEP), and give it a TOOLDIR equivalent in bsd.own.mk.


# 1.22 14-Nov-2001 tv

C/..$/.c/ -> C/\..$/.c/


# 1.21 14-Nov-2001 tv

Remove SHAREDSTRINGS logic for host programs; this is unnecessary here.


# 1.20 13-Nov-2001 tv

Move host program overrides of INSTALL and MKDEP to <bsd.hostprog.mk>.


# 1.19 12-Nov-2001 tv

Set CFLAGS and CPPFLAGS for the benefit of <bsd.dep.mk>, and move the
inclusion of <bsd.sys.mk> to the top to get defaults. (Dependency handling
needs a cleanup, and will get one soon....)


# 1.18 11-Nov-2001 tv

Affix the ${HOST_OSTYPE} info to the end of the objdir name if OBJMACHINE
is set (and MAKEOBJDIR[PREFIX] is not in use). This permits multiple hosts
to compile hostprogs (not just src/tools) for a given target without
colliding with each other.

Currently restricted only to new toolchain builds, as this requires a new
make(1) in order to function properly.


# 1.17 02-Nov-2001 tv

Improve readability and reduce redundant redundancy in share/mk; add some
descriptive comments. The guts of hostprog, lib, and prog are mostly
unchanged; this will be done in another pass.

Make several things work properly with UNPRIVILEGED set, and make the
install-time "cmp" logic work for MANZ. Also reimplement INCS{DIR,NAME}_foo
(requested by wiz) in a backwards compatible way.

Reviewed by christos.


# 1.16 25-Oct-2001 thorpej

Sigh, back out previous -- it is necessary inorder for the depend
(and dependall) targets to work properly.

XXX THIS IS BROKEN. It's highly questionalble that we should be applying
our .depend-generating rules to a host system -- the mkdep we currently
use assumes GCC.


# 1.15 25-Oct-2001 thorpej

Remove an unnecessary "CPPFLAGS=${HOST_CPPFLAGS}" -- the host tool
targets use HOST_CPPFLAGS exclusively, and keeping this assignment
can get us into some unfortuante recursion trouble.


# 1.14 19-Oct-2001 tv

Add .NOPATH for all files generated from .l or .y files in SRCS. Fixes PRs
bin/14187 and lib/14239.

Also simplify the handling of these transforms to .c and .h files a bit by
leveraging make's builtin macro operators.


# 1.13 25-Sep-2001 tv

Set .NOPATH on program to build to make sure it goes in .OBJDIR.
Problem noted by <seebs@plethora.net>.


# 1.12 13-Sep-2001 thorpej

Add LIBPCI.


# 1.11 14-Aug-2001 tv

Rather than explicitly saying "clean cleandir:" all the time, make clean
a dependency of cleandir (so that "make cleandir" implies "make clean").


# 1.10 01-Jun-2001 tv

Make "distclean" a REAL synonym for "cleandir" by actually aliasing it
in <bsd.own.mk>, rather than sprinkling it in all the .mk files (and
some Makefiles throughout the tree).


# 1.9 04-Jan-2001 garbled

Add LIBCDK and LIBFORM definitions


# 1.8 31-Oct-2000 itojun

add ${LIBINTL} for use with DPADD.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.7 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.6 05-Feb-2000 jdc

Add libahdi entries.


# 1.5 22-Jan-2000 mycroft

Make `dependall' play nicely with SUBDIR, using a hack similar to `realinstall'
for both `depend' and `all'.
Also, remove the old hack that invokes an extra shell for .depend, now that
make(1) has been fixed.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.4 23-Nov-1999 blymn

Added libmenu library.


Revision tags: comdex-fall-1999-base
# 1.3 24-Sep-1999 wrstuden

Zap proginstall and scriptinstall - they don't make sense for hostprog.


# 1.2 14-Sep-1999 perry

branches: 1.2.2;
Add a "dependall" target, which does a "make depend" and then "make all"
in a single directory. This is useful in "make build" because by doing
the build immediately after the depend, all sources will typically
still be in the buffer cache, thus saving significant time over doing
a "make depend" on all the directories and then a "make all".


# 1.1 14-Jul-1999 wrstuden

Add bsd.hostprog.mk, a makefile for making programs used during
the build which will run on the build machine.


# 1.83 04-Apr-2020 christos

Add libgnuctf


Revision tags: phil-wifi-20191119
# 1.82 28-Oct-2019 maxv

Add nvmmctl, with two commands for now.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127
# 1.81 21-Jan-2019 christos

branches: 1.81.2;
Most of the mv operations are to move temporary files to their final place.
Some use -f, others don't. This can lead to spurious build failures when
the user performing the build changes. Centralize, and always use -f.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.80 04-May-2018 christos

branches: 1.80.2;
include bsd.hostinit.mk instead of bsd.init.mk


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.79 25-Nov-2017 jmcneill

branches: 1.79.2;
Add LIBREFUSE define for DPADD


# 1.78 10-Oct-2017 christos

add the rump resolver library.


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.77 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.76 01-Jan-2016 christos

branches: 1.76.2; 1.76.4;
Add the pthread libraries, documented already in bsd.README; sort


# 1.75 22-Nov-2015 kamil

Add new predefined value for DPADD: LIBPANEL


# 1.74 01-Dec-2014 erh

PR toolchain/9618: add ".d" to MKDEP_SUFFIXES so the depend files are rebuilt
if any of their dependencies (i.e. the files they refer to) are changed.
This allows changes to transitive included headers to be handled properly.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base tls-maxphys-base
# 1.73 10-Apr-2014 plunky

the value of HOST_MKDEP previously depended on USETOOLS;
make it do so again, and centralise the USETOOLS=no case
into bsd.host.mk


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.72 29-Oct-2013 joerg

branches: 1.72.2;
Unbreak src/tools usage of C++.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.71 14-Jun-2013 tsutsui

Invoke tools/binstall/mkmanifest for Cygwin via ${HOST_SH}.
Fixes builds using source sets that drop executable bits.


# 1.70 11-Apr-2013 christos

add new libevent2 libraries.


Revision tags: agc-symver-base
# 1.69 17-Feb-2013 christos

Add a hook to create a manifest file if needed under cygwin


# 1.68 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 yamt-pagecache-base5 yamt-pagecache-base4
# 1.67 29-Feb-2012 tron

branches: 1.67.2;
Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.66 13-Oct-2011 joerg

branches: 1.66.2; 1.66.4;
Hook up SQLite into the build


# 1.65 07-Oct-2011 mrg

obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.


# 1.64 10-Sep-2011 apb

Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.


# 1.63 05-Jun-2011 christos

add libgcc_pic dependency.


Revision tags: cherry-xenmp-base
# 1.62 24-Mar-2011 bouyer

branches: 1.62.2;
Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase
# 1.61 20-Feb-2011 jmmv

Define LIBATF_C and LIBATF_CXX to point to their corresponding .a files and
use these to properly set DPADD for test programs.


Revision tags: bouyer-quota2-base matt-mips64-premerge-20101231
# 1.60 25-Dec-2010 joerg

branches: 1.60.2;
If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor. This avoids leaking the source
path into the final binaries.


# 1.59 22-Nov-2010 pooka

add LIBRUMPCLIENT


# 1.58 02-Nov-2010 joerg

Add LIBLZMA.


# 1.57 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.56 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.55 10-Apr-2009 apb

Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links. They have no effect except when using a
metalog, in which case the information is added to the metalog. In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg. This should fix PR 24457 and PR 41155.


# 1.54 19-Nov-2008 pooka

branches: 1.54.2;
Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


Revision tags: netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base
# 1.53 02-Oct-2008 joerg

branches: 1.53.2; 1.53.4;
Hook up libfetch and pkg_install update.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.52 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base
# 1.51 26-Apr-2008 christos

branches: 1.51.2;
make all shared libraries depend on libc.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base pc532-eol-2008 matt-armv6-nbase matt-armv6-prevmlocking wrstuden-fixsa-base-1 netbsd-4-0-RELEASE cube-autoconf-base netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-armv6-base matt-mips64-base hpcarm-cleanup-base wrstuden-fixsa-base netbsd-4-base
# 1.50 09-Nov-2006 christos

branches: 1.50.16; 1.50.18;
Add ssp glue.


# 1.49 22-Oct-2006 pooka

libpuffs


# 1.48 09-Oct-2006 mrg

- clean up some comments to reality.
- retire LIBDCK, LIBG2C and (long broken) USE_LIBSTDCXX
- in bsd.hostprog.mk's LIBSTDCPP -> LIBSTDCC
- add LIBSUPCXX
- don't default USE_LIBSTDCXX or USE_GCC4 since they are
not used in the tree any where
- same with USE_XF86_4; retire it
- remove _SUPCXX handling in bsd.prog.mk

inspired by PR#26714.


Revision tags: abandoned-netbsd-4-base
# 1.47 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.46 20-Mar-2006 christos

remove KRB4 libraries (Jukka Salmi)


# 1.45 02-Sep-2005 jwise

Add proper support for using bsd.hostprog.mk to build c++-based host
programs -- doesn't affect current host tools build (groff is built the
Makefile.gnuhost way).

Provides {.cc,.cpp,.cxx,.C}.lo rule, associated variables, and HOSTPROG_CXX
support (mirroring PROG_CXX in bsd.prog.mk).

Tested with from-scratch `build.sh tools' and full system build.


Revision tags: netbsd-3-base
# 1.44 20-Jun-2004 jmc

branches: 1.44.2;
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944


# 1.43 10-Jun-2004 lukem

Be consistent in handling YHEADER, similar to Christos' fix in bsd.lib.mk 1.253


# 1.42 21-May-2004 ross

If you add a library, you need to define its DPADD symbol here.

Add LIBMAGIC.


Revision tags: netbsd-2-0-base
# 1.41 29-Jan-2004 lukem

branches: 1.41.2;
Cosmetically tweak how .PHONY is used by (generally) providing it as a source,
instead of using it as a target with all the rules as its sources.


# 1.40 27-Jan-2004 lukem

Replace
:M-[IDU]*
with
:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*
so that arguments with whitespace after them work correctly.
Resolves [toolchain/18248] from Andrew White at Motorola.

Be consisent in this syntax; previously we'd sometimes we'd just have :M-[ID]*
which would ignore -Ufoo ...

(This needs :C///W support in make(1) that Simon Gerraty added for me :)


# 1.39 02-Jan-2004 lukem

Consistently test all variables that support a "yes"/"no" value with
${VAR} == "no"
or
${VAR} != "no"
(instead of against "yes"). Variables affected:
TOOLCHAIN_MISSING
HAVE_GCC3
USE_TOOLS_TOOLCHAIN
NEED_OWN_INSTALL_TARGET
USE_SHLIBDIR

Improve the documentation.


# 1.38 26-Dec-2003 christos

Add libstdc++


# 1.37 16-Nov-2003 lukem

simplify with _MKTARGET_LINK


# 1.36 11-Nov-2003 dsl

Set MKDEP_SUFFIXES to get additional targets in .depend instead of using
sed in .afterdepend. I don't think .afterdepend is used anywhere any more.


# 1.35 21-Oct-2003 lukem

Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.


# 1.34 19-Oct-2003 lukem

Provide _MKMSG{BUILD,CREATE,COMPILE,FORMAT,INSTALL,LINK,LEX,YACC} to display
${_MKMSG} " ... {$.TARGET}" and use appropriately.

Provide _MKMSGLINK.m to provide "link" message by itself (without ${.TARGET})

Replace _MKSHCMD with _MKSHECHO


# 1.33 18-Oct-2003 lukem

Implement MAKEVERBOSE to control how "verbose" the standard make(1) rules are.
Supported values:
0 Minimal output ("quiet")
1 Describe what is occurring
2 Describe what is occurring and echo the actual command ("verbose")
This is the default, and is equivalent to the previous behaviour.


# 1.32 01-Aug-2003 lukem

Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".


# 1.31 28-Jul-2003 lukem

be consistent when adding *.y and *.l to DPSRCS


# 1.30 18-Jul-2003 lukem

whitespace cleanup


# 1.29 16-Jul-2003 itojun

stop installing install libtelnet. build under lib/libtelnet and reference
it from usr.bin/telnet and libexec/telnetd.
(reason for separate build: compiler flags)


# 1.28 12-Jun-2003 provos

add LIBEVENT


# 1.27 11-Jun-2003 msaitoh

catch signal 1,2,3,13 and 15 to clean /tmp/_dependXXX


# 1.26 14-May-2003 dbj

remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets. Commits fix from PR toolchain/21495


Revision tags: fvdl_fs64_base
# 1.25 17-Sep-2002 thorpej

* Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
two variables:

TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
an external toolchain (e.g. /usr/local/gnu). This enables the cross-build
framework even for TOOLCHAIN_MISSING platforms.

If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
unconditionally set to "no", since the bits are not there to build.

If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
since the external toolchain's compiler is not in-sync with the
in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
that file can use it.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.24 29-Mar-2002 tv

COPTS is for target objects, not host objects.


# 1.23 03-Jan-2002 tv

Add more tolerant script-based implementation of mkdep for host tool
compiles. Based loosely on mkdep.old.compiler (so CSRG license copied),
but now uses just one rewrite (awk) process per cpp invocation and
determines the proper way to run cpp and awk via a "configure" script.

Use HOST_MKDEP in bsd.hostlib/hostprog.mk (defaulting to the old override
value of MKDEP), and give it a TOOLDIR equivalent in bsd.own.mk.


# 1.22 14-Nov-2001 tv

C/..$/.c/ -> C/\..$/.c/


# 1.21 14-Nov-2001 tv

Remove SHAREDSTRINGS logic for host programs; this is unnecessary here.


# 1.20 13-Nov-2001 tv

Move host program overrides of INSTALL and MKDEP to <bsd.hostprog.mk>.


# 1.19 12-Nov-2001 tv

Set CFLAGS and CPPFLAGS for the benefit of <bsd.dep.mk>, and move the
inclusion of <bsd.sys.mk> to the top to get defaults. (Dependency handling
needs a cleanup, and will get one soon....)


# 1.18 11-Nov-2001 tv

Affix the ${HOST_OSTYPE} info to the end of the objdir name if OBJMACHINE
is set (and MAKEOBJDIR[PREFIX] is not in use). This permits multiple hosts
to compile hostprogs (not just src/tools) for a given target without
colliding with each other.

Currently restricted only to new toolchain builds, as this requires a new
make(1) in order to function properly.


# 1.17 02-Nov-2001 tv

Improve readability and reduce redundant redundancy in share/mk; add some
descriptive comments. The guts of hostprog, lib, and prog are mostly
unchanged; this will be done in another pass.

Make several things work properly with UNPRIVILEGED set, and make the
install-time "cmp" logic work for MANZ. Also reimplement INCS{DIR,NAME}_foo
(requested by wiz) in a backwards compatible way.

Reviewed by christos.


# 1.16 25-Oct-2001 thorpej

Sigh, back out previous -- it is necessary inorder for the depend
(and dependall) targets to work properly.

XXX THIS IS BROKEN. It's highly questionalble that we should be applying
our .depend-generating rules to a host system -- the mkdep we currently
use assumes GCC.


# 1.15 25-Oct-2001 thorpej

Remove an unnecessary "CPPFLAGS=${HOST_CPPFLAGS}" -- the host tool
targets use HOST_CPPFLAGS exclusively, and keeping this assignment
can get us into some unfortuante recursion trouble.


# 1.14 19-Oct-2001 tv

Add .NOPATH for all files generated from .l or .y files in SRCS. Fixes PRs
bin/14187 and lib/14239.

Also simplify the handling of these transforms to .c and .h files a bit by
leveraging make's builtin macro operators.


# 1.13 25-Sep-2001 tv

Set .NOPATH on program to build to make sure it goes in .OBJDIR.
Problem noted by <seebs@plethora.net>.


# 1.12 13-Sep-2001 thorpej

Add LIBPCI.


# 1.11 14-Aug-2001 tv

Rather than explicitly saying "clean cleandir:" all the time, make clean
a dependency of cleandir (so that "make cleandir" implies "make clean").


# 1.10 01-Jun-2001 tv

Make "distclean" a REAL synonym for "cleandir" by actually aliasing it
in <bsd.own.mk>, rather than sprinkling it in all the .mk files (and
some Makefiles throughout the tree).


# 1.9 04-Jan-2001 garbled

Add LIBCDK and LIBFORM definitions


# 1.8 31-Oct-2000 itojun

add ${LIBINTL} for use with DPADD.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.7 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.6 05-Feb-2000 jdc

Add libahdi entries.


# 1.5 22-Jan-2000 mycroft

Make `dependall' play nicely with SUBDIR, using a hack similar to `realinstall'
for both `depend' and `all'.
Also, remove the old hack that invokes an extra shell for .depend, now that
make(1) has been fixed.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.4 23-Nov-1999 blymn

Added libmenu library.


Revision tags: comdex-fall-1999-base
# 1.3 24-Sep-1999 wrstuden

Zap proginstall and scriptinstall - they don't make sense for hostprog.


# 1.2 14-Sep-1999 perry

branches: 1.2.2;
Add a "dependall" target, which does a "make depend" and then "make all"
in a single directory. This is useful in "make build" because by doing
the build immediately after the depend, all sources will typically
still be in the buffer cache, thus saving significant time over doing
a "make depend" on all the directories and then a "make all".


# 1.1 14-Jul-1999 wrstuden

Add bsd.hostprog.mk, a makefile for making programs used during
the build which will run on the build machine.


# 1.82 28-Oct-2019 maxv

Add nvmmctl, with two commands for now.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127
# 1.81 21-Jan-2019 christos

Most of the mv operations are to move temporary files to their final place.
Some use -f, others don't. This can lead to spurious build failures when
the user performing the build changes. Centralize, and always use -f.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.80 04-May-2018 christos

branches: 1.80.2;
include bsd.hostinit.mk instead of bsd.init.mk


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.79 25-Nov-2017 jmcneill

branches: 1.79.2;
Add LIBREFUSE define for DPADD


# 1.78 10-Oct-2017 christos

add the rump resolver library.


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.77 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.76 01-Jan-2016 christos

branches: 1.76.2; 1.76.4;
Add the pthread libraries, documented already in bsd.README; sort


# 1.75 22-Nov-2015 kamil

Add new predefined value for DPADD: LIBPANEL


# 1.74 01-Dec-2014 erh

PR toolchain/9618: add ".d" to MKDEP_SUFFIXES so the depend files are rebuilt
if any of their dependencies (i.e. the files they refer to) are changed.
This allows changes to transitive included headers to be handled properly.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base tls-maxphys-base
# 1.73 10-Apr-2014 plunky

the value of HOST_MKDEP previously depended on USETOOLS;
make it do so again, and centralise the USETOOLS=no case
into bsd.host.mk


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.72 29-Oct-2013 joerg

branches: 1.72.2;
Unbreak src/tools usage of C++.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.71 14-Jun-2013 tsutsui

Invoke tools/binstall/mkmanifest for Cygwin via ${HOST_SH}.
Fixes builds using source sets that drop executable bits.


# 1.70 11-Apr-2013 christos

add new libevent2 libraries.


Revision tags: agc-symver-base
# 1.69 17-Feb-2013 christos

Add a hook to create a manifest file if needed under cygwin


# 1.68 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 yamt-pagecache-base5 yamt-pagecache-base4
# 1.67 29-Feb-2012 tron

branches: 1.67.2;
Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.66 13-Oct-2011 joerg

branches: 1.66.2; 1.66.4;
Hook up SQLite into the build


# 1.65 07-Oct-2011 mrg

obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.


# 1.64 10-Sep-2011 apb

Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.


# 1.63 05-Jun-2011 christos

add libgcc_pic dependency.


Revision tags: cherry-xenmp-base
# 1.62 24-Mar-2011 bouyer

branches: 1.62.2;
Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase
# 1.61 20-Feb-2011 jmmv

Define LIBATF_C and LIBATF_CXX to point to their corresponding .a files and
use these to properly set DPADD for test programs.


Revision tags: bouyer-quota2-base matt-mips64-premerge-20101231
# 1.60 25-Dec-2010 joerg

branches: 1.60.2;
If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor. This avoids leaking the source
path into the final binaries.


# 1.59 22-Nov-2010 pooka

add LIBRUMPCLIENT


# 1.58 02-Nov-2010 joerg

Add LIBLZMA.


# 1.57 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.56 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.55 10-Apr-2009 apb

Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links. They have no effect except when using a
metalog, in which case the information is added to the metalog. In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg. This should fix PR 24457 and PR 41155.


# 1.54 19-Nov-2008 pooka

branches: 1.54.2;
Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


Revision tags: netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base
# 1.53 02-Oct-2008 joerg

branches: 1.53.2; 1.53.4;
Hook up libfetch and pkg_install update.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.52 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base
# 1.51 26-Apr-2008 christos

branches: 1.51.2;
make all shared libraries depend on libc.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base pc532-eol-2008 matt-armv6-nbase matt-armv6-prevmlocking wrstuden-fixsa-base-1 netbsd-4-0-RELEASE cube-autoconf-base netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-armv6-base matt-mips64-base hpcarm-cleanup-base wrstuden-fixsa-base netbsd-4-base
# 1.50 09-Nov-2006 christos

branches: 1.50.16; 1.50.18;
Add ssp glue.


# 1.49 22-Oct-2006 pooka

libpuffs


# 1.48 09-Oct-2006 mrg

- clean up some comments to reality.
- retire LIBDCK, LIBG2C and (long broken) USE_LIBSTDCXX
- in bsd.hostprog.mk's LIBSTDCPP -> LIBSTDCC
- add LIBSUPCXX
- don't default USE_LIBSTDCXX or USE_GCC4 since they are
not used in the tree any where
- same with USE_XF86_4; retire it
- remove _SUPCXX handling in bsd.prog.mk

inspired by PR#26714.


Revision tags: abandoned-netbsd-4-base
# 1.47 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.46 20-Mar-2006 christos

remove KRB4 libraries (Jukka Salmi)


# 1.45 02-Sep-2005 jwise

Add proper support for using bsd.hostprog.mk to build c++-based host
programs -- doesn't affect current host tools build (groff is built the
Makefile.gnuhost way).

Provides {.cc,.cpp,.cxx,.C}.lo rule, associated variables, and HOSTPROG_CXX
support (mirroring PROG_CXX in bsd.prog.mk).

Tested with from-scratch `build.sh tools' and full system build.


Revision tags: netbsd-3-base
# 1.44 20-Jun-2004 jmc

branches: 1.44.2;
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944


# 1.43 10-Jun-2004 lukem

Be consistent in handling YHEADER, similar to Christos' fix in bsd.lib.mk 1.253


# 1.42 21-May-2004 ross

If you add a library, you need to define its DPADD symbol here.

Add LIBMAGIC.


Revision tags: netbsd-2-0-base
# 1.41 29-Jan-2004 lukem

branches: 1.41.2;
Cosmetically tweak how .PHONY is used by (generally) providing it as a source,
instead of using it as a target with all the rules as its sources.


# 1.40 27-Jan-2004 lukem

Replace
:M-[IDU]*
with
:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*
so that arguments with whitespace after them work correctly.
Resolves [toolchain/18248] from Andrew White at Motorola.

Be consisent in this syntax; previously we'd sometimes we'd just have :M-[ID]*
which would ignore -Ufoo ...

(This needs :C///W support in make(1) that Simon Gerraty added for me :)


# 1.39 02-Jan-2004 lukem

Consistently test all variables that support a "yes"/"no" value with
${VAR} == "no"
or
${VAR} != "no"
(instead of against "yes"). Variables affected:
TOOLCHAIN_MISSING
HAVE_GCC3
USE_TOOLS_TOOLCHAIN
NEED_OWN_INSTALL_TARGET
USE_SHLIBDIR

Improve the documentation.


# 1.38 26-Dec-2003 christos

Add libstdc++


# 1.37 16-Nov-2003 lukem

simplify with _MKTARGET_LINK


# 1.36 11-Nov-2003 dsl

Set MKDEP_SUFFIXES to get additional targets in .depend instead of using
sed in .afterdepend. I don't think .afterdepend is used anywhere any more.


# 1.35 21-Oct-2003 lukem

Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.


# 1.34 19-Oct-2003 lukem

Provide _MKMSG{BUILD,CREATE,COMPILE,FORMAT,INSTALL,LINK,LEX,YACC} to display
${_MKMSG} " ... {$.TARGET}" and use appropriately.

Provide _MKMSGLINK.m to provide "link" message by itself (without ${.TARGET})

Replace _MKSHCMD with _MKSHECHO


# 1.33 18-Oct-2003 lukem

Implement MAKEVERBOSE to control how "verbose" the standard make(1) rules are.
Supported values:
0 Minimal output ("quiet")
1 Describe what is occurring
2 Describe what is occurring and echo the actual command ("verbose")
This is the default, and is equivalent to the previous behaviour.


# 1.32 01-Aug-2003 lukem

Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".


# 1.31 28-Jul-2003 lukem

be consistent when adding *.y and *.l to DPSRCS


# 1.30 18-Jul-2003 lukem

whitespace cleanup


# 1.29 16-Jul-2003 itojun

stop installing install libtelnet. build under lib/libtelnet and reference
it from usr.bin/telnet and libexec/telnetd.
(reason for separate build: compiler flags)


# 1.28 12-Jun-2003 provos

add LIBEVENT


# 1.27 11-Jun-2003 msaitoh

catch signal 1,2,3,13 and 15 to clean /tmp/_dependXXX


# 1.26 14-May-2003 dbj

remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets. Commits fix from PR toolchain/21495


Revision tags: fvdl_fs64_base
# 1.25 17-Sep-2002 thorpej

* Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
two variables:

TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
an external toolchain (e.g. /usr/local/gnu). This enables the cross-build
framework even for TOOLCHAIN_MISSING platforms.

If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
unconditionally set to "no", since the bits are not there to build.

If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
since the external toolchain's compiler is not in-sync with the
in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
that file can use it.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.24 29-Mar-2002 tv

COPTS is for target objects, not host objects.


# 1.23 03-Jan-2002 tv

Add more tolerant script-based implementation of mkdep for host tool
compiles. Based loosely on mkdep.old.compiler (so CSRG license copied),
but now uses just one rewrite (awk) process per cpp invocation and
determines the proper way to run cpp and awk via a "configure" script.

Use HOST_MKDEP in bsd.hostlib/hostprog.mk (defaulting to the old override
value of MKDEP), and give it a TOOLDIR equivalent in bsd.own.mk.


# 1.22 14-Nov-2001 tv

C/..$/.c/ -> C/\..$/.c/


# 1.21 14-Nov-2001 tv

Remove SHAREDSTRINGS logic for host programs; this is unnecessary here.


# 1.20 13-Nov-2001 tv

Move host program overrides of INSTALL and MKDEP to <bsd.hostprog.mk>.


# 1.19 12-Nov-2001 tv

Set CFLAGS and CPPFLAGS for the benefit of <bsd.dep.mk>, and move the
inclusion of <bsd.sys.mk> to the top to get defaults. (Dependency handling
needs a cleanup, and will get one soon....)


# 1.18 11-Nov-2001 tv

Affix the ${HOST_OSTYPE} info to the end of the objdir name if OBJMACHINE
is set (and MAKEOBJDIR[PREFIX] is not in use). This permits multiple hosts
to compile hostprogs (not just src/tools) for a given target without
colliding with each other.

Currently restricted only to new toolchain builds, as this requires a new
make(1) in order to function properly.


# 1.17 02-Nov-2001 tv

Improve readability and reduce redundant redundancy in share/mk; add some
descriptive comments. The guts of hostprog, lib, and prog are mostly
unchanged; this will be done in another pass.

Make several things work properly with UNPRIVILEGED set, and make the
install-time "cmp" logic work for MANZ. Also reimplement INCS{DIR,NAME}_foo
(requested by wiz) in a backwards compatible way.

Reviewed by christos.


# 1.16 25-Oct-2001 thorpej

Sigh, back out previous -- it is necessary inorder for the depend
(and dependall) targets to work properly.

XXX THIS IS BROKEN. It's highly questionalble that we should be applying
our .depend-generating rules to a host system -- the mkdep we currently
use assumes GCC.


# 1.15 25-Oct-2001 thorpej

Remove an unnecessary "CPPFLAGS=${HOST_CPPFLAGS}" -- the host tool
targets use HOST_CPPFLAGS exclusively, and keeping this assignment
can get us into some unfortuante recursion trouble.


# 1.14 19-Oct-2001 tv

Add .NOPATH for all files generated from .l or .y files in SRCS. Fixes PRs
bin/14187 and lib/14239.

Also simplify the handling of these transforms to .c and .h files a bit by
leveraging make's builtin macro operators.


# 1.13 25-Sep-2001 tv

Set .NOPATH on program to build to make sure it goes in .OBJDIR.
Problem noted by <seebs@plethora.net>.


# 1.12 13-Sep-2001 thorpej

Add LIBPCI.


# 1.11 14-Aug-2001 tv

Rather than explicitly saying "clean cleandir:" all the time, make clean
a dependency of cleandir (so that "make cleandir" implies "make clean").


# 1.10 01-Jun-2001 tv

Make "distclean" a REAL synonym for "cleandir" by actually aliasing it
in <bsd.own.mk>, rather than sprinkling it in all the .mk files (and
some Makefiles throughout the tree).


# 1.9 04-Jan-2001 garbled

Add LIBCDK and LIBFORM definitions


# 1.8 31-Oct-2000 itojun

add ${LIBINTL} for use with DPADD.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.7 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.6 05-Feb-2000 jdc

Add libahdi entries.


# 1.5 22-Jan-2000 mycroft

Make `dependall' play nicely with SUBDIR, using a hack similar to `realinstall'
for both `depend' and `all'.
Also, remove the old hack that invokes an extra shell for .depend, now that
make(1) has been fixed.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.4 23-Nov-1999 blymn

Added libmenu library.


Revision tags: comdex-fall-1999-base
# 1.3 24-Sep-1999 wrstuden

Zap proginstall and scriptinstall - they don't make sense for hostprog.


# 1.2 14-Sep-1999 perry

branches: 1.2.2;
Add a "dependall" target, which does a "make depend" and then "make all"
in a single directory. This is useful in "make build" because by doing
the build immediately after the depend, all sources will typically
still be in the buffer cache, thus saving significant time over doing
a "make depend" on all the directories and then a "make all".


# 1.1 14-Jul-1999 wrstuden

Add bsd.hostprog.mk, a makefile for making programs used during
the build which will run on the build machine.


Revision tags: pgoyette-compat-20190127
# 1.81 21-Jan-2019 christos

Most of the mv operations are to move temporary files to their final place.
Some use -f, others don't. This can lead to spurious build failures when
the user performing the build changes. Centralize, and always use -f.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.80 04-May-2018 christos

include bsd.hostinit.mk instead of bsd.init.mk


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.79 25-Nov-2017 jmcneill

branches: 1.79.2;
Add LIBREFUSE define for DPADD


# 1.78 10-Oct-2017 christos

add the rump resolver library.


Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.77 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.76 01-Jan-2016 christos

branches: 1.76.2; 1.76.4;
Add the pthread libraries, documented already in bsd.README; sort


# 1.75 22-Nov-2015 kamil

Add new predefined value for DPADD: LIBPANEL


# 1.74 01-Dec-2014 erh

PR toolchain/9618: add ".d" to MKDEP_SUFFIXES so the depend files are rebuilt
if any of their dependencies (i.e. the files they refer to) are changed.
This allows changes to transitive included headers to be handled properly.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base tls-maxphys-base
# 1.73 10-Apr-2014 plunky

the value of HOST_MKDEP previously depended on USETOOLS;
make it do so again, and centralise the USETOOLS=no case
into bsd.host.mk


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.72 29-Oct-2013 joerg

branches: 1.72.2;
Unbreak src/tools usage of C++.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.71 14-Jun-2013 tsutsui

Invoke tools/binstall/mkmanifest for Cygwin via ${HOST_SH}.
Fixes builds using source sets that drop executable bits.


# 1.70 11-Apr-2013 christos

add new libevent2 libraries.


Revision tags: agc-symver-base
# 1.69 17-Feb-2013 christos

Add a hook to create a manifest file if needed under cygwin


# 1.68 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 yamt-pagecache-base5 yamt-pagecache-base4
# 1.67 29-Feb-2012 tron

branches: 1.67.2;
Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.66 13-Oct-2011 joerg

branches: 1.66.2; 1.66.4;
Hook up SQLite into the build


# 1.65 07-Oct-2011 mrg

obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.


# 1.64 10-Sep-2011 apb

Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.


# 1.63 05-Jun-2011 christos

add libgcc_pic dependency.


Revision tags: cherry-xenmp-base
# 1.62 24-Mar-2011 bouyer

branches: 1.62.2;
Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase
# 1.61 20-Feb-2011 jmmv

Define LIBATF_C and LIBATF_CXX to point to their corresponding .a files and
use these to properly set DPADD for test programs.


Revision tags: bouyer-quota2-base matt-mips64-premerge-20101231
# 1.60 25-Dec-2010 joerg

branches: 1.60.2;
If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor. This avoids leaking the source
path into the final binaries.


# 1.59 22-Nov-2010 pooka

add LIBRUMPCLIENT


# 1.58 02-Nov-2010 joerg

Add LIBLZMA.


# 1.57 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.56 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.55 10-Apr-2009 apb

Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links. They have no effect except when using a
metalog, in which case the information is added to the metalog. In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg. This should fix PR 24457 and PR 41155.


# 1.54 19-Nov-2008 pooka

branches: 1.54.2;
Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


Revision tags: netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base
# 1.53 02-Oct-2008 joerg

branches: 1.53.2; 1.53.4;
Hook up libfetch and pkg_install update.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.52 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base
# 1.51 26-Apr-2008 christos

branches: 1.51.2;
make all shared libraries depend on libc.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base pc532-eol-2008 matt-armv6-nbase matt-armv6-prevmlocking wrstuden-fixsa-base-1 netbsd-4-0-RELEASE cube-autoconf-base netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-armv6-base matt-mips64-base hpcarm-cleanup-base wrstuden-fixsa-base netbsd-4-base
# 1.50 09-Nov-2006 christos

branches: 1.50.16; 1.50.18;
Add ssp glue.


# 1.49 22-Oct-2006 pooka

libpuffs


# 1.48 09-Oct-2006 mrg

- clean up some comments to reality.
- retire LIBDCK, LIBG2C and (long broken) USE_LIBSTDCXX
- in bsd.hostprog.mk's LIBSTDCPP -> LIBSTDCC
- add LIBSUPCXX
- don't default USE_LIBSTDCXX or USE_GCC4 since they are
not used in the tree any where
- same with USE_XF86_4; retire it
- remove _SUPCXX handling in bsd.prog.mk

inspired by PR#26714.


Revision tags: abandoned-netbsd-4-base
# 1.47 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.46 20-Mar-2006 christos

remove KRB4 libraries (Jukka Salmi)


# 1.45 02-Sep-2005 jwise

Add proper support for using bsd.hostprog.mk to build c++-based host
programs -- doesn't affect current host tools build (groff is built the
Makefile.gnuhost way).

Provides {.cc,.cpp,.cxx,.C}.lo rule, associated variables, and HOSTPROG_CXX
support (mirroring PROG_CXX in bsd.prog.mk).

Tested with from-scratch `build.sh tools' and full system build.


Revision tags: netbsd-3-base
# 1.44 20-Jun-2004 jmc

branches: 1.44.2;
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944


# 1.43 10-Jun-2004 lukem

Be consistent in handling YHEADER, similar to Christos' fix in bsd.lib.mk 1.253


# 1.42 21-May-2004 ross

If you add a library, you need to define its DPADD symbol here.

Add LIBMAGIC.


Revision tags: netbsd-2-0-base
# 1.41 29-Jan-2004 lukem

branches: 1.41.2;
Cosmetically tweak how .PHONY is used by (generally) providing it as a source,
instead of using it as a target with all the rules as its sources.


# 1.40 27-Jan-2004 lukem

Replace
:M-[IDU]*
with
:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*
so that arguments with whitespace after them work correctly.
Resolves [toolchain/18248] from Andrew White at Motorola.

Be consisent in this syntax; previously we'd sometimes we'd just have :M-[ID]*
which would ignore -Ufoo ...

(This needs :C///W support in make(1) that Simon Gerraty added for me :)


# 1.39 02-Jan-2004 lukem

Consistently test all variables that support a "yes"/"no" value with
${VAR} == "no"
or
${VAR} != "no"
(instead of against "yes"). Variables affected:
TOOLCHAIN_MISSING
HAVE_GCC3
USE_TOOLS_TOOLCHAIN
NEED_OWN_INSTALL_TARGET
USE_SHLIBDIR

Improve the documentation.


# 1.38 26-Dec-2003 christos

Add libstdc++


# 1.37 16-Nov-2003 lukem

simplify with _MKTARGET_LINK


# 1.36 11-Nov-2003 dsl

Set MKDEP_SUFFIXES to get additional targets in .depend instead of using
sed in .afterdepend. I don't think .afterdepend is used anywhere any more.


# 1.35 21-Oct-2003 lukem

Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.


# 1.34 19-Oct-2003 lukem

Provide _MKMSG{BUILD,CREATE,COMPILE,FORMAT,INSTALL,LINK,LEX,YACC} to display
${_MKMSG} " ... {$.TARGET}" and use appropriately.

Provide _MKMSGLINK.m to provide "link" message by itself (without ${.TARGET})

Replace _MKSHCMD with _MKSHECHO


# 1.33 18-Oct-2003 lukem

Implement MAKEVERBOSE to control how "verbose" the standard make(1) rules are.
Supported values:
0 Minimal output ("quiet")
1 Describe what is occurring
2 Describe what is occurring and echo the actual command ("verbose")
This is the default, and is equivalent to the previous behaviour.


# 1.32 01-Aug-2003 lukem

Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".


# 1.31 28-Jul-2003 lukem

be consistent when adding *.y and *.l to DPSRCS


# 1.30 18-Jul-2003 lukem

whitespace cleanup


# 1.29 16-Jul-2003 itojun

stop installing install libtelnet. build under lib/libtelnet and reference
it from usr.bin/telnet and libexec/telnetd.
(reason for separate build: compiler flags)


# 1.28 12-Jun-2003 provos

add LIBEVENT


# 1.27 11-Jun-2003 msaitoh

catch signal 1,2,3,13 and 15 to clean /tmp/_dependXXX


# 1.26 14-May-2003 dbj

remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets. Commits fix from PR toolchain/21495


Revision tags: fvdl_fs64_base
# 1.25 17-Sep-2002 thorpej

* Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
two variables:

TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
an external toolchain (e.g. /usr/local/gnu). This enables the cross-build
framework even for TOOLCHAIN_MISSING platforms.

If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
unconditionally set to "no", since the bits are not there to build.

If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
since the external toolchain's compiler is not in-sync with the
in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
that file can use it.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.24 29-Mar-2002 tv

COPTS is for target objects, not host objects.


# 1.23 03-Jan-2002 tv

Add more tolerant script-based implementation of mkdep for host tool
compiles. Based loosely on mkdep.old.compiler (so CSRG license copied),
but now uses just one rewrite (awk) process per cpp invocation and
determines the proper way to run cpp and awk via a "configure" script.

Use HOST_MKDEP in bsd.hostlib/hostprog.mk (defaulting to the old override
value of MKDEP), and give it a TOOLDIR equivalent in bsd.own.mk.


# 1.22 14-Nov-2001 tv

C/..$/.c/ -> C/\..$/.c/


# 1.21 14-Nov-2001 tv

Remove SHAREDSTRINGS logic for host programs; this is unnecessary here.


# 1.20 13-Nov-2001 tv

Move host program overrides of INSTALL and MKDEP to <bsd.hostprog.mk>.


# 1.19 12-Nov-2001 tv

Set CFLAGS and CPPFLAGS for the benefit of <bsd.dep.mk>, and move the
inclusion of <bsd.sys.mk> to the top to get defaults. (Dependency handling
needs a cleanup, and will get one soon....)


# 1.18 11-Nov-2001 tv

Affix the ${HOST_OSTYPE} info to the end of the objdir name if OBJMACHINE
is set (and MAKEOBJDIR[PREFIX] is not in use). This permits multiple hosts
to compile hostprogs (not just src/tools) for a given target without
colliding with each other.

Currently restricted only to new toolchain builds, as this requires a new
make(1) in order to function properly.


# 1.17 02-Nov-2001 tv

Improve readability and reduce redundant redundancy in share/mk; add some
descriptive comments. The guts of hostprog, lib, and prog are mostly
unchanged; this will be done in another pass.

Make several things work properly with UNPRIVILEGED set, and make the
install-time "cmp" logic work for MANZ. Also reimplement INCS{DIR,NAME}_foo
(requested by wiz) in a backwards compatible way.

Reviewed by christos.


# 1.16 25-Oct-2001 thorpej

Sigh, back out previous -- it is necessary inorder for the depend
(and dependall) targets to work properly.

XXX THIS IS BROKEN. It's highly questionalble that we should be applying
our .depend-generating rules to a host system -- the mkdep we currently
use assumes GCC.


# 1.15 25-Oct-2001 thorpej

Remove an unnecessary "CPPFLAGS=${HOST_CPPFLAGS}" -- the host tool
targets use HOST_CPPFLAGS exclusively, and keeping this assignment
can get us into some unfortuante recursion trouble.


# 1.14 19-Oct-2001 tv

Add .NOPATH for all files generated from .l or .y files in SRCS. Fixes PRs
bin/14187 and lib/14239.

Also simplify the handling of these transforms to .c and .h files a bit by
leveraging make's builtin macro operators.


# 1.13 25-Sep-2001 tv

Set .NOPATH on program to build to make sure it goes in .OBJDIR.
Problem noted by <seebs@plethora.net>.


# 1.12 13-Sep-2001 thorpej

Add LIBPCI.


# 1.11 14-Aug-2001 tv

Rather than explicitly saying "clean cleandir:" all the time, make clean
a dependency of cleandir (so that "make cleandir" implies "make clean").


# 1.10 01-Jun-2001 tv

Make "distclean" a REAL synonym for "cleandir" by actually aliasing it
in <bsd.own.mk>, rather than sprinkling it in all the .mk files (and
some Makefiles throughout the tree).


# 1.9 04-Jan-2001 garbled

Add LIBCDK and LIBFORM definitions


# 1.8 31-Oct-2000 itojun

add ${LIBINTL} for use with DPADD.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.7 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.6 05-Feb-2000 jdc

Add libahdi entries.


# 1.5 22-Jan-2000 mycroft

Make `dependall' play nicely with SUBDIR, using a hack similar to `realinstall'
for both `depend' and `all'.
Also, remove the old hack that invokes an extra shell for .depend, now that
make(1) has been fixed.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.4 23-Nov-1999 blymn

Added libmenu library.


Revision tags: comdex-fall-1999-base
# 1.3 24-Sep-1999 wrstuden

Zap proginstall and scriptinstall - they don't make sense for hostprog.


# 1.2 14-Sep-1999 perry

branches: 1.2.2;
Add a "dependall" target, which does a "make depend" and then "make all"
in a single directory. This is useful in "make build" because by doing
the build immediately after the depend, all sources will typically
still be in the buffer cache, thus saving significant time over doing
a "make depend" on all the directories and then a "make all".


# 1.1 14-Jul-1999 wrstuden

Add bsd.hostprog.mk, a makefile for making programs used during
the build which will run on the build machine.


# 1.79 25-Nov-2017 jmcneill

Add LIBREFUSE define for DPADD


# 1.78 10-Oct-2017 christos

add the rump resolver library.


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.77 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.76 01-Jan-2016 christos

branches: 1.76.2; 1.76.4;
Add the pthread libraries, documented already in bsd.README; sort


# 1.75 22-Nov-2015 kamil

Add new predefined value for DPADD: LIBPANEL


# 1.74 01-Dec-2014 erh

PR toolchain/9618: add ".d" to MKDEP_SUFFIXES so the depend files are rebuilt
if any of their dependencies (i.e. the files they refer to) are changed.
This allows changes to transitive included headers to be handled properly.


Revision tags: netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base tls-maxphys-base
# 1.73 10-Apr-2014 plunky

the value of HOST_MKDEP previously depended on USETOOLS;
make it do so again, and centralise the USETOOLS=no case
into bsd.host.mk


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.72 29-Oct-2013 joerg

branches: 1.72.2;
Unbreak src/tools usage of C++.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.71 14-Jun-2013 tsutsui

Invoke tools/binstall/mkmanifest for Cygwin via ${HOST_SH}.
Fixes builds using source sets that drop executable bits.


# 1.70 11-Apr-2013 christos

add new libevent2 libraries.


Revision tags: agc-symver-base
# 1.69 17-Feb-2013 christos

Add a hook to create a manifest file if needed under cygwin


# 1.68 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 yamt-pagecache-base5 yamt-pagecache-base4
# 1.67 29-Feb-2012 tron

branches: 1.67.2;
Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.66 13-Oct-2011 joerg

branches: 1.66.2; 1.66.4;
Hook up SQLite into the build


# 1.65 07-Oct-2011 mrg

obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.


# 1.64 10-Sep-2011 apb

Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.


# 1.63 05-Jun-2011 christos

add libgcc_pic dependency.


Revision tags: cherry-xenmp-base
# 1.62 24-Mar-2011 bouyer

branches: 1.62.2;
Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase
# 1.61 20-Feb-2011 jmmv

Define LIBATF_C and LIBATF_CXX to point to their corresponding .a files and
use these to properly set DPADD for test programs.


Revision tags: bouyer-quota2-base matt-mips64-premerge-20101231
# 1.60 25-Dec-2010 joerg

branches: 1.60.2;
If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor. This avoids leaking the source
path into the final binaries.


# 1.59 22-Nov-2010 pooka

add LIBRUMPCLIENT


# 1.58 02-Nov-2010 joerg

Add LIBLZMA.


# 1.57 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.56 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.55 10-Apr-2009 apb

Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links. They have no effect except when using a
metalog, in which case the information is added to the metalog. In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg. This should fix PR 24457 and PR 41155.


# 1.54 19-Nov-2008 pooka

branches: 1.54.2;
Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


Revision tags: netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base
# 1.53 02-Oct-2008 joerg

branches: 1.53.2; 1.53.4;
Hook up libfetch and pkg_install update.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.52 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base
# 1.51 26-Apr-2008 christos

branches: 1.51.2;
make all shared libraries depend on libc.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base pc532-eol-2008 matt-armv6-nbase matt-armv6-prevmlocking wrstuden-fixsa-base-1 netbsd-4-0-RELEASE cube-autoconf-base netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-armv6-base matt-mips64-base hpcarm-cleanup-base wrstuden-fixsa-base netbsd-4-base
# 1.50 09-Nov-2006 christos

branches: 1.50.16; 1.50.18;
Add ssp glue.


# 1.49 22-Oct-2006 pooka

libpuffs


# 1.48 09-Oct-2006 mrg

- clean up some comments to reality.
- retire LIBDCK, LIBG2C and (long broken) USE_LIBSTDCXX
- in bsd.hostprog.mk's LIBSTDCPP -> LIBSTDCC
- add LIBSUPCXX
- don't default USE_LIBSTDCXX or USE_GCC4 since they are
not used in the tree any where
- same with USE_XF86_4; retire it
- remove _SUPCXX handling in bsd.prog.mk

inspired by PR#26714.


Revision tags: abandoned-netbsd-4-base
# 1.47 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.46 20-Mar-2006 christos

remove KRB4 libraries (Jukka Salmi)


# 1.45 02-Sep-2005 jwise

Add proper support for using bsd.hostprog.mk to build c++-based host
programs -- doesn't affect current host tools build (groff is built the
Makefile.gnuhost way).

Provides {.cc,.cpp,.cxx,.C}.lo rule, associated variables, and HOSTPROG_CXX
support (mirroring PROG_CXX in bsd.prog.mk).

Tested with from-scratch `build.sh tools' and full system build.


Revision tags: netbsd-3-base
# 1.44 20-Jun-2004 jmc

branches: 1.44.2;
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944


# 1.43 10-Jun-2004 lukem

Be consistent in handling YHEADER, similar to Christos' fix in bsd.lib.mk 1.253


# 1.42 21-May-2004 ross

If you add a library, you need to define its DPADD symbol here.

Add LIBMAGIC.


Revision tags: netbsd-2-0-base
# 1.41 29-Jan-2004 lukem

branches: 1.41.2;
Cosmetically tweak how .PHONY is used by (generally) providing it as a source,
instead of using it as a target with all the rules as its sources.


# 1.40 27-Jan-2004 lukem

Replace
:M-[IDU]*
with
:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*
so that arguments with whitespace after them work correctly.
Resolves [toolchain/18248] from Andrew White at Motorola.

Be consisent in this syntax; previously we'd sometimes we'd just have :M-[ID]*
which would ignore -Ufoo ...

(This needs :C///W support in make(1) that Simon Gerraty added for me :)


# 1.39 02-Jan-2004 lukem

Consistently test all variables that support a "yes"/"no" value with
${VAR} == "no"
or
${VAR} != "no"
(instead of against "yes"). Variables affected:
TOOLCHAIN_MISSING
HAVE_GCC3
USE_TOOLS_TOOLCHAIN
NEED_OWN_INSTALL_TARGET
USE_SHLIBDIR

Improve the documentation.


# 1.38 26-Dec-2003 christos

Add libstdc++


# 1.37 16-Nov-2003 lukem

simplify with _MKTARGET_LINK


# 1.36 11-Nov-2003 dsl

Set MKDEP_SUFFIXES to get additional targets in .depend instead of using
sed in .afterdepend. I don't think .afterdepend is used anywhere any more.


# 1.35 21-Oct-2003 lukem

Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.


# 1.34 19-Oct-2003 lukem

Provide _MKMSG{BUILD,CREATE,COMPILE,FORMAT,INSTALL,LINK,LEX,YACC} to display
${_MKMSG} " ... {$.TARGET}" and use appropriately.

Provide _MKMSGLINK.m to provide "link" message by itself (without ${.TARGET})

Replace _MKSHCMD with _MKSHECHO


# 1.33 18-Oct-2003 lukem

Implement MAKEVERBOSE to control how "verbose" the standard make(1) rules are.
Supported values:
0 Minimal output ("quiet")
1 Describe what is occurring
2 Describe what is occurring and echo the actual command ("verbose")
This is the default, and is equivalent to the previous behaviour.


# 1.32 01-Aug-2003 lukem

Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".


# 1.31 28-Jul-2003 lukem

be consistent when adding *.y and *.l to DPSRCS


# 1.30 18-Jul-2003 lukem

whitespace cleanup


# 1.29 16-Jul-2003 itojun

stop installing install libtelnet. build under lib/libtelnet and reference
it from usr.bin/telnet and libexec/telnetd.
(reason for separate build: compiler flags)


# 1.28 12-Jun-2003 provos

add LIBEVENT


# 1.27 11-Jun-2003 msaitoh

catch signal 1,2,3,13 and 15 to clean /tmp/_dependXXX


# 1.26 14-May-2003 dbj

remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets. Commits fix from PR toolchain/21495


Revision tags: fvdl_fs64_base
# 1.25 17-Sep-2002 thorpej

* Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
two variables:

TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
an external toolchain (e.g. /usr/local/gnu). This enables the cross-build
framework even for TOOLCHAIN_MISSING platforms.

If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
unconditionally set to "no", since the bits are not there to build.

If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
since the external toolchain's compiler is not in-sync with the
in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
that file can use it.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.24 29-Mar-2002 tv

COPTS is for target objects, not host objects.


# 1.23 03-Jan-2002 tv

Add more tolerant script-based implementation of mkdep for host tool
compiles. Based loosely on mkdep.old.compiler (so CSRG license copied),
but now uses just one rewrite (awk) process per cpp invocation and
determines the proper way to run cpp and awk via a "configure" script.

Use HOST_MKDEP in bsd.hostlib/hostprog.mk (defaulting to the old override
value of MKDEP), and give it a TOOLDIR equivalent in bsd.own.mk.


# 1.22 14-Nov-2001 tv

C/..$/.c/ -> C/\..$/.c/


# 1.21 14-Nov-2001 tv

Remove SHAREDSTRINGS logic for host programs; this is unnecessary here.


# 1.20 13-Nov-2001 tv

Move host program overrides of INSTALL and MKDEP to <bsd.hostprog.mk>.


# 1.19 12-Nov-2001 tv

Set CFLAGS and CPPFLAGS for the benefit of <bsd.dep.mk>, and move the
inclusion of <bsd.sys.mk> to the top to get defaults. (Dependency handling
needs a cleanup, and will get one soon....)


# 1.18 11-Nov-2001 tv

Affix the ${HOST_OSTYPE} info to the end of the objdir name if OBJMACHINE
is set (and MAKEOBJDIR[PREFIX] is not in use). This permits multiple hosts
to compile hostprogs (not just src/tools) for a given target without
colliding with each other.

Currently restricted only to new toolchain builds, as this requires a new
make(1) in order to function properly.


# 1.17 02-Nov-2001 tv

Improve readability and reduce redundant redundancy in share/mk; add some
descriptive comments. The guts of hostprog, lib, and prog are mostly
unchanged; this will be done in another pass.

Make several things work properly with UNPRIVILEGED set, and make the
install-time "cmp" logic work for MANZ. Also reimplement INCS{DIR,NAME}_foo
(requested by wiz) in a backwards compatible way.

Reviewed by christos.


# 1.16 25-Oct-2001 thorpej

Sigh, back out previous -- it is necessary inorder for the depend
(and dependall) targets to work properly.

XXX THIS IS BROKEN. It's highly questionalble that we should be applying
our .depend-generating rules to a host system -- the mkdep we currently
use assumes GCC.


# 1.15 25-Oct-2001 thorpej

Remove an unnecessary "CPPFLAGS=${HOST_CPPFLAGS}" -- the host tool
targets use HOST_CPPFLAGS exclusively, and keeping this assignment
can get us into some unfortuante recursion trouble.


# 1.14 19-Oct-2001 tv

Add .NOPATH for all files generated from .l or .y files in SRCS. Fixes PRs
bin/14187 and lib/14239.

Also simplify the handling of these transforms to .c and .h files a bit by
leveraging make's builtin macro operators.


# 1.13 25-Sep-2001 tv

Set .NOPATH on program to build to make sure it goes in .OBJDIR.
Problem noted by <seebs@plethora.net>.


# 1.12 13-Sep-2001 thorpej

Add LIBPCI.


# 1.11 14-Aug-2001 tv

Rather than explicitly saying "clean cleandir:" all the time, make clean
a dependency of cleandir (so that "make cleandir" implies "make clean").


# 1.10 01-Jun-2001 tv

Make "distclean" a REAL synonym for "cleandir" by actually aliasing it
in <bsd.own.mk>, rather than sprinkling it in all the .mk files (and
some Makefiles throughout the tree).


# 1.9 04-Jan-2001 garbled

Add LIBCDK and LIBFORM definitions


# 1.8 31-Oct-2000 itojun

add ${LIBINTL} for use with DPADD.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.7 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.6 05-Feb-2000 jdc

Add libahdi entries.


# 1.5 22-Jan-2000 mycroft

Make `dependall' play nicely with SUBDIR, using a hack similar to `realinstall'
for both `depend' and `all'.
Also, remove the old hack that invokes an extra shell for .depend, now that
make(1) has been fixed.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.4 23-Nov-1999 blymn

Added libmenu library.


Revision tags: comdex-fall-1999-base
# 1.3 24-Sep-1999 wrstuden

Zap proginstall and scriptinstall - they don't make sense for hostprog.


# 1.2 14-Sep-1999 perry

branches: 1.2.2;
Add a "dependall" target, which does a "make depend" and then "make all"
in a single directory. This is useful in "make build" because by doing
the build immediately after the depend, all sources will typically
still be in the buffer cache, thus saving significant time over doing
a "make depend" on all the directories and then a "make all".


# 1.1 14-Jul-1999 wrstuden

Add bsd.hostprog.mk, a makefile for making programs used during
the build which will run on the build machine.


# 1.78 10-Oct-2017 christos

add the rump resolver library.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.77 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.76 01-Jan-2016 christos

branches: 1.76.2; 1.76.4;
Add the pthread libraries, documented already in bsd.README; sort


# 1.75 22-Nov-2015 kamil

Add new predefined value for DPADD: LIBPANEL


# 1.74 01-Dec-2014 erh

PR toolchain/9618: add ".d" to MKDEP_SUFFIXES so the depend files are rebuilt
if any of their dependencies (i.e. the files they refer to) are changed.
This allows changes to transitive included headers to be handled properly.


Revision tags: netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base tls-maxphys-base
# 1.73 10-Apr-2014 plunky

the value of HOST_MKDEP previously depended on USETOOLS;
make it do so again, and centralise the USETOOLS=no case
into bsd.host.mk


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.72 29-Oct-2013 joerg

branches: 1.72.2;
Unbreak src/tools usage of C++.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.71 14-Jun-2013 tsutsui

Invoke tools/binstall/mkmanifest for Cygwin via ${HOST_SH}.
Fixes builds using source sets that drop executable bits.


# 1.70 11-Apr-2013 christos

add new libevent2 libraries.


Revision tags: agc-symver-base
# 1.69 17-Feb-2013 christos

Add a hook to create a manifest file if needed under cygwin


# 1.68 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 yamt-pagecache-base5 yamt-pagecache-base4
# 1.67 29-Feb-2012 tron

branches: 1.67.2;
Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.66 13-Oct-2011 joerg

branches: 1.66.2; 1.66.4;
Hook up SQLite into the build


# 1.65 07-Oct-2011 mrg

obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.


# 1.64 10-Sep-2011 apb

Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.


# 1.63 05-Jun-2011 christos

add libgcc_pic dependency.


Revision tags: cherry-xenmp-base
# 1.62 24-Mar-2011 bouyer

branches: 1.62.2;
Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase
# 1.61 20-Feb-2011 jmmv

Define LIBATF_C and LIBATF_CXX to point to their corresponding .a files and
use these to properly set DPADD for test programs.


Revision tags: bouyer-quota2-base matt-mips64-premerge-20101231
# 1.60 25-Dec-2010 joerg

branches: 1.60.2;
If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor. This avoids leaking the source
path into the final binaries.


# 1.59 22-Nov-2010 pooka

add LIBRUMPCLIENT


# 1.58 02-Nov-2010 joerg

Add LIBLZMA.


# 1.57 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.56 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.55 10-Apr-2009 apb

Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links. They have no effect except when using a
metalog, in which case the information is added to the metalog. In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg. This should fix PR 24457 and PR 41155.


# 1.54 19-Nov-2008 pooka

branches: 1.54.2;
Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


Revision tags: netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base
# 1.53 02-Oct-2008 joerg

branches: 1.53.2; 1.53.4;
Hook up libfetch and pkg_install update.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.52 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base
# 1.51 26-Apr-2008 christos

branches: 1.51.2;
make all shared libraries depend on libc.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base pc532-eol-2008 matt-armv6-nbase matt-armv6-prevmlocking wrstuden-fixsa-base-1 netbsd-4-0-RELEASE cube-autoconf-base netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-armv6-base matt-mips64-base hpcarm-cleanup-base wrstuden-fixsa-base netbsd-4-base
# 1.50 09-Nov-2006 christos

branches: 1.50.16; 1.50.18;
Add ssp glue.


# 1.49 22-Oct-2006 pooka

libpuffs


# 1.48 09-Oct-2006 mrg

- clean up some comments to reality.
- retire LIBDCK, LIBG2C and (long broken) USE_LIBSTDCXX
- in bsd.hostprog.mk's LIBSTDCPP -> LIBSTDCC
- add LIBSUPCXX
- don't default USE_LIBSTDCXX or USE_GCC4 since they are
not used in the tree any where
- same with USE_XF86_4; retire it
- remove _SUPCXX handling in bsd.prog.mk

inspired by PR#26714.


Revision tags: abandoned-netbsd-4-base
# 1.47 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.46 20-Mar-2006 christos

remove KRB4 libraries (Jukka Salmi)


# 1.45 02-Sep-2005 jwise

Add proper support for using bsd.hostprog.mk to build c++-based host
programs -- doesn't affect current host tools build (groff is built the
Makefile.gnuhost way).

Provides {.cc,.cpp,.cxx,.C}.lo rule, associated variables, and HOSTPROG_CXX
support (mirroring PROG_CXX in bsd.prog.mk).

Tested with from-scratch `build.sh tools' and full system build.


Revision tags: netbsd-3-base
# 1.44 20-Jun-2004 jmc

branches: 1.44.2;
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944


# 1.43 10-Jun-2004 lukem

Be consistent in handling YHEADER, similar to Christos' fix in bsd.lib.mk 1.253


# 1.42 21-May-2004 ross

If you add a library, you need to define its DPADD symbol here.

Add LIBMAGIC.


Revision tags: netbsd-2-0-base
# 1.41 29-Jan-2004 lukem

branches: 1.41.2;
Cosmetically tweak how .PHONY is used by (generally) providing it as a source,
instead of using it as a target with all the rules as its sources.


# 1.40 27-Jan-2004 lukem

Replace
:M-[IDU]*
with
:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*
so that arguments with whitespace after them work correctly.
Resolves [toolchain/18248] from Andrew White at Motorola.

Be consisent in this syntax; previously we'd sometimes we'd just have :M-[ID]*
which would ignore -Ufoo ...

(This needs :C///W support in make(1) that Simon Gerraty added for me :)


# 1.39 02-Jan-2004 lukem

Consistently test all variables that support a "yes"/"no" value with
${VAR} == "no"
or
${VAR} != "no"
(instead of against "yes"). Variables affected:
TOOLCHAIN_MISSING
HAVE_GCC3
USE_TOOLS_TOOLCHAIN
NEED_OWN_INSTALL_TARGET
USE_SHLIBDIR

Improve the documentation.


# 1.38 26-Dec-2003 christos

Add libstdc++


# 1.37 16-Nov-2003 lukem

simplify with _MKTARGET_LINK


# 1.36 11-Nov-2003 dsl

Set MKDEP_SUFFIXES to get additional targets in .depend instead of using
sed in .afterdepend. I don't think .afterdepend is used anywhere any more.


# 1.35 21-Oct-2003 lukem

Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.


# 1.34 19-Oct-2003 lukem

Provide _MKMSG{BUILD,CREATE,COMPILE,FORMAT,INSTALL,LINK,LEX,YACC} to display
${_MKMSG} " ... {$.TARGET}" and use appropriately.

Provide _MKMSGLINK.m to provide "link" message by itself (without ${.TARGET})

Replace _MKSHCMD with _MKSHECHO


# 1.33 18-Oct-2003 lukem

Implement MAKEVERBOSE to control how "verbose" the standard make(1) rules are.
Supported values:
0 Minimal output ("quiet")
1 Describe what is occurring
2 Describe what is occurring and echo the actual command ("verbose")
This is the default, and is equivalent to the previous behaviour.


# 1.32 01-Aug-2003 lukem

Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".


# 1.31 28-Jul-2003 lukem

be consistent when adding *.y and *.l to DPSRCS


# 1.30 18-Jul-2003 lukem

whitespace cleanup


# 1.29 16-Jul-2003 itojun

stop installing install libtelnet. build under lib/libtelnet and reference
it from usr.bin/telnet and libexec/telnetd.
(reason for separate build: compiler flags)


# 1.28 12-Jun-2003 provos

add LIBEVENT


# 1.27 11-Jun-2003 msaitoh

catch signal 1,2,3,13 and 15 to clean /tmp/_dependXXX


# 1.26 14-May-2003 dbj

remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets. Commits fix from PR toolchain/21495


Revision tags: fvdl_fs64_base
# 1.25 17-Sep-2002 thorpej

* Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
two variables:

TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
an external toolchain (e.g. /usr/local/gnu). This enables the cross-build
framework even for TOOLCHAIN_MISSING platforms.

If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
unconditionally set to "no", since the bits are not there to build.

If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
since the external toolchain's compiler is not in-sync with the
in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
that file can use it.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.24 29-Mar-2002 tv

COPTS is for target objects, not host objects.


# 1.23 03-Jan-2002 tv

Add more tolerant script-based implementation of mkdep for host tool
compiles. Based loosely on mkdep.old.compiler (so CSRG license copied),
but now uses just one rewrite (awk) process per cpp invocation and
determines the proper way to run cpp and awk via a "configure" script.

Use HOST_MKDEP in bsd.hostlib/hostprog.mk (defaulting to the old override
value of MKDEP), and give it a TOOLDIR equivalent in bsd.own.mk.


# 1.22 14-Nov-2001 tv

C/..$/.c/ -> C/\..$/.c/


# 1.21 14-Nov-2001 tv

Remove SHAREDSTRINGS logic for host programs; this is unnecessary here.


# 1.20 13-Nov-2001 tv

Move host program overrides of INSTALL and MKDEP to <bsd.hostprog.mk>.


# 1.19 12-Nov-2001 tv

Set CFLAGS and CPPFLAGS for the benefit of <bsd.dep.mk>, and move the
inclusion of <bsd.sys.mk> to the top to get defaults. (Dependency handling
needs a cleanup, and will get one soon....)


# 1.18 11-Nov-2001 tv

Affix the ${HOST_OSTYPE} info to the end of the objdir name if OBJMACHINE
is set (and MAKEOBJDIR[PREFIX] is not in use). This permits multiple hosts
to compile hostprogs (not just src/tools) for a given target without
colliding with each other.

Currently restricted only to new toolchain builds, as this requires a new
make(1) in order to function properly.


# 1.17 02-Nov-2001 tv

Improve readability and reduce redundant redundancy in share/mk; add some
descriptive comments. The guts of hostprog, lib, and prog are mostly
unchanged; this will be done in another pass.

Make several things work properly with UNPRIVILEGED set, and make the
install-time "cmp" logic work for MANZ. Also reimplement INCS{DIR,NAME}_foo
(requested by wiz) in a backwards compatible way.

Reviewed by christos.


# 1.16 25-Oct-2001 thorpej

Sigh, back out previous -- it is necessary inorder for the depend
(and dependall) targets to work properly.

XXX THIS IS BROKEN. It's highly questionalble that we should be applying
our .depend-generating rules to a host system -- the mkdep we currently
use assumes GCC.


# 1.15 25-Oct-2001 thorpej

Remove an unnecessary "CPPFLAGS=${HOST_CPPFLAGS}" -- the host tool
targets use HOST_CPPFLAGS exclusively, and keeping this assignment
can get us into some unfortuante recursion trouble.


# 1.14 19-Oct-2001 tv

Add .NOPATH for all files generated from .l or .y files in SRCS. Fixes PRs
bin/14187 and lib/14239.

Also simplify the handling of these transforms to .c and .h files a bit by
leveraging make's builtin macro operators.


# 1.13 25-Sep-2001 tv

Set .NOPATH on program to build to make sure it goes in .OBJDIR.
Problem noted by <seebs@plethora.net>.


# 1.12 13-Sep-2001 thorpej

Add LIBPCI.


# 1.11 14-Aug-2001 tv

Rather than explicitly saying "clean cleandir:" all the time, make clean
a dependency of cleandir (so that "make cleandir" implies "make clean").


# 1.10 01-Jun-2001 tv

Make "distclean" a REAL synonym for "cleandir" by actually aliasing it
in <bsd.own.mk>, rather than sprinkling it in all the .mk files (and
some Makefiles throughout the tree).


# 1.9 04-Jan-2001 garbled

Add LIBCDK and LIBFORM definitions


# 1.8 31-Oct-2000 itojun

add ${LIBINTL} for use with DPADD.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.7 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.6 05-Feb-2000 jdc

Add libahdi entries.


# 1.5 22-Jan-2000 mycroft

Make `dependall' play nicely with SUBDIR, using a hack similar to `realinstall'
for both `depend' and `all'.
Also, remove the old hack that invokes an extra shell for .depend, now that
make(1) has been fixed.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.4 23-Nov-1999 blymn

Added libmenu library.


Revision tags: comdex-fall-1999-base
# 1.3 24-Sep-1999 wrstuden

Zap proginstall and scriptinstall - they don't make sense for hostprog.


# 1.2 14-Sep-1999 perry

branches: 1.2.2;
Add a "dependall" target, which does a "make depend" and then "make all"
in a single directory. This is useful in "make build" because by doing
the build immediately after the depend, all sources will typically
still be in the buffer cache, thus saving significant time over doing
a "make depend" on all the directories and then a "make all".


# 1.1 14-Jul-1999 wrstuden

Add bsd.hostprog.mk, a makefile for making programs used during
the build which will run on the build machine.


# 1.77 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.76 01-Jan-2016 christos

Add the pthread libraries, documented already in bsd.README; sort


# 1.75 22-Nov-2015 kamil

Add new predefined value for DPADD: LIBPANEL


# 1.74 01-Dec-2014 erh

PR toolchain/9618: add ".d" to MKDEP_SUFFIXES so the depend files are rebuilt
if any of their dependencies (i.e. the files they refer to) are changed.
This allows changes to transitive included headers to be handled properly.


Revision tags: netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base tls-maxphys-base
# 1.73 10-Apr-2014 plunky

the value of HOST_MKDEP previously depended on USETOOLS;
make it do so again, and centralise the USETOOLS=no case
into bsd.host.mk


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.72 29-Oct-2013 joerg

branches: 1.72.2;
Unbreak src/tools usage of C++.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.71 14-Jun-2013 tsutsui

Invoke tools/binstall/mkmanifest for Cygwin via ${HOST_SH}.
Fixes builds using source sets that drop executable bits.


# 1.70 11-Apr-2013 christos

add new libevent2 libraries.


Revision tags: agc-symver-base
# 1.69 17-Feb-2013 christos

Add a hook to create a manifest file if needed under cygwin


# 1.68 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 yamt-pagecache-base5 yamt-pagecache-base4
# 1.67 29-Feb-2012 tron

branches: 1.67.2;
Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.66 13-Oct-2011 joerg

branches: 1.66.2; 1.66.4;
Hook up SQLite into the build


# 1.65 07-Oct-2011 mrg

obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.


# 1.64 10-Sep-2011 apb

Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.


# 1.63 05-Jun-2011 christos

add libgcc_pic dependency.


Revision tags: cherry-xenmp-base
# 1.62 24-Mar-2011 bouyer

branches: 1.62.2;
Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase
# 1.61 20-Feb-2011 jmmv

Define LIBATF_C and LIBATF_CXX to point to their corresponding .a files and
use these to properly set DPADD for test programs.


Revision tags: bouyer-quota2-base matt-mips64-premerge-20101231
# 1.60 25-Dec-2010 joerg

branches: 1.60.2;
If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor. This avoids leaking the source
path into the final binaries.


# 1.59 22-Nov-2010 pooka

add LIBRUMPCLIENT


# 1.58 02-Nov-2010 joerg

Add LIBLZMA.


# 1.57 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.56 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.55 10-Apr-2009 apb

Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links. They have no effect except when using a
metalog, in which case the information is added to the metalog. In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg. This should fix PR 24457 and PR 41155.


# 1.54 19-Nov-2008 pooka

branches: 1.54.2;
Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


Revision tags: netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base
# 1.53 02-Oct-2008 joerg

branches: 1.53.2; 1.53.4;
Hook up libfetch and pkg_install update.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.52 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base
# 1.51 26-Apr-2008 christos

branches: 1.51.2;
make all shared libraries depend on libc.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base pc532-eol-2008 matt-armv6-nbase matt-armv6-prevmlocking wrstuden-fixsa-base-1 netbsd-4-0-RELEASE cube-autoconf-base netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-armv6-base matt-mips64-base hpcarm-cleanup-base wrstuden-fixsa-base netbsd-4-base
# 1.50 09-Nov-2006 christos

branches: 1.50.16; 1.50.18;
Add ssp glue.


# 1.49 22-Oct-2006 pooka

libpuffs


# 1.48 09-Oct-2006 mrg

- clean up some comments to reality.
- retire LIBDCK, LIBG2C and (long broken) USE_LIBSTDCXX
- in bsd.hostprog.mk's LIBSTDCPP -> LIBSTDCC
- add LIBSUPCXX
- don't default USE_LIBSTDCXX or USE_GCC4 since they are
not used in the tree any where
- same with USE_XF86_4; retire it
- remove _SUPCXX handling in bsd.prog.mk

inspired by PR#26714.


Revision tags: abandoned-netbsd-4-base
# 1.47 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.46 20-Mar-2006 christos

remove KRB4 libraries (Jukka Salmi)


# 1.45 02-Sep-2005 jwise

Add proper support for using bsd.hostprog.mk to build c++-based host
programs -- doesn't affect current host tools build (groff is built the
Makefile.gnuhost way).

Provides {.cc,.cpp,.cxx,.C}.lo rule, associated variables, and HOSTPROG_CXX
support (mirroring PROG_CXX in bsd.prog.mk).

Tested with from-scratch `build.sh tools' and full system build.


Revision tags: netbsd-3-base
# 1.44 20-Jun-2004 jmc

branches: 1.44.2;
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944


# 1.43 10-Jun-2004 lukem

Be consistent in handling YHEADER, similar to Christos' fix in bsd.lib.mk 1.253


# 1.42 21-May-2004 ross

If you add a library, you need to define its DPADD symbol here.

Add LIBMAGIC.


Revision tags: netbsd-2-0-base
# 1.41 29-Jan-2004 lukem

branches: 1.41.2;
Cosmetically tweak how .PHONY is used by (generally) providing it as a source,
instead of using it as a target with all the rules as its sources.


# 1.40 27-Jan-2004 lukem

Replace
:M-[IDU]*
with
:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*
so that arguments with whitespace after them work correctly.
Resolves [toolchain/18248] from Andrew White at Motorola.

Be consisent in this syntax; previously we'd sometimes we'd just have :M-[ID]*
which would ignore -Ufoo ...

(This needs :C///W support in make(1) that Simon Gerraty added for me :)


# 1.39 02-Jan-2004 lukem

Consistently test all variables that support a "yes"/"no" value with
${VAR} == "no"
or
${VAR} != "no"
(instead of against "yes"). Variables affected:
TOOLCHAIN_MISSING
HAVE_GCC3
USE_TOOLS_TOOLCHAIN
NEED_OWN_INSTALL_TARGET
USE_SHLIBDIR

Improve the documentation.


# 1.38 26-Dec-2003 christos

Add libstdc++


# 1.37 16-Nov-2003 lukem

simplify with _MKTARGET_LINK


# 1.36 11-Nov-2003 dsl

Set MKDEP_SUFFIXES to get additional targets in .depend instead of using
sed in .afterdepend. I don't think .afterdepend is used anywhere any more.


# 1.35 21-Oct-2003 lukem

Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.


# 1.34 19-Oct-2003 lukem

Provide _MKMSG{BUILD,CREATE,COMPILE,FORMAT,INSTALL,LINK,LEX,YACC} to display
${_MKMSG} " ... {$.TARGET}" and use appropriately.

Provide _MKMSGLINK.m to provide "link" message by itself (without ${.TARGET})

Replace _MKSHCMD with _MKSHECHO


# 1.33 18-Oct-2003 lukem

Implement MAKEVERBOSE to control how "verbose" the standard make(1) rules are.
Supported values:
0 Minimal output ("quiet")
1 Describe what is occurring
2 Describe what is occurring and echo the actual command ("verbose")
This is the default, and is equivalent to the previous behaviour.


# 1.32 01-Aug-2003 lukem

Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".


# 1.31 28-Jul-2003 lukem

be consistent when adding *.y and *.l to DPSRCS


# 1.30 18-Jul-2003 lukem

whitespace cleanup


# 1.29 16-Jul-2003 itojun

stop installing install libtelnet. build under lib/libtelnet and reference
it from usr.bin/telnet and libexec/telnetd.
(reason for separate build: compiler flags)


# 1.28 12-Jun-2003 provos

add LIBEVENT


# 1.27 11-Jun-2003 msaitoh

catch signal 1,2,3,13 and 15 to clean /tmp/_dependXXX


# 1.26 14-May-2003 dbj

remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets. Commits fix from PR toolchain/21495


Revision tags: fvdl_fs64_base
# 1.25 17-Sep-2002 thorpej

* Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
two variables:

TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
an external toolchain (e.g. /usr/local/gnu). This enables the cross-build
framework even for TOOLCHAIN_MISSING platforms.

If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
unconditionally set to "no", since the bits are not there to build.

If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
since the external toolchain's compiler is not in-sync with the
in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
that file can use it.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.24 29-Mar-2002 tv

COPTS is for target objects, not host objects.


# 1.23 03-Jan-2002 tv

Add more tolerant script-based implementation of mkdep for host tool
compiles. Based loosely on mkdep.old.compiler (so CSRG license copied),
but now uses just one rewrite (awk) process per cpp invocation and
determines the proper way to run cpp and awk via a "configure" script.

Use HOST_MKDEP in bsd.hostlib/hostprog.mk (defaulting to the old override
value of MKDEP), and give it a TOOLDIR equivalent in bsd.own.mk.


# 1.22 14-Nov-2001 tv

C/..$/.c/ -> C/\..$/.c/


# 1.21 14-Nov-2001 tv

Remove SHAREDSTRINGS logic for host programs; this is unnecessary here.


# 1.20 13-Nov-2001 tv

Move host program overrides of INSTALL and MKDEP to <bsd.hostprog.mk>.


# 1.19 12-Nov-2001 tv

Set CFLAGS and CPPFLAGS for the benefit of <bsd.dep.mk>, and move the
inclusion of <bsd.sys.mk> to the top to get defaults. (Dependency handling
needs a cleanup, and will get one soon....)


# 1.18 11-Nov-2001 tv

Affix the ${HOST_OSTYPE} info to the end of the objdir name if OBJMACHINE
is set (and MAKEOBJDIR[PREFIX] is not in use). This permits multiple hosts
to compile hostprogs (not just src/tools) for a given target without
colliding with each other.

Currently restricted only to new toolchain builds, as this requires a new
make(1) in order to function properly.


# 1.17 02-Nov-2001 tv

Improve readability and reduce redundant redundancy in share/mk; add some
descriptive comments. The guts of hostprog, lib, and prog are mostly
unchanged; this will be done in another pass.

Make several things work properly with UNPRIVILEGED set, and make the
install-time "cmp" logic work for MANZ. Also reimplement INCS{DIR,NAME}_foo
(requested by wiz) in a backwards compatible way.

Reviewed by christos.


# 1.16 25-Oct-2001 thorpej

Sigh, back out previous -- it is necessary inorder for the depend
(and dependall) targets to work properly.

XXX THIS IS BROKEN. It's highly questionalble that we should be applying
our .depend-generating rules to a host system -- the mkdep we currently
use assumes GCC.


# 1.15 25-Oct-2001 thorpej

Remove an unnecessary "CPPFLAGS=${HOST_CPPFLAGS}" -- the host tool
targets use HOST_CPPFLAGS exclusively, and keeping this assignment
can get us into some unfortuante recursion trouble.


# 1.14 19-Oct-2001 tv

Add .NOPATH for all files generated from .l or .y files in SRCS. Fixes PRs
bin/14187 and lib/14239.

Also simplify the handling of these transforms to .c and .h files a bit by
leveraging make's builtin macro operators.


# 1.13 25-Sep-2001 tv

Set .NOPATH on program to build to make sure it goes in .OBJDIR.
Problem noted by <seebs@plethora.net>.


# 1.12 13-Sep-2001 thorpej

Add LIBPCI.


# 1.11 14-Aug-2001 tv

Rather than explicitly saying "clean cleandir:" all the time, make clean
a dependency of cleandir (so that "make cleandir" implies "make clean").


# 1.10 01-Jun-2001 tv

Make "distclean" a REAL synonym for "cleandir" by actually aliasing it
in <bsd.own.mk>, rather than sprinkling it in all the .mk files (and
some Makefiles throughout the tree).


# 1.9 04-Jan-2001 garbled

Add LIBCDK and LIBFORM definitions


# 1.8 31-Oct-2000 itojun

add ${LIBINTL} for use with DPADD.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.7 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.6 05-Feb-2000 jdc

Add libahdi entries.


# 1.5 22-Jan-2000 mycroft

Make `dependall' play nicely with SUBDIR, using a hack similar to `realinstall'
for both `depend' and `all'.
Also, remove the old hack that invokes an extra shell for .depend, now that
make(1) has been fixed.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.4 23-Nov-1999 blymn

Added libmenu library.


Revision tags: comdex-fall-1999-base
# 1.3 24-Sep-1999 wrstuden

Zap proginstall and scriptinstall - they don't make sense for hostprog.


# 1.2 14-Sep-1999 perry

branches: 1.2.2;
Add a "dependall" target, which does a "make depend" and then "make all"
in a single directory. This is useful in "make build" because by doing
the build immediately after the depend, all sources will typically
still be in the buffer cache, thus saving significant time over doing
a "make depend" on all the directories and then a "make all".


# 1.1 14-Jul-1999 wrstuden

Add bsd.hostprog.mk, a makefile for making programs used during
the build which will run on the build machine.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.76 01-Jan-2016 christos

Add the pthread libraries, documented already in bsd.README; sort


# 1.75 22-Nov-2015 kamil

Add new predefined value for DPADD: LIBPANEL


# 1.74 01-Dec-2014 erh

PR toolchain/9618: add ".d" to MKDEP_SUFFIXES so the depend files are rebuilt
if any of their dependencies (i.e. the files they refer to) are changed.
This allows changes to transitive included headers to be handled properly.


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base tls-maxphys-base
# 1.73 10-Apr-2014 plunky

the value of HOST_MKDEP previously depended on USETOOLS;
make it do so again, and centralise the USETOOLS=no case
into bsd.host.mk


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.72 29-Oct-2013 joerg

branches: 1.72.2;
Unbreak src/tools usage of C++.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.71 14-Jun-2013 tsutsui

Invoke tools/binstall/mkmanifest for Cygwin via ${HOST_SH}.
Fixes builds using source sets that drop executable bits.


# 1.70 11-Apr-2013 christos

add new libevent2 libraries.


Revision tags: agc-symver-base
# 1.69 17-Feb-2013 christos

Add a hook to create a manifest file if needed under cygwin


# 1.68 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 yamt-pagecache-base5 yamt-pagecache-base4
# 1.67 29-Feb-2012 tron

branches: 1.67.2;
Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.66 13-Oct-2011 joerg

branches: 1.66.2; 1.66.4;
Hook up SQLite into the build


# 1.65 07-Oct-2011 mrg

obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.


# 1.64 10-Sep-2011 apb

Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.


# 1.63 05-Jun-2011 christos

add libgcc_pic dependency.


Revision tags: cherry-xenmp-base
# 1.62 24-Mar-2011 bouyer

branches: 1.62.2;
Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase
# 1.61 20-Feb-2011 jmmv

Define LIBATF_C and LIBATF_CXX to point to their corresponding .a files and
use these to properly set DPADD for test programs.


Revision tags: bouyer-quota2-base matt-mips64-premerge-20101231
# 1.60 25-Dec-2010 joerg

branches: 1.60.2;
If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor. This avoids leaking the source
path into the final binaries.


# 1.59 22-Nov-2010 pooka

add LIBRUMPCLIENT


# 1.58 02-Nov-2010 joerg

Add LIBLZMA.


# 1.57 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.56 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.55 10-Apr-2009 apb

Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links. They have no effect except when using a
metalog, in which case the information is added to the metalog. In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg. This should fix PR 24457 and PR 41155.


# 1.54 19-Nov-2008 pooka

branches: 1.54.2;
Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


Revision tags: netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base
# 1.53 02-Oct-2008 joerg

branches: 1.53.2; 1.53.4;
Hook up libfetch and pkg_install update.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.52 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base
# 1.51 26-Apr-2008 christos

branches: 1.51.2;
make all shared libraries depend on libc.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base pc532-eol-2008 matt-armv6-nbase matt-armv6-prevmlocking wrstuden-fixsa-base-1 netbsd-4-0-RELEASE cube-autoconf-base netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-armv6-base matt-mips64-base hpcarm-cleanup-base wrstuden-fixsa-base netbsd-4-base
# 1.50 09-Nov-2006 christos

branches: 1.50.16; 1.50.18;
Add ssp glue.


# 1.49 22-Oct-2006 pooka

libpuffs


# 1.48 09-Oct-2006 mrg

- clean up some comments to reality.
- retire LIBDCK, LIBG2C and (long broken) USE_LIBSTDCXX
- in bsd.hostprog.mk's LIBSTDCPP -> LIBSTDCC
- add LIBSUPCXX
- don't default USE_LIBSTDCXX or USE_GCC4 since they are
not used in the tree any where
- same with USE_XF86_4; retire it
- remove _SUPCXX handling in bsd.prog.mk

inspired by PR#26714.


Revision tags: abandoned-netbsd-4-base
# 1.47 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.46 20-Mar-2006 christos

remove KRB4 libraries (Jukka Salmi)


# 1.45 02-Sep-2005 jwise

Add proper support for using bsd.hostprog.mk to build c++-based host
programs -- doesn't affect current host tools build (groff is built the
Makefile.gnuhost way).

Provides {.cc,.cpp,.cxx,.C}.lo rule, associated variables, and HOSTPROG_CXX
support (mirroring PROG_CXX in bsd.prog.mk).

Tested with from-scratch `build.sh tools' and full system build.


Revision tags: netbsd-3-base
# 1.44 20-Jun-2004 jmc

branches: 1.44.2;
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944


# 1.43 10-Jun-2004 lukem

Be consistent in handling YHEADER, similar to Christos' fix in bsd.lib.mk 1.253


# 1.42 21-May-2004 ross

If you add a library, you need to define its DPADD symbol here.

Add LIBMAGIC.


Revision tags: netbsd-2-0-base
# 1.41 29-Jan-2004 lukem

branches: 1.41.2;
Cosmetically tweak how .PHONY is used by (generally) providing it as a source,
instead of using it as a target with all the rules as its sources.


# 1.40 27-Jan-2004 lukem

Replace
:M-[IDU]*
with
:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*
so that arguments with whitespace after them work correctly.
Resolves [toolchain/18248] from Andrew White at Motorola.

Be consisent in this syntax; previously we'd sometimes we'd just have :M-[ID]*
which would ignore -Ufoo ...

(This needs :C///W support in make(1) that Simon Gerraty added for me :)


# 1.39 02-Jan-2004 lukem

Consistently test all variables that support a "yes"/"no" value with
${VAR} == "no"
or
${VAR} != "no"
(instead of against "yes"). Variables affected:
TOOLCHAIN_MISSING
HAVE_GCC3
USE_TOOLS_TOOLCHAIN
NEED_OWN_INSTALL_TARGET
USE_SHLIBDIR

Improve the documentation.


# 1.38 26-Dec-2003 christos

Add libstdc++


# 1.37 16-Nov-2003 lukem

simplify with _MKTARGET_LINK


# 1.36 11-Nov-2003 dsl

Set MKDEP_SUFFIXES to get additional targets in .depend instead of using
sed in .afterdepend. I don't think .afterdepend is used anywhere any more.


# 1.35 21-Oct-2003 lukem

Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.


# 1.34 19-Oct-2003 lukem

Provide _MKMSG{BUILD,CREATE,COMPILE,FORMAT,INSTALL,LINK,LEX,YACC} to display
${_MKMSG} " ... {$.TARGET}" and use appropriately.

Provide _MKMSGLINK.m to provide "link" message by itself (without ${.TARGET})

Replace _MKSHCMD with _MKSHECHO


# 1.33 18-Oct-2003 lukem

Implement MAKEVERBOSE to control how "verbose" the standard make(1) rules are.
Supported values:
0 Minimal output ("quiet")
1 Describe what is occurring
2 Describe what is occurring and echo the actual command ("verbose")
This is the default, and is equivalent to the previous behaviour.


# 1.32 01-Aug-2003 lukem

Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".


# 1.31 28-Jul-2003 lukem

be consistent when adding *.y and *.l to DPSRCS


# 1.30 18-Jul-2003 lukem

whitespace cleanup


# 1.29 16-Jul-2003 itojun

stop installing install libtelnet. build under lib/libtelnet and reference
it from usr.bin/telnet and libexec/telnetd.
(reason for separate build: compiler flags)


# 1.28 12-Jun-2003 provos

add LIBEVENT


# 1.27 11-Jun-2003 msaitoh

catch signal 1,2,3,13 and 15 to clean /tmp/_dependXXX


# 1.26 14-May-2003 dbj

remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets. Commits fix from PR toolchain/21495


Revision tags: fvdl_fs64_base
# 1.25 17-Sep-2002 thorpej

* Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
two variables:

TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
an external toolchain (e.g. /usr/local/gnu). This enables the cross-build
framework even for TOOLCHAIN_MISSING platforms.

If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
unconditionally set to "no", since the bits are not there to build.

If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
since the external toolchain's compiler is not in-sync with the
in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
that file can use it.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.24 29-Mar-2002 tv

COPTS is for target objects, not host objects.


# 1.23 03-Jan-2002 tv

Add more tolerant script-based implementation of mkdep for host tool
compiles. Based loosely on mkdep.old.compiler (so CSRG license copied),
but now uses just one rewrite (awk) process per cpp invocation and
determines the proper way to run cpp and awk via a "configure" script.

Use HOST_MKDEP in bsd.hostlib/hostprog.mk (defaulting to the old override
value of MKDEP), and give it a TOOLDIR equivalent in bsd.own.mk.


# 1.22 14-Nov-2001 tv

C/..$/.c/ -> C/\..$/.c/


# 1.21 14-Nov-2001 tv

Remove SHAREDSTRINGS logic for host programs; this is unnecessary here.


# 1.20 13-Nov-2001 tv

Move host program overrides of INSTALL and MKDEP to <bsd.hostprog.mk>.


# 1.19 12-Nov-2001 tv

Set CFLAGS and CPPFLAGS for the benefit of <bsd.dep.mk>, and move the
inclusion of <bsd.sys.mk> to the top to get defaults. (Dependency handling
needs a cleanup, and will get one soon....)


# 1.18 11-Nov-2001 tv

Affix the ${HOST_OSTYPE} info to the end of the objdir name if OBJMACHINE
is set (and MAKEOBJDIR[PREFIX] is not in use). This permits multiple hosts
to compile hostprogs (not just src/tools) for a given target without
colliding with each other.

Currently restricted only to new toolchain builds, as this requires a new
make(1) in order to function properly.


# 1.17 02-Nov-2001 tv

Improve readability and reduce redundant redundancy in share/mk; add some
descriptive comments. The guts of hostprog, lib, and prog are mostly
unchanged; this will be done in another pass.

Make several things work properly with UNPRIVILEGED set, and make the
install-time "cmp" logic work for MANZ. Also reimplement INCS{DIR,NAME}_foo
(requested by wiz) in a backwards compatible way.

Reviewed by christos.


# 1.16 25-Oct-2001 thorpej

Sigh, back out previous -- it is necessary inorder for the depend
(and dependall) targets to work properly.

XXX THIS IS BROKEN. It's highly questionalble that we should be applying
our .depend-generating rules to a host system -- the mkdep we currently
use assumes GCC.


# 1.15 25-Oct-2001 thorpej

Remove an unnecessary "CPPFLAGS=${HOST_CPPFLAGS}" -- the host tool
targets use HOST_CPPFLAGS exclusively, and keeping this assignment
can get us into some unfortuante recursion trouble.


# 1.14 19-Oct-2001 tv

Add .NOPATH for all files generated from .l or .y files in SRCS. Fixes PRs
bin/14187 and lib/14239.

Also simplify the handling of these transforms to .c and .h files a bit by
leveraging make's builtin macro operators.


# 1.13 25-Sep-2001 tv

Set .NOPATH on program to build to make sure it goes in .OBJDIR.
Problem noted by <seebs@plethora.net>.


# 1.12 13-Sep-2001 thorpej

Add LIBPCI.


# 1.11 14-Aug-2001 tv

Rather than explicitly saying "clean cleandir:" all the time, make clean
a dependency of cleandir (so that "make cleandir" implies "make clean").


# 1.10 01-Jun-2001 tv

Make "distclean" a REAL synonym for "cleandir" by actually aliasing it
in <bsd.own.mk>, rather than sprinkling it in all the .mk files (and
some Makefiles throughout the tree).


# 1.9 04-Jan-2001 garbled

Add LIBCDK and LIBFORM definitions


# 1.8 31-Oct-2000 itojun

add ${LIBINTL} for use with DPADD.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.7 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.6 05-Feb-2000 jdc

Add libahdi entries.


# 1.5 22-Jan-2000 mycroft

Make `dependall' play nicely with SUBDIR, using a hack similar to `realinstall'
for both `depend' and `all'.
Also, remove the old hack that invokes an extra shell for .depend, now that
make(1) has been fixed.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.4 23-Nov-1999 blymn

Added libmenu library.


Revision tags: comdex-fall-1999-base
# 1.3 24-Sep-1999 wrstuden

Zap proginstall and scriptinstall - they don't make sense for hostprog.


# 1.2 14-Sep-1999 perry

branches: 1.2.2;
Add a "dependall" target, which does a "make depend" and then "make all"
in a single directory. This is useful in "make build" because by doing
the build immediately after the depend, all sources will typically
still be in the buffer cache, thus saving significant time over doing
a "make depend" on all the directories and then a "make all".


# 1.1 14-Jul-1999 wrstuden

Add bsd.hostprog.mk, a makefile for making programs used during
the build which will run on the build machine.