*BSD News Article 21728


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uunet!pipex!sunic!trane.uninett.no!news.eunet.no!nuug!dkuug!dde!kim
From: kim@dde.dk (Kim Andersen)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Build world under NetBSD 0.9?
Message-ID: <1993Oct1.172711.140@dde.dk>
Date: 1 Oct 93 17:27:11 GMT
References: <CE5CzB.DI3@eskimo.com> <28hf6q$jru@hrd769.brooks.af.mil>
Organization: Dansk Data Elektronik A/S
Lines: 41

burgess@hrd769.brooks.af.mil (Dave Burgess) writes:

>Yes, and no.

>The Makefile in the /usr/src directory will recompile all of the
>appropriate pieces of the /usr/src subdirectory tree; it just doesn't do
>them in the right order (IMHO).

>Here is the line from the Makefile as it exists here:

>SUBDIR+= bin include lib libexec sbin usr.bin usr.sbin share games
>SUBDIR+= gnu
>SUBDIR+= sys

>This is OK, except that a few of these might be better served in a
>different order.  For example, I would suggest something like this:

>SUBDIR+= include lib 
>SUBDIR+= gnu
>SUBDIR+= bin sbin usr.bin usr.sbin libexec share games
>SUBDIR+= sys

>This way, the includes get updated before any source code, the libraries
>get rebuilt before the objects are linked, the compiler gets rebuilt
>using the new libraries, and all of the system sources (utility and
>system) get built with the new compiler, libs, and includes.

A more "correct" way would be :
cd usr/src/share/mk ; make install
cd usr/src/include ;make install
cd usr/src/lib ; make && make install
cd usr/src/gnu/usr.bin/gcc; make && make install

Now your lib's and includes and makefiles are updated.

regards
kim
-- 
-- 
Kim Andersen @ Dansk Data Elektronik A/S, Herlev, Denmark.
E-mail: kim@dde.dk   or    ...!uunet!mcsun!dkuug!dde!kim