This wiki article contains incomplete and informal notes about the MPS, the precursor to more formal documentation. Not confidential. Readership: MPS users and developers.

MPS Build System

Buildsys (the MPS build system) does these things:

Exist 3 dimensions:

You can specify these if you wish. Indeed, you *must* specify PFM, by passing its makefile to make (or nmake) with the -f (or /f) flag. You may specify TARGET and VARIETY on the command-line to make ("VARIETY=di").

If you don't specify TARGET and VARIETY, the buildsys uses the following defaults:

(The pseudo-targets that fill-in these defaults have confusing names: the rule that expands varieties is called "target:" (probably because the TARGET is known by this point), and the rule invoked when TARGET and VARIETY are both known is called "variety:").

Once values for PFM, TARGET, and VARIETY are known, there's a rule that prepends the path "PFM/VARIETY/" to TARGET, to make sure that the built files will appear in the appropriate subdirectory. (Effectively making "foo" a useful shorthand for "PFM/VARIETY/foo").

How to see the compiler-flags, etc, used by the build

Try defining NOISY=1 on the make command line.

Or, start by finding the final recursive make call: it will be the command-line that ends with the pseudo-target "variety". Edit comm.gmk (or commpost.nmk) and add the -n (or /n) flag to that make command.

B. Document History

  2008-09-29  RHSK  Created.

C. Copyright and License

This document is copyright © 2008 Ravenbrook Limited. All rights reserved. This is an open source license. Contact Ravenbrook for commercial licensing options.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Redistributions in any form must be accompanied by information on how to obtain complete source code for the this software and any accompanying software that uses this software. The source code must either be included in the distribution or be available for no more than the cost of distribution plus a nominal fee, and must be freely redistributable under reasonable conditions. For an executable file, complete source code means the source code for all modules it contains. It does not include source code for modules or files that typically accompany the major components of the operating system on which the executable file runs.

This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement, are disclaimed. In no event shall the copyright holders and contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.