Commit Graph

229 Commits

Author SHA1 Message Date
tv 96c33ddcbf - Remove the include of Makefile.tools; this will be done elsewhere.
- Skip the "includes" phase of bin, games, libexec, regress, sbin, and usr.sbin.
2001-09-21 21:01:13 +00:00
thorpej 6404ba3e23 Make sure DESTDIR is always set when calling the distrib-dirs target.
In the new build world order, DESTDIR is set to "" (in Makefile.tools)
if not already set, to ensure correct include/library handling.  This
caused the top-level to not set DESTDIR=/, which confused distrib-dirs,
since it doesn't include Makefile.tools, and thus didn't see the same
DESTDIR that the top-level did.
2001-08-17 15:05:50 +00:00
tv 696081f651 The final step -- hook src/tools into the main build. If USE_NEW_TOOLCHAIN is
set, will descend into "tools" to build a toolchain, and use that toolchain
explicitly for the build (via tools/Makefile.tools).

While here, GC all the "egcs-detection" logic; it's not needed anymore, since
nothing is on gcc 2.7 any longer.
2001-08-14 14:04:35 +00:00
enami 0acf15b497 Wrap a long line. 2001-08-02 06:13:33 +00:00
mrg 5ff40e0f85 clarify some variable documentation; from cagney 2001-06-10 13:15:29 +00:00
mrg 1b93d2abed make previous work with -j. idea from cagney 2001-06-10 13:12:32 +00:00
mrg c6c1b82528 fix PR#12832: split `make build' up into these steps (from new the
comments in src/Makefile):

# Sub targets of `make build,' in order:
#   buildstartmsg: displays the start time of the build.
#   beforeinstall: creates the distribution directories.
#   do-force-domestic: check's that FORCE_DOMESTIC isn't set (deprecated.)
#   do-share-mk: installs /usr/share/mk files.
#   do-cleandir: clean's the tree.
#   do-make-obj: create's object directories if required.
#   do-check-egcs: check's that we have a modern enough compiler (deprecated.)
#   do-make-includes: install include files.
#   do-lib-csu: build & install startup object files.
#   do-lib: build & install system libraries.
#   do-gnu-lib: build & install gnu system libraries.
#   do-dependall: builds & install the entire system.
#   do-domestic: build & install the domestic tree (deprecated.)
#   do-whatisdb: build & install the `whatis.db' man database.
#   buildendmsg: displays the end time of the build.



this is something i've wanted to do for years....
2001-06-10 13:02:54 +00:00
sommerfeld 50cca24c03 parallelize the obj pass, too 2001-05-08 02:04:08 +00:00
deberg 273b2d0b3a if building w/o a DESTDIR, grab the system make files from the source
tree until they've been installed.
2000-10-07 17:18:17 +00:00
fredb 38699e82c4 Descend into distrib on "make cleandir", too. This will let "make build"
with "MKOBJDIRS" set do the right thing in distrib.
2000-08-19 22:09:08 +00:00
toddpw 8b89060c30 Document the cool NOCLEANDIR/NOINCLUDES options that somebody added. 2000-08-05 10:17:35 +00:00
thorpej e7d6b96938 Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so.  Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.
2000-06-20 06:00:24 +00:00
mrg 2c335fc580 remove two of the previous ${_M}; they were invoked before $DESTDIR/share/mk may have existed. add one more. 2000-05-21 07:33:05 +00:00
thorpej d17109a1ae Add ${_M} where it was missing in a few places. 2000-05-18 23:16:28 +00:00
thorpej f41cffbb8b HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9, as well. 2000-05-09 00:17:10 +00:00
sjg 9ec8f0f8e8 if MAKEOBJDIRPREFIX defined, include etc in make obj 2000-05-06 07:53:53 +00:00
mrg 1f196e5b67 use MKSHARE=no instead. 2000-04-11 08:21:41 +00:00
mrg 1ae7478b2a fix long standing bug in `make build' with $DESTDIR:
- during `make build' after /usr/share/mk has been installed, call
  make with `-m $DESTDIR/usr/share/mk'.
2000-04-10 14:47:22 +00:00
simonb d9b15587d5 At least one crypto-intl lib has an info file(s) - add MKINFO=no to the
early build of ../src/lib ala ../src/gnu/lib.
2000-04-09 02:09:49 +00:00
jlam 01d48867ea Handle new make variable BUILD_DONE which creates an empty build target if
it is set.
2000-03-11 00:10:20 +00:00
cjs cb61b13f55 When you type `make obj', make obj dirs in distrib whether or not you
have MKOBJDIRS variable set.
2000-03-08 00:50:05 +00:00
erh 671a37a17f Add a buildmsg target for build to depend upon instead of using an ifmake block. "make snapshot" now echos the start of build time. 2000-02-29 21:54:03 +00:00
mycroft 0d8613ba36 share/tmac is now installed by `make includes', so don't do it again. 2000-02-26 17:42:53 +00:00
aidan 3286ebd2e0 Make 'make build' hook into crypto-tree for crypto specific build-time
dependencies.
2000-02-19 17:49:49 +00:00
assar 84e55c17c3 make sure include and include/sys are populated before starting to
make includes in lib
2000-02-01 01:22:05 +00:00
simonb e57fa9afe4 After ${MAKE} obj, explicitly make obj dirs in ${.CURDIR}/distrib as well. 1999-12-05 22:53:53 +00:00
simonb bd63bac162 Revert previous but move "cd share/tmac" later down so that any
generated files will go in obj dirs if they are created.  After
discussion with the two Bill's on tech-userlevel.
1999-12-04 03:52:28 +00:00
simonb 072b91d324 Move the "${MAKE} obj" above the share/tmac stage so that the generated
files in that directory don't pollute the source tree before the obj
dirs are created.
1999-12-03 15:09:01 +00:00
sommerfeld 1417ad563c Document MKOBJDIRS here, and sort the variable list in the comments
into alphabetical order.
1999-11-30 17:48:11 +00:00
sommerfeld 1b914a5db2 Add MKOBJDIRS make variable to bsd.own.mk, defaulting to "no" but
overrideable in mk.conf

Document in bsd.README; this is distinct from "MKOBJ", which controls
whether "make obj" does anything.

In the top-level makefile, if MKOBJDIRS != "no", do a "make obj" at an
appropriate point during a "make build".
1999-11-30 16:16:41 +00:00
perry 1cbf2bb2b8 use new dependall target instead of depend then all in make build 1999-09-14 01:32:43 +00:00
thorpej 51301b7324 Remove all of the domestic/crypto-us glue from this file. It is handled
differently now.
1999-07-12 21:53:52 +00:00
christos ee5a52e9e7 Handle crypto-us just like domestic 1999-05-27 21:03:31 +00:00
scottr 10b51a99c6 Add the FORCE_DOMESTIC flag to force the 'all', 'includes',
and 'install' targets to descend into the domestic subtree.  This is
generally a bad idea unless one knows precisely what they're doing,
but we'll provide the rope anyway (with the appropriate warnings).

Document both EXPORTABLE_SYSTEM and FORCE_DOMESTIC at the top of the file.
1999-04-25 19:13:05 +00:00
cjs cfd3563966 Improve documentation. 1999-04-01 02:49:12 +00:00
scottr a53f9b62f4 Make a note of a subtle lossage mode pointed out by Mycroft. 1999-03-10 19:18:59 +00:00
scottr a443f8c15c Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target.  Problem noted by Mycroft.
1999-03-10 19:10:14 +00:00
scottr 67f17dd709 Back out rev 1.90: The need for texinfo is a one-shot event. This was
announced in a reasonable forum.  Further, it adds significant overhead to
the build process, and doesn't work correctly when a non-root DESTDIR
build is attempted (unless texinfo is already available, which of course
makes this change unnecessary).
1999-02-20 09:10:41 +00:00
scottr 455f4cf780 make -> ${MAKE} 1999-02-19 23:22:14 +00:00
mellon 3dcbd83b7b Build and install texinfo before building and installing the world. 1999-02-18 14:49:59 +00:00
mellon 91bd4d3f4a Don't try to run makeinfo when doing preliminary GNU library builds. 1999-02-18 03:19:44 +00:00
scottr f09cc42ad9 Revert 1.83; it doesn't work. A different fix for his problem is in
the pipeline.
1999-02-17 08:00:52 +00:00
cjs 0ce5d20c34 Add release and snapshot targets. (They do the same thing.) 1999-02-16 03:37:26 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
tv 2dfda4a05f Back out the info dir changes; /usr/share/info was not in pkgsrc's info
path, which confused me to no end.
1999-02-11 17:56:46 +00:00
tv 1590f3bcda If updating from a system which has a /usr/pkg/info/dir, move that to
/usr/share/info/dir and make a symlink in /usr/pkg/info.  This allows
systems with the gtexinfo pkg installed to work "properly".
1999-02-11 14:49:49 +00:00
christos b82b273dec Build the domestic libraries first, before building programs. Unfortunately
some programs like /usr/libexec/ftpd, need the kerberos etc libraries.
XXX: In reality programs like these should be moved to the domestic tree!
I would have assumed that if I make install in the exportable tree, I will
not install any domestic binaries!!!
1999-02-09 19:52:50 +00:00
scottr ebefa9658b Once more, from the beginning: we really, really don't want to descend into
the domestic tree if we are building an EXPORTABLE_SYSTEM.

Translate the conditional to English so as to avoid future problems
when people are tempted to modify it.
1999-01-29 05:42:35 +00:00
scottr 98e31beeee If doing a "domestic" build, make sure whatis.db is built _after_ the
domestic tree.
1999-01-28 15:36:48 +00:00
scottr 59da8f5c0e Sigh. The last change was too clever. Instead of using EXPORTABLE_SYSTEM,
which has side effects, use _BUILD to determine whether we ought to
install things in the domestic subtree.  Otherwise, the core idea from
the last revision is unchanged.
1999-01-24 19:18:54 +00:00
scottr f7d635627c When I split the build target into the top-level and "domestic" pieces, I
failed to account for how a 'make distribution' would get the proper bits
into the distribution tree.  To correct this, we set EXPORTABLE_SYSTEM
while doing a 'make build' in order to avoid trying to install not-yet-
generated headers and binaries.  I've also made the required adjustment
to the condition that adds "domestic" to SUBDIR.

This is too hairy and needs to die, but I don't see how it can until
we integrate the crypto bits into the main body of the tree.
1999-01-24 07:42:34 +00:00
scottr 56d26266a5 Don't build domestic bits directly; use the domestic 'build' target
to do them for us.
1999-01-05 07:09:58 +00:00
cjs e4ee43d8b2 Even if EXPORTABLE_SYSTEM is defined, descend into domestic for targets
obj, clean, cleandir and distclean. This reduces the chance of problems
(and the need to re-run make obj) if one is switching back and forth
between EXPORTABLE_SYSTEM and not, as US/Canadian developers tend to do.
1999-01-03 22:17:19 +00:00
bouyer aa694bb9e2 Add a 'NBUILDJOBS' variable which control the number of jobs started in
parallel for a 'make build' (using make's -j flag). Only CPU-intensive jobs
are started in parallel.
Document the variables useable at the begining of the makefile
(NBUILDJOBS NOMAN NOSHARE UPDATE DESTDIR). Feel free to add documentation
for the ones I forgot !
1998-12-22 11:21:09 +00:00
tv 1343ef3796 GC old gcc 2.7.2.2. 1998-12-12 23:44:22 +00:00
simonb 76b2a4f97c Let make do the NOMAN= variable assignments instead of the shell so us
csh/tcsh weenies can cut and paste "make -n build" lines.
1998-12-07 01:42:34 +00:00
thorpej 68cceaeee4 It is no longer necessary to run ldconfig in the build: target. It is
handled by bsd.lib.mk.
1998-12-02 22:53:06 +00:00
thorpej 9eba51863a Only ldconfig if it's there (ELF systems don't use ldconfig). 1998-10-18 20:41:39 +00:00
mycroft 66d3187f89 Do not build libgcc 3 times.
Instead:
* If upgrading the compiler, build it *first*, before anything else.
* If upgrading the compiler and DESTDIR is set, barf.
This guarantees that libgcc is built during the library stage.
1998-10-16 05:05:09 +00:00
mycroft b464b3b631 When doing a `make build' without DESTDIR, run ldconfig(8) after updating the
libraries.
1998-10-15 02:50:00 +00:00
tv 737c23e11b Fix libgcc on alpha; shouldn't build 2.7 libgcc when bootstrapping. 1998-10-07 02:35:38 +00:00
lukem 67fe57924e don't install in /usr/share if NOSHARE is defined 1998-09-29 06:59:53 +00:00
christos 2fc0d9fc29 Test gcc2.8 and egcs properly 1998-09-27 18:18:42 +00:00
tv de2bb5bd3e No need to shield alpha from gcc 2.7 libgcc any longer. Default is egcs. 1998-08-27 14:11:45 +00:00
tv 62aab56659 Only build the egcs libgcc if the current ${CXX} is actually egcs. 1998-08-22 22:06:23 +00:00
tv c553fa5c2e Re-enable libgcc from egcs and RE-ADD the warning & libgcc rebuild at the
end of the build - it is needed for gcc 2.7->egcs bootstraps!
1998-08-22 22:05:00 +00:00
tv 06cc701e6e Turn off the egcs bits while the 1.1 import is taking place. 1998-08-16 17:25:30 +00:00
thorpej 664737f4b3 Don't try and build non-EGCS libgcc on Alpha and PowerPC. 1998-07-28 18:55:41 +00:00
mycroft 90bb301b82 During the initial library pass, do not install man pages.
Also, GC the weird egcs stuff in here.
1998-07-26 17:28:58 +00:00
mycroft 0ed3129ab7 Do not blow away my egcs libgcc at the beginning of a build. 1998-07-25 10:35:53 +00:00
tv f33c6eef65 Fix flawed logic: I'm not all here today. (.if's werten't doing what the
commit comment said they would do.
1998-07-24 16:51:33 +00:00
tv 7d85aa8579 Fix the rebuild of libgcc:
- If USE_EGCS is set, rebuild egcs's libgcc and install it
  (unless DESTDIR is set and system compiler is not gcc 2.8,
   in which case print a warning message and do nothing).
- Do not rebuild gcc 2.7's libgcc.  egcs can build this fine.
1998-07-24 16:48:47 +00:00
perry ef7f93c4e2 build libgcc during make build; also, don't build lex and yacc first any more. 1998-07-21 23:13:13 +00:00
scottr 8c924375e8 Revert 1.44 and associated changes; you can't prebuild anything without
includes, which is the case if you are building to an empty $DESTDIR.
Fixes PR 5497.

NOTE:  This reverts us to the 1.3 behavior of requiring the secr
set to be installed for non-exportable builds.  While unfortunate,
this allows a user to start with existing binary sets, rather than
requiring special knowledge of how to build a domestic tree to
$DESTDIR.
1998-05-27 06:38:37 +00:00
tv 2be2a5eb88 Move (re)build of libgcc to end of build list (after gcc/egcs would be
installed/updated).
1998-05-21 11:53:49 +00:00
thorpej ad6b563dc3 Gack, don't try to build libgcc if it wouldn't be appropriate. 1998-05-21 01:40:19 +00:00
thorpej 246b83555d Build the appropriate libgcc, so that build-to-destdir works. 1998-05-12 01:59:54 +00:00
mycroft ff93d40dbb Make sure system includes are installed before descending into gnu. 1998-05-10 10:37:59 +00:00
tv 0f94879015 Do the cleandir before the includes, so rpcgen doesn't build includes
twice.  (Should build and install rpcgen before the includes, but it's not
too clear whether to do this before or after the cleandir.)
1998-04-15 13:44:55 +00:00
mellon d9a64124a0 Print date after build completes as well as before. Previous code failed because make build depends on beforeinstall but not afterinstall. 1998-02-20 01:39:38 +00:00
lukem 33fd402980 fix make build for non-usa domestic a better way 1998-02-16 10:07:31 +00:00
lukem 20aac973f8 don't assume domestic/usr.bin/compile_et exists for make build (eg: the user has a non-USA domestic subtree) 1998-02-16 07:57:19 +00:00
thorpej 7182d6c160 In the build targer, make sure the troff macros are installed before
attempting to build manual pages.
1998-02-15 00:33:03 +00:00
thorpej d18d79c554 Domestic library build fix: libtelnet depends on libdes and libkrb. libkrb
depends on libcom_err.  So, build libdes, libcom_err, libkrb in that
order before building domestic/lib.  (Geez, this stuff is a mess.)
1998-02-10 04:38:13 +00:00
perry 14580efdcf add date printout at beginning and end of 'make build's 1998-02-06 23:11:57 +00:00
mellon 36b38d644e Prebuild some things that the build depends on *before* they are needed so that fresh builds don't die prematurely 1998-01-30 07:10:31 +00:00
thorpej c3c8cbd87c Make the "build" target depend on "beforeinstall", ensuring that all
directories have been created for the installation of the include files.
1997-10-27 18:06:39 +00:00
cjs 7a66732d34 Back out BUILDDIR and NOINSTALL changes. 1997-05-31 21:21:13 +00:00
cjs 922ba53c9c Add a cleandir to make build, to make it more like it was before. 1997-05-29 14:23:02 +00:00
cjs 5fd7ce7066 These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.
1997-05-26 03:55:19 +00:00
christos 3dd90654e6 Don't cleandir on make build when UPDATE is set. 1997-03-24 22:22:15 +00:00
cgd bee34e4913 when doing 'make build', build lib/csu & install it before building
lib itself.  On the Alpha (and other ELF systems), shared library builds
require files built/installed by the csu build, so if lib/csu isn't
built/installed before lib is, DESTDIR builds won't work and normal builds
can mistakenly use old versions of some csu files.
1997-03-10 23:46:12 +00:00
cjs 3ec1da8855 All of domestic/lib now builds without errors, so we build it all. 1996-11-27 02:04:06 +00:00
explorer 90708132cf allow builds to work if directory games is missing. Closes pr misc/1921 and
misc/2294
1996-08-10 23:29:00 +00:00
jtc c043a9424a Headers in src/domestic/include are now installed by the includes target 1996-04-25 01:09:33 +00:00
jtc 99ec449e31 Headers in src/include are now installed by the includes target 1996-04-25 01:02:27 +00:00
jtc 7dcb56f419 Added "${MAKE} includes" to build target 1996-04-25 00:47:25 +00:00
cgd 72b7f58800 pull in bsd.own.mk earlier, to get configuration variables.
if people define EXPORTABLE_SYSTEM, they REALLY don't want to do stuff
	in 'domestic'.  Pay attention to it when doing 'make build'.
in 'make build', install share/mk _first_, because include dirs may
	require new make templates.
in 'make build', install domestic includes after normal includes, so
	they can previously-installed includes if necessary.
Note that all of domestic/lib should be built in 'make build' during the
	library build stage.
1996-04-13 06:36:15 +00:00
tls fe06033829 behaviour of 'make build' should not change if DESTDIR is set; this is an artifact of an ancient mistake of mine. 1996-03-18 09:55:25 +00:00
tls 9b13fd4652 a futile nod to ease-of-upgrade: make build now installs new rules from share/mk. 1996-03-18 09:53:11 +00:00
tls fd5b9f2146 removed obsolete src/kerberosIV reference, albeit commented out 1996-03-18 09:21:33 +00:00
jtc ad74dba905 fix typo 1995-12-15 18:13:41 +00:00
tls 25e060d180 libcrypt has moved 1995-12-09 23:07:02 +00:00
tls 88ec513924 get krb4 includes installed, do distrib-dirs if DESTDIR not set 1995-12-09 22:39:46 +00:00
thorpej 0cba2ec9a0 New-style RCS id. 1995-10-09 02:11:28 +00:00
pk 7e7b18f73e Comment out last change as it interferes with distribution building. 1995-10-07 22:58:52 +00:00
tls d9ccabfca5 stick distrib-dirs in beforeinstall -- should be cleaner? 1995-10-06 12:05:36 +00:00
cgd 372dc31507 work in the face of a /usr/src/obj directory 1995-02-26 01:10:19 +00:00
cgd d0dbb18afc add 'domestic' to subdirs list, if it exists. 1995-02-19 12:20:06 +00:00
cgd 5f2ece7ba4 explicitly pull in bsd.own.mk, so that it's there for afterinstall. 1994-12-22 12:43:45 +00:00
cgd 5b08705cfa if not installing man pages, don't remake whatis db 1994-06-14 04:40:29 +00:00
cgd 4e504c0179 light style cleanup 1994-02-10 08:50:06 +00:00
cgd 8f54ff345b don't use 'make' explicitly 1994-02-10 01:47:47 +00:00
cgd ac29ea9d85 kill typo 1994-02-08 23:20:40 +00:00
cgd 7038181e7e add some new targets to DTRT when installing/building 1994-02-07 05:08:57 +00:00
cgd 65f48bd1bc do "lib" first. otherwise you can be *really* screwed by a 'make install'
on a system with shared libraries...
1993-12-08 04:51:25 +00:00
brezak 969988f0a6 Make regress only if directory exists. It can be optional. 1993-07-07 12:55:48 +00:00
cgd 528318400a allow toplevel makefile to descend into sys 1993-07-04 14:02:11 +00:00
cgd aafe7dd739 change from rcs "Header" to "Id" 1993-05-22 07:15:52 +00:00
cgd e600b363ed oops, clean that up a bit 1993-05-22 07:15:13 +00:00
cgd b89816148f add regress, but not for install. also, add "regress" target 1993-05-22 07:10:28 +00:00
cgd cab9fb82f8 put all of the gnu stuff in one place 1993-04-29 12:42:00 +00:00
cgd a3b53c55c9 added gnulibexec gnugames 1993-04-29 11:48:50 +00:00
cgd ecaf3b9df2 added `usr.gnubin' for new gnu binaries necessary for the distribution. 1993-04-10 15:49:55 +00:00
cgd f6a28bf135 added gnulib, for gnu libraries that for whatever reason need to go
into the main tree
1993-04-08 01:05:57 +00:00
cgd 2cd96750d8 change "Id" to "Header" in rcsid, and noted why etc was not in subdirs 1993-03-22 08:43:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00