summaryrefslogtreecommitdiff
path: root/tools/compat/Makefile
AgeCommit message (Collapse)Author
2023-05-30tools/compat: use autoreconf, support MAKEVERBOSElukem
Use autoreconf instead of autoconf + autoheader; we'll need aclocal in the near future. If MAKEVERBOSE >= 2, add -v to autoreconf.
2023-05-23tools/compat: MAKEVERBOSE support in regenlukem
2021-09-18Patch the build script and toolchain to allow passing throughchristos
HOST_CPPFLAGS, HOST_CXXFLAGS, but not LIBRARY_PATH because it breaks the build. These variables are necessary to support building NetBSD from a GNU Guix or NixOS host, where /usr/include, /lib, and all but /bin/sh do not exist. In many cases, support for HOST_CPPFLAGS was incomplete. From Ryan Sundberg
2021-02-25Add reallocarray; this is used by the new regex code and we don't want tochristos
convert it to reallocarr so the code is kept similar with the original from FreeBSD.
2020-06-13tools: configure --silent if MAKEVERBOSE == 0lukem
2019-05-08Fix building libprop as a host tool library on platforms that don't havethorpej
the Matt Thomas rbtree: - Include rb.c in libnbcompat, and provide a nbcompat sys/rbtree.h header. - Make sure libprop's source file include prop_object_impl.h before anything else, and pull in nbtool_config.h from there. Tested by simulating such a host system by renaming the host's <sys/rbtree.h> out of the way (which reproduced the build failure) and verifying that the host-tool installboot contained the rb_* functions in its own .text segment.
2018-08-30deal with getsubopt and strncasecmp (needed by mdocml)christos
2018-08-16add strncasecmpchristos
2018-08-11Add strcasecmpchristos
2018-05-01Create a new bsd.hostinit.mk file and put the build definitions for all hostchristos
programs there; make all Makefiles that use bsd.hostprog.mk include it. Namely turn off MKREPRO and don't make lint, man pages, info files etc. Remove the Makefile.inc files that contained these same settings, and remove the settings from Makefile.host
2018-05-01PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler mightchristos
not support the necessary options. This is done thusly: 1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that use it and don't include bsd.own.mk. 2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc first. This will also allow us to control other tools options from a single location if we need to. XXX: pullup-8
2016-03-06add our libc's regex implementation to libnbcompat.aymeric
This way, nbsed picks it up and it unbreaks the build of xf86-video-intel-old's man page under Linux and probably other future changes which rightfully expect the (net)bsd behaviour. Full release tested on ArchLinux and NetBSD 7.0_STABLE
2016-03-01Revert to rev 1.77 for now on Aymeric's requestmartin
2016-03-01remove regsub.c from the list of files to build because it unbreaks the buildaymeric
and this API is not yet endorsed. OK christos@
2016-02-29add our libc's regex implementation to libnbcompat.aymeric
This way, nbsed picks it up and it unbreaks the build of xf86-video-intel-old's man page under Linux and probably other future changes which rightfully expect the (net)bsd behaviour.
2016-01-09lex source moved.christos
2015-09-17undo previous; include is in ${.OBJDIR}christos
2015-09-17make this more robust by using .CURDIR to cd.christos
2015-07-26Add reallocarr(3) to tools/compatkamil
This should unbreak libutil(3) creation on systems withot reallocarr(3).
2015-01-18add strtoi strtou (Kamil Rytarowski)christos
2014-01-16Add the {v,}{err,warn}c functionschristos
2014-01-09Declare and define strnlen if necessary.apb
2013-12-11Allow kernel code to access constant databases by moving cdbr(3) and thejoerg
required mi_vector_hash(3) into src/common.
2013-08-06Compile snprintb.c into libnbcompat. The source file is found in theapb
common/lib/libutil directory.
2013-03-05add dprintfchristos
2012-12-10first define HOSTLIB and then include bsd.own.mk!christos
2012-12-09restore the find loop to include files generated by configurechristos
2012-12-09handle the list of files and directories generated dynamically by configurechristos
2012-12-09make this workchristos
2012-12-09Include <bsd.own.mk> to give a chance to ${TOOLDIR} to be defined beforechristos
using it in rules. Before there was another .mk file included before ${TOOLDIR} was used.
2012-12-09Use a "find | while read" loop to install all *.h files anywhereapb
under ${.OBJDIR}/include, and remove the previous hack of touching a "dummy" file in each subdirectory. This should fix a problem on some platforms where include files directly under ${.OBJDIR}/include (not in a subdirectory) were not installed.
2012-12-02Make tools/compat/Makefile install the library inapb
${TOOLDIR}/lib/libnbcompat.a, install the include files in ${TOOLDIR}/include/compat/**, and install defs.mk in ${TOOLDIR}/share/compat/defs.mk. Previously, nothing from tools/compat was installed under TOOLDIR. Adjust tools/compat/Makefile to use an uninstalled copy of host-mkdep from the .OBJDIR of tools/host-mkdep, and an uninstalled copy of the install program from the .OBJDIR of tools/binstall. This allows it to be built after tools/host-mkdep is built but before tools/host-mkdep is installed; and to be installed after tools/binstall is built but before tools/binstall is installed.
2012-12-02Teach tools/compat/Makefile to use an uninstalled copy of host-mkdepapb
from the.OBJDIR of tools/host-mkdep. This is in preparation for building all three of tools/host-mkdep, tools/compat, and tools/binstall, before installing any of them. While here, also move the regen target to the end.
2012-06-04Add cdbr(3) support to tools/compat.joerg
2012-06-04Build getcap.c only once.joerg
2012-06-03Add a special seeder for cdbw_output that gives stable results.joerg
Hook up cdbw(3) for the tool build.
2012-02-18Adjust libyywrap.c location.njoly
2011-11-03Add getline.c here too.joerg
2010-02-03Userland now builds and uses terminfo instead of termcap.roy
OK: core@, jdc@
2009-06-17add fpurgechristos
2008-10-18Prepare dummy <resolv.h> and <arpa/nameser.h> to make asn1_compile andtsutsui
compile_et compile on systems which don't have these BIND headers like Cygwin. Tested by "build.sh -m i386 -U release" on CYGWIN_NT-5.1-1.5.25, and should close PR toolchain/29032.
2007-09-28add raise_default_signallukem
2007-08-07More detailed instructions for what to do when editing configure.ac.apb
In particular, discourage the use of non-tools versions of autoconf and autoheader.
2007-07-03Add strndup(3) to libnbcompat, since estrndup(3) added into efun.c calls it.nakayama
2006-12-14Complete the move of string_to_flags() and flags_to_string() from thehe
bin/ls sources to libutil: o Bump libutil minor version number o Fix uses to include <util.h> to pick up the function definitions o Fix most uses of flags_to_string() to release the now-malloc()ed result
2006-10-29...and one more for xcompilation (due to lib/libc/hash/sha1/sha1hl.c, sigh.)dogcow
2006-10-27add ${.CURDIR}/../../common/lib/libc/hash/{rmd160,sha2} to the .PATHmrg
so that these sources are found after this code moved. (hi christos!)
2006-10-08Put common/lib/libc/stdlib into .PATH. From Hisashi T Fujinaka.thorpej
2006-08-26Some tools need efuns.christos
2006-05-20Don't remove files that are needed for a build after make clean. Beforechristos
'make clean; make' failed in tools because necessary configure generated files were removed. The failure manifested itself with string_to_flags being undefined in binstall.