Stephen Lamm,
slamm@netscape.com
Last modified: Wed Mar 22 16:07:10 PST 2000
Q. |
What are the
Unix Build Configurator and client.mk ?
|
A. | The Unix Build Configurator is a CGI form for picking and
saving build options.client.mk has been around for a while, but I never used
it because there was no easy way to pass options into it. It used a set of
environment variable to control parameters. However, these variables had no
direct correlation to the options that configure used.
The |
Q. | How does it work? |
A. | The Build Configurator produces a script,
.mozconfig , that you save in your home
directory. When client.mk runs, it reads in the
options that apply to it (e.g. object dirctory).
When configure runs, it also reads in the options that
it understands.
If you are interested in more of the details, you can start by looking at the README file. Or, send me an email. |
Q. | Can I still do all the build steps by hand? |
A. | Absolutely. Fill free to mix and match build steps. |
Q. | Can I load an existing '.mozconfig' into the web Configutator? |
A. | Yes.
cd mozilla netscape -remote , so make sure you have
netscape running.
|
Q. |
How do I force client.mk to run autoconf?
|
A. | Set the environment variable RUN_AUTOCONF_LOCALLY .
You should not need to do this unless you are making changes to
configure.in .
The configure script gets updated automatically
anytime someone makes a change to configure.in .
|
Q. | How do I use .mozconfig with more than one tree? |
A. | If you want to use different options with different trees, you
can save a ".mozconfig" as mozilla/.mozconfig in the root of the tree.
That file will be read instead of the .mozconfig in your home
directory.
If you only want to override an option or two, you could save a
mozilla/.mozconfig like the following,
# mozilla/.mozconfig |
Q. |
How do I temporarily disable .mozconfig ?
|
A. | If you have a ~/.mozconfig , that you want to
disable for a particular tree, you have two options. First, you can
create an empty .mozconfig
at the root of the tree,
cd mozilla (top of the source tree) $MOZCONFIG to point to
an empty file,
touch /tmp/empty |
Q. | What is the best way to build with dependencies? Should I use 'make depend'? |
A. | If you are building with gcc or egcs, you should build with
--enable-md. This causes the compiler to generate the dependencies
when the objects are build. With this option, there is no need
to run 'make depend'. Update: "--enable-md" is used by default if your compiler supports it. If your compiler does not support it, running 'make depend' is your best bet. (client.mk includes 'depend' as a default target.) |
Q. | I changed a Makefile.in file. How to do I update the Makefile? |
A. | make will update the Makefile for you. It has
a dependency rule to update the Makefile,
$(OBJDIR)/Makefile: Makefile.in
|
Q. | What is the difference between 'ac_add_options' and 'mk_add_options'? |
A. | 'ac_add_options' is for passing options to 'configure'. 'mk_add_options' is for passing options to 'client.mk'. (The 'mk' stands for make). Use 'mk_add_options' for everything that needs to be done before you run configure such as checking out the tree, or deciding where to put build objects. |
Back to the Unix Build Instructions
Back to the Unix Build Configurator
Send questions or comments to <slamm@netcape.com>.