summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2004-01-08Implement do-x11, to run "make build" in ./x11/lukem
If MKX11 != no, add "do-x11" to BUILDTARGETS. Say ``hello'' to Imakeicide.
2004-01-06rename release-info to etc-releaselukem
rename install-release-info to install-etc-release
2004-01-04Run "cd etc && make install-release-info" at the end of the "build" target.lukem
Based on Hubert Feyrer's suggestion on tech-userlevel@.
2004-01-04only build do-lib-libdes if ${MKCRYPTO}!=nolukem
2004-01-03Consistently check ${TOOLCHAIN_MISSING} against "no".lukem
2003-12-05fix some commentslukem
2003-07-26netbsd.org->NetBSD.orgsalo
2003-07-25maybe build gnu/lib/libgcc3 instead of libgcc[2]mrg
2003-07-25document do-lib-libdeslukem
2003-07-24Make and install libdes before the rest; libkrb needs it.fvdl
XXX there must be a better way.
2003-07-21tweak how postinstall-fix-obsolete is made. (may fix various problem reports)lukem
2003-07-20redo previous (functionality rollback of 1.213) to retain the style of 1.213lukem
2003-07-20Undo revision 1.213 now that grotty is fixed. Tested by lukem, thanks!wiz
2003-07-18Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.lukem
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no" Add MKUPDATE; if not no has the same semantics as if UPDATE was defined. Replace defined(UPDATE) tests with ${MKUPDATE} != "no" Improve documentation for these and other make flags.
2003-07-18grotty from groff 1.19 needs -c for -b, -o or -u to work.lukem
This is damn annoying, because it means the old method of "groff -P-bou" won't suppress escape codes, unless -P-c is also provided. (Mmm, quality software...)
2003-07-17Add postinstall-fix-obsolete (to invoke "postinstall fix obsolete" -lukem
funny that :), and call in "distribution" just before the "make checkflist". Should minimise a bunch of the "I use make UPDATE= and checkflist failed" errors, but not all of them.
2003-07-10Rename a large chunk of the make(1) variables which refer to alukem
program/tool from "FOO" to "TOOL_FOO". The new variables are: TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC For each, provide default in <bsd.sys.mk> of the form: TOOL_FOO?= foo and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override: TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo Document all of these in bsd.README. This cleans up a chunk of potential (and actual) namespace collision within our build infrastructure, as well as improves consistency in the share/mk documentation and provision of appropriate defaults for each of these variables.
2003-07-08add MAKECONF to vars that "params" target showslukem
2003-07-06Add "params" target, to display the value of various variables.lukem
This is part of a broader plan to improve diagnostics & support to end-users of build.sh.
2003-07-05update "targets invoked by make build" to match reality ...lukem
2003-06-26build libgcc early, if at alldrochner
2003-05-10Add "sourcesets" argument/target, which builds source sets intolukem
RELEASEDIR/source/sets
2003-04-18.WAIT before distrib, since distrib may need things built earlierthorpej
in the build process.
2003-04-17libcrypto no longer depends on libcrypt, so there is no need to buildthorpej
it early.
2003-04-04Fix merge botch in last.thorpej
2003-04-04Always build tools/compat, so that random host helper programsthorpej
can use libnbcompat, if necessary.
2003-04-03Link libcrypto against libcrypt to make sure crypt() is still there -- andmycroft
therefore build it earlier in the build process as well.
2003-02-22all:lukem
Use /var/db/obsolete instead of /etc/obsolete etc/Makefile: Create separate target "install-obsolete-files" to populate /var/db/obsolete, instead of using "install-etc-files". Makefile: Add do-obsolete target, to run "cd etc && make install-obsolete-files", and add this to BUILDTARGETS. This moves the "obsolete files" creation from "distribution" to "build". Per discussion with Andrew Brown.
2003-01-26- Add "sets" top-level Makefile target and build.sh operation.lukem
[Latter suggested by Julio Merino in private email] - Add "help" build.sh operation.
2003-01-06Rework how KERNOBJDIR functions; now it's always determined withlukem
cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR} This is far simpler than the previous system, and more robust with objdirs built via BSDOBJDIR. The previous method of finding KERNOBJDIR when using BSDOBJDIR by referencing _SRC_TOP_OBJ_ from another directory was extremely fragile due to the depth first tree walk by <bsd.subdir.mk>, and the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be empty on the *first* pass to create fresh objdirs. This change requires adding sys/arch/*/compile/Makefile to create the objdir in that directory, and descending into arch/*/compile from arch/*/Makefile. Remove the now-unnecessary .keep_me files whilst here. Per lengthy discussion with Andrew Brown.
2003-01-04Add an obj rule to create ${KERNOBJDIR} here, at the end of the "make obj"lukem
pass. (etc/Makefile doesn't create this any more).
2003-01-03Install release files under "${RELEASEDIR}/${MACHINE}/..." instead oflukem
"${RELEASEDIR}/...". ${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only cleaned if UPDATE is not defined.
2003-01-02The obj target for src/etc is invoked too early for it to functionatatat
properly in a clean tree (bsd.subdir.mk makes the obj target in .CURDIR depend on the recursive targets). If "make obj" is invoked a second time, the problem will correct itself. To work around this: (1) Before including bsd.subdir.mk, create a target called "obj-etc" so that the "regular" one (from bsd.subdir.mk) won't be instantiated. (2) After including bsd.obj.mk, create a "real" obj-etc target that does the required work with .USE as a "source" so that we can merely cons it onto the actual obj target. Note that this is only done if the obj target has commands (ie, NOOBJ was not set and MKOBJ was not no and whatever else you might have come up with) and we would have recursed into etc anyway (etc is in the SUBDIR list). This makes the obj target in src/etc get invoked *after* the obj target in the root of the source tree so that KERNOBJDIR will have the correct value. Reviewed by lukem.
2002-12-26fix DESTDIR checks if !defined(DESTDIR)lukem
2002-12-21* Add two new (experimental) targets:lukem
buildworld Builds a distribution into DESTDIR as per "make distribution", except that DESTDIR *must* be defined and *must not* be "" or "/". installworld Copies (using distrib/sets/maketars -i ...) from ${DESTDIR} to ${INSTALLWORLDDIR} (defaults == `/'), and then runs "postinstall-check" against ${INSTALLWORLDDIR}. If ${INSTALLWORLDDIR} == "/", ensure that `uname -s` == "NetBSD" and `uname -m` == ${MACHINE}, to prevent nasty accidents... * Tweak some comments
2002-12-02improve previous; show times at end of distribution/release/snapshot as welllukem
2002-12-02show the start time at the end of the build as well.lukem
inspired by [misc/18173] from Julio Merino.
2002-11-29Add do-{target} aliases for: cleandir obj includeslukem
to be consistent with the other do-TARGET targets for make build. (These are not used by "make build" per se, they're just to make my life easier)
2002-11-12MKDYNAMICROOT for a.outitohy
2002-09-21move BUILDING.mdoc -> doc/BUILDING.mdoclukem
2002-09-17* Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it intothorpej
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.
2002-09-14Add a do-lib-libc target which is processed after do-lib-csu. Thisthorpej
ensures that the results of the libc build are available to other lib builds (notably, llib-lc.ln).
2002-08-30print date when make {distribution,release,snapshot} finishedlukem
2002-08-26add "do-ld.elf_so" target, which builds & installs libexec/ld.elf_so.lukem
call after do-gnu-lib but before do-build.
2002-08-22descend into "rescue"lukem
2002-07-10Fix botch in previous. Actually do "build" for "distribution".uwe
2002-07-10After running the body of the "distribution" target, do a "checkflist", sothorpej
that people doing fresh builds into NFS root areas will know if their builds are incomplete.
2002-06-26find the Makefile for postinstall-check in the presence of ${.OBJDIR}sdrochner
2002-06-26Fix what rev. 1.176 broke, in particular, doing a priv'd build intothorpej
an NFS root area for a diskless client. In such a situation, you DO want the postinstall-check to be run. The circumstances under which postinstall-check is now run: * UNPRIVED is not set. * The original target invoked was not distribution, release, or snapshot.
2002-06-20Fix whitespace usage in comment.enami