ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/doc/html/BuildFileExamples.html
Revision: 1.3
Committed: Tue Apr 6 08:21:20 1999 UTC (26 years, 1 month ago) by williamc
Content type: text/html
Branch: MAIN
CVS Tags: V0_8, V0_7
Changes since 1.2: +1 -0 lines
Log Message:
Realign table

File Contents

# User Rev Content
1 williamc 1.1 <h1>BuildFile Examples</h1>
2     <p>
3     The Default Build is configured at the project level. The default can be
4     overridden or parameters passed to the default build rules through the
5     BuildFile.
6    
7     <p>
8     Examples of different build files are shown below
9     <ol>
10     <li>The Binary Executable<p>
11     The binary building rules require explicit specification of the binary targets
12     e.g.
13     <p>
14     <pre>
15     &lt;External ref=cmsim>
16     &lt;External ref=X11>
17     &lt;Use ref=CARF>
18     &lt;bin file=example1.cpp>
19 williamc 1.2 You can write between bin tags some documentation to describe what the binary
20     does
21 williamc 1.1 &lt;/bin>
22     &lt;bin file=example2.cpp name=mytestexe>
23 williamc 1.2 Here we call the final binary a different name from the default.
24 williamc 1.1 &lt;/bin>
25     &lt;/Use>
26     &lt;/External>
27     &lt;/External>
28     </pre>
29     This file will build two executables called (example1 and mytestexe) from files example1.cpp and example2.cpp respectively. Both are built in the context of
30     external libraries cmsim and X11 as well as a local package from the same
31 williamc 1.2 project called CARF <p>
32     <em><b>Note: Theres still much work to be done here</b></em><br>
33     <ul>
34     <li> Use tag not yet working.
35     <li> &lt;/External> tag does not remove the inclusion of the specified
36     external package as you might expect.
37     <li> Anything Outside of the bin tags will be included in the
38     GNUmakefile. This allows you the full functionality of gmake
39     to make up for any inadequacies. Hopefully as full scram
40     binary functionality is achieved this will be phased out
41 williamc 1.3 </ul>
42 williamc 1.1 <p>
43     <li>The library BuildFile
44     The only time you might want to override this is to exclude some files from a
45     build or include external package headers or assign the module to a group.
46     <br>e.g.<p>
47     <pre>
48     &lt;Group name=G3>
49     skip_files := FakeClusterizer.cc SigmaClusterizer.cc
50     </pre>
51     <li>Empty Group
52     Sometimes the default builds arn't wanted at all. Switch them off with
53     <p>
54     <pre>
55     &lt;AssociateGroup>
56     none
57     &lt;/AssociateGroup>
58     </pre>