Line | |
---|
1 | |
---|
2 | # Declare a project id. |
---|
3 | project make |
---|
4 | # Specify requirements for this project. They will be propagated to child project. |
---|
5 | # Use 'bjam -n' to see that MACRO is defined when compiling lib/b.obj |
---|
6 | : requirements <define>MACRO |
---|
7 | ; |
---|
8 | |
---|
9 | # Load a project located at "extlib", and associated with project-id "/extlib". |
---|
10 | use-project /extlib : extlib ; |
---|
11 | |
---|
12 | # Construct a target 'a' from a list of sources using the specified rule. |
---|
13 | make a |
---|
14 | : a.o # Use a target declared in this Jamfile |
---|
15 | lib/b.o # Use a target from other Jamfile |
---|
16 | @/extlib/c.o # Refer to a library by project-id |
---|
17 | |
---|
18 | : gcc.link ; |
---|
19 | |
---|
20 | |
---|
21 | # Construct another target. |
---|
22 | make a.o : a.cpp : gcc.compile ; |
---|
Note: See
TracBrowser
for help on using the repository browser.