16 |
|
<pre> |
17 |
|
<Group name=G3> |
18 |
|
<External ref=X11> |
19 |
+ |
|
20 |
+ |
<Environment> |
21 |
|
<Use name=CARF> |
22 |
|
<Lib name=examplelib></lib> |
23 |
|
<bin file=example1.cpp> |
24 |
|
You can write between bin tags some documentation to describe what the binary |
25 |
< |
does |
25 |
> |
does. As the bin tag is inside the Environment tags this environment will apply |
26 |
> |
in addition. (i.e example1.cpp will use CARF and the library examplelib as well |
27 |
> |
as X11 and G3) |
28 |
|
</bin> |
29 |
+ |
</Environment> |
30 |
+ |
|
31 |
|
<bin file=example2.cpp name=mytestexe> |
32 |
|
Here we call the final binary a different name from the default. |
33 |
|
</bin> |
28 |
– |
</Use> |
29 |
– |
</External> |
30 |
– |
</External> |
34 |
|
</pre> |
35 |
|
</font> |
36 |
|
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 |
37 |
< |
external libraries cmsim and X11 as well as a local package from the same |
38 |
< |
project called CARF <p> |
39 |
< |
<em><b>Note: Theres still much work to be done here</b></em><br> |
37 |
> |
external libraries defined by the group G3 and the external package X11. |
38 |
> |
example1 will in addition be built with CARF and examplelib<p> |
39 |
> |
<em><b>Note: Theres still work to be done here</b></em><br> |
40 |
|
<ul> |
38 |
– |
<li> </External> and </Use> tags do not remove the |
39 |
– |
external package as you might expect. |
41 |
|
<li> Anything Outside of the bin tags will be included in the |
42 |
|
GNUmakefile. This allows you the full functionality of gmake |
43 |
|
to make up for any inadequacies. Hopefully as full scram |